/* ==========================================================================
   Studio Heisenberg - Production UI/UX & Visual Effects Polish Layer
   All three approved tiers active by default across the Calm site.
   Preserves the Calm palette, Open Sans typography, and all approved copy.
   ========================================================================== */

/* --------------------------------------------------------------------------
   TIER 3 - Cross-page View Transitions, Micro-Typography, Texture, Mobile Scrim
   -------------------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(158, 85, 48, 0.2);
  color: #331111;
}

.contact ::selection,
footer ::selection {
  background: rgba(217, 160, 126, 0.34);
  color: #F2EEEA;
}

.lbl,
.p1-list b,
.stats b,
.fp,
.pmeta,
.tq-counter {
  font-variant-numeric: tabular-nums;
}

/* Featherweight architectural paper grain over light & espresso surfaces */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Scroll progress hairline seamlessly attached to header bottom */
.sh-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--clay) 0%, #C4764B 100%);
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sh-progress.show {
  opacity: 0.92;
}

/* Custom ivory chevron for dark-band <select> inputs */
.contact select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23CDBFB4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 15px 15px;
}

/* Tactile button press */
.cta:active,
.btn:active,
.send:active {
  transform: translateY(0) scale(0.98);
}

/* Mobile menu backdrop scrim */
.sh-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(28, 16, 16, 0.36);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.sh-nav-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   TIER 1 - Adaptive Header, Hero Choreography, Scroll Reveals, Sliders, Quotes
   -------------------------------------------------------------------------- */

/* T1.1: Unified smooth header + adaptive smoked-glass mode over dark bands
   Scoped to body > header (and header.site) so inner blog article <header> tags stay untouched. */
body > header,
body > header.site {
  background: rgba(237, 235, 238, 0.84);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background 0.42s var(--ease), border-color 0.42s var(--ease),
              box-shadow 0.42s var(--ease), color 0.35s ease;
}

body > header.scrolled,
body > header.site.scrolled {
  background: rgba(237, 235, 238, 0.93);
  border-bottom-color: rgba(51, 17, 17, 0.11);
  box-shadow: 0 10px 30px rgba(51, 17, 17, 0.045);
}

/* Adaptive dark glass header when scrolled over full-bleed dark panels & contact */
body > header.on-dark,
body > header.site.on-dark {
  background: rgba(28, 16, 16, 0.72);
  border-bottom-color: rgba(242, 238, 234, 0.12);
  box-shadow: 0 12px 34px rgba(10, 4, 4, 0.24);
  color: #F2EEEA;
}

body > header.on-dark .brand img,
body > header.on-dark .crumb img {
  filter: brightness(0) invert(1);
  opacity: 0.94;
  transition: filter 0.35s ease;
}

body > header .brand img,
body > header .crumb img {
  transition: filter 0.35s ease, transform 0.4s var(--ease);
}

body > header .brand:hover img,
body > header .crumb a:hover img {
  transform: scale(1.04);
}

body > header.on-dark nav .links a,
body > header.site.on-dark nav .links a {
  color: rgba(242, 238, 234, 0.74);
}

body > header.on-dark nav .links a:hover,
body > header.on-dark nav .links a.active,
body > header.site.on-dark nav .links a:hover,
body > header.site.on-dark nav .links a.active {
  color: #FFFFFF;
}

body > header.on-dark nav .links a.sep {
  border-left-color: rgba(242, 238, 234, 0.2);
}

body > header.on-dark nav .links a::after {
  background: #F2EEEA;
}

