:root {
  color-scheme: dark;
  --control-accent: #fff;
  --page-background: #000;
  --page-foreground: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: clip;
  margin: 0;
  background: var(--page-background);
}

body {
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

.shader {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100svh;
  pointer-events: none;
  mix-blend-mode: multiply;
  image-rendering: pixelated;
}

.air-hockey-goal {
  --air-hockey-goal-width: 180px;
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 5;
  width: var(--air-hockey-goal-width);
  height: 2px;
  color: var(--page-foreground);
  pointer-events: none;
  opacity: 0;
  background: transparent;
  transform: translate3d(-50%, -100%, 0);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.air-hockey-goal::before {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 100vh;
  content: "";
  background: var(--page-background);
}

.air-hockey-goal::after {
  position: absolute;
  inset: 0;
  content: "";
  background: currentColor;
  opacity: 0.78;
}

body.air-hockey-mode .air-hockey-goal {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}


.air-hockey-hud {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 6;
  display: flex;
  width: 180px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--page-foreground);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -8px, 0);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}


body.air-hockey-mode .air-hockey-hud {
  opacity: 0.72;
  transform: translate3d(-50%, 0, 0);
}

body.air-hockey-round-over .air-hockey-hud {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.air-hockey-score-burst {
  position: fixed;
  top: 42px;
  left: 50%;
  z-index: 7;
  color: var(--page-foreground);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, 10px, 0) scale(0.7);
}

.air-hockey-score-burst.is-visible {
  animation: air-hockey-score-burst 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes air-hockey-score-burst {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 12px, 0) scale(0.65);
  }

  22% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1.18);
  }

  55% {
    opacity: 1;
    transform: translate3d(-50%, -6px, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -22px, 0) scale(0.92);
  }
}

body.air-hockey-round-over .ring-hit-target {
  pointer-events: none;
}

.air-hockey-end-card {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--page-foreground);
  background: color-mix(in srgb,
      var(--page-background) 78%,
      transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 220ms ease,
    visibility 0s linear 220ms;
}

