:root {
  --font-sans: "Manrope", sans-serif;
  --bg: #ffffff;
  --header-tint: linear-gradient(180deg, #f9fbff 0%, #ffffff 68%);
  --text: #374151;
  --text-strong: #111827;
  --muted: #9ca3af;
  --line: #e5e7eb;
  --tab-bg: rgba(229, 231, 235, 0.62);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  font-family: var(--font-sans);
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  line-height: 1.45;
}

body,
body *,
body *::before,
body *::after {
  font-family: inherit !important;
}

body.has-ios-cursor,
body.has-ios-cursor * {
  cursor: none !important;
}

.ios-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 160ms ease, transform 180ms ease;
  background: rgba(245, 247, 252, 0.35);
  border: 1px solid rgba(217, 217, 226, 0.95);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12), inset 0 0 14px rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ios-cursor.active {
  opacity: 1;
}

.ios-cursor.hovering {
  transform: translate(-50%, -50%) scale(1.25);
  background: rgba(248, 249, 252, 0.5);
}

.ios-cursor.pressed {
  transform: translate(-50%, -50%) scale(0.88);
}

body.modal-open {
  overflow: hidden;
}

body.modal-open {
  position: fixed;
  inset: 0;
  width: 100%;
}

body.modal-open.allow-history-swipe {
  position: static;
  inset: auto;
  width: auto;
}

.absolute-defs {
  position: absolute;
}

.app {
  min-height: 100vh;
}

.container {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
}

.header-gradient {
  position: relative;
  background: var(--header-tint);
}

.grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.12) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
  opacity: 0.35;
}

.topbar {
  padding: 1.2rem 0 0.4rem;
  position: relative;
  z-index: 1;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.intro {
  position: relative;
  z-index: 1;
  padding: 1.8rem 0 1rem;
}

.workbench-section {
  padding: 0.9rem 0 2.4rem;
}

.workbench-wrap {
  display: grid;
  gap: 1rem;
  position: relative;
}

.workbench-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.workbench-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #9ca3af;
}

.workbench-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: #1f2937;
}

.workbench-canvas {
  position: relative;
  width: 100%;
  margin: 0;
  height: min(80vh, 720px);
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(24, 24, 27, 0.9), rgba(10, 10, 12, 0.98));
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.08);
}

.workbench-canvas.is-hover {
  cursor: pointer;
}

.workbench-tooltip {
  position: absolute;
  width: min(280px, 90vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
  padding: 0.75rem;
  display: none;
  gap: 0.75rem;
  align-items: center;
  z-index: 5;
}

.workbench-tooltip.is-visible {
  display: flex;
}

.workbench-tooltip-image {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.workbench-tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.workbench-tooltip-title {
  margin: 0;
  font-size: 1rem;
  color: #111827;
  font-weight: 700;
}

.workbench-tooltip-copy {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.workbench-tooltip-divider {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  margin-top: 0.2rem;
  display: none;
}

.workbench-tooltip-secondary {
  margin: 0;
  color: #4b5563;
  font-size: 0.85rem;
  display: none;
  text-align: center;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.workbench-tooltip-scroll {
  align-self: center;
  display: none;
  border: none;
  background: #f3f4f6;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  align-items: center;
  justify-content: center;
}

.workbench-tooltip-scroll:hover {
  transform: translateY(2px);
}

.workbench-tooltip.is-monitor {
  width: min(320px, 90vw);
  align-items: flex-start;
}

.workbench-tooltip.is-monitor .workbench-tooltip-body {
  width: 100%;
  text-align: center;
  align-items: center;
}

.workbench-tooltip.is-coffee {
  width: min(320px, 90vw);
  align-items: flex-start;
}

.workbench-tooltip.is-coffee .workbench-tooltip-body {
  width: 100%;
  text-align: center;
  align-items: center;
}

.workbench-tooltip-emoji {
  display: none;
  font-size: 1.4rem;
  margin-top: 0.2rem;
}

.workbench-tooltip-muted {
  display: none;
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.workbench-tooltip.is-walle {
  width: min(320px, 90vw);
  align-items: flex-start;
}

.workbench-tooltip.is-walle .workbench-tooltip-body {
  width: 100%;
}

.workbench-tooltip.is-sketchbook {
  width: min(320px, 90vw);
  align-items: flex-start;
}

.workbench-tooltip.is-sketchbook .workbench-tooltip-body {
  width: 100%;
}

.workbench-tooltip.is-tools {
  width: min(320px, 90vw);
  align-items: flex-start;
}

.workbench-tooltip.is-tools .workbench-tooltip-body {
  width: 100%;
}

.workbench-tooltip.is-mobile {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 2rem));
  z-index: 20;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

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

.intro p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.75vw, 1.15rem);
}

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

.previously {
  display: block;
}

.gradient-text {
  background: linear-gradient(90deg, #d79fe8, #4dacea, #13b2eb, #d79fe8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-slide 4s linear infinite;
}

@keyframes gradient-slide {
  0% { background-position: 0 50%; }
  100% { background-position: 200% 50%; }
}

.status-pill {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #10b981;
  font-size: 0.92rem;
  width: fit-content;
  cursor: default;
}

.status-inline {
  margin-top: 0;
  margin-left: 0.55rem;
  vertical-align: baseline;
}

.status-pill a {
  color: #10b981;
  font-weight: 600;
  text-decoration: none;
}

.status-copy {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: max-width 260ms ease, opacity 180ms ease, transform 260ms ease;
}

.status-pill:hover .status-copy,
.status-pill:focus-within .status-copy {
  max-width: 420px;
  opacity: 1;
  transform: translateX(0);
}

.pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.38);
  animation: pulse 1.8s ease-out infinite;
}

.pulse::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, rgba(16, 185, 129, 0) 72%);
  animation: pulse-glow 1.8s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes pulse-glow {
  0% { transform: scale(0.75); opacity: 0.9; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.75); opacity: 0; }
}

