@import url('https://api.fontshare.com/v2/css?f[]=gambetta@400,500,400i&display=swap');

/* ============================================================
   WAVE RIDER: overlay must actually leave when the game starts
   ============================================================ */
.arcade-overlay {
  transition: opacity 0.3s ease, visibility 0.3s;
}
.arcade-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   OPENING DOOR: one door, one line
   ============================================================ */
.entrance {
  background-color: #14100d;
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 58%, rgba(255, 198, 128, 0.16) 0%, transparent 70%),
    linear-gradient(180deg, #1d1713 0%, #110d0b 100%);
}

.entrance .entry-content {
  gap: clamp(22px, 4vh, 40px);
  padding: 0;
}

.entrance .entry-greeting {
  font-family: 'Gambetta', 'Iowan Old Style', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f6ecdf;
  margin: 0;
}

.entrance .entry-greeting em {
  font-family: inherit;
  font-style: italic;
  font-weight: 400;
  color: #f2b872;
}

.entrance .door-scene {
  position: relative;
  margin: 0;
  perspective: 1400px;
}

/* soft floor glow so the door sits in the room */
.entrance .door-scene::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 130%;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(242, 184, 114, 0.28), transparent 68%);
  pointer-events: none;
}

.entrance .door-frame {
  width: clamp(210px, 26vh, 270px);
  height: clamp(320px, 52vh, 460px);
  padding: 9px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: #0b0908;
  box-shadow:
    0 0 0 10px #2e241d,
    0 0 0 11px rgba(255, 255, 255, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.7);
}

.entrance .inside {
  inset: 9px;
  border-radius: 2px 2px 0 0;
  padding: 0;
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(255, 214, 160, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(14, 12, 10, 0.1), rgba(14, 12, 10, 0.35)),
    url('assets/studio-interior.jpg');
  background-size: cover;
  background-position: center;
}

.entrance .door {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 2px 2px 0 0;
  background-color: #7a4d2e;
  background-image:
    linear-gradient(100deg, #5e3a22 0%, #8a5834 38%, #7a4d2e 62%, #5a3720 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset -14px 0 28px rgba(0, 0, 0, 0.28),
    8px 0 30px rgba(0, 0, 0, 0.55);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.entrance .door:hover,
.entrance .door:focus-visible {
  transform: rotateY(-16deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset -14px 0 28px rgba(0, 0, 0, 0.28),
    18px 0 44px rgba(0, 0, 0, 0.6);
}

.entrance .door:focus-visible {
  outline: 2px solid #f2b872;
  outline-offset: 14px;
}

.entrance .door-scene.entering .door {
  transform: rotateY(-108deg);
  transition-duration: 0.9s;
}

.entrance .door-panel {
  position: absolute;
  left: 16%;
  right: 16%;
  display: block;
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 2px 3px 8px rgba(0, 0, 0, 0.4),
    inset -1px -1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.06);
}
.entrance .door-panel-top { top: 8%; height: 40%; }
.entrance .door-panel-bottom { bottom: 8%; height: 36%; }

.entrance .door-handle {
  display: block;
  position: absolute;
  right: 11%;
  top: 50%;
  width: 9px;
  height: 22%;
  transform: translateY(-50%);
  border-radius: 99px;
  background: linear-gradient(90deg, #8c6a2b 0%, #f1d58a 40%, #b98f3e 70%, #6f5220 100%);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   CASE STUDY DIALOG
   ============================================================ */
dialog#study {
  --s-ink: #11131a;
  --s-muted: #454857;
  --s-bg: #eef0f5;
  --s-gutter: clamp(22px, 4.5vw, 52px);
  box-sizing: border-box;
  width: min(1060px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 6px !important;
  border: 0 !important;
  border-radius: 28px;
  background: var(--s-bg);
  color: var(--s-ink);
  box-shadow: 0 50px 120px -20px rgba(8, 9, 14, 0.55);
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 19, 26, 0.35) transparent;
}
dialog#study::backdrop {
  background: rgba(14, 15, 22, 0.62);
  backdrop-filter: blur(6px);
}

dialog#study .study-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  margin: 0;
  padding: 14px var(--s-gutter) !important;
  border: 0;
  background: rgba(238, 240, 245, 0.82);
  backdrop-filter: blur(16px);
}
dialog#study .study-top-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s-muted);
}
dialog#study #close-study {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--s-ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), background-color 0.2s;
}
dialog#study #close-study:hover { background: var(--accent-indigo); transform: rotate(-2deg) scale(1.04); }
dialog#study #close-study span:first-child { font-size: 1.25rem; line-height: 1; }