body > header.on-dark .cta,
body > header.on-dark nav > .btn {
  background: #F2EEEA;
  color: #1C1010;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

body > header.on-dark .cta:hover,
body > header.on-dark nav > .btn:hover {
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

@media (max-width: 860px) {
  body > header.on-dark .menu,
  body > header.site.on-dark .menu {
    color: #F2EEEA;
    border-color: rgba(242, 238, 234, 0.24);
    background: rgba(242, 238, 234, 0.1);
  }
  body > header.on-dark nav .links,
  body > header.site.on-dark nav .links {
    background: rgba(28, 16, 16, 0.96);
    border-bottom-color: rgba(242, 238, 234, 0.14);
  }
  body > header.on-dark nav .links a,
  body > header.site.on-dark nav .links a {
    color: #F2EEEA;
    border-top-color: rgba(242, 238, 234, 0.12);
  }
}

/* Unified animated desktop nav link underline across ALL pages */
@media (min-width: 861px) {
  body > header nav .links a {
    position: relative;
    padding-block: 4px;
  }
  body > header nav .links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--brown);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.36s var(--ease), background 0.35s ease;
  }
  body > header nav .links a.sep::after {
    left: 28px;
  }
  body > header nav .links a:hover::after,
  body > header nav .links a.active::after,
  body > header nav .links a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  body > header nav .links a.active,
  body > header.site nav .links a.active {
    color: var(--brown);
  }
}

/* T1.2: Home Hero opening choreography, inner-lens scroll depth, breathing cue */
@keyframes shHeroFrameIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes shHeroTextIn {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes shHeroFootIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shScrollPulse {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(115%);
    opacity: 0;
  }
}

body.page-home .photo {
  animation: shHeroFrameIn 0.95s var(--ease) both;
  will-change: width, height, border-radius;
}

body.page-home .photo img {
  transform: scale(calc(1.07 - var(--t) * 0.07));
  will-change: transform;
}

/* Soft contrast-protecting mist behind the headline that clears completely on scroll */
body.page-home .photo::after {
  background: radial-gradient(
    ellipse 88% 66% at 50% 50%,
    rgba(237, 235, 238, 0.82) 0%,
    rgba(237, 235, 238, 0.44) 56%,
    rgba(237, 235, 238, 0) 100%
  );
  opacity: calc(1 - var(--t) * 1.65);
}

body.page-home .words span {
  animation: shHeroTextIn 0.85s var(--ease) 0.18s both;
  text-shadow: 0 4px 32px rgba(237, 235, 238, 0.92), 0 1px 10px rgba(237, 235, 238, 0.7);
}

body.page-home .words .r {
  animation-delay: 0.3s;
}

body.page-home .foot .wrap {
  animation: shHeroFootIn 0.85s var(--ease) 0.38s both;
}

/* Flanking wings: gentle pointer parallax on desktop */
body.page-home .wing.w-l {
  transform: translate3d(calc(var(--t) * -18vw + var(--mx, 0px) * -1), calc(-50% + var(--my, 0px) * -0.6), 0) scale(calc(1 - var(--t) * 0.06));
  transition: transform 0.16s ease-out;
}
body.page-home .wing.w-r {
  transform: translate3d(calc(var(--t) * 18vw + var(--mx, 0px)), calc(-50% + var(--my, 0px) * 0.6), 0) scale(calc(1 - var(--t) * 0.06));
  transition: transform 0.16s ease-out;
}

/* Breathing 1px scroll hairline next to "Explore work" */
body.page-home .scroll {
  transition: color 0.25s ease, transform 0.35s var(--ease);
}
body.page-home .scroll:hover {
  color: var(--brown);
  transform: translateY(2px);
}
body.page-home .scroll i {
  position: relative;
  overflow: hidden;
  background: rgba(51, 17, 17, 0.22);
}
body.page-home .scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brown);
  animation: shScrollPulse 2.4s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

/* T1.3: Unified scroll-reveal choreography for Home, Work, Journal */
[data-sh-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--sh-d, 0ms);
}
[data-sh-reveal].sh-in {
  opacity: 1;
  transform: none;
}

