/* Walkthrough CV engine styles.
   Default = the plain stacked reading page (no JS / reduced motion).
   html.wt-active (added by walkthrough.js) = the fixed-canvas scroll-driven walk. */

@font-face {
  font-family: 'WT Montserrat';
  src: url('fonts/montserrat-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'WT Newsreader';
  src: url('fonts/newsreader-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --wt-ink: #14100e;
  --wt-ink-2: #231b17;
  --wt-cream: #f3ead9;
  --wt-cream-dim: rgba(243, 234, 217, 0.72);
  --wt-gold: #d3b07a;
  --wt-glass: rgba(24, 18, 15, 0.52);
  --wt-line: rgba(243, 234, 217, 0.18);
  --wt-sans: 'WT Montserrat', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wt-serif: 'WT Newsreader', 'Newsreader', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--wt-ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--wt-ink);
  color: var(--wt-cream);
  font: 400 16px/1.6 var(--wt-sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--wt-gold);
  outline-offset: 3px;
}

.wt-eyebrow {
  font: 600 0.68rem/1.4 var(--wt-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wt-gold);
}
.wt h1,
.wt h2 {
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.12;
}
.wt h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}
.wt h3.wt-eyebrow {
  margin-bottom: 0.8rem;
}
.wt-role,
.wt-title,
.wt-oneliner,
.wt-cta h2 em {
  font: italic 400 1.3rem/1.4 var(--wt-serif);
  color: var(--wt-cream);
}

/* ---------- panels (shared) ---------- */
.wt-panel {
  padding: 1.6rem 1.7rem;
  background: var(--wt-glass);
  border: 1px solid var(--wt-line);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.wt-panel > * + * {
  margin-top: 0.8rem;
}
.wt-panel p {
  color: var(--wt-cream-dim);
}
.wt-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--wt-cream);
}
.wt-list li + li {
  margin-top: 0.55rem;
}
.wt-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  height: 1px;
  background: var(--wt-gold);
}
.wt-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.wt-kpi {
  padding: 0.8rem 0.7rem;
  border: 1px solid var(--wt-line);
  border-radius: 14px;
  background: rgba(243, 234, 217, 0.06);
}
.wt-kpi-v {
  display: block;
  font: 300 1.9rem/1.1 var(--wt-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wt-kpi-l {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--wt-cream-dim);
}
.wt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.wt-chips li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--wt-line);
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(243, 234, 217, 0.06);
}
.wt-projects li {
  display: grid;
  gap: 0.15rem;
}
.wt-projects li + li {
  margin-top: 0.7rem;
}
.wt-projects span {
  font-size: 0.85rem;
  color: var(--wt-cream-dim);
}
.wt-back,
.wt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--wt-gold);
  border-radius: 999px;
  color: var(--wt-cream);
  font: 600 0.74rem/1 var(--wt-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.wt-back:hover,
.wt-btn:hover {
  background: var(--wt-gold);
  color: var(--wt-ink);
}
.wt-links li + li {
  margin-top: 0.4rem;
}
.wt-links a {
  text-decoration-color: var(--wt-gold);
  text-underline-offset: 4px;
}
.wt-h3 {
  font-size: 1.35rem !important;
}
.wt-cta h2 em {
  font-size: inherit;
  color: var(--wt-gold);
}

/* ---------- default: stacked reading page ---------- */
.wt-track {
  display: block;
}
.wt-scene {
  padding: 3rem 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.wt-layer {
  display: grid;
  gap: 1rem;
}
.wt-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
}
@media (min-width: 720px) {
  .wt-hero {
    grid-template-columns: 260px 1fr;
  }
}
.wt-portrait {
  width: 100%;
  max-width: 260px;
  border-radius: 140px 140px 18px 18px;
  border: 1px solid var(--wt-line);
}
.wt-hero-text > * + * {
  margin-top: 0.9rem;
}
.wt h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}
.wt-oneliner {
  color: var(--wt-cream-dim);
  max-width: 34ch;
}
.wt-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font: 600 0.7rem/1 var(--wt-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wt-cream);
}
.wt-cue i {
  display: block;
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(var(--wt-gold), transparent);
}
.wt-still img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--wt-line);
}
.wt-hotspots,
.wt-hub-head p {
  display: none;
}
.wt-hub-head {
  display: block;
}
.wt-dir-list a {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--wt-line);
  text-decoration: none;
}
.wt-dir-n {
  color: var(--wt-gold);
  font-size: 0.78rem;
}
.wt-dir-b {
  font-weight: 500;
}
.wt-dir-y {
  font: italic 400 1rem/1 var(--wt-serif);
  color: var(--wt-cream-dim);
}
.wt-dir {
  display: none;
}
.wt-pad {
  display: none;
}
.wt-outro-inner {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}
.wt-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  font-size: 0.74rem;
  color: var(--wt-cream-dim);
}
.wt-credit {
  font: 700 0.78rem/1 var(--wt-sans);
  letter-spacing: 0.24em;
  text-decoration: none;
  color: var(--wt-cream);
}

