:root {
  --bg: #ffffff;
  --surface: #f3f4f6;
  --surface-soft: rgba(243, 244, 246, 0.84);
  --text: #202124;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.07);
  --shadow: rgba(17, 24, 39, 0.08);
  --shadow-strong: rgba(17, 24, 39, 0.16);
  --teal: #008b8b;
  --purple: #7c5cfc;
  --grain-opacity: 0.045;
  --card-size: 296px;
  --grid-gap: 20px;
}

body.dark-mode {
  --bg: #101010;
  --surface: #202020;
  --surface-soft: rgba(35, 35, 35, 0.78);
  --text: #ededed;
  --muted: #b9b9b9;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.28);
  --shadow-strong: rgba(0, 0, 0, 0.45);
  --grain-opacity: 0.045;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 0.45s ease, color 0.45s ease;
}

body.is-scroll-locked {
  position: fixed;
  top: var(--locked-scroll-y, 0);
  left: 0;
  width: 100%;
  overflow: hidden;
}

body.dark-mode {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.06), transparent 33vw),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.05), transparent 31vw),
    radial-gradient(circle at 48% 88%, rgba(255, 255, 255, 0.035), transparent 35vw),
    var(--bg);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

strong {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}

@media (pointer: fine) and (min-width: 769px) {
  :where(
    a[href],
    button,
    input,
    select,
    textarea,
    [role="button"],
    [role="tab"],
    [data-modal],
    [data-project-open],
    [data-photo-cycle],
    [data-music-play],
    [data-prototype-modal-open],
    .modal-backdrop,
    .prototype-modal-backdrop,
    .back-to-top
  ) {
    cursor: pointer;
  }

  .prototype-card,
  .prototype-card *,
  [data-photo-cycle],
  [data-photo-cycle] *,
  .project-view-prototype,
  .project-view-prototype *,
  .project-prototype-stage,
  .project-prototype-stage *,
  .prototype-modal-stage,
  .prototype-modal-stage * {
    cursor: none !important;
  }

  .prototype-info-button,
  .prototype-info-button *,
  .prototype-fullscreen-button,
  .prototype-fullscreen-button *,
  .prototype-modal-close,
  .prototype-modal-close * {
    cursor: pointer !important;
  }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(44, 44, 44, 0.72);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.16s ease, height 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  mix-blend-mode: normal;
}

.cursor::before,
.cursor::after {
  content: "";
  position: absolute;
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

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

.cursor.is-suspended {
  opacity: 0;
}

.cursor.is-hovering {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .cursor {
  border-color: rgba(242, 242, 242, 0.92);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(255, 255, 255, 0.16);
}

body.dark-mode .cursor.is-hovering {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(255, 255, 255, 0.18);
}

.cursor.is-photo-next {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 255, 255, 0.94);
  background: rgba(0, 0, 0, 0.16);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.cursor.is-photo-next::before {
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  opacity: 1;
  transform: translate(-72%, -50%);
}

.cursor.is-photo-next::after {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  opacity: 1;
  transform: translate(-10%, -50%) rotate(45deg);
}

.cursor.is-photo-click::before {
  animation: photo-arrow-line 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cursor.is-photo-click::after {
  animation: photo-arrow-head 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 260px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 139, 139, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  transform: translate(16px, 18px);
  transition: opacity 0.12s ease;
}

.tooltip.visible {
  opacity: 1;
}

.side-controls {
  position: fixed;
  top: 50%;
  left: clamp(10px, 2.2vw, 28px);
  z-index: 1000;
  display: grid;
  width: 56px;
  gap: 10px;
  justify-items: center;
  transform: translateY(-50%);
}

.side-control {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  transition: transform 0.16s ease, color 0.45s ease;
}

.side-control:hover,
.side-control:focus-visible {
  transform: translateX(3px) scale(1.04);
}

.side-control:focus-visible {
  outline: 2px solid rgba(0, 139, 139, 0.38);
  outline-offset: 4px;
}

.side-control-linkedin img {
  grid-area: 1 / 1;
  width: 56px;
  height: 56px;
  max-width: none;
  object-fit: contain;
  transform: translateX(-1.6px);
}

.side-control-linkedin .avatar-dark,
body.dark-mode .side-control-linkedin .avatar-light {
  display: none;
}

body.dark-mode .side-control-linkedin .avatar-dark {
  display: block;
}

.side-control-theme span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  position: relative;
}

.side-control-theme span::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: currentColor;
}

.side-control-theme span::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 11px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--bg);
}

body.dark-mode .side-control-theme span::before {
  inset: 4px;
}

body.dark-mode .side-control-theme span::after {
  display: none;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  pointer-events: none;
  transition: transform 0.32s ease;
}

.nav.hidden {
  transform: translateY(-105%);
}

.nav-logo {
  width: 46px;
  height: 46px;
  pointer-events: auto;
}

.nav-pills {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 42px rgba(22, 19, 16, 0.08);
  pointer-events: auto;
  transform: translateX(-50%);
}