/* Stacked service panels physical depth & hairline separation */
body.page-home .way {
  box-shadow: 0 -24px 64px rgba(18, 8, 8, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
body.page-home .way > img {
  transform: scale(calc(1.04 - var(--way-p, 0) * 0.04));
  transition: transform 0.18s linear;
  will-change: transform;
}
body.page-home .way .wrap {
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

/* Interactive panel quiet playback toggle */
.sh-vid-ctrl {
  position: absolute;
  right: max(16px, 2.5vw);
  bottom: clamp(20px, 3svh, 36px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(28, 16, 16, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font: 600 11px/1 var(--f);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}
.sh-vid-ctrl:hover {
  background: rgba(28, 16, 16, 0.78);
  border-color: rgba(255, 255, 255, 0.44);
  transform: translateY(-1px);
}
.sh-vid-ctrl svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.sh-vid-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D9A07E;
  box-shadow: 0 0 0 3px rgba(217, 160, 126, 0.25);
}
.sh-vid-ctrl[aria-pressed="true"] .sh-vid-dot {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* T1.4: Before/After slider tactile polish + edge-smart badge fade (Home & StageSpace) */
.stage .knob,
.ba .knob {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stage:hover .knob,
.stage.dragging .knob,
.ba.dragging .knob {
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.22), 0 14px 34px rgba(0, 0, 0, 0.36);
}
.stage.dragging .knob,
.ba.dragging .knob {
  box-shadow: 0 0 0 6px rgba(158, 85, 48, 0.34), 0 14px 36px rgba(0, 0, 0, 0.4);
}
.stage .ba,
.ba .t {
  transition: opacity 0.28s ease, transform 0.28s var(--ease);
}
.stage .ba.sh-edge-hide,
.ba .t.sh-edge-hide {
  opacity: 0;
  transform: translateY(-4px);
}

/* Process cards hover depth + unified sliding arrow links (no underline) */
.p1-card {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
              background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.p1-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(51, 17, 17, 0.22);
  box-shadow: 0 22px 48px rgba(51, 17, 17, 0.075);
}
.p1-card.p1-ss:hover {
  background: rgba(158, 85, 48, 0.085);
  border-color: rgba(158, 85, 48, 0.34);
  box-shadow: 0 22px 48px rgba(158, 85, 48, 0.1);
}
.p1-card .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0;
  padding-bottom: 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.p1-card .go .sh-arr {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.p1-card .go:hover {
  opacity: 1;
}
.p1-card .go:hover .sh-arr-r {
  transform: translateX(4px);
}
.p1-card .go:hover .sh-arr-d {
  transform: translateY(3px);
}

/* T1.5: Perspective Quote Carousel - progress pill, arrows & counter */
.tq-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.tq-bar .tq-dots {
  margin-top: 0;
}
.tq-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tq-counter {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-right: 4px;
}
.tq-nav-btn {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--brown);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}
.tq-nav-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(51, 17, 17, 0.32);
  transform: translateY(-1px);
}
.tq-nav-btn:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.tq-nav-btn svg {
  width: 15px;
  height: 15px;
}

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

.tq-dots {
  gap: 8px;
  align-items: center;
}
.tq-dots button {
  position: relative;
  width: auto;
  min-width: 24px;
  height: 28px;
}
.tq-dots button::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(51, 17, 17, 0.18);
  transition: width 0.4s var(--ease), background 0.3s ease;
}
.tq-dots button[aria-current="true"]::before {
  width: 34px;
  background: rgba(51, 17, 17, 0.18);
  position: relative;
}
.tq-dots button[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -4px;
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: var(--brown);
  transform-origin: left center;
  animation: shQuoteFill 7s linear forwards;
}
.tq-loop.paused .tq-dots button[aria-current="true"]::after {
  animation-play-state: paused;
}

/* T1.6: Home contact form focus craft + clickable/copyable studio email */
body.page-home .contact label {
  transition: color 0.25s ease;
}
body.page-home .contact label:focus-within {
  color: #F2EEEA;
}
body.page-home .contact input,
body.page-home .contact select,
body.page-home .contact textarea {
  transition: border-color 0.3s var(--ease);
}
body.page-home .contact input:focus,
body.page-home .contact select:focus,
body.page-home .contact textarea:focus {
  outline: none;
  border-bottom-color: #D9A07E;
}
.contact input::placeholder,
.contact textarea::placeholder {
  color: rgba(205, 191, 180, 0.48);
}

.sh-mail-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.sh-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 11px/1 var(--f);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 160, 126, 0.38);
  background: rgba(217, 160, 126, 0.08);
  color: #E6DCD2;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.sh-copy-btn:hover {
  background: rgba(217, 160, 126, 0.2);
  border-color: #D9A07E;
  color: #FFFFFF;
}
.sh-copy-btn.copied {
  background: var(--clay);
  border-color: var(--clay);
  color: #FFFFFF;
}
.mail a {
  border-bottom: 1px solid rgba(217, 160, 126, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.mail a:hover {
  border-color: #D9A07E;
  color: #F2EEEA;
}

/* --------------------------------------------------------------------------
   TIER 2 - Page-Specific Elevations (/work, /stagespace, /blog)
   -------------------------------------------------------------------------- */

/* T2.1: /work Gallery reveal, hover caption peek, expand cue & PhotoSwipe caption */
body.page-work .top-b > * {
  animation: shHeroFootIn 0.8s var(--ease) both;
}
body.page-work .top-b h1 { animation-delay: 0.08s; }
body.page-work .top-b p { animation-delay: 0.16s; }

body.page-work .tile {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.75s var(--ease), box-shadow 0.45s var(--ease);
}
body.page-work .tile.sh-tile-in {
  opacity: 1;
  transform: none;
}
body.page-work .tile:hover {
  box-shadow: 0 20px 44px rgba(28, 16, 16, 0.12);
}
body.page-work .tile::after {
  background: linear-gradient(180deg, rgba(28, 16, 16, 0) 48%, rgba(28, 16, 16, 0.56) 100%);
}

body.page-work .sh-tile-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #F2EEEA;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.38s var(--ease), transform 0.42s var(--ease);
}
@media (hover: hover) {
  body.page-work .tile:hover .sh-tile-meta,
  body.page-work .tile:focus-visible .sh-tile-meta {
    opacity: 1;
    transform: none;
  }
}
.sh-tile-cap {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 10px rgba(20, 10, 10, 0.5);
}
.sh-tile-zoom {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(242, 238, 234, 0.18);
  border: 1px solid rgba(242, 238, 234, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}
.sh-tile-zoom svg {
  width: 13px;
  height: 13px;
}

/* PhotoSwipe custom editorial caption */
.pswp__sh-caption {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  max-width: min(640px, calc(100vw - 32px));
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(28, 16, 16, 0.78);
  border: 1px solid rgba(242, 238, 234, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #E6DCD2;
  font-family: var(--f);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Discreet floating Back-to-Top button on long pages */
.sh-btt {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(51, 17, 17, 0.16);
  background: rgba(237, 235, 238, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--brown);
  font: 600 12px/1 var(--f);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(51, 17, 17, 0.12);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s ease;
}
.sh-btt.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.sh-btt:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
}

/* T2.2: /stagespace gliding segmented pills, price tick & interactive hero photo card */
.cur,
.mode-tabs {
  position: relative;
}
.sh-seg-thumb {
  display: block;
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  border-radius: 999px;
  pointer-events: none;
  transition: transform 0.38s var(--ease), width 0.38s var(--ease);
  z-index: 0;
}
.cur .sh-seg-thumb {
  background: var(--brown);
  box-shadow: 0 4px 12px rgba(51, 17, 17, 0.18);
}
.cur.sh-seg-ready button {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
.cur.sh-seg-ready button[aria-pressed="true"] {
  color: var(--bg);
}

.mode-tabs .sh-seg-thumb {
  top: 4px;
  bottom: 4px;
  background: var(--clay);
  box-shadow: 0 6px 18px rgba(158, 85, 48, 0.28);
}
.mode-tabs.sh-seg-ready button {
  position: relative;
  z-index: 1;
  background: transparent !important;
  box-shadow: none !important;
}
.mode-tabs.sh-seg-ready button[aria-pressed="true"] {
  color: #FFFFFF;
}

/* Subtle price cross-fade tick */
@keyframes shPriceTick {
  0% { opacity: 0.35; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}
.sh-tick {
  animation: shPriceTick 0.32s var(--ease) both;
}

/* Smooth fade-slide when switching StageSpace form tabs */
@keyframes shFieldIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
#pilot label.sh-field-in {
  animation: shFieldIn 0.32s var(--ease) both;
}

/* StageSpace hero warehouse card click-to-inspect cue */
.incard {
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.incard:hover {
  box-shadow: 0 28px 60px rgba(20, 10, 10, 0.38);
}
.sh-in-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(28, 16, 16, 0.62);
  color: #F2EEEA;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.28s ease, transform 0.3s var(--ease);
  pointer-events: none;
}
.incard:hover .sh-in-hint {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox modal for inspecting the raw warehouse photo on StageSpace */
.sh-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 13, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}
.sh-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.sh-modal-card {
  position: relative;
  max-width: min(680px, 92vw);
  background: #1C1010;
  border: 1px solid rgba(242, 238, 234, 0.14);
  border-radius: 18px;
  padding: 14px;
  color: #F2EEEA;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.38s var(--ease);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.sh-modal.open .sh-modal-card {
  transform: none;
}
.sh-modal-card img {
  border-radius: 11px;
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
  background: #120909;
}
.sh-modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 6px 4px;
  font-size: 13.5px;
  color: #CDBFB4;
}
.sh-modal-close {
  all: unset;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 238, 234, 0.24);
  color: #F2EEEA;
  font-size: 12px;
  font-weight: 600;
}
.sh-modal-close:hover { background: rgba(242, 238, 234, 0.12); }

/* StageSpace comparison table dark column subtle surface sheen */
th.us {
  background: linear-gradient(180deg, #3C1515 0%, var(--brown) 100%);
}
td.us {
  background: linear-gradient(90deg, #331111 0%, #391414 100%);
}

/* T2.3: /blog (Journal) animated category filters, counts & editorial cards */
body.page-blog .top .wrap > div > * {
  animation: shHeroFootIn 0.8s var(--ease) both;
}
body.page-blog .top h1 { animation-delay: 0.08s; }
body.page-blog .top p { animation-delay: 0.15s; }

body.page-blog .filters button {
  transition: background 0.28s var(--ease), color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
body.page-blog .filters button:hover {
  border-color: rgba(51, 17, 17, 0.36);
  transform: translateY(-1px);
}
.sh-f-count {
  display: inline;
  opacity: 0.62;
  font-weight: 400;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}

body.page-blog .feat,
body.page-blog .card {
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
}
body.page-blog .card h3,
body.page-blog .feat h2 {
  transition: color 0.28s ease;
}
body.page-blog .card:hover h3,
body.page-blog .feat:hover h2 {
  color: var(--clay);
}
body.page-blog .card .pic,
body.page-blog .feat .pic {
  box-shadow: 0 12px 32px rgba(51, 17, 17, 0.06);
  transition: box-shadow 0.45s var(--ease);
}
body.page-blog .card:hover .pic,
body.page-blog .feat:hover .pic {
  box-shadow: 0 22px 48px rgba(51, 17, 17, 0.11);
}
body.page-blog .feat .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 0;
}
body.page-blog .feat .go .sh-arr {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
body.page-blog .feat:hover .go .sh-arr {
  transform: translate(3px, -2px);
}
body.page-blog .sh-card-fade {
  animation: shFieldIn 0.42s var(--ease) both;
}

/* Reduced motion strict guard */
@media (prefers-reduced-motion: reduce) {
  [data-sh-reveal],
  body.page-work .tile {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body.page-home .photo,
  body.page-home .words span,
  body.page-home .foot .wrap,
  body.page-home .scroll i::after,
  .tq-dots button[aria-current="true"]::after,
  body.page-work .top-b > *,
  body.page-blog .top .wrap > div > *,
  .sh-tick,
  #pilot label.sh-field-in,
  body.page-blog .sh-card-fade {
    animation: none !important;
  }
  body.page-home .photo img,
  body.page-home .way > img {
    transform: none !important;
  }
  .sh-seg-thumb,
  .sh-btt,
  .sh-nav-scrim,
  .sh-modal,
  .sh-modal-card {
    transition: none !important;
  }
}