/* ---------- active: the walk ---------- */
html.wt-active.lenis,
html.wt-active.lenis body {
  height: auto;
}
html.wt-active .lenis-smooth {
  scroll-behavior: auto !important;
}
html.wt-active .lenis-stopped,
html.wt-loading,
html.wt-loading body {
  overflow: hidden;
}
html.wt-active .wt-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--wt-ink);
}
.wt-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.wt-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(10, 7, 6, 0.55)),
    rgba(14, 10, 8, 0.7);
}
html.wt-active body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html.wt-active .wt-track {
  position: relative;
  z-index: 2;
}
html.wt-active .wt-scene {
  height: 0;
  padding: 0;
  max-width: none;
  margin: 0;
}
html.wt-active .wt-clip {
  display: none;
}
html.wt-active .wt-layer {
  position: fixed;
  inset: 0;
  display: block;
  pointer-events: none;
}
html.wt-active .wt-hero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0 7vw;
  pointer-events: auto;
}
html.wt-active .wt-portrait {
  width: min(24vw, 300px);
  min-width: 150px;
  flex: none;
}
html.wt-active .wt-hero-text {
  max-width: 560px;
}
html.wt-active .wt-hero-text > * + * {
  margin-top: 1.1rem;
}
html.wt-active .wt-hero-text > .wt-cue {
  margin-top: 2.2rem;
}
html.wt-active .wt-cue i {
  animation: wt-cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes wt-cue {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
html.wt-active .wt-panel {
  position: absolute;
  top: 50%;
  width: min(450px, 88vw);
  pointer-events: auto;
  max-height: calc(100vh - 120px);
}
html.wt-active .wt-panel--static {
  position: static;
  width: auto;
  max-height: none;
}
html.wt-active .wt-panel[data-side='left'] {
  left: 6vw;
}
html.wt-active .wt-panel[data-side='right'] {
  right: 6vw;
}
html.wt-active .wt-panel--role {
  width: min(500px, 88vw);
}

/* hub */
html.wt-active .wt-hub-head {
  position: absolute;
  top: clamp(4.5rem, 10vh, 7rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 90vw);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
html.wt-active .wt-hub-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
html.wt-active .wt-hub-head p {
  display: block;
  margin-top: 0.4rem;
  font: italic 400 1.05rem/1.4 var(--wt-serif);
  color: var(--wt-cream-dim);
}
html.wt-active .wt-hotspots {
  display: block;
  position: absolute;
}
html.wt-active .wt-hotspot {
  position: absolute;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid rgba(243, 234, 217, 0.5);
  border-radius: 8px;
  background: rgba(243, 234, 217, 0.05);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
html.wt-active .wt-hotspot:hover,
html.wt-active .wt-hotspot:focus-visible {
  background: rgba(211, 176, 122, 0.22);
  border-color: var(--wt-gold);
  box-shadow: 0 0 0 4px rgba(211, 176, 122, 0.18);
}
.wt-hotspot-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
  text-align: center;
  background: var(--wt-glass);
  border: 1px solid var(--wt-line);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--wt-cream);
}
.wt-hotspot-tag b {
  font: 600 0.74rem/1.2 var(--wt-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wt-hotspot-tag i {
  font: italic 400 0.95rem/1.2 var(--wt-serif);
  color: var(--wt-gold);
}
html.wt-active .wt-hub-directory {
  display: none;
}

/* directory panel */
html.wt-active .wt-dir {
  display: block;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.6s;
}
html.wt-ready .wt-dir {
  opacity: 1;
}
.wt-dir-toggle {
  display: block;
  margin-left: auto;
  padding: 0.6rem 1.05rem;
  font: 600 0.66rem/1 var(--wt-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wt-cream);
  background: var(--wt-glass);
  border: 1px solid var(--wt-line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.wt-dir-toggle:hover,
.wt-dir-toggle[aria-expanded='true'] {
  border-color: var(--wt-gold);
}
.wt-dir-panel {
  width: min(320px, calc(100vw - 28px));
  margin-top: 0.6rem;
  padding: 1.1rem 1.3rem 0.5rem;
  background: rgba(22, 16, 13, 0.78);
  border: 1px solid var(--wt-line);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.wt-dir-panel[hidden] {
  display: none;
}
.wt-dir-panel h2 {
  font-size: 0.68rem !important;
  margin-bottom: 0.4rem;
}
.wt-dir-list a[aria-current] .wt-dir-b {
  color: var(--wt-gold);
}
.wt-dir-list a:hover .wt-dir-b {
  color: var(--wt-gold);
}
.wt-dir-list li:last-child a {
  border-bottom: 0;
}

/* footer furniture */
html.wt-active .wt-foot {
  display: contents;
}
html.wt-active .wt-credit {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 40;
  font-size: 0.7rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
html.wt-active .wt-note {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 40;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
  font-size: 0.66rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(14, 10, 8, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(243, 234, 217, 0.82);
  pointer-events: none;
}

/* outro */
html.wt-active .wt-outro {
  position: relative;
  z-index: 2;
  padding-top: 30vh;
  background: linear-gradient(to bottom, transparent, rgba(16, 12, 10, 0.88) 38vh);
}
html.wt-active .wt-outro-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  padding-bottom: 5.5rem;
}
html.wt-active .wt-outro .wt-cta {
  grid-column: 1 / -1;
  border-color: rgba(211, 176, 122, 0.5);
}

/* transitions */
.wt-veil {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: var(--wt-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.wt-veil.on {
  opacity: 0.55;
}
.wt-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  background: var(--wt-ink);
  transition: opacity 0.8s ease, visibility 0.8s;
}
.wt-loader.done {
  opacity: 0;
  visibility: hidden;
}
.wt-loader-label {
  font: italic 400 1.6rem/1.2 var(--wt-serif);
}
.wt-loader-bar {
  width: min(260px, 60vw);
  height: 1px;
  background: var(--wt-line);
  overflow: hidden;
}
.wt-loader-bar i {
  display: block;
  height: 100%;
  background: var(--wt-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.wt-loader-pct {
  font: 500 0.68rem/1 var(--wt-sans);
  letter-spacing: 0.2em;
  color: var(--wt-cream-dim);
}

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  html.wt-active .wt-hotspots {
    display: none;
  }
  html.wt-active .wt-hub-head {
    top: 4.6rem;
  }
  html.wt-active .wt-hub-directory {
    display: block;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3.2rem;
    padding: 1rem 1.2rem 0.4rem;
    pointer-events: auto;
    background: var(--wt-glass);
    border: 1px solid var(--wt-line);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  html.wt-active .wt-hero {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4.5rem 22px 3rem;
    gap: 1.4rem;
  }
  html.wt-active .wt-portrait {
    width: 120px;
    min-width: 0;
  }
  html.wt-active .wt-hero-text > .wt-cue {
    margin-top: 1.4rem;
  }
  html.wt-active .wt-panel {
    top: auto;
    bottom: 3.3rem;
    left: 12px !important;
    right: 12px !important;
    width: auto;
    padding: 1.2rem 1.25rem;
    max-height: calc(100vh - 7.5rem);
    overflow: hidden;
  }
  .wt-kpi-v {
    font-size: 1.45rem;
  }
  html.wt-active .wt-outro-inner {
    grid-template-columns: 1fr;
  }
  html.wt-active .wt-credit {
    top: 22px;
    left: 16px;
  }
  .wt-role,
  .wt-title,
  .wt-oneliner {
    font-size: 1.12rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wt-cue i {
    animation: none;
  }
}

/* ?preview (a live tile on /portfolio, _engine/preview.js): just the walk, no chrome or scrollbars. */
html.is-preview {
  scroll-behavior: auto !important;
  scrollbar-width: none;
}
html.is-preview::-webkit-scrollbar {
  display: none;
}
html.is-preview .wt-dir,
html.is-preview .wt-foot,
html.is-preview .wt-credit {
  display: none !important;
}

/* ===================== v2: serif hero, arrows, shop sheets, mall button ===================== */
@font-face {
  font-family: 'WT Italiana';
  src: url('fonts/italiana-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --wt-display: 'WT Italiana', 'Italiana', Georgia, 'Times New Roman', serif;
}
.wt h1,
.wt h2 {
  font-family: var(--wt-display);
  font-weight: 400;
  letter-spacing: 0.015em;
}
.wt h1 {
  font-size: clamp(3.6rem, 11vw, 9.5rem);
  line-height: 0.92;
  text-wrap: balance;
}
.wt h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}

/* the arrow that replaces "scroll to walk in" */
@keyframes wt-bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(12px);
    opacity: 1;
  }
}
.wt-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  margin-top: 1.6rem;
  color: var(--wt-cream);
  text-decoration: none;
}
.wt-cue svg {
  display: block;
  animation: wt-bob 1.8s ease-in-out infinite;
}
html.wt-active .wt-hero-text {
  max-width: none;
}
html.wt-active .wt-hero {
  padding: 0 6vw;
  gap: clamp(1.5rem, 4.5vw, 5rem);
}
html.wt-active .wt-portrait {
  width: min(22vw, 300px);
}
@media (min-width: 900px) {
  html.wt-active .wt h1,
  html.wt-active h1#wt-name {
    white-space: nowrap;
    font-size: clamp(4.5rem, 8.6vw, 10.5rem);
  }
}
html.wt-active .wt-hero-text > .wt-cue {
  margin-top: 2.4rem;
}

.wt-arrow {
  position: fixed;
  left: 50%;
  bottom: 2.6rem;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 52px;
  height: 72px;
  padding: 0;
  margin-left: -26px;
  border: 0;
  background: none;
  color: var(--wt-cream);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.6));
}
.wt-arrow svg {
  display: block;
  animation: wt-bob 1.8s ease-in-out infinite;
}
html:not(.wt-active) .wt-arrow {
  display: none;
}

/* shop sheet: fills the screen from the top, one stage per scroll */
.wt-sheet {
  display: grid;
  gap: 1rem;
}
.wt-stagebox {
  display: contents;
}
html.wt-active .wt-sheet {
  position: absolute;
  top: clamp(3.8rem, 8.5vh, 5.4rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 92vw);
  max-height: calc(100vh - 9rem);
  align-content: start;
  gap: 0.9rem;
  pointer-events: none;
}
html.wt-active .wt-sheet .wt-panel {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: auto;
  max-height: none;
  padding: 1.35rem 1.6rem;
  background: rgba(18, 13, 11, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  pointer-events: auto;
}
html.wt-active .wt-sheet .wt-panel--role {
  padding-bottom: 1.6rem;
}
@media (min-width: 900px) {
  .wt-sheet {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .wt-sheet .wt-panel--role,
  .wt-sheet .wt-panel--kpis {
    grid-column: 1 / 8;
  }
  .wt-sheet .wt-panel--highlights,
  .wt-sheet .wt-panel--projects,
  .wt-sheet .wt-panel--back {
    grid-column: 8 / 13;
  }
}
/* swap mode (small or short screens): one stage at a time, same spot */
html.wt-active .wt-sheet--replace {
  display: block;
}
html.wt-active .wt-sheet--replace .wt-stagebox {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 900px) {
  html.wt-active .wt-sheet--replace .wt-stagebox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.wt-active .wt-sheet--replace .wt-panel {
    grid-column: auto !important;
  }
}
.wt-panel--back {
  display: flex;
  align-items: center;
}

/* "Go back to the mall" replaces the directory menu */
.wt-mall {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  display: none;
  padding: 0.7rem 1.25rem;
  font: 600 0.68rem/1 var(--wt-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wt-cream);
  background: rgba(18, 13, 11, 0.62);
  border: 1px solid var(--wt-gold);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 0.25s, color 0.25s, opacity 0.4s;
}
.wt-mall:hover,
.wt-mall:focus-visible {
  background: var(--wt-gold);
  color: var(--wt-ink);
}
html.wt-active.wt-ready body[data-chapter]:not([data-chapter='']) .wt-mall {
  display: inline-block;
}
html:not(.wt-active) .wt-mall {
  display: none;
}

/* hub: tags a little larger so the signs and the names read together */
html.wt-active .wt-hub-head {
  top: clamp(3.6rem, 8vh, 6rem);
}
html.wt-active .wt-hotspot {
  border-color: rgba(243, 234, 217, 0.65);
}
@media (max-width: 820px) {
  html.wt-active h1#wt-name {
    font-size: clamp(3.4rem, 17vw, 5.5rem);
    white-space: normal;
  }
  html.wt-active .wt-sheet {
    top: 4.2rem;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 8rem);
  }
  html.wt-active .wt-sheet .wt-panel {
    padding: 1.1rem 1.2rem;
  }
  .wt-arrow {
    bottom: 2.2rem;
  }
  .wt-mall {
    top: 10px;
    right: 10px;
    padding: 0.6rem 0.95rem;
    font-size: 0.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wt-cue svg,
  .wt-arrow svg {
    animation: none;
  }
}
html.is-preview .wt-mall,
html.is-preview .wt-arrow {
  display: none !important;
}

/* legibility over bright photography */
html.wt-active .wt-hero-text {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.6);
}
html.wt-active .wt-hub-head {
  padding: 0.9rem 1.6rem 1rem;
  background: rgba(18, 13, 11, 0.55);
  border: 1px solid var(--wt-line);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  text-shadow: none;
}

/* hero: keep the portrait clear of the name */
@media (min-width: 900px) {
  html.wt-active .wt-portrait { width: min(14vw, 220px); }
  html.wt-active .wt h1,
  html.wt-active h1#wt-name { font-size: clamp(4.5rem, 7.4vw, 9.5rem); }
  html.wt-active .wt-hero { gap: clamp(1.5rem, 3vw, 3.5rem); }
}
html.wt-active .wt-hero-text { background: radial-gradient(ellipse at 40% 50%, rgba(10,8,7,.38), transparent 70%); }