dialog#study #study-content {
  padding: 8px var(--s-gutter) clamp(32px, 5vw, 56px);
}

/* hero */
dialog#study .personal-study-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin: 0;
}
dialog#study .study-intro { padding: 0; }
dialog#study .study-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--s-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
}
dialog#study .study-byline span { padding: 0; }
dialog#study .study-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent-lime);
  color: var(--s-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 4px;
}
dialog#study #study-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
dialog#study .study-deck {
  max-width: 36ch;
  margin: 0 0 24px;
  color: var(--s-muted);
  font-family: 'Gambetta', Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
}
dialog#study .study-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
dialog#study .study-external {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--s-ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-ambient);
  transition: transform 0.25s var(--ease-spring), background-color 0.2s;
}
dialog#study .study-external:hover { background: var(--accent-indigo); transform: translateY(-2px) rotate(-1deg); }
dialog#study .study-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--s-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-ambient);
}

/* figure stage */
dialog#study .study-figure {
  position: relative;
  margin: 0;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 30px 30px 30px 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(217, 249, 157, 0.35), transparent 42%),
    radial-gradient(circle at 12% 90%, rgba(79, 70, 229, 0.55), transparent 50%),
    #161822;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}
dialog#study .study-figure .project-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
dialog#study .study-figure .project-visual img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 430px;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-2.5deg);
  transition: transform 0.5s var(--ease-spring);
}
dialog#study .study-figure:hover .project-visual img { transform: rotate(0deg) scale(1.02); }
dialog#study .project-visual.image-pontune img { width: min(60%, 200px); background: #292541; padding: 28px; }
dialog#study .project-visual.image-roblox img { width: 100%; max-height: 320px; object-fit: cover; }
dialog#study .study-figure figcaption {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* typing demo */
dialog#study .try-demo {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 24px;
  background: var(--accent-lime);
  color: var(--s-ink);
}
dialog#study .try-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
dialog#study .try-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; }
dialog#study .try-head span { font-size: 0.8125rem; font-weight: 600; opacity: 0.72; }
dialog#study .try-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 18px; }
dialog#study .try-presets { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(17, 19, 26, 0.1); }
dialog#study .try-presets button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--s-ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
dialog#study .try-presets button[aria-pressed="true"] { background: var(--s-ink); color: #fff; }
dialog#study .try-speed { display: inline-flex; align-items: center; gap: 12px; font-size: 0.875rem; font-weight: 600; }
dialog#study .try-speed input { width: clamp(120px, 20vw, 200px); accent-color: var(--s-ink); }
dialog#study .try-speed output { min-width: 4.5em; font-family: var(--font-mono); font-size: 0.8125rem; }
dialog#study .try-output {
  min-height: 4.4em;
  max-width: none;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  font-family: 'Gambetta', Georgia, serif;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.45;
}
dialog#study .try-output:not(:empty)::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent-indigo);
}

/* notes */
dialog#study .project-story { margin: clamp(32px, 4.5vw, 52px) 0 0; padding: 0; border: 0; }
dialog#study #study-story-title {
  margin: 0 0 18px;
  color: var(--s-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
dialog#study .study-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  counter-reset: note;
}
dialog#study .study-note,
dialog#study .study-note + .study-note {
  position: relative;
  counter-increment: note;
  margin: 0;
  padding: 28px 26px 26px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-ambient);
}
dialog#study .study-note + .study-note { margin-top: 36px; background: var(--s-ink); color: #fff; border-radius: 24px 24px 8px 24px; }
dialog#study .study-note::before {
  content: '0' counter(note);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-indigo);
}
dialog#study .study-note + .study-note::before { color: var(--accent-lime); }
dialog#study .study-note h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: inherit;
}
dialog#study .study-note p { max-width: none; margin: 0; color: var(--s-muted); font-size: 0.9375rem; line-height: 1.65; }
dialog#study .study-note + .study-note p { color: rgba(255, 255, 255, 0.78); }