.nav-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--indicator-left, 4px);
  width: var(--indicator-width, 48px);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 34px rgba(22, 19, 16, 0.13);
  transition: left 0.62s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.62s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-pill {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.main {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 80px;
}

.mobile-logo {
  display: none !important;
}

.grid {
  display: grid;
  width: min(100%, 1244px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(232px, calc((100vw - 108px) / 4), var(--card-size));
  gap: var(--grid-gap);
}

.slot {
  min-width: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, filter 0.3s ease;
}

.slot.dim {
  opacity: 0.3;
  filter: saturate(0.75);
}

.bento-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 32px;
  clip-path: inset(0 round 32px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.3s ease, background 0.45s ease, border-color 0.3s ease;
  animation: card-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.bento-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px var(--shadow-strong), 0 4px 14px var(--shadow);
}

.bento-card:focus-visible,
.bento-card:focus-within {
  border-color: var(--border);
}

.bento-card:active {
  transform: scale(0.97);
}

button.bento-card {
  border: 1px solid transparent;
}

.action-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #2c2c2c;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.bento-card:hover .action-icon {
  opacity: 1;
  transform: scale(1);
}

.logo-action {
  width: 40px;
  min-width: 40px;
  padding: 0;
  overflow: hidden;
}

.logo-action img {
  width: 19px !important;
  height: 19px !important;
  max-width: 19px;
  object-fit: contain;
}

.about-card {
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.about-photo-card {
  justify-content: flex-start;
  gap: clamp(22px, 3vw, 34px);
  padding: 32px;
}

.about-avatar {
  width: clamp(126px, 34%, 182px);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: 44% 50%;
  box-shadow: 0 14px 36px rgba(22, 19, 16, 0.18);
}

.about-bio {
  min-width: 0;
  text-align: left;
}

.about-bio p {
  margin: 0;
  max-width: 390px;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.08;
}

.music-card {
  isolation: isolate;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border: 0 !important;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.music-card:hover,
.music-card:focus-within {
  border: 0;
  box-shadow: none;
}

.music-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 18%, rgba(0, 0, 0, 0.68) 100%),
    url("assets/images/general/cedar-cover.jpg") center / cover no-repeat;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.music-card:hover::after,
.music-card.is-playing::after {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.03);
}

.music-card > * {
  z-index: 3;
}

.music-card audio {
  display: none;
}

.music-art {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.34);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-4px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.music-card:hover .music-art,
.music-card:focus-within .music-art,
.music-card.is-playing .music-art {
  opacity: 1;
  transform: none;
}

.music-disc {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.2);
  animation: music-spin 5.5s linear infinite paused;
}

.music-card.is-playing .music-disc {
  animation-play-state: running;
}

.music-wave {
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  transform-origin: bottom;
  animation: music-wave 0.86s ease-in-out infinite paused;
}

.music-wave-two {
  height: 18px;
  animation-delay: 0.14s;
}

.music-wave-three {
  height: 11px;
  animation-delay: 0.28s;
}

.music-card.is-playing .music-wave {
  animation-play-state: running;
}

.music-spotify-link {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.34);
  color: #fff;
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.music-card:hover .music-spotify-link,
.music-spotify-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.music-spotify-link:hover,
.music-spotify-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.9);
  color: #171717;
  transform: scale(1.06);
}

.music-spotify-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.music-spotify-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.music-panel {
  display: grid;
  width: auto;
  justify-self: start;
  gap: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  transition: width 0.18s ease, gap 0.18s ease, padding 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.music-card:hover .music-panel,
.music-card:focus-within .music-panel,
.music-card.is-playing .music-panel {
  width: 100%;
  gap: 12px;
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 15, 15, 0.54);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.music-copy {
  min-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(4px);
  transition: max-height 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.music-card:hover .music-copy,
.music-card:focus-within .music-copy,
.music-card.is-playing .music-copy {
  max-height: 32px;
  opacity: 1;
  transform: none;
}

.music-copy h2 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.music-controls {
  display: grid;
  grid-template-columns: 36px 0;
  align-items: center;
  gap: 0;
  transition: grid-template-columns 0.18s ease, gap 0.18s ease;
}

.music-card:hover .music-controls,
.music-card:focus-within .music-controls,
.music-card.is-playing .music-controls {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
}

.music-play-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #171717;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.music-play-button:focus-visible,
.music-progress:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.music-play-icon {
  position: relative;
  width: 13px;
  height: 15px;
}

.music-play-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 7.5px solid transparent;
  border-bottom: 7.5px solid transparent;
  border-left: 11px solid currentColor;
  transform: translateX(2px);
}

.music-card.is-playing .music-play-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 12px;
  height: 14px;
}

.music-card.is-playing .music-play-icon::before,
.music-card.is-playing .music-play-icon::after {
  content: "";
  position: static;
  inset: auto;
  width: 4px;
  height: 14px;
  border: 0;
  border-radius: 2px;
  background: currentColor;
  transform: none;
}

.music-progress-wrap {
  display: grid;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.music-card:hover .music-progress-wrap,
.music-card:focus-within .music-progress-wrap,
.music-card.is-playing .music-progress-wrap {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.music-progress {
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  background: transparent;
}

.music-progress::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff var(--progress, 0%), rgba(255, 255, 255, 0.28) var(--progress, 0%));
}

.music-progress::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  appearance: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.music-progress::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.music-progress::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: #fff;
}

.music-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.music-card:active {
  transform: none;
}

.photography-card {
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.photography-card:hover,
.photography-card:focus-visible,
.photography-card:focus-within {
  border: 0;
  box-shadow: none;
}

.photography-card::before {
  content: none;
}

.photography-card > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: right center;
  opacity: 1;
  transition: transform 0.45s ease, opacity 0.2s ease;
  transform: scale(1.01);
  transform-origin: center center;
}

