@font-face {
  font-family: "Studio Pretendard";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("../assets/fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  --page: #5a5a5a;
  --paper: #f2f2f0;
  --paper-rgb: 242, 242, 240;
  --blue: #064bb9;
  --ink: #050505;
  --muted: #5f5f5f;
  --line: #cfcfca;
  --inverse-muted: rgba(242, 242, 240, 0.62);
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 16px;
  --text-lg: 22px;
  --text-xl: 38px;
  --text-hero: 76px;
  --role-intro-font-size: clamp(18px, 1.25vw, 24px);
  --role-intro-font-weight: 560;
  --role-intro-line-height: 1.38;
  --site-width: 1360px;
  --site-frame-max: 2040px;
  --site-frame-gutter: clamp(22px, 4.6vw, 96px);
  --site-frame-width: min(calc(100vw - var(--site-frame-gutter) - var(--site-frame-gutter)), var(--site-frame-max));
  --role-rail-width: clamp(280px, 16vw, 420px);
  --role-frame-gap: clamp(36px, 4vw, 84px);
  --section-min-height: 760px;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-panel: 760ms;
  --motion-soft: 760ms;
  --motion-quick: 760ms;
  --font-sans: "Studio Pretendard", Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --site-texture: url("../assets/background-texture2.png");
  --site-texture-size: 1448px 1086px;
  --site-texture-surface:
    linear-gradient(rgba(var(--paper-rgb), 0.46), rgba(var(--paper-rgb), 0.46)),
    var(--site-texture);
  --site-texture-popup:
    linear-gradient(rgba(var(--paper-rgb), 0.64), rgba(var(--paper-rgb), 0.64)),
    var(--site-texture);
}

* { box-sizing: border-box; }

html {
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  min-height: 100%;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) transparent;
}

* {
  scrollbar-color: var(--ink) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.45;
  min-height: 100%;
  overscroll-behavior-y: none;
}

.intro-screen {
  align-items: center;
  background: var(--page);
  color: var(--ink);
  display: grid;
  height: 100vh;
  justify-items: center;
  margin: 0;
  min-height: 720px;
  overflow: hidden;
  padding: 42px 0;
  position: relative;
  isolation: isolate;
  width: 100%;
}