@media (max-width: 760px) {
  dialog#study { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 22px; }
  dialog#study .personal-study-hero,
  dialog#study .study-notes { grid-template-columns: minmax(0, 1fr); }
  dialog#study .study-note + .study-note { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  dialog#study .study-figure .project-visual img { transform: none; transition: none; }
}

/* ============================================================
   LANDING + SHEET
   ============================================================ */
.landing {
  --p: 0;
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  margin: -20px 0 0 calc(50% - 50vw);
  overflow: hidden;
  perspective: 1200px;
}
#portfolio-shell.landing-gone .landing { visibility: hidden; }

.landing::before {
  content: '';
  position: absolute;
  left: -8vw;
  bottom: -14vh;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  background: var(--accent-lime);
  opacity: 0.48;
  filter: blur(68px);
  pointer-events: none;
  transform: translate3d(calc(var(--p) * 12vw), calc(var(--p) * -10vh), 0) scale(calc(1 + var(--p) * 0.25));
}

.landing-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(22px, 5vw, 72px);
  transform: scale(calc(1 - var(--p) * 0.14)) translateY(calc(var(--p) * -40px));
  opacity: calc(1 - var(--p) * 1.2);
  transform-origin: 50% 42%;
  will-change: transform, opacity;
}

.landing-name {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.8rem, 12.2vw, 11.2rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--ink-primary);
  max-width: none;
}
.ln-word { display: block; white-space: nowrap; }
.ln-a { transform: translateX(calc(var(--p) * -18vw)); }
.ln-b { margin-left: clamp(0px, 10vw, 175px); transform: translateX(calc(var(--p) * 18vw)); }
.ln-ch {
  display: inline-block;
  transform: translateY(var(--lift, 0px)) rotate(var(--tilt, 0deg)) scale(var(--scale, 1));
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.ln-dot {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  aspect-ratio: 1 / 1;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--accent-indigo);
}

.landing-tag {
  margin: clamp(18px, 3vh, 34px) 0 0 clamp(2px, 0.6vw, 8px);
  font-family: 'Gambetta', Georgia, serif;
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  color: var(--ink-secondary);
  transform: translateY(calc(var(--p) * 28px));
}
.landing-tag em { color: var(--accent-indigo); font-style: italic; }

.landing-card {
  --dx: 0px; --dy: 0px; --r: 0deg; --rx: 0deg; --ry: 0deg; --scroll-y: -90px; --scroll-r: 0deg;
  position: absolute;
  display: block;
  padding: 7px 7px 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-elevated);
  color: var(--ink-primary);
  text-decoration: none;
  transform-style: preserve-3d;
  transform:
    perspective(900px)
    translate3d(var(--dx), calc(var(--dy) + var(--p) * var(--scroll-y)), 0)
    rotate(calc(var(--r) + var(--p) * var(--scroll-r)))
    rotateX(var(--rx))
    rotateY(var(--ry));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-card:hover, .landing-card:focus-visible {
  transform:
    perspective(900px)
    translate3d(var(--dx), calc(var(--dy) + var(--p) * var(--scroll-y) - 6px), 0)
    rotate(0deg)
    rotateX(var(--rx))
    rotateY(var(--ry))
    scale(1.06);
  box-shadow: 0 36px 80px -12px rgba(17, 19, 26, 0.22);
  z-index: 4;
}
.landing-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-card:hover img {
  transform: scale(1.04);
}
.landing-card span {
  display: block;
  padding: 9px 10px 11px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.lc-1 {
  --r: 4deg;
  --scroll-y: -145px;
  --scroll-r: 12deg;
  top: 9%;
  right: 5%;
  width: clamp(148px, 16.5vw, 240px);
}
.lc-1 img { aspect-ratio: 4 / 3; }

.lc-3 {
  --r: -4.5deg;
  --scroll-y: -95px;
  --scroll-r: -14deg;
  top: 37%;
  right: 21%;
  width: clamp(148px, 16vw, 232px);
}
.lc-3 img { aspect-ratio: 4 / 3; }

.lc-2 {
  --r: 3deg;
  --scroll-y: -50px;
  --scroll-r: 9deg;
  bottom: 9%;
  right: 6%;
  width: clamp(160px, 18.5vw, 272px);
}
.lc-2 img { aspect-ratio: 16 / 10; }

.landing-cue {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  bottom: clamp(20px, 4.5vh, 44px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
}
.cue-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-ink);
  color: #fff;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}
.cue-ring svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cueBob 2.2s ease-in-out infinite;
}
.landing-cue:hover .cue-ring { background: var(--accent-indigo); transform: translateY(4px) scale(1.06); }
@keyframes cueBob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* Re-playable Door -> Landing entrance choreography */
.landing.is-live .ln-ch {
  animation: chIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 32ms) backwards;
}
.landing.is-live .ln-dot {
  animation: dotIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 410ms backwards;
}
.landing.is-live .landing-tag {
  animation: tagIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 320ms backwards;
}
.landing.is-live .landing-card {
  animation: lcIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 180ms backwards;
}
.landing.is-live .lc-3 { animation-delay: 280ms; }
.landing.is-live .lc-2 { animation-delay: 380ms; }
.landing.is-live .landing-cue {
  animation: tagIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 460ms backwards;
}