.photography-card:hover > img {
  opacity: 1;
  transform: scale(1.05);
}

.photography-card::after {
  content: none;
}

.dark {
  background: #171717;
  color: #fff;
}

.case-card {
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.case-card > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.45s ease;
}

.case-card:hover > img {
  transform: scale(1.035);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08) 68%);
}

.case-card div {
  z-index: 2;
}

.case-card span:not(.action-icon) {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-card h2,
.tall-card h2 {
  margin: 0;
  color: #fff;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.04;
}

.siren-card {
  --siren-bg: #001f27;
  --siren-bg-2: #052b35;
  --siren-panel: #082c36;
  --siren-panel-2: #0e3540;
  --siren-panel-3: #143d48;
  --siren-text: #f0f5f6;
  --siren-muted: #9aadb2;
  --siren-accent: #dcc27d;
  --siren-accent-strong: #c7a661;
  --siren-success: #4ac284;
  --siren-error: #e55754;
  --siren-motion: 640ms;
  --siren-spring: cubic-bezier(0.18, 0.92, 0.22, 1);
  align-items: stretch;
  justify-content: space-between;
  gap: 34px;
  padding: 30px;
  background:
    radial-gradient(circle at 16% 12%, rgba(220, 194, 125, 0.16), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(74, 194, 132, 0.1), transparent 34%),
    linear-gradient(135deg, var(--siren-bg-2), var(--siren-bg) 72%);
  color: var(--siren-text);
  cursor: pointer;
  font: inherit;
  user-select: none;
  -webkit-user-select: none;
}

body.dark-mode .siren-card {
  background:
    radial-gradient(circle at 16% 12%, rgba(220, 194, 125, 0.18), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(74, 194, 132, 0.12), transparent 34%),
    linear-gradient(135deg, #052b35, #00181f 72%);
}

.siren-playground {
  display: grid;
  flex: 1 1 50%;
  min-width: 0;
  width: min(100%, 360px);
  align-items: center;
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
  touch-action: pan-y;
}

.siren-system-canvas {
  position: relative;
  width: 100%;
  height: 244px;
  overflow: hidden;
  border: 1px solid rgba(154, 173, 178, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(rgba(154, 173, 178, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 173, 178, 0.055) 1px, transparent 1px),
    rgba(0, 31, 39, 0.62);
  background-size: 36px 36px;
  box-shadow: inset 0 1px 0 rgba(240, 245, 246, 0.06), 0 18px 44px rgba(0, 0, 0, 0.18);
}

.siren-card:focus-within .siren-system-canvas {
  border-color: rgba(220, 194, 125, 0.58);
  box-shadow: inset 0 1px 0 rgba(240, 245, 246, 0.06), 0 0 0 3px rgba(220, 194, 125, 0.18), 0 18px 44px rgba(0, 0, 0, 0.18);
}

.siren-token-stack,
.siren-token-swatch,
.siren-token-core,
.siren-mock-button,
.siren-mock-input,
.siren-mini-ui {
  position: absolute;
  display: block;
  transition:
    transform var(--siren-motion) var(--siren-spring),
    width var(--siren-motion) var(--siren-spring),
    height var(--siren-motion) var(--siren-spring),
    border-radius var(--siren-motion) var(--siren-spring),
    border-color var(--siren-motion) var(--siren-spring),
    background-color var(--siren-motion) var(--siren-spring),
    box-shadow var(--siren-motion) var(--siren-spring),
    color var(--siren-motion) var(--siren-spring),
    opacity 360ms ease;
}

.siren-token-stack {
  inset: 0;
  pointer-events: none;
}

.siren-token-swatch,
.siren-token-core {
  width: var(--w);
  height: var(--h);
  border: 1px solid rgba(240, 245, 246, 0.14);
  border-radius: var(--radius);
  background: var(--color);
  box-shadow: inset 0 1px 0 rgba(240, 245, 246, 0.2), 0 12px 28px rgba(0, 0, 0, 0.2);
  opacity: var(--opacity, 1);
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r, 0deg));
}

.swatch-1 {
  --x: 24px;
  --y: 30px;
  --w: 34px;
  --h: 34px;
  --radius: 9px;
  --color: #dcc27d;
  --r: -7deg;
}

.swatch-2 {
  --x: 58px;
  --y: 24px;
  --w: 36px;
  --h: 36px;
  --radius: 14px;
  --color: #c9a75d;
  --r: 4deg;
}

.swatch-3 {
  --x: 36px;
  --y: 73px;
  --w: 46px;
  --h: 30px;
  --radius: 6px;
  --color: #e4cf91;
  --r: 3deg;
}

.swatch-4 {
  --x: 82px;
  --y: 68px;
  --w: 31px;
  --h: 42px;
  --radius: 11px;
  --color: #b8934e;
  --r: -4deg;
}

.swatch-5 {
  --x: 18px;
  --y: 116px;
  --w: 55px;
  --h: 24px;
  --radius: 999px;
  --color: #d6b56a;
  --r: -2deg;
}

.siren-token-core {
  --x: 22px;
  --y: 29px;
  --w: 52px;
  --h: 52px;
  --radius: 13px;
  --color: var(--siren-accent);
  --opacity: 0;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(240, 245, 246, 0.24), 0 16px 34px rgba(0, 0, 0, 0.24), 0 0 0 7px rgba(220, 194, 125, 0.08);
}

.siren-mock-button {
  display: inline-flex;
  width: var(--w);
  height: var(--h);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 194, 125, 0.32);
  border-radius: var(--radius);
  background: var(--button-bg);
  color: var(--button-color);
  box-shadow: inset 0 1px 0 rgba(240, 245, 246, 0.05), 0 14px 30px rgba(0, 0, 0, 0.18);
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  line-height: 1;
  transform: translate3d(var(--x), var(--y), 0);
  white-space: nowrap;
}