.intro-screen::before,
.intro-screen::after {
  background-image:
    linear-gradient(to bottom, rgba(90, 90, 90, 0) 58%, var(--page) 100%),
    url("../resource/background.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  bottom: 0;
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  z-index: 0;
}

.intro-screen::before {
  inset: 0;
  width: auto;
}

.intro-screen::after {
  display: none;
}

.intro-card {
  align-items: center;
  background: transparent;
  display: grid;
  height: 100%;
  isolation: isolate;
  justify-items: center;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.intro-mark {
  display: block;
  filter: none;
  max-height: min(370px, 42vh);
  max-width: min(540px, 58vw);
  mix-blend-mode: normal;
  opacity: var(--intro-title-opacity, 1);
  position: relative;
  transition: opacity 120ms linear;
  width: 100%;
  z-index: 1;
}

body.role-focus {
  overflow: hidden;
}

body.reader-open,
body.pdf-open { overflow: hidden; }

body[data-role-room].reader-open,
body[data-role-room].pdf-open {
  overflow: hidden !important;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

main {
  max-width: none;
  margin: 0 auto;
  min-height: auto;
  opacity: var(--role-page-opacity, 0);
  padding: 42px 0;
  transition: opacity 120ms linear;
  width: var(--site-frame-width);
}

header {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: var(--text-xs);
  font-weight: 900;
  gap: 18px;
  left: 28px;
  letter-spacing: 0;
  mix-blend-mode: normal;
  opacity: var(--header-opacity, 0);
  pointer-events: none;
  position: fixed;
  text-transform: uppercase;
  top: 22px;
  transition: opacity 120ms linear;
  z-index: 30;
}

header > a { border-bottom: 0; }

body.is-header-visible header {
  pointer-events: auto;
}

.language-switch {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.language-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
}

.language-switch button.is-active {
  border-bottom-color: currentColor;
}

nav {
  display: none;
}

main { padding-bottom: 42px; }

.hero,
.row {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  margin: 0;
  min-height: var(--section-min-height);
}

.hero {
  background: var(--paper);
  color: var(--ink);
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 84px);
  padding: 0;
  position: relative;
}

.role-hero {
  overflow: hidden;
}

.hero p,
h2,
figcaption,
.section-note {
  color: var(--muted);
}

.hero p {
  align-self: start;
  color: rgba(0, 0, 0, 0.58);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  align-self: start;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(13px, 1.15vw, 18px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
  max-width: 420px;
  text-align: center;
  word-break: keep-all;
}

.hero h1 {
  text-wrap: balance;
}

.hero p::after {
  color: rgba(0, 0, 0, 0.58);
  content: "";
  margin-left: 0;
}

.role-panels {
  height: calc(100vh - 84px);
  overflow: hidden;
  position: relative;
  min-height: 720px;
}

.role-panel {
  background: var(--paper);
  border-right: 1px solid var(--line);
  color: var(--ink);
  container-type: inline-size;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  left: 0;
  min-width: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  transition:
    background var(--motion-panel) var(--motion-ease),
    color var(--motion-panel) var(--motion-ease),
    opacity var(--motion-panel) var(--motion-ease);
  width: 20%;
  will-change: background, color, opacity;
  z-index: 1;
}

.role-panel:nth-child(1) { left: 0; }
.role-panel:nth-child(2) { left: 20%; }
.role-panel:nth-child(3) { left: 40%; }
.role-panel:nth-child(4) { left: 60%; }
.role-panel:nth-child(5) { left: 80%; }

body:not(.role-focus) .role-panel:nth-child(1) {
  left: 0 !important;
  width: 20% !important;
}

body:not(.role-focus) .role-panel:nth-child(2) {
  left: 20% !important;
  width: 20% !important;
}

body:not(.role-focus) .role-panel:nth-child(3) {
  left: 40% !important;
  width: 20% !important;
}

body:not(.role-focus) .role-panel:nth-child(4) {
  left: 60% !important;
  width: 20% !important;
}

body:not(.role-focus) .role-panel:nth-child(5) {
  left: 80% !important;
  width: 20% !important;
}

body.role-focus .role-panel:nth-child(1),
body.role-focus .role-panel:nth-child(1).is-expanded {
  left: 0 !important;
  width: 20% !important;
}

body.role-focus .role-panel:nth-child(2),
body.role-focus .role-panel:nth-child(2).is-expanded {
  left: 20% !important;
  width: 20% !important;
}

body.role-focus .role-panel:nth-child(3),
body.role-focus .role-panel:nth-child(3).is-expanded {
  left: 40% !important;
  width: 20% !important;
}

body.role-focus .role-panel:nth-child(4),
body.role-focus .role-panel:nth-child(4).is-expanded {
  left: 60% !important;
  width: 20% !important;
}

body.role-focus .role-panel:nth-child(5),
body.role-focus .role-panel:nth-child(5).is-expanded {
  left: 80% !important;
  width: 20% !important;
}

.role-panel:nth-child(2),
.role-panel:nth-child(4) {
  background: #ffffff;
}

body:not(.role-focus) .role-panel.is-hovered,
body:not(.role-focus) .role-panel:hover {
  background: var(--ink);
  color: var(--paper);
}

.role-panel.is-expanded {
  background: var(--paper);
  color: var(--ink);
  overflow: visible;
  z-index: 80;
}

body.role-focus .role-panel:not(.is-expanded) {
  opacity: 1;
  pointer-events: none;
}

.role-hit:hover,
.role-hit:focus-visible {
  outline: 0;
}

.role-panel::before {
  border: 1px solid currentColor;
  content: "";
  inset: 18px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: none;
  z-index: 3;
}

.role-panel.is-expanded::before,
.role-panel.is-hovered::before,
.role-panel:hover::before,
.role-panel:focus-visible::before {
  opacity: 0;
}

.role-hit {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  align-content: start;
  grid-template-rows: auto auto auto;
  min-width: 0;
  padding: 22px;
  text-align: left;
  width: 100%;
  z-index: 2;
  transition: opacity var(--motion-panel) var(--motion-ease);
}

body.role-focus .role-hit {
  opacity: 0;
  pointer-events: none;
}

body.role-closing .role-hit {
  opacity: 1;
}

body.role-focus .role-panel:not(.is-expanded) .role-hit {
  padding: 22px;
}

.role-hit > span,
.role-hit > em,
.role-hit > small,
.role-note {
  color: var(--muted);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.role-hit > span,
.role-hit > em,
.role-hit > small {
  display: none;
}

.role-panel.is-expanded .role-hit > span,
.role-panel.is-expanded .role-hit > em,
.role-panel.is-expanded .role-hit > small {
  color: currentColor;
  opacity: 0.7;
}

.role-hit strong {
  align-self: start;
  color: currentColor;
  display: grid;
  font-size: clamp(20px, 10.2cqw, 40px);
  font-weight: 900;
  gap: 0;
  line-height: 0.95;
  max-width: none;
  overflow-wrap: anywhere;
  transform: none;
  transform-origin: left bottom;
  transition: none;
  text-transform: uppercase;
  text-wrap: balance;
  white-space: normal;
  width: 100%;
  word-break: keep-all;
}

.role-heading-line {
  display: block;
  text-align: left;
}

.role-heading-handle {
  display: grid;
  column-gap: 0.02em;
  grid-template-columns: max-content minmax(0, 1fr);
  max-width: 100%;
  overflow-wrap: normal;
  padding-left: 0;
  text-align: left;
  text-indent: 0;
  word-break: keep-all;
}

.role-heading-mark {
  display: block;
  grid-column: 1;
}

.role-heading-handle-text {
  display: block;
  grid-column: 2;
  overflow-wrap: normal;
  min-width: 0;
  word-break: keep-all;
}

.role-heading-handle.role-heading-handle-multiline {
  background: transparent;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  padding: 0;
  width: fit-content;
}

.role-heading-handle-multiline .role-heading-handle-row {
  background: var(--ink);
  color: var(--paper);
  column-gap: 0.02em;
  display: inline-grid;
  grid-template-columns: max-content max-content;
  line-height: inherit;
  padding: 0 0.08em 0.04em;
  text-align: left;
  width: fit-content;
}

.role-heading-handle-multiline .role-heading-mark-spacer {
  visibility: hidden;
}

.role-hit strong b {
  color: inherit;
  display: none;
  font: inherit;
  text-align: left;
  text-transform: inherit;
}

.role-hit strong .role-heading-handle {
  column-gap: 0.02em;
  grid-template-columns: max-content minmax(0, 1fr);
  overflow-wrap: normal;
  width: 100%;
}

body:not(.role-focus) .role-panel.is-hovered .role-hit .role-heading-line,
body:not(.role-focus) .role-panel:hover .role-hit .role-heading-line {
  display: none;
}

body:not(.role-focus) .role-panel.is-hovered .role-hit .role-heading-handle,
body:not(.role-focus) .role-panel:hover .role-hit .role-heading-handle {
  display: grid;
}

.role-panel.is-hovered .role-hit strong,
.role-panel:hover .role-hit strong {
  font-size: clamp(20px, 10.2cqw, 40px);
}

.role-panel.is-expanded .role-hit strong {
  font-size: clamp(20px, 10.2cqw, 40px);
  transform: none;
  white-space: normal;
}

body.role-focus .role-panel:not(.is-expanded) .role-hit strong {
  font-size: clamp(20px, 10.2cqw, 40px);
  transform: none;
  white-space: normal;
}

.role-hit small {
  max-width: 420px;
  opacity: 0;
  transform: none;
  transition: none;
}

.role-panel.is-expanded .role-detail {
  align-self: stretch;
  color: var(--ink);
  opacity: 1;
  pointer-events: none;
}

.role-panel.is-expanded.is-detail-ready .role-detail {
  pointer-events: auto;
}

body.role-closing .role-panel.is-expanded .role-detail {
  opacity: 0;
  pointer-events: none;
}

.role-panel.is-expanded .role-close {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.role-closing .role-panel.is-expanded .role-close {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  :root {
    --text-hero: 48px;
    --text-xl: 30px;
    --text-base: 15px;
    --role-intro-font-size: clamp(17px, 4.2vw, 20px);
    --role-intro-line-height: 1.4;
  }

  main {
    padding: 0 18px;
  }

  header {
    left: 18px;
    top: 18px;
  }

  .hero,
  .row {
    margin: 28px 0 48px;
    min-height: auto;
  }

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

  .role-panels,
  body.role-focus .role-panels:has(.role-panel:nth-child(1).is-expanded),
  body.role-focus .role-panels:has(.role-panel:nth-child(2).is-expanded),
  body.role-focus .role-panels:has(.role-panel:nth-child(3).is-expanded),
  body.role-focus .role-panels:has(.role-panel:nth-child(4).is-expanded),
  body.role-focus .role-panels:has(.role-panel:nth-child(5).is-expanded),
  .role-panels:has(.role-panel:nth-child(2).is-expanded),
  .role-panels:has(.role-panel:nth-child(3).is-expanded),
  .role-panels:has(.role-panel:nth-child(4).is-expanded),
  .role-panels:has(.role-panel:nth-child(5).is-expanded) {
    height: auto;
    min-height: auto;
  }

  .role-panel {
    border-top: 1px solid var(--line);
    height: auto;
    left: auto !important;
    min-height: 240px;
    position: relative;
    top: auto;
    width: 100% !important;
  }

  body.role-focus .role-panel:not(.is-expanded) {
    min-height: 74px;
  }

  .role-hit strong,
  .role-panel.is-expanded .role-hit strong,
  body.role-focus .role-panel:not(.is-expanded) .role-hit strong {
    font-size: clamp(32px, 12vw, 58px);
    transform: none;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  :root {
    --text-hero: 38px;
    --text-xl: 25px;
    --text-base: 15px;
  }
}

/* Version 15 menu, language switcher, and page-transition chrome. */
.v15-menu-toggle {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-grid;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 900;
  height: 48px;
  justify-items: center;
  left: auto;
  letter-spacing: 0;
  padding: 0;
  position: fixed;
  right: clamp(18px, 2.8vw, 44px);
  text-transform: uppercase;
  top: 0;
  width: 24px;
  z-index: 150;
}

.v15-menu-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.v15-menu-icon span {
  background: currentColor;
  display: block;
  height: 2px;
  transform-origin: center;
  transition:
    opacity 260ms var(--motion-ease),
    transform 260ms var(--motion-ease);
  width: 100%;
}

body.is-v15-menu-open .v15-menu-toggle {
  color: var(--ink);
}

body.is-v15-menu-open .v15-menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.is-v15-menu-open .v15-menu-icon span:nth-child(2) {
  opacity: 0;
}

body.is-v15-menu-open .v15-menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.v15-role-menu {
  align-items: center;
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  border-bottom: 0;
  color: var(--ink);
  display: flex;
  gap: clamp(18px, 2.6vw, 44px);
  height: 48px;
  justify-content: flex-end;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 clamp(86px, 7.4vw, 124px) 0 clamp(18px, 2.8vw, 44px);
  position: fixed;
  left: 0;
  top: 0;
  transform: translateX(102%);
  transition:
    opacity 260ms var(--motion-ease),
    transform 260ms var(--motion-ease);
  scrollbar-color: var(--ink) transparent;
  scrollbar-width: thin;
  width: 100vw;
  z-index: 130;
}

.v15-role-menu::-webkit-scrollbar {
  height: 6px;
}

.v15-role-menu::-webkit-scrollbar-track {
  background: transparent;
}

.v15-role-menu::-webkit-scrollbar-thumb {
  background: var(--ink);
}

body.is-v15-menu-open .v15-role-menu {
  transform: translateX(0);
}

.v15-role-menu a {
  border-bottom: 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 900;
  height: 48px;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
  transform: translateX(12px);
  white-space: nowrap;
  transition:
    color 180ms var(--motion-ease),
    opacity 240ms var(--motion-ease),
    transform 240ms var(--motion-ease);
}

.v15-role-menu a[data-menu-hover] {
  display: inline-flex;
  justify-content: center;
  padding: 0;
  position: relative;
  transition:
    color 180ms var(--motion-ease),
    opacity 240ms var(--motion-ease),
    transform 240ms var(--motion-ease);
}

.v15-role-menu a[data-menu-hover]::after {
  align-items: center;
  background: var(--ink);
  box-sizing: border-box;
  content: attr(data-menu-hover);
  display: inline-flex;
  height: auto;
  justify-content: center;
  left: 50%;
  line-height: 1;
  min-width: 100%;
  padding: 5px 7px 6px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.v15-role-menu a[data-menu-hover]::after {
  color: var(--paper);
  opacity: 0;
  transition: opacity 180ms var(--motion-ease);
}

.v15-role-menu a[data-menu-hover="HOME"] { min-width: 52px; }
.v15-role-menu a[data-menu-hover="@STUDIO BRACHIO ISLAND"] { min-width: 176px; }
.v15-role-menu a[data-menu-hover="@LEE GUNHEE"] { min-width: 104px; }
.v15-role-menu a[data-menu-hover="@ILLI"] { min-width: 56px; }
.v15-role-menu a[data-menu-hover="@NEOHEE"] { min-width: 82px; }
.v15-role-menu a[data-menu-hover="@ALL"] { min-width: 54px; }
.v15-role-menu a[data-menu-hover="EMAIL"] { min-width: 68px; }

.v15-role-menu a[data-menu-hover]:hover,
.v15-role-menu a[data-menu-hover]:focus-visible {
  color: transparent;
}

.v15-role-menu a[data-menu-hover]:hover::after,
.v15-role-menu a[data-menu-hover]:focus-visible::after {
  opacity: 1;
}

body.is-v15-menu-open .v15-role-menu a {
  opacity: 1;
  transform: translateX(0);
}

body.is-v15-menu-open .v15-role-menu a:nth-child(1) { transition-delay: 20ms; }
body.is-v15-menu-open .v15-role-menu a:nth-child(2) { transition-delay: 40ms; }
body.is-v15-menu-open .v15-role-menu a:nth-child(3) { transition-delay: 60ms; }
body.is-v15-menu-open .v15-role-menu a:nth-child(4) { transition-delay: 80ms; }
body.is-v15-menu-open .v15-role-menu a:nth-child(5) { transition-delay: 100ms; }
body.is-v15-menu-open .v15-role-menu a:nth-child(6) { transition-delay: 120ms; }
body.is-v15-menu-open .v15-role-menu a:nth-child(7) { transition-delay: 140ms; }

.v15-role-menu a:hover,
.v15-role-menu a:focus-visible {
  outline: 0;
}

.v15-role-menu a:not([data-menu-hover]):hover,
.v15-role-menu a:not([data-menu-hover]):focus-visible {
  color: var(--muted);
}

.v15-menu-language {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  height: 48px;
  margin-left: 0;
}

.v15-menu-language button,
.v15-menu-language span {
  align-items: center;
  border-bottom: 0;
  color: inherit;
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: 900;
  height: auto;
  line-height: 1;
}

.v15-menu-language button {
  padding: 5px 7px 6px;
  transition:
    background-color 180ms var(--motion-ease),
    color 180ms var(--motion-ease);
}

.v15-menu-language button.is-active,
.v15-menu-language button:hover,
.v15-menu-language button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

body.is-v15-leaving .v15-landing-title {
  opacity: 0;
  transform: translate(-28px, -50%);
}

body.is-v15-leaving .v15-role-menu {
  opacity: 0;
  transform: translateX(102%);
}

:root {
  --site-footer-block-size: calc(13px + clamp(20px, 3vh, 32px));
}

.site-footer {
  color: var(--muted);
  display: flex;
  font-size: var(--text-xs);
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 0 var(--site-frame-gutter) clamp(20px, 3vh, 32px);
  text-align: center;
  width: 100%;
}

.site-footer p {
  margin: 0;
}

body.v15-home > .site-footer,
body[data-role-room] > .site-footer {
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
}

@media (max-width: 900px) {
  :root {
    --site-footer-block-size: 37px;
  }

  body[data-role-room] > .site-footer {
    padding: 0 22px 24px;
  }

  body.v15-home > .site-footer {
    padding: 0 22px 24px;
  }
}

.role-detail {
  background: var(--paper);
  border-top: 0;
  display: grid;
  gap: 48px 72px;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  height: calc(100vh - 84px);
  left: 50%;
  max-height: none;
  opacity: 0;
  overflow: hidden;
  padding: 54px 22px 46px;
  pointer-events: none;
  position: fixed;
  top: 42px;
  transform: translateX(-50%);
  transition: opacity var(--motion-panel) var(--motion-ease);
  width: min(var(--site-width), calc(100vw - 84px));
  z-index: 90;
}

.role-panel:not(.is-expanded) .role-detail,
.role-panel:not(.is-expanded) .role-detail *,
.role-panel.is-expanded:not(.is-detail-ready) .role-detail,
.role-panel.is-expanded:not(.is-detail-ready) .role-detail *,
body.role-closing .role-detail,
body.role-closing .role-detail * {
  pointer-events: none !important;
}

.role-close {
  align-items: center;
  appearance: none;
  aspect-ratio: 1;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: 28px;
  top: 28px;
  transform: none;
  transition:
    color var(--motion-panel) var(--motion-ease),
    opacity var(--motion-panel) var(--motion-ease);
  width: 40px;
  z-index: 30;
}

.role-close:hover,
.role-close:focus-visible {
  background: transparent;
  color: var(--muted);
  outline: 0;
}

.role-section-title h2 {
  color: var(--ink);
  align-items: start;
  display: flex;
  flex-direction: column;
  font-size: clamp(30px, 2.35vw, 46px);
  font-weight: 900;
  gap: 6px;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.role-section-title h2 .role-heading-line,
.role-section-title h2 .role-heading-handle {
  display: inline-block;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
  margin: 0;
  max-width: 100%;
  padding: 3px 5px 4px;
  text-align: left;
  text-transform: inherit;
  white-space: normal;
  width: max-content;
  word-break: keep-all;
}

.role-section-title h2 .role-heading-line {
  background: var(--paper);
  color: var(--ink);
}

.role-section-title h2 .role-heading-handle {
  background: var(--ink);
  color: var(--paper);
  display: inline-grid;
  grid-template-columns: max-content max-content;
  column-gap: 0.02em;
  padding-left: 5px;
  text-indent: 0;
  width: fit-content;
}

.role-profile-links {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  margin-top: 34px;
  max-width: 100%;
  padding-top: 22px;
}

.role-profile-links a,
.role-profile-links button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 0;
  min-height: 0;
  padding: 0;
  text-align: center;
  text-transform: uppercase;
  width: 34px;
}

.role-profile-links a:hover,
.role-profile-links a:focus-visible,
.role-profile-links button:hover,
.role-profile-links button:focus-visible {
  background: transparent;
  color: var(--muted);
  outline: 0;
}

.role-profile-icon {
  align-items: center;
  display: inline-flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.role-profile-icon svg {
  display: block;
  height: 24px;
  width: 24px;
}

.role-profile-icon path,
.role-profile-icon rect,
.role-profile-icon circle,
.role-profile-icon line,
.role-profile-icon polyline {
  vector-effect: non-scaling-stroke;
}

.role-detail-layout-novel {
  gap: 0;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  padding-bottom: 0;
}

.role-detail-layout-gallery {
  gap: 48px;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
}

.role-detail-layout-novel .role-close {
  z-index: 60;
}

.role-detail-layout-novel .role-section-title {
  grid-column: 1;
  grid-row: 1;
  pointer-events: none;
  position: relative;
  z-index: 16;
}

.role-detail-layout-novel .role-section-body-novel {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding-right: 0;
  row-gap: 0;
}

.role-detail-layout-novel .role-section-body-novel > .role-note {
  align-self: start;
  border-top: 0;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  max-width: 760px;
  padding: 0 168px 0 0;
  position: relative;
  z-index: 14;
}

.role-detail-layout-novel .role-section-body-novel > .section-note {
  align-self: start;
  grid-column: 2;
  grid-row: 1;
  margin: 44px 168px 0 0;
  max-width: 840px;
  position: relative;
  z-index: 14;
}

.role-detail-layout-novel .role-section-body-novel > .role-overview-stack {
  align-self: start;
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 14;
}

.role-section-body > .role-note {
  border-top: 0;
  color: var(--muted);
  margin: 0 0 38px;
  padding-top: 0;
}

.role-section-body > .section-note {
  color: var(--muted);
  margin-bottom: 34px;
  max-width: 680px;
}

.role-section-body {
  --role-overview-flow-gap: clamp(34px, 4vh, 52px);
  align-content: start;
  display: grid;
  height: 100%;
  min-width: 0;
  padding-right: 8px;
  row-gap: var(--role-overview-flow-gap);
}

.role-scroll-region {
  overflow: auto;
  scrollbar-color: var(--ink) transparent;
  scrollbar-width: thin;
}

.role-detail-layout-identity {
  gap: clamp(42px, 5vw, 88px);
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
}

.identity-detail {
  align-items: start;
  align-self: stretch;
  display: grid;
  gap: clamp(28px, 3.2vw, 60px);
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 0.58fr);
  min-height: 0;
  padding-top: clamp(4px, 1.2vh, 18px);
}

.identity-detail > .role-intro {
  align-self: start;
  display: grid;
  gap: 1em;
  margin: 0;
}

.identity-detail > .role-intro p {
  margin: 0;
}

.identity-detail-portrait {
  align-self: start;
  display: grid;
  gap: 10px;
  margin: 0;
  max-width: 460px;
  width: 100%;
}

.identity-detail-portrait[role="button"] {
  cursor: pointer;
}

.identity-detail-portrait[role="button"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 8px;
}

.identity-detail-portrait img {
  aspect-ratio: 4 / 5;
  filter: none;
  object-fit: cover;
  object-position: center 58%;
  width: 100%;
}

.identity-detail-portrait figcaption {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.engineer-scroll {
  display: grid;
  gap: 0;
}

.cv-scroll {
  align-content: start;
  border-top: 0;
  justify-items: stretch;
  padding-top: 0;
  text-align: left;
}

.cv-scroll * {
  text-align: left;
}

.cv-scroll > .role-overview-stack {
  margin-bottom: var(--role-overview-flow-gap, clamp(34px, 4vh, 52px));
}

.role-intro {
  color: var(--ink);
  font-size: var(--role-intro-font-size);
  font-weight: var(--role-intro-font-weight);
  line-height: var(--role-intro-line-height);
  margin: 0 0 clamp(34px, 4vh, 52px);
  max-width: 760px;
  text-transform: none;
  word-break: keep-all;
}

.role-overview {
  --role-overview-max-width: 980px;
  --role-overview-width: 66.666%;
  margin: 0;
  max-width: min(100%, var(--role-overview-max-width));
  width: var(--role-overview-width);
}

.role-overview-stack {
  align-content: start;
  display: grid;
  justify-items: start;
  margin: 0;
  min-width: 0;
}

.role-intro-stack {
  display: grid;
  gap: 1em;
}

.role-intro-stack p {
  margin: 0;
}

.role-intro .is-bold,
.cv-scroll .is-bold { font-weight: 900; }

.role-intro .is-italic,
.cv-scroll .is-italic { font-style: italic; }

.role-intro .is-struck,
.cv-scroll .is-struck { text-decoration: line-through; }

.role-intro .is-underlined,
.cv-scroll .is-underlined {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.role-intro .is-code,
.cv-scroll .is-code {
  border: 1px solid var(--line);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  padding: 0 0.25em;
}

.cv-block {
  display: grid;
  gap: 24px;
  justify-items: stretch;
  margin-bottom: 58px;
}

.cv-block h3 {
  color: var(--ink);
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 900;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.cv-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
}

.cv-list article,
.cv-list button {
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 66px;
  padding: 18px 0;
  text-align: left;
  width: 100%;
}

.cv-list article.cv-link-row {
  grid-template-columns: 132px minmax(0, 1fr) auto;
}

.cv-list article > span,
.cv-list button > span {
  align-self: start;
  border: 0;
  color: var(--muted);
  display: block;
  font-size: clamp(12px, 0.72vw, 13px);
  font-weight: 700;
  line-height: 1.25;
  padding: 2px 0 0;
  text-transform: uppercase;
  width: auto;
}

.cv-list .cv-entry-actions {
  display: flex;
  gap: 12px;
  justify-self: end;
  white-space: nowrap;
}

.cv-list .cv-entry-actions a {
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  text-decoration: none;
}

.cv-list .cv-entry-actions a:hover,
.cv-list .cv-entry-actions a:focus-visible {
  color: var(--ink);
}

.cv-list p,
.cv-list button strong {
  color: var(--ink);
  font-size: clamp(15px, 1.02vw, 19px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  max-width: 980px;
  text-transform: none;
  text-align: left;
}

.cv-entry-title {
  color: var(--ink);
  display: block;
  font: inherit;
  font-weight: 650;
}

.cv-entry-detail {
  color: var(--muted);
  display: block;
  font-size: clamp(12px, 0.78vw, 14px);
  font-weight: 500;
  line-height: 1.35;
  margin-top: 6px;
  text-transform: none;
}

.cv-entry-detail span {
  display: block;
}

.cv-entry-detail span + span {
  margin-top: 2px;
}

.cv-list button::after {
  display: none;
}

.cv-list button:hover,
.cv-list button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.engineer-block {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 26px 0;
}

.engineer-block > span,
.engineer-list strong {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.engineer-block h3 {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.engineer-block p {
  color: var(--ink);
  margin: 0;
  max-width: 760px;
}

.engineer-identity > div {
  min-width: 0;
}

.engineer-list {
  display: grid;
  gap: 0;
}

.engineer-list article {
  display: grid;
  gap: 28px;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 0 0 16px;
}

.engineer-list article:last-child {
  padding-bottom: 0;
}

.role-items {
  display: grid;
  border-top: 1px solid var(--line);
  gap: 0;
  grid-template-columns: 1fr;
}

.role-detail button:not(.role-close),
.role-items button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 900;
  gap: 24px;
  grid-template-columns: 150px 1fr auto;
  max-width: 100%;
  min-height: 72px;
  padding: 18px 0;
  text-align: left;
  text-transform: uppercase;
}

.role-items button img {
  aspect-ratio: 16 / 10;
  filter: grayscale(1) contrast(1.06);
  object-fit: cover;
  width: 100%;
}

.role-items button span {
  color: var(--muted);
  opacity: 1;
}

.role-items button strong {
  color: var(--muted);
  font-size: var(--text-base);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.role-items button::after {
  align-self: start;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  content: "OPEN";
  font-size: var(--text-xs);
  font-weight: 900;
}

.role-essay-items {
  border-top: 0;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.role-detail .role-essay-items button,
.role-essay-items button {
  align-items: start;
  border-bottom: 0;
  gap: clamp(22px, 3vw, 54px);
  grid-template-columns: minmax(88px, 130px) minmax(0, 1fr) auto;
  min-height: 88px;
  padding: 22px 0;
}

.role-essay-items button > span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  padding-top: 2px;
  text-transform: uppercase;
}

.role-essay-items button strong {
  color: var(--ink);
  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: 900;
  line-height: 1.18;
  max-width: 820px;
  text-transform: none;
}

.role-essay-items .cv-entry-title {
  color: var(--ink);
  font-weight: 900;
}

.role-essay-items .cv-entry-detail {
  color: var(--muted);
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 650;
  line-height: 1.35;
  margin-top: 8px;
  max-width: 680px;
}

.role-essay-items button::after {
  align-self: start;
  color: var(--muted);
  margin-top: 2px;
}

.role-detail button:hover,
.role-detail button:focus-visible,
.role-items button:hover,
.role-items button:focus-visible {
  background: currentColor;
  color: var(--paper);
  outline: 0;
}

.role-detail .role-essay-items button:hover,
.role-detail .role-essay-items button:focus-visible,
.role-essay-items button:hover,
.role-essay-items button:focus-visible {
  background: transparent;
  color: var(--ink);
  opacity: 1;
  outline: 0;
}

.role-detail .role-essay-items button:hover *,
.role-detail .role-essay-items button:focus-visible *,
.role-essay-items button:hover *,
.role-essay-items button:focus-visible * {
  color: inherit;
}

.role-detail .role-essay-items button:hover > span,
.role-detail .role-essay-items button:focus-visible > span,
.role-detail .role-essay-items button:hover::after,
.role-detail .role-essay-items button:focus-visible::after,
.role-essay-items button:hover > span,
.role-essay-items button:focus-visible > span,
.role-essay-items button:hover::after,
.role-essay-items button:focus-visible::after {
  color: var(--muted);
}

.role-detail .role-essay-items button:hover .cv-entry-title,
.role-detail .role-essay-items button:focus-visible .cv-entry-title,
.role-essay-items button:hover .cv-entry-title,
.role-essay-items button:focus-visible .cv-entry-title {
  color: var(--ink);
}

.role-detail .role-essay-items button:hover .cv-entry-detail,
.role-detail .role-essay-items button:focus-visible .cv-entry-detail,
.role-essay-items button:hover .cv-entry-detail,
.role-essay-items button:focus-visible .cv-entry-detail {
  color: var(--muted);
}

.cv-scroll .role-items button:hover,
.cv-scroll .role-items button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.role-detail .role-profile-links a,
.role-detail .role-profile-links button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font: inherit;
  gap: 0;
  grid-template-columns: none;
  height: 34px;
  justify-content: center;
  line-height: 0;
  min-height: 0;
  padding: 0;
  text-align: center;
  width: 34px;
}

.role-detail .role-profile-links a:hover,
.role-detail .role-profile-links a:focus-visible,
.role-detail .role-profile-links button:hover,
.role-detail .role-profile-links button:focus-visible {
  background: transparent;
  color: var(--muted);
  outline: 0;
}

.role-note {
  border-top: 0;
  margin: 0 0 28px;
  padding-top: 0;
}

.section-note {
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 44px;
  max-width: 620px;
  text-transform: uppercase;
  word-break: keep-all;
}

.section-note code {
  border: 1px solid var(--line);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  padding: 0 0.25em;
  text-transform: none;
}

@media (max-width: 1180px) {
  .identity-detail {
    gap: clamp(28px, 4vw, 46px);
    grid-template-columns: minmax(0, 1fr);
  }

  .identity-detail-portrait {
    justify-self: start;
    max-width: min(420px, 100%);
  }

  .role-overview {
    max-width: 760px;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .identity-detail {
    gap: 34px;
    grid-template-columns: 1fr;
  }

  .identity-detail-portrait {
    max-width: min(420px, 100%);
  }

  .role-overview {
    max-width: none;
    width: 100%;
  }
}

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

figure { margin: 0; }

.gallery figure {
  cursor: pointer;
}

.gallery button {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 16px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.gallery figure img,
.gallery figure div {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f4f4f0, #d8d8d2);
  filter: grayscale(1) contrast(1.05);
  object-fit: cover;
  width: 100%;
}

figcaption {
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.role-detail .role-gallery-items button,
.role-gallery-items button {
  background: transparent;
  border: 0;
  border-bottom: 0;
  break-inside: avoid;
  display: block;
  margin: 0 0 16px;
  min-height: 0;
  padding: 0;
  width: 100%;
}

.role-detail .role-gallery-items button::after,
.role-gallery-items button::after {
  content: "";
  display: none;
}

.role-detail .role-gallery-items button img,
.role-detail .role-gallery-items button video,
.role-gallery-items button img,
.role-gallery-items button video {
  aspect-ratio: auto;
  border: 0;
  display: block;
  filter: none;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.role-detail .role-gallery-items button:hover,
.role-detail .role-gallery-items button:focus-visible,
.role-gallery-items button:hover,
.role-gallery-items button:focus-visible {
  background: transparent;
  color: var(--ink);
  opacity: 0.72;
  outline: 0;
}

.role-gallery-items {
  align-content: start;
  align-items: start;
  border-top: 0;
  display: grid;
  gap: clamp(16px, 1.8vw, 30px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: stretch;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  padding-top: 0;
}

.role-gallery-items[data-gallery-masonry-columns="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.role-gallery-items[data-gallery-masonry-columns="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-gallery-items[data-gallery-masonry-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-project-column {
  align-content: start;
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 30px);
  min-width: 0;
}

.role-detail .role-gallery-items .gallery-project-card,
.role-gallery-items .gallery-project-card {
  background: transparent;
  border: 0;
  color: var(--ink);
  display: block;
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  min-height: 0;
  overflow: visible;
  padding: 0;
  text-align: left;
  width: 100%;
}

.role-detail .role-gallery-items .gallery-project-card::after,
.role-gallery-items .gallery-project-card::after {
  content: "";
  display: none;
}

.gallery-project-main,
.gallery-project-preview {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.gallery-project-main {
  height: auto;
}

.gallery-project-main img,
.gallery-project-main video,
.gallery-project-preview img,
.gallery-project-preview video {
  background: var(--paper);
  border: 0;
  display: block;
  filter: none;
  height: auto;
  object-fit: contain;
  transition:
    filter 180ms var(--motion-ease),
    opacity 180ms var(--motion-ease),
    transform 260ms var(--motion-ease);
  width: 100%;
}

.gallery-project-main:hover,
.gallery-project-main:focus-visible,
.gallery-project-preview:hover,
.gallery-project-preview:focus-visible {
  background: transparent;
  outline: 0;
}

.gallery-project-main:hover img,
.gallery-project-main:hover video,
.gallery-project-main:focus-visible img,
.gallery-project-main:focus-visible video {
  opacity: 0.46;
  transform: scale(1.018);
}

.gallery-project-overlay {
  align-items: end;
  background: rgba(239, 235, 225, 0.48);
  color: var(--ink);
  display: none;
  inset: 0;
  opacity: 0;
  padding: clamp(12px, 1.2vw, 18px);
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms var(--motion-ease);
  z-index: 2;
}

.gallery-project-main:hover .gallery-project-overlay,
.gallery-project-main:focus-visible .gallery-project-overlay {
  display: grid;
  opacity: 1;
}

.gallery-project-overlay-text {
  font-size: var(--text-xs);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.gallery-project-previews {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  min-height: 0;
}

.gallery-project-preview:hover img,
.gallery-project-preview:hover video,
.gallery-project-preview:focus-visible img,
.gallery-project-preview:focus-visible video {
  opacity: 0.66;
}

.role-detail .role-gallery-items .gallery-project-main,
.role-detail .role-gallery-items .gallery-project-preview,
.role-gallery-items .gallery-project-main,
.role-gallery-items .gallery-project-preview {
  margin: 0;
  opacity: 1;
}

.role-detail .role-gallery-items .gallery-project-main img,
.role-detail .role-gallery-items .gallery-project-main video,
.role-detail .role-gallery-items .gallery-project-preview img,
.role-detail .role-gallery-items .gallery-project-preview video,
.role-gallery-items .gallery-project-main img,
.role-gallery-items .gallery-project-main video,
.role-gallery-items .gallery-project-preview img,
.role-gallery-items .gallery-project-preview video {
  height: auto;
  object-fit: contain;
  width: 100%;
}

.role-items button video {
  aspect-ratio: 16 / 10;
  filter: grayscale(1) contrast(1.06);
  object-fit: cover;
  width: 100%;
}

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

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}

.novel-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 0 0 18px;
}

.novel-controls button {
  appearance: none;
  aspect-ratio: 1;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font: inherit;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  width: 44px;
}

.novel-controls button:hover,
.novel-controls button:focus-visible,
.novel-controls button.is-active {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.novel-view-icon {
  display: block;
  height: 22px;
  position: relative;
  width: 22px;
}

.novel-view-icon-orbit::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  inset: 3px;
  position: absolute;
}

.novel-view-icon-orbit::after {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 5px;
  position: absolute;
  right: 2px;
  top: 8px;
  width: 5px;
}

.novel-view-icon-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  padding: 2px;
}

.novel-view-icon-grid::before {
  background:
    linear-gradient(currentColor 0 0) left top / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) right top / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 7px 7px no-repeat;
  content: "";
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.novel-deck {
  --book-width: clamp(156px, 15vw, 236px);
  background: var(--paper);
  border: 0;
  min-height: clamp(500px, 44vw, 680px);
  overflow: visible;
  position: relative;
}

.role-novel-controls {
  align-self: start;
  justify-self: end;
  margin: 0 0 24px;
  position: relative;
  z-index: 5;
}

.role-detail-layout-novel .role-novel-controls {
  align-self: start;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin: clamp(20px, 2.8vh, 34px) 0 clamp(20px, 2.8vh, 34px);
  z-index: 20;
}

.role-novel-controls button {
  width: 44px;
}

.role-detail .novel-controls button,
.role-detail .role-novel-controls button {
  align-items: center;
  aspect-ratio: 1;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  display: inline-grid;
  gap: 0;
  grid-template-columns: 1fr;
  justify-items: center;
  line-height: 1;
  min-height: 0;
  padding: 0;
  place-items: center;
  text-align: center;
  width: 44px;
}

.role-detail .novel-controls button::after,
.role-detail .role-novel-controls button::after {
  content: "";
  display: none;
}

.role-detail .novel-controls button:hover,
.role-detail .novel-controls button:focus-visible,
.role-detail .novel-controls button.is-active,
.role-detail .role-novel-controls button:hover,
.role-detail .role-novel-controls button:focus-visible,
.role-detail .role-novel-controls button.is-active {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.role-section-body-novel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.role-section-body-novel[data-novel-view-mode="grid"] {
  align-content: start;
  overflow: hidden;
}

.role-section-body-novel[data-novel-view-mode="grid"] > .role-novel-grid-stage {
  border-top: 1px solid var(--line);
}

.role-detail-layout-novel .role-section-body-novel[data-novel-view-mode="grid"] > .role-note {
  grid-column: 2;
  grid-row: 1;
}

.role-detail-layout-novel .role-section-body-novel[data-novel-view-mode="grid"] > .section-note {
  grid-column: 2;
  grid-row: 1;
}

.role-detail-layout-novel .role-section-body-novel[data-novel-view-mode="grid"] > .role-overview-stack {
  grid-column: 2;
  grid-row: 1;
}

.role-detail-layout-novel .role-section-body-novel[data-novel-view-mode="grid"] > .role-novel-controls {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin: clamp(20px, 2.8vh, 34px) 0 clamp(20px, 2.8vh, 34px);
}

.role-detail-layout-novel .role-section-body-novel[data-novel-view-mode="grid"] > .role-novel-orbit-stage {
  display: none;
}

.role-section-body-novel > .role-note {
  margin-bottom: 30px;
}

.novel-card {
  aspect-ratio: 2 / 3;
  background: #151515;
  border: 0;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: calc(var(--book-width) * 1.48);
  left: 50%;
  min-height: 0;
  opacity: var(--orbit-opacity, 1);
  overflow: hidden;
  padding: 18px;
  pointer-events: var(--orbit-pointer, auto);
  position: absolute;
  text-align: left;
  top: calc(100% + 380px);
  transform:
    translate(calc(-50% + var(--orbit-x, 0px)), calc(-100% + var(--orbit-y, 0px)))
    rotate(var(--orbit-rotation, 0deg))
    scale(var(--orbit-scale, 1));
  transition:
    box-shadow var(--motion-soft) ease,
    opacity var(--motion-quick) ease,
    transform 260ms var(--motion-ease),
    filter var(--motion-soft) ease;
  width: var(--book-width);
  z-index: var(--orbit-layer, 1);
}

.novel-card,
.novel-grid-book {
  container-type: inline-size;
}

.novel-card > :not(.novel-card-cover) {
  position: relative;
  z-index: 1;
}

.novel-card-cover {
  inset: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.novel-card-cover::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74));
  content: "";
  inset: 0;
  position: absolute;
}

.novel-card-cover img {
  display: block;
  filter: saturate(0.92) contrast(1.04);
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms var(--motion-ease), transform 180ms var(--motion-ease);
  width: 100%;
}

.novel-card-with-cover {
  background: #111;
  color: var(--paper);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

.novel-card-blue {
  background: var(--blue);
  color: var(--ink);
}

.novel-card-with-cover.novel-card-blue {
  color: var(--paper);
}

.novel-card:hover,
.novel-card:focus-visible {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
  outline: 0;
  transform:
    translate(calc(-50% + var(--orbit-x, 0px)), calc(-100% + var(--orbit-y, 0px)))
    rotate(var(--orbit-rotation, 0deg))
    scale(var(--orbit-scale, 1));
  z-index: 35;
}

.novel-card:hover .novel-card-cover img,
.novel-card:focus-visible .novel-card-cover img,
.novel-grid-book:hover .novel-grid-book-cover img,
.novel-grid-book:focus-visible .novel-grid-book-cover img {
  opacity: 0.46;
  transform: scale(1.018);
}

.role-novel-grid-stage .novel-grid-book:hover .novel-grid-book-cover img,
.role-novel-grid-stage .novel-grid-book:focus-visible .novel-grid-book-cover img {
  transform: none;
}

.novel-card > .novel-card-overlay,
.novel-grid-book > .novel-grid-book-overlay {
  align-items: center;
  background: rgba(239, 235, 225, 0.48);
  color: var(--ink);
  display: none;
  inset: 0;
  justify-items: center;
  opacity: 0;
  padding: clamp(12px, 1.2vw, 18px);
  pointer-events: none;
  position: absolute;
  text-shadow: none;
  transition: opacity 180ms var(--motion-ease);
  z-index: 2;
}

.novel-card:hover .novel-card-overlay,
.novel-card:focus-visible .novel-card-overlay,
.novel-grid-book:hover .novel-grid-book-overlay,
.novel-grid-book:focus-visible .novel-grid-book-overlay {
  display: grid;
  opacity: 1;
}

.novel-card .novel-card-overlay-text,
.novel-grid-book .novel-grid-book-overlay-text {
  display: block;
  font-size: var(--text-xs);
  font-weight: 900;
  line-height: 1.15;
  max-width: min(82%, 320px);
  text-align: center;
  text-transform: none;
  word-break: keep-all;
}

.novel-card span,
.novel-card em,
.novel-card-tags {
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.novel-card-copy,
.novel-grid-book-copy {
  align-self: end;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.novel-card-tags {
  display: block;
  opacity: 0.68;
}

.novel-project-media {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 clamp(24px, 4vw, 48px);
  padding: 0 0 clamp(18px, 3vw, 32px);
}

.novel-project-media-item {
  border: 0;
  display: block;
  min-height: 0;
  overflow: hidden;
}

.novel-project-media-item img,
.novel-project-media-item video {
  aspect-ratio: 2 / 3;
  background: #111;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.role-novel-stage.novel-deck {
  --book-width: clamp(168px, 14.8vw, 270px);
  background: transparent;
  height: 100%;
  margin-top: 0;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.role-detail-layout-novel .role-novel-stage.novel-deck {
  --book-width: clamp(190px, 17.4vw, 330px);
  align-self: stretch;
  grid-column: 1 / -1;
  grid-row: 3;
  height: auto;
  margin-top: 0;
  min-height: 0;
}

.role-novel-stage .novel-card {
  top: calc(100% + 250px);
}

.role-detail-layout-novel .role-novel-stage .novel-card {
  top: calc(100% + 270px);
}

.role-novel-stage .novel-card:hover,
.role-novel-stage .novel-card:focus-visible {
  z-index: 38;
}

.role-novel-orbit-stage[hidden],
.role-novel-grid-stage[hidden] {
  display: none !important;
}

.role-section-body-novel[data-novel-view-mode="grid"] .role-novel-orbit-stage,
.role-detail-layout-novel .role-section-body-novel[data-novel-view-mode="grid"] > .role-novel-orbit-stage {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.role-section-body-novel[data-novel-view-mode="orbit"] .role-novel-grid-stage {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.role-novel-grid-stage {
  --novel-grid-column-width: clamp(176px, 17vw, 248px);
  --novel-grid-row-height: clamp(264px, 25.5vw, 372px);
  --novel-grid-column-gap: clamp(28px, 3vw, 48px);
  --novel-grid-row-gap: clamp(42px, 5vh, 72px);
  align-content: start;
  align-items: start;
  display: grid;
  gap: var(--novel-grid-row-gap) var(--novel-grid-column-gap);
  grid-auto-rows: var(--novel-grid-row-height);
  grid-template-columns: repeat(auto-fill, minmax(var(--novel-grid-column-width), var(--novel-grid-column-width)));
  justify-content: start;
  justify-items: stretch;
  min-height: 0;
  overflow-anchor: none;
  overflow-y: auto;
  padding: clamp(24px, 2.8vh, 38px) 0 clamp(84px, 9vh, 128px);
  scroll-padding-bottom: clamp(84px, 9vh, 128px);
  scroll-padding-top: clamp(24px, 2.8vh, 38px);
}

.role-detail-layout-novel .role-novel-grid-stage {
  align-self: start;
  grid-column: 2;
  grid-row: 3;
  height: 100%;
  margin-top: 0;
  max-height: 100%;
  max-width: none;
  justify-self: start;
  width: 100%;
}

.novel-grid-cell {
  aspect-ratio: auto;
  display: grid;
  height: var(--novel-grid-row-height);
  min-height: 0;
  position: relative;
  width: var(--novel-grid-column-width);
}

.novel-grid-book,
.novel-grid-book:hover,
.novel-grid-book:focus-visible {
  aspect-ratio: 2 / 3;
  background: #151515;
  border: 0;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  grid-area: 1 / 1;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  position: relative;
  text-align: left;
  width: 100%;
}

.novel-grid-book {
  transition:
    box-shadow var(--motion-soft) ease,
    transform 220ms var(--motion-ease),
    filter var(--motion-soft) ease;
}

.novel-grid-book:hover,
.novel-grid-book:focus-visible {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
  outline: 0;
  transform: none;
}

.novel-grid-book > :not(.novel-grid-book-cover, .novel-grid-book-overlay) {
  position: relative;
  z-index: 1;
}

.novel-grid-book-cover {
  inset: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.novel-grid-book-cover::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74));
  content: "";
  inset: 0;
  position: absolute;
}

.novel-grid-book-cover img {
  display: block;
  filter: saturate(0.92) contrast(1.04);
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms var(--motion-ease), transform 180ms var(--motion-ease);
  width: 100%;
}

.novel-grid-book-with-cover {
  background: #111;
  color: var(--paper);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

.novel-grid-book-blue {
  background: var(--blue);
  color: var(--ink);
}

.novel-grid-book-with-cover.novel-grid-book-blue {
  color: var(--paper);
}

.novel-grid-book span,
.novel-grid-book em,
.novel-grid-book-tags {
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.novel-grid-book-tags {
  display: block;
  opacity: 0.68;
}

.novel-card .novel-book-title,
.novel-grid-book .novel-book-title {
  display: block;
  font-size: clamp(28px, 4vw, 52px);
  font-size: clamp(28px, 20cqw, 52px);
  font-weight: 900;
  hyphens: manual;
  line-height: 0.95;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: normal;
  text-transform: uppercase;
  text-wrap: balance;
  white-space: normal;
  word-break: keep-all;
}

.novel-card .novel-book-title[data-title-flow="solid"],
.novel-grid-book .novel-book-title[data-title-flow="solid"] {
  white-space: nowrap;
}

.novel-card .novel-book-title[data-title-fit="compact"],
.novel-grid-book .novel-book-title[data-title-fit="compact"] {
  font-size: clamp(26px, 3.4vw, 46px);
  font-size: clamp(26px, 17cqw, 46px);
}

.novel-card .novel-book-title[data-title-fit="tight"],
.novel-grid-book .novel-book-title[data-title-fit="tight"] {
  font-size: clamp(24px, 3vw, 40px);
  font-size: clamp(24px, 15cqw, 40px);
}

.role-novel-grid-stage .novel-card,
.role-novel-grid-stage .novel-card:hover,
.role-novel-grid-stage .novel-card:focus-visible {
  aspect-ratio: 2 / 3;
  height: auto;
  left: auto;
  min-height: 0;
  opacity: 1;
  pointer-events: auto;
  position: relative;
  top: auto;
  transform: none;
  width: 100%;
}

@media (max-width: 1200px) {
  .role-novel-grid-stage {
    --novel-grid-column-width: clamp(170px, 24vw, 236px);
    --novel-grid-row-height: clamp(255px, 36vw, 354px);
  }
}

@media (max-width: 900px) {
  .novel-deck {
    display: flex;
    gap: 14px;
    min-height: auto;
    overflow-x: auto;
    padding: 8px 0 30px;
    scroll-snap-type: x mandatory;
  }

  .novel-card,
  .novel-card:hover,
  .novel-card:focus-visible {
    flex: 0 0 218px;
    height: 320px;
    left: auto;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    scroll-snap-align: center;
    top: auto;
    transform: none;
    width: auto;
  }

  .role-novel-grid-stage {
    --novel-grid-column-gap: clamp(18px, 4.8vw, 28px);
    --novel-grid-row-gap: clamp(34px, 7vw, 52px);
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    justify-content: stretch;
    justify-items: stretch;
    max-height: none;
    overflow-y: visible;
    padding: clamp(18px, 4vw, 26px) 0 72px;
  }

  .novel-grid-cell {
    aspect-ratio: 2 / 3;
    height: auto;
    width: 100%;
  }

  .role-novel-grid-stage .novel-card,
  .role-novel-grid-stage .novel-card:hover,
  .role-novel-grid-stage .novel-card:focus-visible {
    aspect-ratio: 2 / 3;
    height: auto;
    min-height: 0;
    width: 100%;
  }

  .novel-grid-cell,
  .novel-grid-book,
  .novel-grid-book:hover,
  .novel-grid-book:focus-visible {
    aspect-ratio: 2 / 3;
    min-height: 0;
    width: 100%;
  }

  .novel-grid-book,
  .novel-grid-book:hover,
  .novel-grid-book:focus-visible {
    height: 100%;
  }

  .novel-card .novel-book-title,
  .novel-grid-book .novel-book-title {
    font-size: clamp(36px, 12vw, 52px);
    font-size: clamp(28px, 20cqw, 52px);
  }

  .novel-card .novel-book-title[data-title-fit="compact"],
  .novel-grid-book .novel-book-title[data-title-fit="compact"] {
    font-size: clamp(32px, 10vw, 46px);
    font-size: clamp(26px, 17cqw, 46px);
  }

  .novel-card .novel-book-title[data-title-fit="tight"],
  .novel-grid-book .novel-book-title[data-title-fit="tight"] {
    font-size: clamp(30px, 9vw, 40px);
    font-size: clamp(24px, 15cqw, 40px);
  }
}

@media (max-width: 520px) {
  .novel-card,
  .novel-card:hover,
  .novel-card:focus-visible {
    flex-basis: 76vw;
  }

  .role-novel-grid-stage {
    grid-template-columns: 1fr;
    padding-bottom: 76px;
  }
}

/* Shared popup shell, toolbar, and controls. */
.popup-modal {
  display: grid;
  inset: 0;
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
}

.popup-modal-reader { z-index: 300; }
.popup-modal-pdf { z-index: 320; }

.popup-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.popup-backdrop {
  background: rgba(3, 3, 3, 0.72);
  inset: 0;
  position: absolute;
  touch-action: none;
}

.popup-window {
  align-self: center;
  background: var(--paper);
  background-image: var(--site-texture-popup);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  color: var(--ink);
  justify-self: center;
  min-height: 0;
  opacity: 0;
  position: relative;
  transform: translateY(12px) scale(0.994);
  transition: opacity 220ms ease, transform 280ms ease;
  overflow: hidden;
}

.popup-window-pdf {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.popup-window-reader {
  --reader-bg: var(--paper);
  --reader-ink: var(--ink);
  --reader-muted: var(--muted);
  --reader-line: var(--line);
  --reader-size: 18px;
  --reader-leading: 1.9;
  display: flex;
  flex-direction: column;
  height: min(92vh, 980px);
  padding: 22px;
  width: min(calc(100vw - 36px), 1180px);
}

.popup-window-pdf {
  height: min(96vh, 1100px);
  padding: 18px;
  width: min(calc(100vw - 28px), 1320px);
}

.popup-modal.is-open .popup-window {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-window-reader[data-size="xsmall"] { --reader-size: 14px; }
.popup-window-reader[data-size="small"] { --reader-size: 16px; }
.popup-window-reader[data-size="medium"] { --reader-size: 18px; }
.popup-window-reader[data-size="large"] { --reader-size: 21px; }
.popup-window-reader[data-size="xlarge"] { --reader-size: 24px; }
.popup-window-reader[data-spacing="tight"] { --reader-leading: 1.55; }
.popup-window-reader[data-spacing="normal"] { --reader-leading: 1.9; }
.popup-window-reader[data-spacing="wide"] { --reader-leading: 2.25; }

.popup-toolbar {
  align-items: end;
  border-bottom: 1px solid var(--reader-line, var(--line));
  display: flex;
  flex: 0 0 auto;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.popup-kicker {
  color: var(--reader-muted, var(--muted));
  font-size: var(--text-xs);
  font-weight: 760;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.popup-modal-reader .popup-kicker {
  display: none;
}

.popup-title {
  color: var(--reader-ink, var(--ink));
  font-size: var(--text-xl);
  font-weight: 850;
  line-height: 1;
  margin: 0;
}

.popup-actions {
  align-items: center;
  --reader-control-color: var(--reader-muted, var(--muted));
  --reader-control-font-size: var(--text-xs);
  --reader-control-font-weight: 760;
  --reader-control-line-height: 1;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.popup-window-pdf .popup-actions {
  margin-left: auto;
}

.popup-actions .modal-source {
  display: none !important;
}

.popup-window-pdf .popup-actions .modal-source {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex !important;
  min-height: 32px;
  padding: 0 10px;
}

.popup-actions a,
.popup-actions button,
.popup-actions label,
.popup-actions select {
  color: var(--reader-control-color);
  font-family: inherit;
  font-size: var(--reader-control-font-size);
  font-weight: var(--reader-control-font-weight);
  letter-spacing: 0;
  line-height: var(--reader-control-line-height);
  text-transform: uppercase;
}

.popup-actions button,
.popup-content-reader button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.popup-actions .modal-share {
  align-items: center;
  aspect-ratio: 1;
  border-bottom: 0;
  color: var(--reader-control-color);
  display: inline-flex;
  font-size: var(--reader-control-font-size);
  font-weight: var(--reader-control-font-weight);
  justify-content: center;
  line-height: var(--reader-control-line-height);
  min-height: 0;
  padding: 0;
  position: relative;
  text-transform: uppercase;
  width: 32px;
}

.popup-actions .modal-share:hover,
.popup-actions .modal-share:focus-visible {
  color: var(--reader-ink, var(--ink));
  outline: 0;
}

.modal-share-icon {
  display: inline-flex;
  height: 24px;
  width: 24px;
}

.modal-share-icon svg {
  display: block;
  fill: none;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 100%;
}

.modal-share-label {
  display: none;
}

.modal-share-status {
  color: var(--reader-muted, var(--muted));
  font-size: 10px;
  font-weight: 760;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 5px);
  transform: translateX(-50%);
  transition: opacity 140ms ease;
  white-space: nowrap;
}

.modal-share[data-share-state="copied"] .modal-share-status {
  opacity: 1;
}

.popup-actions .modal-back,
.popup-actions .modal-close {
  align-items: center;
  aspect-ratio: 1;
  background: transparent;
  border: 0;
  color: var(--reader-ink, var(--ink));
  display: inline-flex;
  font-size: 24px;
  font-weight: 650;
  justify-content: center;
  line-height: 1;
  min-height: 0;
  padding: 0;
  width: 40px;
}

.popup-actions .modal-back {
  font-size: 22px;
}

.popup-actions .modal-close:hover,
.popup-actions .modal-close:focus-visible,
.popup-actions .modal-back:hover,
.popup-actions .modal-back:focus-visible {
  background: transparent;
  color: var(--reader-muted, var(--muted));
  outline: 0;
}

.popup-actions .modal-back:disabled {
  color: var(--reader-muted, var(--muted));
  cursor: default;
  opacity: 0.28;
}

.popup-actions label {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.popup-actions select {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--reader-line, var(--line));
  border-radius: 0;
  font-family: inherit;
  padding: 0 14px 2px 0;
}

.pdf-frame {
  border: 1px solid var(--line);
  display: block;
  height: 100%;
  margin-top: 14px;
  min-height: 0;
  width: 100%;
}

.pdf-frame[hidden] {
  display: none;
}

.pdf-mobile-fallback {
  align-items: center;
  border: 1px solid var(--line);
  display: grid;
  gap: 20px;
  justify-items: center;
  margin-top: 14px;
  min-height: 0;
  padding: 28px;
  text-align: center;
}

.pdf-mobile-fallback[hidden] {
  display: none !important;
}

.pdf-mobile-fallback p {
  color: var(--muted);
  font-size: var(--text-base);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  max-width: 420px;
}

.pdf-mobile-fallback a {
  align-items: center;
  background: var(--ink);
  border: 0;
  color: var(--paper);
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .popup-window-reader {
    align-self: stretch;
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
    width: calc(100vw - 20px);
  }

  .popup-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .popup-window-pdf .popup-toolbar {
    align-items: end;
    flex-direction: row;
    justify-content: space-between;
  }

  .popup-window-pdf .popup-actions {
    margin-left: auto;
  }

  .popup-window-reader .popup-toolbar {
    align-items: stretch;
    display: flex;
    gap: 22px;
    padding-bottom: 20px;
  }

  .popup-window-reader .popup-actions {
    align-items: end;
    display: grid;
    column-gap: clamp(4px, 1.6vw, 9px);
    grid-template-columns:
      minmax(42px, 0.7fr)
      minmax(58px, 0.9fr)
      minmax(72px, 1fr)
      30px
      30px
      30px;
    justify-content: stretch;
    width: 100%;
  }

  .popup-window-reader .popup-actions label {
    align-items: start;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
  }

  .popup-window-reader .popup-actions label + label {
    border-left: 1px solid var(--reader-line, var(--line));
    padding-left: clamp(8px, 2vw, 12px);
  }

  .popup-window-reader .popup-actions select {
    background-image:
      linear-gradient(45deg, transparent 50%, currentColor 50%),
      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
      calc(100% - 8px) calc(50% + 2px),
      calc(100% - 2px) calc(50% + 2px);
    background-repeat: no-repeat;
    background-size: 6px 6px;
    border-bottom: 0;
    max-width: 100%;
    padding: 0 18px 0 0;
    width: 100%;
  }

  .popup-window-reader .popup-actions .modal-share {
    align-self: end;
    aspect-ratio: 1;
    border-bottom: 0;
    color: var(--reader-ink, var(--ink));
    justify-self: center;
    min-height: 0;
    padding: 0;
    width: 30px;
  }

  .popup-window-reader .modal-share-icon {
    height: 23px;
    width: 23px;
  }

  .popup-window-reader .modal-share-status {
    top: calc(100% + 7px);
  }

  .popup-window-reader .popup-actions .modal-back {
    grid-column: auto;
    justify-self: center;
  }

  .popup-window-reader .popup-actions .modal-close {
    grid-column: auto;
    justify-self: center;
  }

  .popup-window-reader .popup-actions .modal-back,
  .popup-window-reader .popup-actions .modal-close {
    font-size: 22px;
    width: 30px;
  }

  .popup-window-pdf {
    height: calc(100dvh - 16px);
    padding: 12px;
    width: calc(100vw - 16px);
  }

  .popup-window-pdf .popup-actions .modal-share {
    min-height: 30px;
  }
}

/* Reader markdown, Notion-style content, and PDF fallback presentation. */
.popup-content-reader {
  align-self: stretch;
  color: var(--reader-ink);
  flex: 1 1 auto;
  font-family: var(--font-sans);
  font-size: var(--reader-size);
  height: auto;
  line-height: var(--reader-leading);
  margin-top: 0;
  max-width: 960px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 18px 8px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  touch-action: pan-y;
  user-select: text;
  -webkit-user-select: text;
  word-break: keep-all;
}

.popup-content-reader::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.reader-scroll-indicator {
  bottom: 24px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 132px;
  transition: opacity 160ms ease;
  width: 4px;
  z-index: 4;
}

.popup-window-reader.has-reader-scroll .reader-scroll-indicator {
  opacity: 1;
}

.reader-scroll-indicator span {
  background: var(--reader-ink, var(--ink));
  border-radius: 999px;
  display: block;
  height: 44px;
  min-height: 44px;
  transform: translateY(0);
  width: 100%;
}

.popup-content-reader .novel-project-media,
.popup-content-reader .novel-project-media * {
  touch-action: pan-y;
}

.popup-content-reader p,
.popup-content-reader h2,
.popup-content-reader h3,
.popup-content-reader h4,
.popup-content-reader ul,
.popup-content-reader ol,
.popup-content-reader blockquote,
.popup-content-reader pre,
.popup-content-reader figure,
.popup-content-reader hr {
  margin: 0 0 18px;
}

.popup-content-reader h2,
.popup-content-reader h3,
.popup-content-reader h4 {
  color: var(--reader-ink);
  font-weight: 850;
  line-height: 1.15;
}

.popup-content-reader h2 { font-size: calc(var(--reader-size) * 1.55); }
.popup-content-reader h3 { font-size: calc(var(--reader-size) * 1.35); }
.popup-content-reader h4 { font-size: calc(var(--reader-size) * 1.15); }

.popup-content-reader ul,
.popup-content-reader ol {
  padding-left: 1.35em;
}

.popup-content-reader li {
  margin: 0 0 0.45em;
}

.popup-content-reader blockquote {
  border-left: 2px solid var(--reader-line, var(--line));
  color: var(--reader-muted);
  padding-left: 18px;
}

.popup-content-reader pre {
  border: 1px solid var(--reader-line, var(--line));
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  line-height: 1.55;
  overflow-x: auto;
  padding: 14px;
  white-space: pre;
}

.popup-content-reader hr {
  border: 0;
  border-top: 1px solid var(--reader-line, var(--line));
}

.popup-content-reader a,
.popup-content-reader button {
  color: inherit;
  text-align: left;
}

.popup-content-reader .depth-1 { margin-left: 18px; }
.popup-content-reader .depth-2,
.popup-content-reader .depth-3 { margin-left: 36px; }
.popup-content-reader .is-bold { font-weight: 700; }
.popup-content-reader .is-italic { font-style: italic; }
.popup-content-reader .is-struck { text-decoration: line-through; }
.popup-content-reader .is-underlined {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.popup-content-reader .is-code {
  border: 1px solid var(--reader-line);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  padding: 0 0.3em;
}
.popup-content-reader .is-highlighted { background: rgba(120, 120, 120, 0.16); }

.novel-access-notice {
  border-top: 1px solid var(--reader-line, var(--line));
  margin: 0 0 8px;
  max-width: 860px;
  padding-top: clamp(20px, 3vw, 30px);
}

.popup-content-reader .novel-access-meta {
  color: var(--reader-muted);
  font-size: 0.72em;
  font-weight: 760;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.popup-content-reader .novel-access-copy {
  font-size: 1em;
  font-weight: 650;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 620px;
}

.popup-content-reader .novel-access-contact {
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  font-size: 0.78em;
  font-weight: 800;
  line-height: 1.25;
  padding-bottom: 3px;
  text-decoration: none;
  text-transform: uppercase;
}

.popup-content-reader .novel-access-contact:hover,
.popup-content-reader .novel-access-contact:focus-visible {
  opacity: 0.56;
}

.notion-page-link::before {
  color: var(--reader-muted);
  content: "notion page ";
  font-size: 0.78em;
  margin-right: 10px;
}

.notion-media { max-width: 860px; }

.notion-media img,
.notion-media iframe {
  background: rgba(120, 120, 120, 0.12);
  border: 1px solid var(--reader-line);
  display: block;
  width: 100%;
}

.notion-media img {
  height: auto;
  max-height: 64vh;
  object-fit: contain;
}

.notion-media iframe { aspect-ratio: 16 / 9; }

.notion-media figcaption { color: var(--reader-muted); }

.notion-media.is-unavailable::before {
  border: 1px solid var(--reader-line);
  color: var(--reader-muted);
  content: "image unavailable from Notion source";
  display: grid;
  min-height: 180px;
  place-items: center;
}

.notion-media.is-unavailable img { display: none; }

@media (max-width: 900px) {
  .popup-content-reader {
    max-height: none;
    min-height: 0;
    padding: 20px 4px 8px 0;
  }

  .reader-scroll-indicator {
    bottom: 16px;
    right: 7px;
    top: 160px;
    width: 4px;
  }
}

/* Gallery media inside popup viewers and full-size original viewer. */
.popup-window-gallery {
  --reader-size: 15px;
  --reader-leading: 1.55;
  height: min(94vh, 1040px);
  width: min(calc(100vw - 36px), 1360px);
}

.popup-window-gallery .popup-setting-control {
  display: none;
}

.popup-window-gallery .popup-title {
  font-size: clamp(30px, 2vw, 38px);
}

.popup-content-gallery {
  align-items: center;
  display: grid;
  max-width: none;
  min-height: 0;
  overflow: auto;
  padding: 0;
}

.gallery-project-reader {
  align-content: center;
  display: grid;
  gap: clamp(12px, 1.4vw, 20px);
  grid-template-rows: auto auto;
  height: auto;
  justify-self: stretch;
  min-height: 100%;
}

.gallery-project-viewer-meta {
  color: var(--reader-muted, var(--muted));
  font-size: var(--text-xs);
  font-weight: 760;
  line-height: 1;
  min-height: 1em;
  text-transform: uppercase;
}

.gallery-project-viewer-stage {
  align-items: center;
  display: grid;
  gap: clamp(18px, 2vw, 30px);
  grid-template-rows: auto auto;
  min-height: 0;
}

.gallery-project-viewer-figure {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 0;
  max-height: min(62vh, 720px);
  width: 100%;
}

.popup-content-gallery .gallery-project-viewer-figure {
  margin: 0;
}

.gallery-project-viewer-figure img,
.gallery-project-viewer-figure video {
  background: transparent;
  border: 0;
  display: block;
  filter: none;
  max-height: inherit;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.gallery-project-open-original {
  cursor: zoom-in;
}

.gallery-project-open-original:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.gallery-project-nav-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-self: center;
  max-width: 560px;
  min-height: 56px;
  width: min(100%, 560px);
}

.gallery-project-nav-divider {
  background: var(--reader-line, var(--line));
  display: block;
  height: 40px;
  width: 1px;
}

.gallery-project-nav-counter {
  color: var(--reader-muted, var(--muted));
  font-size: var(--text-xs);
  font-weight: 760;
  line-height: 1;
  min-width: 86px;
  text-align: center;
  text-transform: uppercase;
}

.gallery-project-nav {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--reader-ink, var(--ink));
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 24px;
  font-weight: 650;
  height: 48px;
  justify-content: center;
  justify-self: center;
  line-height: 1;
  padding: 0;
  text-decoration: none;
  transition: color 140ms ease, opacity 140ms ease;
  width: 48px;
}

.popup-content-gallery .gallery-project-nav {
  border-bottom: 0;
}

.gallery-project-nav:hover,
.gallery-project-nav:focus-visible {
  color: var(--reader-muted, var(--muted));
  outline: 0;
}

.gallery-project-reader.is-single .gallery-project-nav {
  opacity: 0;
  pointer-events: none;
}

.gallery-project-reader.is-single .gallery-project-nav-row {
  display: none;
}

.gallery-project-info {
  display: grid;
  gap: 10px;
  justify-self: center;
  min-height: 0;
  max-width: min(100%, 620px);
  padding-top: 0;
  width: min(100%, 620px);
}

.gallery-project-info.is-open {
  gap: 12px;
}

.gallery-project-info-toggle {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--reader-muted, var(--muted));
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 760;
  justify-content: start;
  justify-self: start;
  line-height: 1;
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
  width: auto;
}

.gallery-project-info:not(.has-detail) .gallery-project-info-toggle {
  display: none;
}

.gallery-project-info-toggle::after {
  content: "+";
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  text-decoration: none;
}

.gallery-project-info.is-open .gallery-project-info-toggle::after {
  content: "-";
}

.gallery-project-info-toggle:hover,
.gallery-project-info-toggle:focus-visible {
  color: var(--reader-ink, var(--ink));
  outline: 0;
}

.popup-content-gallery .gallery-project-info-toggle {
  border-bottom: 0;
}

.gallery-project-info-meta {
  color: var(--reader-muted, var(--muted));
  font-size: var(--text-xs);
  font-weight: 760;
  line-height: 1.25;
  margin: 0;
  max-height: none;
  min-height: 0;
  opacity: 1;
  overflow: visible;
  text-transform: uppercase;
}

.popup-content-gallery .gallery-project-info-meta {
  margin: 0;
}

.gallery-project-info-body {
  color: var(--reader-ink, var(--ink));
  font-size: var(--reader-size);
  font-weight: 500;
  line-height: var(--reader-leading);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 160ms ease, padding-top 180ms ease;
}

.gallery-project-info.is-open .gallery-project-info-body {
  max-height: 30vh;
  opacity: 1;
  overflow-y: auto;
  padding-top: 16px;
}

.gallery-project-info-body > :last-child {
  margin-bottom: 0;
}

.gallery-project-detail-body {
  color: var(--reader-ink, var(--ink));
  text-transform: none;
}

@media (max-width: 900px) {
  .popup-window-gallery .popup-toolbar {
    align-items: end;
    flex-direction: row;
  }

  .popup-window-gallery .popup-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    width: auto;
  }

  .popup-window-gallery .popup-actions .modal-share,
  .popup-window-gallery .popup-actions .modal-back,
  .popup-window-gallery .popup-actions .modal-close {
    justify-self: auto;
  }

  .popup-window-gallery .gallery-project-reader {
    min-height: 100%;
  }

  .popup-window-gallery .gallery-project-viewer-figure {
    max-height: min(56vh, 620px);
  }
}

.gallery-original-modal {
  display: grid;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 420;
}

.gallery-original-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-original-backdrop {
  appearance: none;
  background: rgba(3, 3, 3, 0.84);
  border: 0;
  cursor: zoom-out;
  inset: 0;
  padding: 0;
  position: absolute;
}

.gallery-original-frame {
  align-self: center;
  display: grid;
  justify-self: center;
  max-height: calc(100dvh - 28px);
  max-width: calc(100vw - 28px);
  position: relative;
  z-index: 1;
}

.gallery-original-close {
  align-items: center;
  appearance: none;
  aspect-ratio: 1;
  background: rgba(5, 5, 5, 0.32);
  border: 0;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 24px;
  font-weight: 650;
  justify-content: center;
  line-height: 1;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.64);
  top: 14px;
  width: 40px;
  z-index: 2;
}

.gallery-original-close:hover,
.gallery-original-close:focus-visible {
  background: rgba(5, 5, 5, 0.44);
  outline: 0;
}

.gallery-original-media {
  align-items: center;
  display: grid;
  justify-items: center;
  max-height: inherit;
  max-width: inherit;
}

.gallery-original-media img,
.gallery-original-media video {
  display: block;
  max-height: inherit;
  max-width: inherit;
  object-fit: contain;
}

/* Version 15: single-surface studio */
:root {
  --page: #f4efe5;
  --paper: #f4efe5;
  --paper-rgb: 244, 239, 229;
  --line: rgba(5, 5, 5, 0.16);
  --muted: rgba(5, 5, 5, 0.58);
  --inverse-muted: rgba(244, 239, 229, 0.66);
}

body.v15-home {
  overflow-x: hidden;
  overflow-y: auto;
}

.v15-home-main {
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  margin: 0;
  max-width: none;
  min-height: 200vh;
  padding: 0;
  width: 100%;
}

.v15-landing {
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  color: var(--ink);
  height: 100vh;
  margin: 0;
  max-width: none;
  min-height: 620px;
  opacity: 1;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: none;
  width: 100%;
}

.v15-landing-title {
  left: max(var(--site-frame-gutter), calc((100vw - var(--site-frame-max)) / 2));
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition:
    opacity 320ms ease,
    transform 420ms var(--motion-ease);
  z-index: 2;
}

.v15-landing-title h1 {
  color: var(--ink);
  font-size: clamp(42px, 5.6vw, 88px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.84;
  margin: 0;
  max-width: none;
  text-align: left;
  text-transform: uppercase;
}

.v15-landing-title h1 span {
  display: block;
}

.v15-landing-title h1 .v15-landing-title-invert {
  background: var(--ink);
  color: var(--paper);
  display: table;
  line-height: 0.95;
  padding: 0 0.08em 0.04em 0.08em;
}

.v15-scroll-hint {
  border-bottom: 0;
  bottom: clamp(28px, 5.4vh, 64px);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  left: 50%;
  letter-spacing: 0;
  line-height: 1;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition:
    color 180ms var(--motion-ease),
    opacity 240ms var(--motion-ease),
    transform 180ms var(--motion-ease);
  z-index: 3;
}

.v15-scroll-hint:hover,
.v15-scroll-hint:focus-visible {
  color: var(--ink);
  outline: 0;
  transform: translate(-50%, 3px);
}

.todays-signal {
  align-items: center;
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding: clamp(92px, 12vh, 140px) 0;
}

.todays-signal-placeholder {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.todays-signal-card {
  align-items: center;
  column-gap: clamp(12px, 1.4vw, 24px);
  border-bottom: 0;
  color: var(--ink);
  display: grid;
  opacity: 0;
  row-gap: clamp(24px, 3.8vh, 44px);
  grid-template-columns: minmax(280px, 680px) minmax(160px, 260px);
  grid-template-areas:
    "heading heading"
    "media meta";
  justify-content: center;
  max-width: none;
  text-decoration: none;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--motion-ease),
    transform 900ms var(--motion-ease);
  width: var(--site-frame-width);
}

.todays-signal-card-text {
  grid-template-columns: minmax(300px, 680px) minmax(210px, 320px);
  grid-template-areas:
    "heading heading"
    "copy meta";
}

.todays-signal-card-image {
  grid-template-columns: auto max-content;
  grid-template-areas:
    "heading heading"
    "media meta";
  max-width: var(--site-frame-width);
  width: fit-content;
}

.todays-signal-card-image > .todays-signal-meta-desktop {
  max-width: min(22vw, 260px);
}

.todays-signal-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: nowrap;
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 900;
  gap: 0.24em;
  grid-area: heading;
  justify-self: stretch;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  padding-bottom: clamp(12px, 1.7vw, 22px);
  text-transform: uppercase;
  white-space: nowrap;
}

.todays-signal-heading span {
  display: inline-flex;
}

.todays-signal-heading > span:first-child {
  color: var(--ink);
}

.todays-signal-heading-box {
  background: transparent;
  color: inherit;
  line-height: 1;
  padding: 0;
}

.todays-signal-meta {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.1vw, 13px);
  grid-area: meta;
  justify-self: start;
  min-width: 0;
}

.todays-signal-meta-mobile {
  display: none;
}

.todays-signal-category {
  background: transparent;
  color: inherit;
  display: inline-flex;
  font-size: clamp(11px, 0.82vw, 14px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin-right: 0;
  padding: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.todays-signal-handle {
  background: transparent;
  color: inherit;
  display: inline-flex;
  font-size: clamp(11px, 0.82vw, 14px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.todays-signal-title {
  display: block;
  font-size: clamp(11px, 0.82vw, 14px);
  font-weight: 900;
  justify-self: start;
  letter-spacing: 0;
  line-height: 1;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.todays-signal-year {
  display: inline-flex;
  font-size: clamp(11px, 0.82vw, 14px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.todays-signal-media {
  align-self: center;
  grid-area: media;
  justify-self: end;
  margin: 0;
  max-height: min(58vh, 540px);
  max-width: min(62vw, 680px);
  overflow: hidden;
  width: fit-content;
}

.todays-signal-media > img {
  display: block;
  height: auto;
  max-height: min(58vh, 540px);
  max-width: min(62vw, 680px);
  object-fit: contain;
  width: auto;
}

.todays-signal-media-link {
  cursor: pointer;
}

.todays-signal-media-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 8px;
}

.todays-signal-card-novel {
  --signal-novel-book-width: clamp(240px, 24vw, 360px);
}

.todays-signal-novel-media {
  aspect-ratio: 2 / 3;
  height: auto;
  max-height: min(62vh, 540px);
  max-width: var(--signal-novel-book-width);
  overflow: visible;
  width: var(--signal-novel-book-width);
}

.todays-signal-novel-book,
.todays-signal-novel-book:hover,
.todays-signal-novel-book:focus-visible {
  aspect-ratio: 2 / 3;
  cursor: default;
  height: 100%;
  pointer-events: none;
  transform: none;
  width: 100%;
}

.todays-signal-novel-book .novel-grid-book-cover img,
.todays-signal-novel-book:hover .novel-grid-book-cover img,
.todays-signal-novel-book:focus-visible .novel-grid-book-cover img {
  display: block;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  opacity: 1;
  transform: none;
  width: 100%;
}

.todays-signal-novel-book .novel-grid-book-overlay,
.todays-signal-novel-book:hover .novel-grid-book-overlay,
.todays-signal-novel-book:focus-visible .novel-grid-book-overlay {
  opacity: 0;
}

.todays-signal-copy {
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 560;
  grid-area: copy;
  justify-self: start;
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0;
  max-width: 720px;
}

.todays-signal-copy-paper {
  font-size: clamp(17px, 1.7vw, 28px);
}

.todays-signal-copy-document {
  font-size: clamp(20px, 2.2vw, 34px);
  max-width: 620px;
}

.todays-signal-cta {
  align-self: flex-start;
  background: transparent;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  display: inline-flex;
  font-size: clamp(11px, 0.82vw, 14px);
  font-weight: 900;
  grid-area: cta;
  justify-self: start;
  letter-spacing: 0;
  line-height: 1;
  margin-top: clamp(12px, 1.8vw, 22px);
  padding: 0.18em 0 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 160ms var(--motion-ease),
    color 160ms var(--motion-ease);
  white-space: nowrap;
  width: max-content;
}

.todays-signal-cta:hover,
.todays-signal-cta:focus-visible {
  background: var(--ink);
  border-bottom-color: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding-left: 0.28em;
  padding-right: 0.28em;
}

.todays-signal-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.is-signal-highlight {
  outline: 0;
  position: relative;
}

.is-signal-highlight::before {
  animation: signalTargetPulse 1700ms var(--motion-ease) both;
  border: 2px solid var(--ink);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 20;
}

@keyframes signalTargetPulse {
  0%,
  100% {
    opacity: 0;
  }
  18%,
  72% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .todays-signal {
    align-items: start;
    padding: clamp(54px, 8vh, 72px) clamp(24px, 7vw, 52px);
  }

  .todays-signal-card,
  .todays-signal-card-image,
  .todays-signal-card-text {
    column-gap: 14px;
    row-gap: 18px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "media"
      "meta"
      "copy";
    justify-content: stretch;
  }

  .todays-signal-card-image {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.6vh, 18px);
    grid-template-areas: none;
    max-width: none;
    width: 100%;
  }

  .todays-signal-heading {
    font-size: clamp(16px, 4.8vw, 22px);
  }

  .todays-signal-title {
    font-size: clamp(11px, 3vw, 13px);
    justify-self: start;
    text-align: center;
    white-space: normal;
  }

  .todays-signal-meta {
    align-items: flex-start;
    justify-self: start;
  }

  .todays-signal-card-novel {
    --signal-novel-book-width: min(100%, 320px);
  }

  .todays-signal-card-image > .todays-signal-meta-desktop {
    display: none;
  }

  .todays-signal-media .todays-signal-meta-mobile {
    box-sizing: border-box;
    display: flex;
    gap: clamp(6px, 1.7vw, 9px);
    margin-top: clamp(8px, 2vw, 12px);
    padding-left: 0;
    width: 100%;
  }

  .todays-signal-media .todays-signal-meta-mobile .todays-signal-category,
  .todays-signal-media .todays-signal-meta-mobile .todays-signal-handle,
  .todays-signal-media .todays-signal-meta-mobile .todays-signal-title,
  .todays-signal-media .todays-signal-meta-mobile .todays-signal-year,
  .todays-signal-media .todays-signal-meta-mobile .todays-signal-cta {
    font-size: clamp(13px, 3.2vw, 16px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
  }

  .todays-signal-media .todays-signal-meta-mobile .todays-signal-title {
    text-align: left;
    text-transform: uppercase;
  }

  .todays-signal-media .todays-signal-meta-mobile .todays-signal-cta {
    margin-top: clamp(8px, 2vw, 12px);
  }

  .todays-signal-category,
  .todays-signal-handle,
  .todays-signal-year {
    white-space: nowrap;
  }

  .todays-signal-media {
    align-self: stretch;
    justify-self: stretch;
    max-height: none;
    max-width: 100%;
    overflow: visible;
    width: 100%;
  }

  .todays-signal-media > img {
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
  }

  .todays-signal-novel-media {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    height: auto;
    justify-self: center;
    max-height: none;
    max-width: var(--signal-novel-book-width);
    overflow: visible;
    width: var(--signal-novel-book-width);
  }

  .todays-signal-card-novel .todays-signal-novel-book,
  .todays-signal-card-novel .todays-signal-novel-book:hover,
  .todays-signal-card-novel .todays-signal-novel-book:focus-visible {
    height: auto;
  }

  .todays-signal-copy {
    font-size: clamp(18px, 5.8vw, 28px);
  }
}

@media (max-width: 520px) {
  .v15-landing-title {
    left: var(--site-frame-gutter);
  }

  .v15-scroll-hint {
    bottom: 24px;
  }

  .todays-signal {
    padding: 48px 22px 58px;
  }

  .todays-signal-card-image {
    gap: 12px;
  }

  .todays-signal-media .todays-signal-meta-mobile {
    margin-top: 8px;
  }
}

/* Standalone role-room page layout and room-only responsive rules. */
body[data-role-room] {
  --role-room-page-height: calc(100vh - var(--site-footer-block-size));
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  overflow-x: hidden;
  overflow-y: auto;
}

@supports (height: 100dvh) {
  body[data-role-room] {
    --role-room-page-height: calc(100dvh - var(--site-footer-block-size));
  }
}

body[data-role-room] header.v15-topbar {
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  display: block;
  height: 46px;
  left: 0;
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 140;
}

body[data-role-room] main.role-room-main {
  background: var(--page);
  background-image: var(--site-texture-surface);
  background-repeat: repeat;
  background-size: auto, var(--site-texture-size);
  margin: 0;
  max-width: none;
  min-height: var(--role-room-page-height);
  opacity: 1;
  padding: 0;
  width: 100%;
}

body[data-role-room] [data-role-room-target] {
  min-height: var(--role-room-page-height);
  width: 100%;
}

body[data-role-room] .role-room-detail {
  animation: v15RoleRoomIn 420ms var(--motion-ease) both;
  align-content: start;
  background: transparent;
  box-shadow: none;
  gap: var(--role-frame-gap);
  grid-template-columns: var(--role-rail-width) minmax(0, 1fr);
  height: auto;
  left: auto;
  margin: 0 auto;
  min-height: var(--role-room-page-height);
  opacity: 1;
  overflow: visible;
  padding: clamp(86px, 8vh, 126px) 0 clamp(42px, 5vh, 72px);
  pointer-events: auto;
  position: relative;
  top: auto;
  transform: none;
  width: var(--site-frame-width);
  z-index: 1;
}

@keyframes v15RoleRoomIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body[data-role-room] .role-room-detail .role-close {
  color: var(--ink);
  font-size: 26px;
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  right: clamp(24px, 4vw, 72px);
  top: clamp(26px, 4vw, 64px);
  width: 32px;
  z-index: 120;
}

body[data-role-room] .role-room-detail .role-close:hover,
body[data-role-room] .role-room-detail .role-close:focus-visible {
  color: var(--muted);
}

body[data-role-room] .role-room-detail > .role-section-title {
  align-self: start;
  margin-left: 0;
}

body[data-role-room] .role-section-title h2 {
  font-size: clamp(28px, 2.85vw, 50px);
  max-width: 100%;
}

body[data-role-room] .role-section-title h2 .role-heading-line,
body[data-role-room] .role-section-title h2 .role-heading-handle {
  padding: 0 0.08em 0.04em 0;
}

body[data-role-room] .role-section-title h2 .role-heading-line {
  background: transparent;
}

body[data-role-room] .role-section-title h2 .role-heading-handle {
  background: var(--ink);
  color: var(--paper);
  display: inline-grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0.02em;
  max-width: 100%;
  width: fit-content;
  padding-left: 0.08em;
  padding-right: 0.12em;
}

body[data-role-room] .role-section-title h2 .role-heading-handle-text {
  max-width: 100%;
  overflow-wrap: normal;
  white-space: normal;
  word-break: keep-all;
}

body[data-role-room] .role-section-title h2 .role-heading-handle.role-heading-handle-multiline {
  background: transparent;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  max-width: min(560px, 100%);
  padding: 0;
  width: fit-content;
}

body[data-role-room] .role-section-title h2 .role-heading-handle-multiline .role-heading-handle-row {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  width: fit-content;
}

body[data-role-room] .role-section-title h2 .role-heading-handle.role-heading-handle-multiline::before {
  content: attr(data-handle-flat);
  display: none;
}

body[data-role-room] .role-section-body {
  height: auto;
  overflow: visible;
  padding: 0 clamp(18px, 2vw, 34px) 0 0;
}

body[data-role-room] .role-scroll-region {
  overflow: visible;
}

@media (max-width: 1180px) {
  :root {
    --role-rail-width: clamp(220px, 24vw, 300px);
    --role-frame-gap: clamp(28px, 3.4vw, 44px);
    --role-intro-font-size: clamp(17px, 1.7vw, 21px);
    --role-intro-line-height: 1.36;
  }

  body[data-role-room] .role-room-detail {
    padding-top: clamp(78px, 8vh, 108px);
  }

  body[data-role-room] .role-section-title h2 {
    font-size: clamp(28px, 3.8vw, 44px);
  }
}

@media (max-width: 900px) {
  body[data-role-room] {
    overflow: auto;
  }

  body[data-role-room] .role-room-detail {
    align-content: start;
    display: grid;
    gap: 34px;
    grid-template-columns: 1fr;
    height: auto;
    margin: 0;
    min-height: var(--role-room-page-height);
    overflow: visible;
    padding: 78px 22px 46px;
    width: 100%;
  }

  body[data-role-room] .role-room-detail > .role-section-title {
    align-self: start;
    margin-left: 0;
  }

  body[data-role-room] .role-section-body {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  body[data-role-room] .role-section-title h2 {
    font-size: clamp(30px, 6.4vw, 46px);
    gap: 4px;
    max-width: 100%;
  }

  body[data-role-room] .role-section-title h2 .role-heading-line,
  body[data-role-room] .role-section-title h2 .role-heading-handle {
    font-size: inherit;
    line-height: inherit;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  body[data-role-room] .role-section-title h2 .role-heading-handle.role-heading-handle-multiline {
    background: var(--ink);
    color: var(--paper);
    display: inline-block;
    max-width: 100%;
    padding: 0 0.12em 0.04em 0.08em;
    width: max-content;
  }

  body[data-role-room] .role-section-title h2 .role-heading-handle.role-heading-handle-multiline::before {
    display: inline;
    white-space: nowrap;
  }

  body[data-role-room] .role-section-title h2 .role-heading-handle.role-heading-handle-multiline .role-heading-handle-row {
    display: none;
  }
}

@media (max-width: 520px) {
  body[data-role-room] .role-section-title h2 {
    font-size: clamp(34px, 10.4vw, 44px);
  }
}

/* Standalone role-room variants. Shared shell stays in 70-role-room.css. */
body[data-role-room="visual"] .role-section-body-gallery {
  align-content: start;
  display: grid;
  gap: var(--role-overview-flow-gap);
  grid-template-columns: minmax(0, 1fr);
}

body[data-role-room="visual"] .role-section-body-gallery > .role-overview-stack {
  display: grid;
  margin: 0;
  opacity: 1;
  position: relative;
  visibility: visible;
  z-index: 2;
}

body[data-role-room="visual"] .role-section-body-gallery > .role-gallery-items {
  margin: 0;
  position: relative;
  z-index: 1;
}

body[data-role-room] .cv-scroll {
  border-top: 0;
  padding-top: 0;
}

body[data-role-room] .role-detail-layout-novel {
  grid-template-columns: var(--role-rail-width) minmax(0, 1fr);
  padding-bottom: 0;
}

body[data-role-room] .role-detail-layout-novel .role-section-body-novel {
  grid-template-columns: var(--role-rail-width) minmax(0, 1fr);
  height: auto;
  overflow: visible;
}

body[data-role-room] .role-detail-layout-novel .role-novel-stage.novel-deck {
  margin-top: 0;
}

body[data-role-room] .role-detail-layout-novel .role-section-body-novel[data-novel-view-mode="grid"] > .role-novel-controls {
  margin: clamp(20px, 2.8vh, 34px) 0 clamp(20px, 2.8vh, 34px);
}

body[data-role-room] .role-detail-layout-novel .role-novel-grid-stage {
  grid-column: 2;
  grid-row: 3;
  height: auto;
  margin-top: 0;
  max-height: none;
  overflow: visible;
}

body[data-role-room="novel"] .role-detail-layout-novel .role-novel-stage .novel-card {
  top: calc(100% + 330px);
}

@media (max-width: 900px) {
  body[data-role-room="visual"] .role-section-body-gallery {
    overflow: visible;
  }

  body[data-role-room="engineer"] .cv-list article,
  body[data-role-room="engineer"] .cv-list button {
    gap: clamp(12px, 3vw, 18px);
    grid-template-columns: clamp(64px, 18vw, 84px) minmax(0, 1fr);
  }

  body[data-role-room="engineer"] .cv-list article.cv-link-row {
    grid-template-columns: clamp(64px, 18vw, 84px) minmax(0, 1fr) auto;
  }

  body[data-role-room="aesthetics"] .role-essay-items button {
    gap: clamp(12px, 3vw, 18px);
    grid-template-columns: clamp(64px, 18vw, 84px) minmax(0, 1fr) auto;
  }

  body[data-role-room="novel"] .role-detail-layout-novel {
    align-content: start;
    gap: clamp(28px, 8vw, 42px);
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body[data-role-room="novel"] .role-detail-layout-novel .role-section-title,
  body[data-role-room="novel"] .role-detail-layout-novel .role-section-body-novel {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-role-room="novel"] .role-detail-layout-novel .role-section-body-novel {
    display: flex;
    flex-direction: column;
    gap: var(--role-overview-flow-gap);
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    width: 100%;
  }

  body[data-role-room="novel"] .role-detail-layout-novel .role-section-body-novel > .role-note,
  body[data-role-room="novel"] .role-detail-layout-novel .role-section-body-novel > .section-note,
  body[data-role-room="novel"] .role-detail-layout-novel .role-section-body-novel > .role-overview-stack {
    align-self: stretch;
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    max-width: none;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 2;
  }

  body[data-role-room="novel"] .role-detail-layout-novel .role-section-body-novel > .role-overview-stack > .role-overview {
    font-size: var(--role-intro-font-size);
    line-height: var(--role-intro-line-height);
  }

  body[data-role-room="novel"] .role-detail-layout-novel .role-novel-controls {
    align-self: end;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    margin: 0;
    position: relative;
    z-index: 3;
  }

  body[data-role-room="novel"] .role-detail-layout-novel .role-novel-orbit-stage,
  body[data-role-room="novel"] .role-detail-layout-novel .role-novel-grid-stage {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    max-height: none;
    position: relative;
    width: 100%;
    z-index: 1;
  }

  body[data-role-room="novel"] .role-section-body-novel[data-novel-view-mode="grid"] > .role-novel-orbit-stage,
  body[data-role-room="novel"] .role-section-body-novel[data-novel-view-mode="orbit"] > .role-novel-grid-stage {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  body[data-role-room="novel"] .role-section-body-novel[data-novel-view-mode="grid"] > .role-novel-grid-stage {
    display: grid;
    pointer-events: auto;
    visibility: visible;
  }

  body[data-role-room="novel"] .role-section-body-novel[data-novel-view-mode="orbit"] > .role-novel-orbit-stage {
    display: flex;
    pointer-events: auto;
    visibility: visible;
  }

  body[data-role-room="novel"] .role-novel-grid-stage {
    --novel-grid-column-gap: clamp(20px, 5vw, 30px);
    --novel-grid-row-gap: clamp(32px, 7vw, 52px);
    display: grid;
    gap: var(--novel-grid-row-gap) var(--novel-grid-column-gap);
    grid-auto-rows: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    justify-content: stretch;
    justify-items: stretch;
    overflow: visible;
    padding: 0 0 72px;
  }

  body[data-role-room="novel"] .role-novel-grid-stage .novel-grid-cell {
    aspect-ratio: 2 / 3;
    height: auto;
    width: 100%;
  }

  body[data-role-room="novel"] .role-novel-grid-stage .novel-card,
  body[data-role-room="novel"] .role-novel-grid-stage .novel-card:hover,
  body[data-role-room="novel"] .role-novel-grid-stage .novel-card:focus-visible {
    aspect-ratio: 2 / 3;
    height: auto;
    width: 100%;
  }
}

@media (max-width: 520px) {
  body[data-role-room="novel"] .role-novel-grid-stage {
    grid-template-columns: minmax(0, 1fr);
  }
}