body.air-hockey-show-results .air-hockey-end-card {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.air-hockey-end-card-panel {
  width: min(372px, 100%);
  max-width: 100%;
  min-width: 0;
  max-height: calc(100svh - 36px);
  /* Keep the 5px focus ring inside the scroll container's clipping edge. */
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  text-align: center;
  transform: translate3d(0, 18px, 0) scale(0.96);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.air-hockey-show-results .air-hockey-end-card-panel {
  transform: translate3d(0, 0, 0) scale(1);
}

.air-hockey-end-card-panel::-webkit-scrollbar {
  display: none;
}

.air-hockey-end-card-kicker,
.air-hockey-end-card-subtitle {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.5;
}

.air-hockey-end-card h2 {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  margin: 8px 0 4px;
  font-weight: 400;
}

.air-hockey-final-score {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: min(clamp(64px, 18vw, 90px), calc(100cqw / var(--score-digits, 1) / 0.6));
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.air-hockey-final-label {
  margin-top: 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.air-hockey-end-card-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.air-hockey-end-card button {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--page-background);
  font: inherit;
  background: var(--page-foreground);
  border: 1px solid var(--page-foreground);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.air-hockey-end-card button:focus-visible {
  outline: 2px solid var(--page-foreground);
  outline-offset: 3px;
}

.air-hockey-end-card .air-hockey-replay {
  color: var(--page-foreground);
  background: transparent;
}

.air-hockey-end-card .air-hockey-done {
  width: auto;
  min-height: 36px;
  margin-top: 12px;
  padding: 6px 14px;
  color: var(--page-foreground);
  background: transparent;
  border-color: transparent;
  opacity: 0.55;
}

.air-hockey-leaderboard {
  min-width: 0;
  margin-top: 20px;
  overflow: hidden;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}

.air-hockey-leaderboard-heading,
.air-hockey-leaderboard-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(72px, 42%);
  align-items: center;
  text-align: left;
}

.air-hockey-leaderboard-heading {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
}

.air-hockey-leaderboard-heading h3 {
  grid-column: 1 / 3;
  margin: 0;
  font: inherit;
}

.air-hockey-leaderboard-heading span {
  text-align: right;
}

.air-hockey-leaderboard-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.air-hockey-leaderboard-list li {
  min-height: 21px;
}

.air-hockey-leaderboard-rank {
  font-size: 11px;
  opacity: 0.42;
}

.air-hockey-leaderboard-initials {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.14em;
}

.air-hockey-leaderboard-score {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.air-hockey-leaderboard-form {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.air-hockey-leaderboard-form[hidden] {
  display: none;
}

.air-hockey-leaderboard-form>label {
  font-size: 12px;
  text-align: left;
  opacity: 0.62;
}

.air-hockey-initials-row,
.air-hockey-initials {
  display: flex;
  gap: 6px;
}

.air-hockey-initials {
  flex: 1;
}

.air-hockey-initials input {
  width: 42px;
  min-width: 0;
  height: 42px;
  padding: 0;
  color: var(--page-foreground);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 50%;
  outline: none;
  caret-color: transparent;
  -webkit-appearance: none;
}

.air-hockey-initials input:focus {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}

.air-hockey-end-card .air-hockey-leaderboard-submit {
  width: auto;
  min-width: 76px;
  min-height: 42px;
  padding: 8px 16px;
}

.air-hockey-leaderboard-submit:disabled {
  cursor: wait;
  opacity: 0.5;
}

.air-hockey-leaderboard-status {
  min-height: 16px;
  margin: 6px 0 -2px;
  font-size: 11px;
  opacity: 0.55;
}

.air-hockey-leaderboard-status.is-error {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {

  .air-hockey-end-card,
  .air-hockey-end-card-panel {
    transition: none;
  }
}


.air-hockey-goal.is-scored::after {
  animation: air-hockey-goal-score 360ms ease-out;
}

@keyframes air-hockey-goal-score {

  0%,
  100% {
    filter: none;
    opacity: 0.78;
  }

  35% {
    filter: drop-shadow(0 0 14px currentColor);
    opacity: 1;
  }
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-background);
}

.shader-controls {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: min(240px, calc(100vw - 32px));
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}

body.is-local .shader-controls {
  display: block;
}

.shader-controls summary {
  display: block;
  width: max-content;
  margin-left: auto;
  padding: 6px 8px;
  cursor: pointer;
  background: #000;
  border: 1px solid var(--control-accent);
  list-style: none;
}

.shader-controls summary::-webkit-details-marker {
  display: none;
}

.control-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  background: #000;
  border: 1px solid var(--control-accent);
}

.control-grid label {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.control-grid input,
.control-grid select {
  width: 100%;
  min-width: 0;
  accent-color: var(--control-accent);
}

.control-grid input[type="color"] {
  height: 22px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--control-accent);
}

.control-grid input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.control-grid input[type="color"]::-webkit-color-swatch {
  border: 0;
}

.control-grid select {
  color: #fff;
  background: #000;
  border: 1px solid var(--control-accent);
}

.artwork {
  position: relative;
  width: min(100%, calc(100svh * 469 / 852));
  aspect-ratio: 469 / 852;
  flex: 0 0 auto;
  container-type: inline-size;
  background: var(--page-background);
}

.circular-view {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  display: block;
  color: var(--page-foreground);
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  contain: layout size style;
  backface-visibility: hidden;
  will-change: transform;
  pointer-events: none;
}

.ring-hit-target {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: auto;
  touch-action: none;
}

.circular-view,
.circular-view * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.circular-view canvas {
  -webkit-user-drag: none;
}

.circular-view.is-dragging {
  cursor: grabbing;
}

.circular-view.is-goal-transit .ring-hit-target,
.spawned-ring.is-passive .ring-hit-target {
  pointer-events: none;
}

.spawned-ring.is-passive {
  cursor: default;
}

.circle-controls {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  width: min(220px, calc(100vw - 32px));
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}

body.show-tweaks .circle-controls {
  display: block;
}

.circle-controls summary {
  display: block;
  width: max-content;
  margin-left: auto;
  padding: 6px 8px;
  cursor: pointer;
  background: #000;
  border: 1px solid #fff;
  list-style: none;
}

.circle-controls summary::-webkit-details-marker {
  display: none;
}

.circle-controls .control-grid {
  border-color: #fff;
}

.circle-controls label {
  grid-template-columns: 52px 1fr;
  gap: 4px 10px;
}

.circle-controls output {
  justify-self: end;
  color: #aaa;
  font-variant-numeric: tabular-nums;
}

.circle-controls input {
  grid-column: 1 / -1;
}

.circle-controls select {
  justify-self: stretch;
}

.circle-reset,
.circle-save,
.sound-test {
  padding: 3px 7px;
  color: #fff;
  font: inherit;
  cursor: pointer;
  background: #000;
  border: 1px solid #fff;
}

.circle-reset:hover,
.circle-reset:focus-visible,
.circle-save:hover,
.circle-save:focus-visible,
.sound-test:hover,
.sound-test:focus-visible {
  color: #000;
  background: #fff;
}

@media (max-width: 700px) {
  .circle-controls {
    right: 10px;
    bottom: 10px;
    width: min(190px, calc(100vw - 20px));
  }
}

.ball-deform {
  width: 100%;
  height: 100%;
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
}


.ring-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  backface-visibility: hidden;
}



.control-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}


body.is-production:not(.show-tweaks) .circle-controls {
  display: none !important;
}

.circle-debug {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 50;
  display: none;
  padding: 8px 10px;
  color: #fff;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-variant-numeric: tabular-nums;
  white-space: pre;
  pointer-events: none;
  user-select: none;
  background: rgb(0 0 0 / 78%);
  border: 1px solid rgb(255 255 255 / 55%);
}

body.show-tweaks .circle-debug {
  display: block;
}

.audio-keeper {
  display: none;
}

.audio-start {
  position: fixed;
  z-index: 1000;
  top: max(24px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  color: var(--page-foreground);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.audio-start[hidden] {
  display: none;
}

.audio-debug {
  position: fixed;
  z-index: 1100;
  top: max(8px, env(safe-area-inset-top));
  right: 8px;
  max-width: calc(100vw - 16px);
  padding: 8px 10px;
  border-radius: 7px;
  background: rgb(0 0 0 / 82%);
  color: #fff;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  pointer-events: none;
}

/* Newsletter section inside Air Hockey End Card */
.air-hockey-newsletter-box {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.air-hockey-newsletter-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}

.air-hockey-newsletter-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

.air-hockey-newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.air-hockey-newsletter-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.air-hockey-newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.air-hockey-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.air-hockey-venom-anchor {
  position: relative;
  width: 180px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.air-hockey-newsletter-status {
  font-size: 12px;
  margin: 0;
}

.air-hockey-newsletter-status.success {
  color: #4ade80;
}

.air-hockey-newsletter-status.error {
  color: #f87171;
}

/* Stage Canvas for Venom WebGL Simulation */
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

/* Venom Button Hit Element */
.venom {
  position: fixed;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font: 700 16px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  cursor: pointer;
  z-index: 30;
}

.venom:focus {
  outline: none;
}

/* Moving strip marquee */
.moving-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.moving-strip.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.moving-strip-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: strip-marquee 22s linear infinite;
  padding: 10px 0;
}

.moving-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.moving-strip-badge {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.7rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes strip-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Flying text ascension */
.flying-text-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

.flying-letter {
  position: fixed;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  white-space: pre;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
  will-change: transform, opacity;
}

/* About Portfolio Page matching Reference Screenshot */
.about-page-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 5rem 1.5rem 8rem;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.about-page-view.active {
  opacity: 1;
  pointer-events: auto;
}

body.about-active {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.about-container {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}

/* Header */
.about-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.about-header-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}

.about-header-sub {
  font-size: 0.88rem;
  color: #777;
  margin: 0;
}

/* Sections */
.about-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.about-paragraph {
  font-size: 0.92rem;
  line-height: 1.68;
  color: #a8a8a8;
  margin: 0;
}

.about-paragraph a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #555;
  transition: text-decoration-color 0.2s;
}

.about-paragraph a:hover {
  text-decoration-color: #fff;
}

/* Experience List */
.about-exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.about-exp-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.about-exp-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-exp-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #444;
}

.about-exp-role {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.about-exp-date {
  font-size: 0.82rem;
  color: #666;
  white-space: nowrap;
}

/* Experiments & Writing */
.about-grid-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.about-grid-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #444;
}

.about-grid-desc {
  font-size: 0.85rem;
  color: #777;
  margin: 0.25rem 0 0;
}

.about-grid-date {
  font-size: 0.82rem;
  color: #666;
  white-space: nowrap;
}

/* Subscribe Section with Venom Button */
.about-newsletter-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid #1a1a1a;
  position: relative;
}

.about-newsletter-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin: 0;
}

.about-newsletter-form {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.about-newsletter-input {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
  background: #111;
  border: 1px solid #282828;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.about-newsletter-input:focus {
  border-color: #666;
  background: #161616;
}

.about-venom-anchor {
  position: relative;
  width: 170px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-newsletter-status {
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

.about-newsletter-status.success {
  color: #4ade80;
}

.about-newsletter-status.error {
  color: #f87171;
}

.about-colophon {
  margin-top: 2rem;
  color: #444;
  font-size: 0.82rem;
}

/* Portfolio Overlay Theme */
.stevealdrin-clone-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stevealdrin-clone-view.active {
  opacity: 1;
  pointer-events: auto;
}

body.stevealdrin-active {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #ffffff !important;
}

/* Ensure reveal animation elements become visible smoothly */
.stevealdrin-clone-view .opacity-0.translate-y-2 {
  opacity: 1 !important;
  transform: none !important;
}

/* Newsletter section */
.stevealdrin-newsletter-section {
  margin-top: 48px;
  padding: 32px 0 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stevealdrin-newsletter-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #171717;
  margin: 0;
}

.stevealdrin-newsletter-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

.stevealdrin-newsletter-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.stevealdrin-newsletter-input {
  flex: 1;
  min-width: 250px;
  max-width: 380px;
  height: 50px;
  box-sizing: border-box;
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 0 28px;
  color: #09090b;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.stevealdrin-newsletter-input::placeholder {
  color: #71717a;
}

.stevealdrin-newsletter-input:focus {
  border-color: rgba(0, 47, 167, 0.4);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.1), 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.stevealdrin-venom-anchor {
  position: relative;
  width: 170px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smoky Button Component Styles - Exact match to design */
.smoky-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 9999px;
  padding: 12px 32px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #09090b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  min-width: 270px;
  height: 50px;
  margin: 0;
  box-sizing: border-box;
  vertical-align: middle;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

html.dark .smoky-button {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.4);
}

.smoky-button:hover {
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 8px 28px -4px rgba(0, 47, 167, 0.28), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 47, 167, 0.3);
}

.smoky-button:active {
  transform: translateY(0) scale(0.985);
}

.smoky-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.smoky-button__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.smoky-button__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  line-height: 1.15;
  gap: 1px;
  pointer-events: none;
}

.smoky-button__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #09090b;
}

html.dark .smoky-button__label {
  color: #ffffff;
}

.smoky-button__status {
  font-size: 13px;
  font-weight: 400;
  color: #71717a;
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
}

html.dark .smoky-button__status {
  color: #a1a1aa;
}

.stevealdrin-newsletter-status {
  font-size: 14px;
  margin: 4px 0 0;
}

.stevealdrin-newsletter-status.success {
  color: #16a34a;
}

.stevealdrin-newsletter-status.error {
  color: #dc2626;
}

/* Custom Journey List Styling */
.portfolio-journey-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 16px 0 !important;
}