.button-1 {
  --x: 96px;
  --y: 38px;
  --w: 78px;
  --h: 34px;
  --radius: 999px;
  --font-size: 12px;
  --font-weight: 800;
  --button-bg: rgba(220, 194, 125, 0.16);
  --button-color: var(--siren-accent);
}

.button-2 {
  --x: 183px;
  --y: 26px;
  --w: 86px;
  --h: 45px;
  --radius: 7px;
  --font-size: 13px;
  --font-weight: 700;
  --button-bg: var(--siren-accent);
  --button-color: var(--siren-bg);
}

.siren-mock-input {
  width: var(--w);
  height: var(--h);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  background: var(--input-bg);
  box-shadow: var(--input-shadow);
  transform: translate3d(var(--x), var(--y), 0);
}

.siren-mock-input span {
  position: absolute;
  left: var(--line-x);
  right: var(--line-right);
  top: 50%;
  display: block;
  height: var(--line-h);
  border-radius: 999px;
  background: var(--line-color);
  transform: translateY(-50%);
  transition: inherit;
}

.input-1 {
  --x: 88px;
  --y: 104px;
  --w: 122px;
  --h: 39px;
  --radius: 5px;
  --border-width: 2px;
  --border-color: rgba(220, 194, 125, 0.56);
  --input-bg: rgba(8, 44, 54, 0.88);
  --input-shadow: 0 0 0 4px rgba(220, 194, 125, 0.13), inset 0 1px 0 rgba(240, 245, 246, 0.05);
  --line-x: 14px;
  --line-right: 42px;
  --line-h: 7px;
  --line-color: rgba(240, 245, 246, 0.58);
}

.input-2 {
  --x: 172px;
  --y: 153px;
  --w: 100px;
  --h: 46px;
  --radius: 13px;
  --border-width: 1px;
  --border-color: rgba(154, 173, 178, 0.28);
  --input-bg: rgba(14, 53, 64, 0.72);
  --input-shadow: inset 0 1px 0 rgba(240, 245, 246, 0.06), 0 13px 28px rgba(0, 0, 0, 0.15);
  --line-x: 17px;
  --line-right: 25px;
  --line-h: 5px;
  --line-color: rgba(154, 173, 178, 0.56);
}

.siren-mini-ui {
  width: var(--w);
  height: var(--h);
  border: 1px solid var(--border-color, rgba(154, 173, 178, 0.22));
  border-radius: var(--radius);
  background: var(--mini-bg);
  box-shadow: inset 0 1px 0 rgba(240, 245, 246, 0.05), 0 12px 26px rgba(0, 0, 0, 0.13);
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r, 0deg));
}

.mini-1 {
  --x: 230px;
  --y: 95px;
  --w: 38px;
  --h: 18px;
  --radius: 999px;
  --mini-bg: rgba(74, 194, 132, 0.14);
  --border-color: rgba(74, 194, 132, 0.24);
}

.mini-2 {
  --x: 28px;
  --y: 177px;
  --w: 72px;
  --h: 22px;
  --radius: 6px;
  --mini-bg: rgba(8, 44, 54, 0.84);
  --r: 2deg;
}

.mini-3 {
  --x: 112px;
  --y: 176px;
  --w: 36px;
  --h: 34px;
  --radius: 12px;
  --mini-bg: rgba(220, 194, 125, 0.11);
  --border-color: rgba(220, 194, 125, 0.22);
  --r: -3deg;
}

.chip-1 {
  --x: 158px;
  --y: 185px;
  --w: 52px;
  --h: 20px;
  --radius: 999px;
  --mini-bg: rgba(14, 53, 64, 0.86);
  --border-color: rgba(154, 173, 178, 0.2);
}

.chip-2 {
  --x: 194px;
  --y: 213px;
  --w: 72px;
  --h: 14px;
  --radius: 5px;
  --mini-bg: rgba(154, 173, 178, 0.12);
  --r: 1deg;
}

.tile-1 {
  --x: 237px;
  --y: 125px;
  --w: 41px;
  --h: 41px;
  --radius: 9px;
  --mini-bg: rgba(8, 44, 54, 0.78);
  --border-color: rgba(154, 173, 178, 0.2);
}

.siren-card:is(:hover, :focus-within) .siren-token-swatch {
  --x: 22px;
  --y: 29px;
  --w: 52px;
  --h: 52px;
  --radius: 13px;
  --color: var(--siren-accent);
  --r: 0deg;
  --opacity: 0.18;
}

.siren-card:is(:hover, :focus-within) .siren-token-core {
  --opacity: 1;
}

.siren-card:is(:hover, :focus-within) .button-1 {
  --x: 88px;
  --y: 29px;
  --w: 80px;
  --h: 40px;
  --radius: 8px;
  --font-size: 13px;
  --font-weight: 800;
  --button-bg: rgba(220, 194, 125, 0.15);
  --button-color: var(--siren-accent);
}