@keyframes chIn {
  from { opacity: 0; translate: 0 54px; rotate: 4deg; }
}
@keyframes dotIn {
  from { opacity: 0; scale: 0; }
}
@keyframes tagIn {
  from { opacity: 0; translate: 0 28px; }
}
@keyframes lcIn {
  from { opacity: 0; translate: 40px 64px; scale: 0.92; }
}

/* Sheet sliding up cleanly over the landing page */
.site-sheet {
  position: relative;
  z-index: 3;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 28px max(clamp(18px, 3.5vw, 44px), calc((100vw - 1280px) / 2 + 44px)) 0;
}
.site-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 44px 44px 0 0;
  background: var(--bg-canvas);
  box-shadow: 0 -30px 80px -10px rgba(17, 19, 26, 0.16);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
#portfolio-shell.landing-gone .site-sheet::before { background: transparent; box-shadow: none; }

.site-sheet header {
  opacity: calc(0.25 + var(--sheet-in, 0) * 0.75);
  transform: translateY(calc((1 - var(--sheet-in, 0)) * 24px));
  transition: opacity 0.25s ease-out;
}
.site-sheet .trio-card {
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-sheet .trio-card:hover {
  transform: translateY(-6px) scale(1.015);
}
.site-sheet .trio-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-sheet .trio-card:hover .trio-bg-photo {
  transform: scale(1.06);
}

/* Smooth wave scroll reveal across all sections & cards */
.wave-reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.975);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.wave-reveal.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* less text: details live inside the project dialogs */
.project-copy > p,
body:not(.summary-mode) .summary-details,
.art-note,
.project-meta span:last-child { display: none; }

@media (max-width: 960px) {
  .landing-name { font-size: clamp(3.5rem, 15vw, 7rem); }
  .ln-b { margin-left: 8vw; }
  .lc-1 { top: 6%; right: 4%; width: clamp(120px, 28vw, 190px); }
  .lc-3 { top: 27%; right: 10%; width: clamp(120px, 27vw, 185px); }
  .lc-2 { bottom: 13%; right: 5%; width: clamp(136px, 32vw, 220px); }
}

@media (max-width: 760px) {
  .landing-name { font-size: clamp(3.3rem, 20vw, 6.2rem); }
  .ln-b { margin-left: 6vw; }
  .lc-1 { top: 5%; right: 4%; width: 34vw; }
  .lc-3 { top: 13%; right: 34%; width: 30vw; }
  .lc-2 { bottom: 16%; right: 5%; width: 42vw; }
  .site-sheet::before { border-radius: 28px 28px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-inner, .ln-a, .ln-b, .landing-card, .site-sheet header, .wave-reveal {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .landing.is-live .landing-card,
  .landing.is-live .ln-ch,
  .landing.is-live .ln-dot,
  .landing.is-live .landing-tag,
  .landing.is-live .landing-cue,
  .cue-ring svg { animation: none !important; }
}