.portfolio-journey-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  line-height: 1.75;
  color: #374151;
}

html.dark .portfolio-journey-list li {
  color: #d1d5db;
}

.portfolio-journey-list li::before {
  content: "—";
  position: absolute;
  left: 2px;
  top: 0;
  color: #9ca3af;
  font-weight: 500;
}

html.dark .portfolio-journey-list li::before {
  color: #6b7280;
}

/* Force Sakura Tree & Petal Canvas to render gracefully */
.sakura-scene {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.stevealdrin-active .sakura-scene {
  opacity: 1 !important;
}

.sakura-tree-margin {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: clamp(220px, calc((100vw - 744px) / 2 + 120px), 440px) !important;
  height: 100vh !important;
  display: block !important;
  pointer-events: none !important;
  overflow: visible !important;
}

.sakura-tree {
  position: fixed !important;
  top: 0 !important;
  left: -15px !important;
  bottom: 0 !important;
  width: clamp(240px, calc((100vw - 744px) / 2 + 140px), 440px) !important;
  height: 100vh !important;
  opacity: 0.9 !important;
  display: block !important;
  pointer-events: none !important;
  object-fit: contain !important;
  object-position: left center !important;
}

@media (max-width: 900px) {

  .sakura-tree-margin,
  .sakura-tree {
    width: 200px !important;
    opacity: 0.4 !important;
  }
}

.sakura-air {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  display: block !important;
  z-index: 12 !important;
}

/* Dark Theme Variables & Styling for Cloned View */
html.dark .stevealdrin-clone-view {
  background: #09090b !important;
  color: #f3f4f6 !important;
}

html.dark body.stevealdrin-active {
  background: #09090b !important;
}

html.dark .portfolio {
  color: #d1d5db !important;
}

html.dark .portfolio h2 {
  color: #f9fafb !important;
}

html.dark .portfolio h3 {
  color: #9ca3af !important;
}

html.dark .portfolio strong {
  color: #f3f4f6 !important;
}

html.dark .portfolio a {
  color: #f3f4f6 !important;
  text-decoration-color: #4b5563 !important;
}

html.dark .portfolio a:hover {
  text-decoration-color: #f3f4f6 !important;
  color: #ffffff !important;
}

html.dark .portfolio-intro {
  border-bottom: 1px solid #27272a !important;
}

html.dark .portfolio-shell header {
  background: rgba(9, 9, 11, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark .introLine .text-gray-900 {
  color: #f9fafb !important;
}

html.dark .text-gray-600 {
  color: #9ca3af !important;
}

html.dark .hover\:text-gray-900:hover {
  color: #ffffff !important;
}

html.dark .stevealdrin-newsletter-section {
  border-top: 1px solid #27272a !important;
}

html.dark .stevealdrin-newsletter-title {
  color: #f9fafb !important;
}

html.dark .stevealdrin-newsletter-desc {
  color: #9ca3af !important;
}

html.dark .stevealdrin-newsletter-input {
  background: #18181b !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f4f4f5 !important;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.4) !important;
}

html.dark .stevealdrin-newsletter-input::placeholder {
  color: #a1a1aa;
}

html.dark .stevealdrin-newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: #27272a !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: #111827;
  cursor: pointer;
  transition: all 0.2s ease;
}

html.dark .theme-toggle-btn {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
}

.theme-toggle-btn:active {
  transform: scale(0.96);
}

/* Dynamic Glassmorphism Blur Header on Scroll */
.stevealdrin-clone-view header {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

html.dark .stevealdrin-clone-view header {
  background: rgba(9, 9, 11, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Ensure header text matches theme */
.stevealdrin-clone-view header nav a,
.stevealdrin-clone-view header nav div {
  color: inherit !important;
}

/* Ensure the fixed top-right toggle sits on the highest z-index above all canvases */
.theme-toggle-wrapper {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

/* Elegant Circular Shockwave & Particle Aura Break Transition */
.shockwave-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shockwave-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.4);
  animation: shockwave-expand 0.95s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.shockwave-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(220, 150, 180, 0.6) 45%, transparent 75%);
  animation: flash-expand 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shockwave-expand {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }

  60% {
    opacity: 0.8;
  }

  100% {
    transform: scale(26);
    opacity: 0;
  }
}

@keyframes flash-expand {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }

  50% {
    transform: scale(8);
    opacity: 0.6;
  }

  100% {
    transform: scale(18);
    opacity: 0;
  }
}

/* Smooth Portfolio Entrance Transition */
.stevealdrin-clone-view {
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stevealdrin-clone-view .portfolio-shell {
  transform: translateY(16px);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.stevealdrin-clone-view.active .portfolio-shell {
  transform: translateY(0);
}

/* Cinematic Shockwave Transition Animation */
.shockwave-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shockwave-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 220, 235, 0.5) 40%, transparent 75%);
  animation: shockwave-flash 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shockwave-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 40px rgba(255, 200, 220, 0.6);
  animation: shockwave-expand 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shockwave-flash {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }

  50% {
    transform: scale(2.8);
    opacity: 0.85;
  }

  100% {
    transform: scale(5.5);
    opacity: 0;
  }
}

@keyframes shockwave-expand {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(14);
    opacity: 0;
  }
}