.siren-card:is(:hover, :focus-within) .button-2 {
  --x: 178px;
  --y: 29px;
  --w: 80px;
  --h: 40px;
  --radius: 8px;
  --font-size: 13px;
  --font-weight: 800;
  --button-bg: rgba(220, 194, 125, 0.15);
  --button-color: var(--siren-accent);
}

.siren-card:is(:hover, :focus-within) .input-1 {
  --x: 20px;
  --y: 100px;
  --w: 122px;
  --h: 42px;
  --radius: 8px;
  --border-width: 1px;
  --border-color: rgba(220, 194, 125, 0.42);
  --input-bg: rgba(8, 44, 54, 0.86);
  --input-shadow: 0 0 0 3px rgba(220, 194, 125, 0.14), inset 0 1px 0 rgba(240, 245, 246, 0.05);
  --line-x: 14px;
  --line-right: 34px;
  --line-h: 6px;
  --line-color: rgba(240, 245, 246, 0.6);
}

.siren-card:is(:hover, :focus-within) .input-2 {
  --x: 154px;
  --y: 100px;
  --w: 122px;
  --h: 42px;
  --radius: 8px;
  --border-width: 1px;
  --border-color: rgba(220, 194, 125, 0.42);
  --input-bg: rgba(8, 44, 54, 0.86);
  --input-shadow: 0 0 0 3px rgba(220, 194, 125, 0.14), inset 0 1px 0 rgba(240, 245, 246, 0.05);
  --line-x: 14px;
  --line-right: 34px;
  --line-h: 6px;
  --line-color: rgba(240, 245, 246, 0.6);
}

.siren-card:is(:hover, :focus-within) .mini-1 {
  --x: 20px;
  --y: 166px;
  --w: 54px;
  --h: 22px;
  --radius: 8px;
  --mini-bg: rgba(8, 44, 54, 0.86);
  --border-color: rgba(154, 173, 178, 0.22);
}

.siren-card:is(:hover, :focus-within) .mini-2 {
  --x: 82px;
  --y: 166px;
  --w: 54px;
  --h: 22px;
  --radius: 8px;
  --mini-bg: rgba(8, 44, 54, 0.86);
  --border-color: rgba(154, 173, 178, 0.22);
  --r: 0deg;
}

.siren-card:is(:hover, :focus-within) .mini-3 {
  --x: 144px;
  --y: 166px;
  --w: 54px;
  --h: 22px;
  --radius: 8px;
  --mini-bg: rgba(8, 44, 54, 0.86);
  --border-color: rgba(154, 173, 178, 0.22);
  --r: 0deg;
}

.siren-card:is(:hover, :focus-within) .chip-1 {
  --x: 206px;
  --y: 166px;
  --w: 54px;
  --h: 22px;
  --radius: 8px;
  --mini-bg: rgba(8, 44, 54, 0.86);
  --border-color: rgba(154, 173, 178, 0.22);
}

.siren-card:is(:hover, :focus-within) .chip-2 {
  --x: 268px;
  --y: 166px;
  --w: 16px;
  --h: 22px;
  --radius: 8px;
  --mini-bg: rgba(8, 44, 54, 0.86);
  --border-color: rgba(154, 173, 178, 0.22);
  --r: 0deg;
}