.tabs-wrap {
  padding-top: 0;
}

.tabs {
  display: flex;
  gap: 0.4rem;
}

.tab {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: all 140ms ease;
}

.tab:hover {
  background: rgba(229, 231, 235, 0.4);
  color: #6b7280;
}

.tab.active {
  color: #4b5563;
  background: var(--tab-bg);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.divider {
  height: 1px;
  background: var(--line);
  margin-top: 0.5rem;
}

.panel {
  padding: 1rem 0 2rem;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  margin: 0;
}

.project-link {
  text-decoration: none;
  display: block;
}

.project-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.media {
  position: relative;
  aspect-ratio: 678 / 367.625;
  border-radius: 26px;
  overflow: hidden;
  background: #e5e7eb;
  border: 1px solid #f3f4f6;
  transition: transform 220ms ease;
}

.project-card:hover .media {
  transform: scale(0.99);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
}


.media-leap {
  background-color: #e5e7eb;
}

.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-kronos { background: linear-gradient(145deg, #cdc8d9, #afb8c6); }
.media-ai-this-ai-that {
  background-color: #e5e7eb;
  background-image: url("assets/toughbook.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.media-user-research {
  background-color: #e5e7eb;
  background-image: url("assets/carvtec/cover-page.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.media-lab { background: linear-gradient(145deg, #e2e5ea, #ced4dd); }

.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1rem;
}

.badge em,
.project-card p em {
  color: var(--muted);
  font-style: normal;
}

.project-card p {
  margin: 0.55rem 0 0;
  padding: 0 0.8rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.project-card a {
  color: #60a5fa;
  text-decoration: none;
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.simple-grid article,
.about-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.simple-grid h2,
.about-block h2 {
  margin: 0 0 0.4rem;
  color: var(--text-strong);
  font-size: 1.2rem;
}

.simple-grid p,
.about-block p {
  margin: 0.28rem 0;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1.25rem;
  min-width: 0;
}

.about-nav {
  position: sticky;
  top: 1.25rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 140ms ease;
}

.about-nav a.active {
  color: #3b82f6;
}

.about-nav a:hover {
  color: #6b7280;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3.8rem;
  min-width: 0;
}

.about-section {
  scroll-margin-top: 1.2rem;
  min-width: 0;
}

.about-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2rem);
}

.section-title-row a,
.section-subtitle {
  color: var(--muted);
}

.section-title-row a {
  display: inline-block;
  margin-top: 0.15rem;
  text-decoration: none;
}

.section-title-row a:hover {
  color: #3b82f6;
}

.section-subtitle {
  margin: 0.4rem 0 0;
}

.about-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  min-width: 0;
  align-items: stretch;
}

.profile-card {
  margin: 0;
  height: 100%;
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.profile-card figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.about-copy h2 {
  margin-bottom: 0.8rem;
}

.about-hero-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.about-hero-title h2 {
  margin-bottom: 0;
}

.about-copy p {
  margin: 0.56rem 0;
  color: #4b5563;
}

.about-copy,
#about-art-content,
#about-art-content .art-main {
  min-width: 0;
}

.about-copy .muted-line {
  color: var(--muted);
}

.status-fixed {
  margin-top: 1rem;
}

.xp-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.xp-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.xp-item img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
}

.xp-item h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #374151;
}

.xp-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.community-list {
  margin-top: 1rem;
  display: grid;
  gap: 1.7rem;
}

.community-item h3 {
  margin: 0;
  color: #4b5563;
}

.community-item p {
  margin: 0.38rem 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.polaroid-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.polaroid {
  margin: 0;
  background: #fff;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0.5rem 0.7rem;
}

.polaroid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.polaroid figcaption {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.tilt-left {
  transform: rotate(-4deg);
}

.tilt-right {
  transform: rotate(4deg);
}

.quote-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quote-grid article {
  border: 1px solid #f3f4f6;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(209, 213, 219, 0.65);
  padding: 1.3rem;
  background: #fff;
}

.quote-grid .emoji {
  margin: 0;
  font-size: 1.65rem;
}

.quote-grid h3 {
  margin: 0.25rem 0;
  color: #374151;
}

.quote-grid p {
  margin: 0;
  color: #6b7280;
}

.quote-grid span {
  display: inline-block;
  margin-top: 0.35rem;
  color: #9ca3af;
}

.shelf-group {
  margin-top: 1.15rem;
}

.shelf-group h3 {
  margin: 0 0 0.6rem;
  color: #6b7280;
}

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

.shelf-grid img {
  width: 100%;
  aspect-ratio: 210 / 310;
  border-radius: 8px;
  object-fit: cover;
}

.shelf-grid.square img {
  aspect-ratio: 1 / 1;
}

.lore-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.lore-card {
  text-decoration: none;
}

.lore-card img {
  width: 100%;
  height: 185px;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.lore-card:hover img {
  transform: scale(0.99);
}

.lore-card h3 {
  margin: 0.42rem 0 0;
  font-size: 1rem;
  color: #4b5563;
}

.lore-card h3 span {
  color: #9ca3af;
  font-weight: 500;
}

.lore-card p {
  margin: 0.2rem 0 0;
  color: #9ca3af;
  font-size: 0.92rem;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-modal.is-fullscreen {
  padding: 0;
}

.project-modal[hidden] {
  display: none;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.project-modal-panel {
  position: relative;
  width: min(1100px, calc(100vw - 4rem));
  max-height: 90vh;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.2);
  opacity: 0;
  transform: translateY(18px);
  animation: modalFadeUp 240ms ease-out forwards;
}

.project-modal-panel.is-fullscreen {
  width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
  height: 100vh;
  border-radius: 0;
}

.project-modal-head {
  position: relative;
  padding: 1rem 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
}

.project-modal-breadcrumb {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-modal-breadcrumb-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.project-modal-breadcrumb-link {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-transform: lowercase;
}

.project-modal-breadcrumb-link:hover {
  color: #3b82f6;
}

.project-modal-breadcrumb-current {
  color: #4b5563;
  text-transform: lowercase;
}

.project-modal-controls {
  display: block;
}

.project-modal-expand {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border: 0;
  background: rgba(229, 231, 235, 0.7);
  color: #4b5563;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-modal-expand:hover {
  background: rgba(209, 213, 219, 0.8);
}

.project-modal-expand-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

.project-modal-panel.is-fullscreen .project-modal-breadcrumb {
  display: inline-flex;
}

.project-modal-panel.is-fullscreen .project-modal-controls {
  display: none;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: rgba(229, 231, 235, 0.7);
  color: #4b5563;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
}

.project-modal-close:hover {
  background: rgba(209, 213, 219, 0.8);
}

.project-modal-body {
  overflow: auto;
  padding: 0 8% 3rem;
}

.pm-cover {
  margin-top: 1.2rem;
}

.pm-logo {
  width: 5rem;
  height: 5rem;
  border-radius: 16px;
  object-fit: cover;
}

.pm-title {
  margin: 1.1rem 0 0;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.pm-meta {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pm-meta.pm-meta-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-meta div p {
  margin: 0;
  color: #111827;
}

.pm-meta div p:first-child {
  color: #9ca3af;
  margin-bottom: 0.35rem;
}

.pm-hr {
  margin: 1.6rem 0;
  height: 1px;
  background: #e5e7eb;
}

.pm-hero {
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 1090 / 591;
  background: #e5e7eb;
}

.pm-hero-full {
  margin-top: 1rem;
  aspect-ratio: auto;
}

.pm-hero-full img {
  width: 100%;
  height: auto;
  display: block;
}

.pm-hero video,
.pm-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm-section {
  padding: 2.2rem 0 0.5rem;
}

.pm-section-kicker {
  margin: 0;
  color: #9ca3af;
  text-transform: uppercase;
  font-size: 1rem;
}

.pm-section-title {
  margin: 0.3rem 0 0.8rem;
  color: #111827;
  font-size: 1.65rem;
  font-weight: 500;
}

.pm-section p {
  margin: 0.7rem 0;
  color: #4b5563;
}

.pm-lock {
  margin-top: 1.1rem;
  border-radius: 26px;
  background: #f3f4f6;
  padding: 2rem;
}

.pm-lock a {
  color: inherit;
}

.case-gate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.case-gate-input {
  flex: 1 1 220px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.case-gate-button {
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  background: #111827;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.case-gate-button:disabled,
.case-gate-input:disabled {
  opacity: 0.6;
  cursor: default;
}

.case-gate-message {
  margin: 0.6rem 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.pm-gallery {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.pm-gallery-stack {
  grid-template-columns: 1fr;
}

.pm-gallery img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.art-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
}

.art-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.art-sidebar-title {
  margin: 0;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 600;
}

.art-sidebar-title.spaced {
  margin-top: 0.8rem;
}

.art-sidebar-link {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
}

.art-sidebar-link:hover {
  color: #6b7280;
}

.art-sidebar-link.active {
  color: #3b82f6;
}

.art-sidebar-link span {
  color: #d1d5db;
}

.art-main {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.art-section h2 {
  margin: 0;
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.art-section h2::after {
  content: "";
  display: block;
  margin-top: 0.7rem;
  width: 100%;
  height: 1px;
  background: var(--line);
}

.art-masonry {
  margin-top: 1.1rem;
  column-count: 3;
  column-gap: 1rem;
}

.art-masonry-compact {
  column-count: 2;
}

.art-piece {
  break-inside: avoid;
  margin: 0 0 1rem;
}

.art-piece img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

#art-painting .art-piece img {
  height: 320px;
  width: auto;
  object-fit: contain;
}

#art-painting img[alt="Vino painting"] {
  height: 320px;
}

#art-painting img[alt="Hyperrealism painting"] {
  height: 320px;
}

#art-painting .art-masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

#art-painting .art-piece {
  flex: 0 0 auto;
}

.art-section.charcoal .art-piece img {
  height: auto;
  width: auto;
  max-width: 100%;
  margin: 0;
}

.art-section.charcoal .art-masonry-compact {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.art-section.charcoal .art-piece {
  flex: 1 1 240px;
  text-align: left;
}

.art-piece p {
  margin: 0.45rem 0 0;
  color: #6b7280;
  font-size: 0.93rem;
}

.art-piece strong {
  color: #4b5563;
  font-weight: 600;
}

.art-strip-group {
  margin-top: 1.35rem;
}

.art-strip-head h3 {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 600;
}

.art-strip-head p {
  margin: 0.2rem 0 0;
  color: #9ca3af;
}

.art-strip {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.art-strip img {
  height: clamp(180px, 35vw, 360px);
  width: auto;
  border-radius: 14px;
  flex: 0 0 auto;
}

.art-mural {
  margin-top: 1.35rem;
}

.art-mural-head h3 {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 600;
}

.art-mural-head p,
.art-mural-copy {
  margin: 0.22rem 0 0;
  color: #9ca3af;
}

.footer {
  position: relative;
  padding: 1.6rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 3rem));
  height: 1px;
  background: var(--line);
}

.footer.container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(1rem, 5vw, 2rem);
  padding-right: clamp(1rem, 5vw, 2rem);
}

.footer-brand {
  display: flex;
  font-weight: 500;
  align-items: flex-start;
  gap: 0.7rem;
  justify-self: stretch;
}

.footer-brand p {
  margin: 0;
  color: var(--text);
  font-size: 2rem;
  font-weight: 400;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-self: center;
  justify-self: stretch;
  align-items: center;
  text-align: left;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: #3b82f6;
}

.socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.08rem;
  justify-content: flex-start;
}

.socials a {
  font-weight: 600;
  background: linear-gradient(90deg, #c4c9d0, #c4c9d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  transition: background-position 220ms ease;
}

.socials a:hover {
  background-image: linear-gradient(90deg, #d79fe8, #4dacea, #13b2eb, #d79fe8);
  background-position: 100% 0;
}

.footer-meta {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1.25rem;
}

.footer-meta p {
  margin: 0.3rem 0;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 400ms ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-body {
  background: #f6f5f0;
  color: var(--text);
}

.case-page {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.case-brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  text-decoration: none;
  font-size: 1.05rem;
}

.case-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.case-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.case-links a:hover {
  color: var(--text);
}

.case-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
}

.case-nav {
  position: sticky;
  top: 2rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.case-nav-title {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.case-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 140ms ease;
}

.case-nav a:hover {
  color: var(--text);
}

.case-nav a.active {
  color: #3b82f6;
}

.case-nav-sub {
  margin-left: 0.9rem;
  font-size: 0.9rem;
  color: #b1b6c2;
}

.case-nav-sub {
  display: none;
}

.case-nav-sub.is-expanded {
  display: block;
}

.case-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.case-section {
  scroll-margin-top: 120px;
}

.case-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.case-title {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  margin: 0;
  color: var(--text-strong);
}

.case-subtitle {
  margin: 0.4rem 0 0;
  color: #6b7280;
  font-size: 1.1rem;
  max-width: 58ch;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.case-meta-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: #fff;
}

.case-meta-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.case-meta-card p {
  margin: 0;
  color: #374151;
  font-weight: 500;
  font-size: 0.95rem;
}

.case-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
  color: var(--text-strong);
}

.case-section p {
  margin: 0.6rem 0;
  color: #6b7280;
}

.case-hero-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e6e7eb;
  background: #e5e7eb;
  aspect-ratio: 16 / 9;
}

.case-hero-media video,
.case-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.case-callout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  background: #fff;
}

.case-callout img {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

.case-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f1f2f6;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 600;
}

.case-team {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.case-team a {
  text-decoration: none;
  color: #4b5563;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.9rem;
}

.case-team a:hover {
  color: #111827;
}

.case-muted {
  color: var(--muted);
}

.case-highlight {
  position: relative;
  z-index: 0;
  padding: 0 0.15em;
  font-weight: 600;
}

.case-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.9em;
  background: rgba(59, 130, 246, 0.25);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
}

.case-highlight.case-highlight-filled::before {
  transform: scaleX(1);
}

.case-highlight.case-highlight-animate::before {
  transform: scaleX(0);
  animation: caseHighlightWipe 720ms ease-out forwards;
}

@keyframes caseHighlightWipe {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.case-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  background: #fff;
}

.case-card h2 {
  font-size: 1.4rem;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.case-gallery img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.case-figure {
  margin: 1rem 0 1.5rem;
}

.case-figure img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.case-figure figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-anim img {
  animation: caseFloat 7s ease-in-out infinite;
}

@keyframes caseFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .project-grid,
  .quote-grid,
  .polaroid-grid,
  .lore-grid,
  .shelf-grid,
  .pm-gallery,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer.container {
    width: calc(100% - 1.5rem);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .footer::before {
    width: 100%;
  }

  .intro {
    padding-top: 4rem;
  }

  .status-pill {
    display: none;
  }

  .footer-brand p {
    font-size: 1.75rem;
  }

  .about-layout,
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-nav {
    display: none;
  }

  .project-modal {
    padding: 0;
  }

  .project-modal-panel {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .project-modal-body {
    padding: 0 1.5rem 2rem;
  }

  .pm-meta {
    grid-template-columns: 1fr 1fr;
  }

  .art-layout {
    grid-template-columns: 1fr;
  }

  .art-sidebar {
    position: static;
  }

  .art-masonry,
  .art-masonry-compact {
    column-count: 1;
  }

  .case-page {
    width: calc(100% - 1.5rem);
    padding-top: 2rem;
  }

  .case-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .case-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .case-nav-title {
    flex-basis: 100%;
  }

  .case-meta {
    grid-template-columns: 1fr 1fr;
  }

  .case-callout {
    grid-template-columns: 1fr;
  }

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

@media (hover: none), (pointer: coarse) {
  body.has-ios-cursor,
  body.has-ios-cursor * {
    cursor: auto !important;
  }

  .ios-cursor {
    display: none !important;
  }
}