.siren-card:is(:hover, :focus-within) .tile-1 {
  --x: 20px;
  --y: 204px;
  --w: 264px;
  --h: 12px;
  --radius: 6px;
  --mini-bg: rgba(220, 194, 125, 0.14);
  --border-color: rgba(220, 194, 125, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .siren-card {
    --siren-motion: 0ms;
  }

  .siren-token-swatch,
  .siren-token-core,
  .siren-mock-button,
  .siren-mock-input,
  .siren-mini-ui,
  .siren-mock-input span {
    transition: none;
  }

  .siren-card .siren-token-swatch {
    --x: 22px;
    --y: 29px;
    --w: 52px;
    --h: 52px;
    --radius: 13px;
    --color: var(--siren-accent);
    --r: 0deg;
    --opacity: 0.18;
  }

  .siren-card .siren-token-core {
    --opacity: 1;
  }

  .siren-card .button-1 {
    --x: 88px;
    --y: 29px;
    --w: 80px;
    --h: 40px;
    --radius: 8px;
    --font-size: 13px;
    --font-weight: 800;
    --button-bg: rgba(220, 194, 125, 0.15);
    --button-color: var(--siren-accent);
  }

  .siren-card .button-2 {
    --x: 178px;
    --y: 29px;
    --w: 80px;
    --h: 40px;
    --radius: 8px;
    --font-size: 13px;
    --font-weight: 800;
    --button-bg: rgba(220, 194, 125, 0.15);
    --button-color: var(--siren-accent);
  }

  .siren-card .input-1,
  .siren-card .input-2 {
    --w: 122px;
    --h: 42px;
    --radius: 8px;
    --border-width: 1px;
    --border-color: rgba(220, 194, 125, 0.42);
    --input-bg: rgba(8, 44, 54, 0.86);
    --input-shadow: 0 0 0 3px rgba(220, 194, 125, 0.14), inset 0 1px 0 rgba(240, 245, 246, 0.05);
    --line-x: 14px;
    --line-right: 34px;
    --line-h: 6px;
    --line-color: rgba(240, 245, 246, 0.6);
  }

  .siren-card .input-1 {
    --x: 20px;
    --y: 100px;
  }

  .siren-card .input-2 {
    --x: 154px;
    --y: 100px;
  }

  .siren-card .mini-1,
  .siren-card .mini-2,
  .siren-card .mini-3,
  .siren-card .chip-1,
  .siren-card .chip-2 {
    --h: 22px;
    --radius: 8px;
    --mini-bg: rgba(8, 44, 54, 0.86);
    --border-color: rgba(154, 173, 178, 0.22);
    --r: 0deg;
  }

  .siren-card .mini-1 {
    --x: 20px;
    --y: 166px;
    --w: 54px;
  }

  .siren-card .mini-2 {
    --x: 82px;
    --y: 166px;
    --w: 54px;
  }

  .siren-card .mini-3 {
    --x: 144px;
    --y: 166px;
    --w: 54px;
  }

  .siren-card .chip-1 {
    --x: 206px;
    --y: 166px;
    --w: 54px;
  }

  .siren-card .chip-2 {
    --x: 268px;
    --y: 166px;
    --w: 16px;
  }

  .siren-card .tile-1 {
    --x: 20px;
    --y: 204px;
    --w: 264px;
    --h: 12px;
    --radius: 6px;
    --mini-bg: rgba(220, 194, 125, 0.14);
    --border-color: rgba(220, 194, 125, 0.2);
  }
}

.siren-info-button {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 6;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(240, 245, 246, 0.16);
  border-radius: 999px;
  background: rgba(240, 245, 246, 0.92);
  color: #162022;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.siren-card:hover .siren-info-button,
.siren-card:focus-visible .siren-info-button,
.siren-card:focus-within .siren-info-button {
  opacity: 1;
  transform: scale(1);
}

.siren-card:hover .siren-info-button {
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.siren-info-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.siren-card-copy {
  display: grid;
  flex: 0 0 min(40%, 330px);
  align-content: end;
  min-width: 0;
  padding-right: 10px;
}

.siren-card-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--siren-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.siren-card-copy h2 {
  margin: 0;
  color: var(--siren-text);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: 0.95;
}

.siren-card-copy p {
  margin: 14px 0 0;
  color: var(--siren-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.36;
}

.prototype-card {
  display: block;
  padding: 0;
  background: #d9ded8;
  clip-path: inset(0 round 32px);
}

body.dark-mode .prototype-card {
  background: #181818;
}

.prototype-card iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.prototype-try-label {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  max-width: calc(100% - 44px);
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.92);
  color: #25272c;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: center;
  animation: prototype-label-pulse 1.8s ease-in-out infinite;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.prototype-card:hover .prototype-try-label,
.prototype-card:focus-within .prototype-try-label,
.project-view-prototype:hover .prototype-try-label,
.project-view-prototype:focus-within .prototype-try-label,
.project-prototype-embed:hover .prototype-try-label,
.project-prototype-embed:focus-within .prototype-try-label {
  opacity: 0;
  animation: none;
  transform: translateY(-4px) scale(0.96);
}

.prototype-info-button {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 6;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.94);
  color: #2a2d31;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.prototype-card:hover .prototype-info-button,
.prototype-info-button:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.prototype-info-button:hover {
  background: #fff;
  transform: scale(1.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.prototype-info-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

body.dark-mode .prototype-info-button {
  background: rgba(239, 241, 246, 0.94);
  color: #25272c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

body.dark-mode .prototype-try-label {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(239, 241, 246, 0.94);
  color: #25272c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.prototype-card:hover {
  transform: translateY(-3px);
}

.prototype-card:active {
  transform: none;
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 80;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: 0 12px 42px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.project-view {
  position: fixed;
  inset: 0;
  z-index: 1200;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  color: var(--text);
  transform-origin: var(--project-origin-x, 50vw) var(--project-origin-y, 50vh);
  border-radius: 0;
}

.project-view.is-opening {
  animation: project-view-grow-in 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform, border-radius;
}

@supports (height: 100dvh) {
  .project-view {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }
}

.project-view-copy {
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 78px clamp(26px, 5vw, 72px) 72px;
}

.project-view-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: 0 12px 42px var(--shadow);
  font-size: 28px;
  line-height: 1;
}

.project-view-copy h1 {
  max-width: 820px;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.project-view-switcher {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}

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

.project-view-switcher button {
  min-width: 116px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.project-view-switcher button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 10px 30px var(--shadow);
}

.project-info-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 90px);
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.project-meta,
.project-narrative {
  display: grid;
  align-content: start;
  gap: 38px;
}

.project-meta h2,
.project-narrative h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-meta p,
.project-narrative p {
  margin: 0;
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 20px;
  line-height: 1.58;
}

.project-narrative p {
  max-width: 780px;
}

.project-narrative p + p {
  margin-top: 28px;
}

.project-tldr {
  max-width: 840px;
}

.project-tldr p {
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.24;
}

.project-continuation {
  display: grid;
  gap: 0;
}

.project-detail-figure {
  width: min(100%, 860px);
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: clamp(42px, 5vw, 64px);
  background: var(--surface);
  box-shadow: 0 18px 46px var(--shadow);
}

.project-figure-media {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.project-figure-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.project-figure-badge {
  top: 22px;
  left: 22px;
  z-index: 6;
  animation: none;
}

.project-prototype-embed {
  position: relative;
  min-height: 0;
  background: #f6f8f8;
  isolation: isolate;
}

.project-prototype-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1512 / 867;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
  clip-path: inset(0 round clamp(42px, 5vw, 64px));
}

.project-prototype-stage iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 1512px;
  max-width: none;
  height: 867px;
  border: 0;
  background: #fff;
  transform: scale(var(--project-prototype-scale, 1));
  transform-origin: left top;
  will-change: transform;
}

.prototype-cursor-capture {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}

.prototype-fullscreen-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 7;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.92);
  color: #25272c;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.prototype-fullscreen-button:hover,
.prototype-fullscreen-button:focus-visible {
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.prototype-fullscreen-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.project-detail-figure-compact {
  width: min(100%, 540px);
}

.project-media-row {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
  gap: 24px;
  margin-top: 46px;
}

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

.project-view-prototype,
.project-visual-figure {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #d9ded8;
}

body.dark-mode .project-view-prototype,
body.dark-mode .project-visual-figure {
  background: #181818;
}

.project-view-prototype iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.project-visual-figure {
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 48%),
    var(--surface);
}

.project-visual-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impact-section ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-section li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.impact-section li:first-child {
  border-top: 0;
}

.impact-section strong {
  display: block;
  background: none;
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.impact-section span {
  display: block;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.42;
}

@media (min-width: 981px) {
  .project-meta {
    position: sticky;
    top: 72px;
    align-self: start;
  }
}

@media (max-width: 980px) {
  .project-info-grid,
  .project-media-row {
    grid-template-columns: 1fr;
  }

  .project-view-copy {
    padding: 52px 28px 72px;
  }

  .project-view-copy h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .project-view-prototype,
  .project-visual-figure {
    min-height: 500px;
  }
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 16, 0.55);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  width: min(100%, 980px);
  max-height: min(860px, calc(100vh - 56px));
  overflow: auto;
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
  animation: modal-in 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: sticky;
  top: 18px;
  z-index: 5;
  grid-column: 2;
  justify-self: end;
  width: 42px;
  height: 42px;
  margin: 18px 18px -60px 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #2c2c2c;
  font-size: 26px;
  line-height: 1;
}

.modal-media {
  min-height: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.16));
}

.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.modal-copy {
  padding: 82px 48px 48px;
}

.paragraph-only-modal .modal-panel {
  display: block;
  width: min(100%, 720px);
  border-radius: 30px;
}

.paragraph-only-modal .modal-media,
.paragraph-only-modal .modal-kicker,
.paragraph-only-modal .modal-copy h1,
.paragraph-only-modal .modal-sections {
  display: none;
}

.paragraph-only-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
}

.paragraph-only-modal .modal-copy {
  padding: clamp(58px, 8vw, 82px) clamp(30px, 7vw, 64px) clamp(34px, 6vw, 54px);
}

.paragraph-only-modal .modal-summary {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 600;
  line-height: 1.32;
}

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

.prototype-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 28px;
}

.prototype-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 16, 0.62);
  backdrop-filter: blur(12px);
}

.prototype-modal-panel {
  position: relative;
  width: min(94vw, 1512px);
  height: 80vh;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
  animation: modal-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.prototype-modal-stage {
  position: absolute;
  inset: 0;
}

.prototype-modal-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.prototype-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.94);
  color: #25272c;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  font-size: 28px;
  line-height: 1;
}

.prototype-modal-close:hover,
.prototype-modal-close:focus-visible {
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.modal-kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 0.98;
}

.modal-summary {
  margin: 22px 0 34px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.modal-section {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.modal-section + .modal-section {
  margin-top: 24px;
}

.modal-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.modal-section p {
  margin: 0;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}

@keyframes project-view-grow-in {
  from {
    opacity: 0;
    border-radius: var(--project-start-radius, 0);
    transform: scale(var(--project-start-scale-x, 0.08), var(--project-start-scale-y, 0.08));
  }

  55% {
    opacity: 1;
  }

  to {
    opacity: 1;
    border-radius: 0;
    transform: scale(1);
  }
}

@keyframes photo-arrow-line {
  0% {
    transform: translate(-72%, -50%) scaleX(1);
  }

  42% {
    transform: translate(-40%, -50%) scaleX(1.28);
  }

  100% {
    transform: translate(-72%, -50%) scaleX(1);
  }
}

@keyframes photo-arrow-head {
  0% {
    transform: translate(-10%, -50%) rotate(45deg);
  }

  42% {
    transform: translate(38%, -50%) rotate(45deg);
  }

  100% {
    transform: translate(-10%, -50%) rotate(45deg);
  }
}

@keyframes prototype-label-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 18px 48px rgba(0, 139, 139, 0.24);
  }
}

@keyframes music-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes music-wave {
  0%,
  100% {
    transform: scaleY(0.48);
  }

  50% {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prototype-try-label {
    animation: none;
  }

  .project-view.is-opening {
    animation: none;
    will-change: auto;
  }
}

@media (hover: none) {
  .siren-info-button {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  body {
    background: var(--bg);
  }

  .cursor,
  .tooltip {
    display: none;
  }

  .side-controls {
    left: max(8px, env(safe-area-inset-left));
    width: 48px;
    gap: 8px;
  }

  .side-control {
    width: 48px;
    height: 48px;
  }

  .side-control-linkedin img {
    width: 48px;
    height: 48px;
    transform: translateX(-1.4px);
  }

  .side-control-theme span {
    width: 24px;
    height: 24px;
  }

  .side-control-theme span::after {
    left: 9px;
    width: 22px;
    height: 22px;
  }

  .nav {
    top: auto;
    bottom: 0;
    justify-content: center;
    padding: 0 12px calc(14px + env(safe-area-inset-bottom));
  }

  .nav.hidden {
    transform: none;
  }

  .nav-logo {
    display: none;
  }

  .nav-pills {
    position: relative;
    left: auto;
    width: min(100%, 430px);
    justify-content: center;
    transform: none;
  }

  .nav-pill {
    flex: 1;
    padding: 10px 9px;
    font-size: 13px;
  }

  .nav-pill[data-filter="Side Quests"] {
    font-size: 0;
  }

  .nav-pill[data-filter="Side Quests"]::after {
    content: "Hobbies";
    font-size: 13px;
  }

  .main {
    flex-direction: column;
    align-items: center;
    padding: 24px 24px 40px;
  }

  .mobile-logo {
    display: none;
    width: 58px;
    margin-bottom: 28px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: calc((100vw - 66px) / 2);
    gap: 18px;
    width: 100%;
  }

  .slot,
  .bento-card {
    min-height: 0;
  }

  .about-card {
    min-height: 0;
    padding: 22px;
  }

  .about-photo-card {
    gap: 18px;
    padding: 22px;
  }

  .about-avatar {
    width: clamp(88px, 34%, 130px);
  }

  .about-bio p {
    font-size: clamp(19px, 5.4vw, 25px);
    line-height: 1.08;
  }

  .case-card h2,
  .tall-card h2 {
    overflow-wrap: normal;
    font-size: clamp(18px, 5.3vw, 21px);
    line-height: 1;
  }

  .case-card {
    padding: 22px;
  }

  .music-card {
    padding: 10px;
  }

  .music-art {
    top: 10px;
    left: 10px;
    padding: 6px 8px;
  }

  .music-spotify-link {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .music-spotify-link svg {
    width: 19px;
    height: 19px;
  }

  .music-disc {
    width: 14px;
    height: 14px;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.2);
  }

  .music-wave {
    width: 2px;
    height: 10px;
  }

  .music-wave-two {
    height: 13px;
  }

  .music-wave-three {
    height: 8px;
  }

  .music-panel {
    border-radius: 18px;
  }

  .music-card:hover .music-panel,
  .music-card:focus-within .music-panel,
  .music-card.is-playing .music-panel {
    gap: 8px;
    padding: 10px;
  }

  .music-copy h2 {
    font-size: 15px;
  }

  .music-controls {
    grid-template-columns: 32px 0;
  }

  .music-card:hover .music-controls,
  .music-card:focus-within .music-controls,
  .music-card.is-playing .music-controls {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }

  .music-play-button {
    width: 32px;
    height: 32px;
  }

  .siren-card {
    flex-direction: column;
    gap: 16px;
    padding: 22px;
  }

  .siren-playground {
    width: min(100%, 360px);
    min-height: 0;
  }

  .siren-system-canvas {
    height: 228px;
  }

  .siren-info-button {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    opacity: 1;
    transform: scale(1);
  }

  .siren-card-copy {
    flex: 0 0 auto;
    padding-right: 0;
  }

  .siren-card-copy h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .siren-card-copy p {
    font-size: 15px;
  }

  .project-view-switcher {
    display: flex;
    width: 100%;
    margin-top: 22px;
  }

  .project-view-switcher button {
    flex: 1;
    min-width: 0;
  }

  .project-tldr p {
    font-size: clamp(23px, 7vw, 31px);
  }

  .quote-card {
    min-height: 180px;
  }

  .quote-card p {
    font-size: 21px;
  }

  .modal {
    padding: 14px;
  }

  .modal-panel {
    display: block;
    max-height: calc(100vh - 28px);
    border-radius: 26px;
  }

  .modal-close {
    position: sticky;
    top: 14px;
    float: right;
    margin: 14px 14px -56px 0;
  }

  .modal-media img {
    min-height: 270px;
    max-height: 380px;
  }

  .modal-copy {
    clear: both;
    padding: 34px 24px 30px;
  }

  .paragraph-only-modal .modal-panel {
    border-radius: 24px;
  }

  .paragraph-only-modal .modal-close {
    top: 12px;
    right: 12px;
  }

  .paragraph-only-modal .modal-copy {
    padding: 66px 24px 30px;
  }

  .paragraph-only-modal .modal-summary {
    font-size: clamp(20px, 6vw, 25px);
    line-height: 1.35;
  }

  .modal-copy h1 {
    font-size: clamp(32px, 10vw, 46px);
  }
}

@media (max-width: 430px) {
  .siren-playground {
    height: 200px;
    width: 100%;
  }

  .siren-system-canvas {
    width: 360px;
    height: 244px;
    transform: scale(0.82);
    transform-origin: left top;
  }
}

@media (max-width: 380px) {
  .siren-playground {
    height: 186px;
  }

  .siren-system-canvas {
    transform: scale(0.76);
  }
}

@media (max-width: 365px) {
  .siren-playground {
    height: 176px;
  }

  .siren-system-canvas {
    transform: scale(0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
