:root {
  --bg: #000000;
  --fg: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.72);
  --card: rgba(0, 0, 0, 0.45);
  --ui-edge-offset: calc(clamp(10px, 2vmin, 24px) + 50px);
  --ui-float-size: 3.72rem;
  --social-column-width: clamp(8.8rem, 10.2vw, 11rem);
  --section-pad-y: clamp(1.2rem, 2.2vw, 1.9rem);
  --section-pad-x: clamp(1rem, 2.3vw, 2rem);
  --card-pad: clamp(1.2rem, 2vw, 1.6rem);
  --stack-gap: clamp(0.85rem, 1.5vw, 1.1rem);
  --grid-gap: clamp(0.8rem, 1.4vw, 1rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", sans-serif;
}

.video-shell {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 36%),
    #050505;
}

.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.5));
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 340ms ease, transform 340ms ease;
}

body.projects-mode .background-video {
  filter: blur(14px) saturate(0.82) brightness(0.5);
  transform: scale(1.04);
}

body.projects-mode .video-shell::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.66));
}

body.photo-mode .background-video {
  filter: blur(14px) saturate(0.82) brightness(0.5);
  transform: scale(1.04);
}

body.photo-mode .video-shell::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.66));
}

main {
  position: relative;
}

.scroll-stage {
  height: 170vh;
}

.sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.cutout-panel {
  position: absolute;
  inset: 0;
  background: transparent;
  will-change: transform;
}

.cutout-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  height: 72vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 14%,
    rgba(0, 0, 0, 0.88) 34%,
    rgba(0, 0, 0, 0.62) 56%,
    rgba(0, 0, 0, 0.32) 76%,
    rgba(0, 0, 0, 0.1) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.cutout-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mask-surface {
  fill: #000000;
}

.mask-title-wrap {
  opacity: 0;
  transform-origin: 960px 545px;
  transform: scale(1.24);
  filter: blur(8px);
  will-change: transform, filter;
}

body.fonts-ready .mask-title-wrap {
  opacity: 1;
  animation: mintedia-title-intro 1820ms ease 1 both;
}

.mask-title {
  fill: black;
  font-family: "Anton", sans-serif;
  font-size: clamp(180px, 30vmin, 630px);
  letter-spacing: clamp(1px, 0.2vmin, 4px);
  will-change: transform;
}

@keyframes mintedia-title-intro {
  0% {
    opacity: 1;
    transform: scale(1.24);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

.home-float {
  position: fixed;
  left: calc(var(--ui-edge-offset) + ((var(--social-column-width) - var(--ui-float-size)) / 2));
  top: var(--ui-edge-offset);
  z-index: 30;
  text-decoration: none;
  width: var(--ui-float-size);
  height: var(--ui-float-size);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-float {
  position: fixed;
  right: calc(var(--ui-edge-offset) + ((var(--social-column-width) - var(--ui-float-size)) / 2));
  top: var(--ui-edge-offset);
  z-index: 31;
  width: var(--ui-float-size);
  height: var(--ui-float-size);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-symbol {
  width: 72%;
  height: 72%;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.menu-symbol {
  width: 1.98rem;
  height: 1.98rem;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}

.site-nav {
  position: fixed;
  right: calc(var(--ui-edge-offset) + ((var(--social-column-width) - var(--ui-float-size)) / 2));
  top: calc(var(--ui-edge-offset) + 58px);
  z-index: 31;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-width: 9.4rem;
  padding: 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity 190ms ease, transform 190ms ease;
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  border-radius: 14px;
  padding: 0.56rem 0.76rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.audio-controls {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vh, 28px);
  z-index: 35;
  display: flex;
  gap: 0.5rem;
}

.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--card);
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.8rem, 1.3vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.62rem 1rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.ui-button:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.ui-button:active {
  transform: translateY(0) scale(0.98);
  background: rgba(255, 255, 255, 0.24);
}

.ui-button:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 14px 30px rgba(0, 0, 0, 0.3);
}

.audio-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: clamp(0.8rem, 1.3vw, 0.92rem);
}

.panel-copy {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.hint {
  margin: 0;
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.video-only {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: start center;
  padding: 0.35rem 2rem 1.2rem;
}

.social-strip {
  position: fixed;
  top: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.56rem;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

body.is-social-visible .social-strip {
  opacity: 1;
  pointer-events: auto;
}

.social-strip-left {
  left: var(--ui-edge-offset);
}

.social-strip-right {
  right: var(--ui-edge-offset);
}

.social-button {
  min-width: var(--social-column-width);
  height: 2.95rem;
  padding: 0 0.86rem;
  gap: 0;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 12px 26px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.social-button:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 28px rgba(0, 0, 0, 0.34);
}

.social-button:active {
  transform: translateY(0) scale(0.985);
  background: rgba(255, 255, 255, 0.22);
}

.social-label {
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.social-button:hover .social-label {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.34);
}

@media (max-width: 1400px) {
  :root {
    --social-column-width: 8.1rem;
  }

  .social-button {
    height: 2.68rem;
    padding: 0 0.72rem;
  }

  .social-label {
    font-size: 0.64rem;
    letter-spacing: 0.07em;
  }
}

.ui-button:hover .home-symbol {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.42));
}

.ui-button:hover .menu-symbol {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.42));
}

.info-section {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: var(--section-pad-y) var(--section-pad-x);
}

.video-only::before {
  content: none;
}

.projects-showcase {
  position: relative;
  padding: 0.45rem 0;
}

.projects-head {
  margin: 0 auto var(--stack-gap);
}

.project-track {
  position: relative;
  --track-y: 0px;
  --track-scale: 1;
  --meta-opacity: 1;
  min-height: 235vh;
}

.project-sticky {
  position: sticky;
  top: clamp(50px, 8vh, 90px);
  min-height: 88vh;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: var(--stack-gap);
  padding: 0 2rem;
  transform: translate3d(0, var(--track-y), 0) scale(var(--track-scale));
  transition: transform 180ms linear;
  will-change: transform;
}

.project-media {
  position: relative;
  --media-zoom: 1;
  --media-blur: 0px;
  --media-brightness: 1;
  width: min(78rem, calc(100vw - 4rem));
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
  border: none;
  background: rgba(6, 6, 6, 0.82);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(var(--media-zoom));
  filter: blur(var(--media-blur)) brightness(var(--media-brightness));
  transition: opacity 240ms ease, transform 180ms linear, filter 180ms linear;
  will-change: transform, filter;
}

.project-media.has-video .project-video {
  opacity: 1;
}

.project-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Anton", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.72);
  font-size: clamp(1.2rem, 2.3vw, 2rem);
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(
      -55deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 18px
    );
  transform: scale(var(--media-zoom));
  filter: blur(var(--media-blur)) brightness(var(--media-brightness));
  transition: opacity 240ms ease, transform 180ms linear, filter 180ms linear;
}

.project-media.has-video .project-fallback {
  opacity: 0;
}

.project-meta {
  width: min(38rem, calc(100vw - 4rem));
  text-align: center;
  opacity: var(--meta-opacity);
  transition: opacity 180ms linear;
  will-change: opacity;
}

.project-sound-toggle {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 3;
  min-width: 7.2rem;
  height: 2.7rem;
  min-height: 2.7rem;
  padding: 0.52rem 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  line-height: 1;
  background: rgba(8, 8, 8, 0.56);
  border-color: rgba(255, 255, 255, 0.24);
}

.project-sound-toggle:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.03);
}

.project-sound-toggle:active {
  transform: translateX(-50%) translateY(0) scale(0.98);
}

.project-play-toggle {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  width: 2.7rem;
  height: 2.7rem;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0;
  border-radius: 999px;
  letter-spacing: 0;
  line-height: 1;
  background: rgba(8, 8, 8, 0.56);
  border-color: rgba(255, 255, 255, 0.24);
}

.project-play-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  fill: #ffffff;
}

.project-fullscreen-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  width: 2.7rem;
  height: 2.7rem;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0;
  border-radius: 999px;
  letter-spacing: 0;
  line-height: 1;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 8, 0.56);
  border-color: rgba(255, 255, 255, 0.24);
}

.project-fullscreen-icon {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
}

.project-fullscreen-icon::before,
.project-fullscreen-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  transition: transform 180ms ease, opacity 180ms ease;
}

.project-fullscreen-icon::before {
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff);
  background-size:
    0.28rem 2px, 2px 0.28rem,
    0.28rem 2px, 2px 0.28rem,
    0.28rem 2px, 2px 0.28rem,
    0.28rem 2px, 2px 0.28rem;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
}

.project-fullscreen-icon::after {
  opacity: 0;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff);
  background-size:
    100% 2px,
    2px 100%;
  background-position:
    center center,
    center center;
}

.project-fullscreen-toggle.is-active .project-fullscreen-icon::before {
  transform: scale(0.68);
  opacity: 0;
}

.project-fullscreen-toggle.is-active .project-fullscreen-icon::after {
  opacity: 1;
  transform: rotate(45deg) scale(0.9);
}

.project-meta h3 {
  margin: 0.35rem 0 0.75rem;
  font-family: "Anton", sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.photo-showcase {
  position: relative;
  display: grid;
  min-height: 100vh;
  gap: 0.9rem;
  padding-top: 1.1rem;
  align-items: center;
  justify-items: center;
}

.photo-intro {
  position: relative;
  z-index: 2;
  width: min(36rem, calc(100vw - 3rem));
  margin: 0 auto;
}

.photo-stage {
  position: relative;
  width: min(var(--photo-stage-width, calc(100vw - 3rem)), calc(100vw - 3rem));
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(6, 6, 6, 0.82);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    width 760ms cubic-bezier(0.2, 0.82, 0.2, 1),
    border-radius 420ms ease,
    box-shadow 420ms ease,
    background 420ms ease;
}

.photo-slides {
  position: relative;
  aspect-ratio: var(--photo-active-ratio, 16 / 9);
  max-height: calc(100vh - 7rem);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  transition: aspect-ratio 760ms cubic-bezier(0.2, 0.82, 0.2, 1);
  cursor: zoom-in;
}

.photo-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.012);
  filter: blur(5px) brightness(0.92);
  transition:
    opacity 980ms ease,
    transform 1200ms cubic-bezier(0.16, 0.84, 0.2, 1),
    filter 980ms ease;
  will-change: opacity, transform, filter;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.photo-stage.is-morphing {
  box-shadow: none;
}

.photo-stage.is-morphing .photo-slides {
  background: rgba(0, 0, 0, 0.18);
}

.photo-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0) brightness(1);
  z-index: 2;
  pointer-events: auto;
}

.photo-slide.is-leaving {
  opacity: 0;
  transform: scale(1.006);
  filter: blur(3px) brightness(0.95);
  z-index: 3;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: none;
  background: transparent;
  image-rendering: auto;
}

.photo-slides.is-fullscreen {
  cursor: zoom-out;
}

.photo-slides:fullscreen {
  background: #000000;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  aspect-ratio: auto;
  cursor: zoom-out;
}

.photo-slides:fullscreen .photo-slide {
  inset: 0;
}

.photo-slides:fullscreen .photo-slide img {
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  object-position: center center;
}

.photo-slides:fullscreen::after {
  display: none;
}

.photo-caption-glass {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  width: min(46rem, calc(100vw - 3rem));
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 6;
}

.photo-caption-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: var(--card);
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 0.62rem 0.78rem;
  resize: none;
  outline: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.photo-caption-input::placeholder {
  color: rgba(245, 241, 232, 0.52);
}

.photo-caption-input:focus {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.34);
}

.photo-slides.is-fullscreen .photo-caption-glass {
  opacity: 1;
  pointer-events: auto;
}

.photo-slides:fullscreen .photo-caption-glass {
  opacity: 1;
  pointer-events: auto;
}

.photo-slides::after {
  content: none;
}

.photo-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: rgba(245, 241, 232, 0.74);
  letter-spacing: 0.03em;
}

.photo-empty strong {
  color: #ffffff;
}

.photo-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.photo-meta {
  display: none;
}

.photo-status {
  margin: 0;
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-progress {
  position: relative;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.photo-progress-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: rgba(255, 255, 255, 0.86);
}

.photo-actions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  border: none;
  background: transparent !important;
  box-shadow: none;
  color: rgba(245, 241, 232, 0.72);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: auto;
}

.photo-nav-button:hover,
.photo-nav-button:active,
.photo-nav-button:focus-visible {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: rgba(245, 241, 232, 0.96);
  transform: translateY(-50%);
  outline: none;
}

.photo-nav-button[data-photo-prev] {
  left: 0.85rem;
}

.photo-nav-button[data-photo-next] {
  right: 0.85rem;
}

.insta-section {
  min-height: auto;
}

.insta-shell {
  width: min(92rem, 100%);
  display: grid;
  gap: var(--stack-gap);
}

.insta-intro {
  width: min(44rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 23rem));
  justify-content: center;
  gap: 1.5rem;
  align-items: start;
}

.insta-card {
  position: relative;
  display: grid;
  grid-template-areas:
    "header"
    "media"
    "meta";
  grid-template-rows: auto auto auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-origin: center center;
  transition:
    transform 560ms cubic-bezier(0.18, 0.88, 0.2, 1),
    border-color 360ms cubic-bezier(0.22, 0.8, 0.2, 1),
    background 360ms cubic-bezier(0.22, 0.8, 0.2, 1),
    box-shadow 420ms cubic-bezier(0.22, 0.8, 0.2, 1),
    width 460ms cubic-bezier(0.22, 0.8, 0.2, 1),
    grid-template-columns 460ms cubic-bezier(0.22, 0.8, 0.2, 1),
    grid-template-rows 460ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.insta-card-featured {
  grid-template-rows: auto auto auto;
}

.insta-card-compact {
  grid-template-rows: auto auto auto;
}

.insta-media {
  grid-area: media;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 1.15rem;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.42);
  font-family: "Sora", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    margin 460ms cubic-bezier(0.22, 0.8, 0.2, 1),
    transform 560ms cubic-bezier(0.18, 0.88, 0.2, 1),
    filter 420ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.insta-media-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.34);
}

.insta-card-featured .insta-media {
  aspect-ratio: 4 / 5;
}

.insta-card-compact .insta-media {
  aspect-ratio: 4 / 5;
}

.insta-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms ease;
}

.insta-media.has-image .insta-image {
  opacity: 1;
}

.insta-media.has-image .insta-media-label {
  opacity: 0;
}

.insta-media-label {
  position: relative;
  z-index: 1;
}

.insta-body {
  grid-area: meta;
  display: grid;
  gap: 0.58rem;
  padding: 0.9rem 1.1rem 1.05rem;
  background: transparent;
  transition:
    padding 420ms cubic-bezier(0.22, 0.8, 0.2, 1),
    max-height 420ms cubic-bezier(0.22, 0.8, 0.2, 1),
    opacity 280ms ease;
}

.insta-head {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0;
  padding: 1rem 1.15rem 0.85rem;
  background: transparent;
  border-bottom: none;
}

.insta-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  flex-shrink: 0;
  margin-right: 0.25rem;
  object-fit: cover;
  display: block;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 6px 12px rgba(0, 0, 0, 0.1);
}

.insta-head > div {
  min-width: 0;
  flex: 1;
}

.insta-account,
.insta-time,
.insta-caption,
.insta-stats {
  margin: 0;
}

.insta-account {
  font-family: "Sora", sans-serif;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
}

.insta-account-link {
  color: inherit;
  text-decoration: none;
}

.insta-account-link:hover,
.insta-account-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  outline: none;
}

.insta-time {
  margin-top: 0.16rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.insta-caption {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  font-size: 0.78rem;
}

.insta-comments {
  display: none;
  gap: 0.34rem;
  padding-top: 0.08rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 280ms cubic-bezier(0.22, 0.8, 0.2, 1),
    transform 360ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.insta-comments.is-open {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.insta-comments-toggle {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.35;
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}

.insta-comments-toggle:hover,
.insta-comments-toggle:focus-visible {
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.insta-comment {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  line-height: 1.42;
}

.insta-comment-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.insta-comment strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.insta-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  padding: 0.18rem 0 0.08rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  border-top: none;
  border-bottom: none;
}

.insta-stats span {
  position: relative;
  padding-left: 1.2rem;
}

.insta-stats span::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
}

.insta-stats span:first-child::before {
  content: "\2665";
}

.insta-stats span:last-child::before {
  content: "\25CC";
}

.insta-follow {
  min-height: 1.85rem;
  padding: 0.36rem 0.74rem;
  font-size: 0.58rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--card);
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.insta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: none;
}

.insta-card:hover,
.insta-card:focus-within {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.32);
}

.insta-card:active {
  transform: translateY(0) scale(0.985);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.22);
}

.insta-grid.insta-grid-has-open {
  grid-template-columns: 1fr;
  justify-items: center;
}

.insta-grid.insta-grid-has-open .insta-card:not(.insta-card-comments-open) {
  display: none;
}

.insta-card-comments-open {
  width: min(70rem, 100%);
  grid-template-areas:
    "header header"
    "media meta";
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.72fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  transform: scale(1.02);
}

.insta-card-comments-open .insta-head {
  padding-bottom: 1rem;
}

.insta-card-comments-open .insta-media {
  margin: 0 0 0 1.15rem;
  align-self: stretch;
  transform: scale(1.015);
  filter: saturate(1.04);
}

.insta-card-comments-open .insta-body {
  min-height: 0;
  max-height: 44rem;
  overflow-y: auto;
  padding: 1rem 1.15rem 1.1rem;
  animation: instaMetaReveal 420ms cubic-bezier(0.18, 0.88, 0.2, 1);
}

.insta-card-comments-open .insta-comments {
  gap: 0.5rem;
  padding-top: 0.35rem;
}

@keyframes instaMetaReveal {
  0% {
    opacity: 0;
    transform: translateX(18px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.content-card {
  position: relative;
  z-index: 1;
  width: min(44rem, 100%);
  padding: var(--card-pad);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.content-card h1 {
  margin: 0.45rem 0 var(--stack-gap);
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.content-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--fg);
}

.section-card {
  width: min(58rem, 100%);
}

.section-card h2 {
  margin: 0.45rem 0 var(--stack-gap);
  font-family: "Anton", sans-serif;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--stack-gap);
}

.service-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
}

.service-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-item p {
  margin: 0;
  font-size: 0.92rem;
}

.contact-actions {
  margin-top: var(--stack-gap);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-actions a {
  padding: 0.5rem 0.86rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.contact-stack {
  width: min(58rem, 100%);
  display: grid;
  gap: var(--stack-gap);
}

.team-section .section-card {
  width: min(64rem, 100%);
}

.team-grid {
  margin-top: var(--stack-gap);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  align-items: start;
}

.team-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(12rem, 15.5rem) minmax(0, 1fr);
  align-items: stretch;
  gap: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(0, 0, 0, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.26);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.team-card-link:hover .team-card,
.team-card-link:focus-visible .team-card {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.32);
}

.team-card-link:active .team-card {
  transform: translateY(0) scale(0.985);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.22);
}

.team-card-link:focus-visible .team-card {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 14px 28px rgba(0, 0, 0, 0.32);
}

.team-avatar-wrap {
  width: 100%;
  min-height: 16.5rem;
  flex-shrink: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 28px rgba(0, 0, 0, 0.22);
}

.team-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.45rem 0.7rem 0.15rem;
}

.team-card-index {
  display: none;
  margin: 0;
  color: rgba(245, 241, 232, 0.46);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.team-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.08;
}

.team-discipline {
  margin: 0.1rem 0 0.1rem;
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.team-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
}

.team-role {
  max-width: 34rem;
  color: rgba(245, 241, 232, 0.82);
}

.team-card-link:nth-child(1) .team-avatar-wrap {
  background:
    radial-gradient(circle at 30% 22%, rgba(218, 184, 118, 0.22), transparent 34%),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(214, 174, 102, 0.14);
}

.team-card-link:nth-child(2) .team-avatar-wrap {
  background:
    radial-gradient(circle at 30% 22%, rgba(154, 204, 178, 0.2), transparent 34%),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(138, 184, 160, 0.14);
}

.team-card-link:nth-child(3) .team-avatar-wrap {
  background:
    radial-gradient(circle at 30% 22%, rgba(144, 168, 214, 0.2), transparent 34%),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(130, 156, 196, 0.14);
}

.team-card-link:nth-child(4) .team-avatar-wrap {
  background:
    radial-gradient(circle at 30% 22%, rgba(210, 154, 154, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(188, 146, 146, 0.14);
}

@media (max-width: 700px) {
  .team-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .team-avatar-wrap {
    min-height: 18rem;
  }

  .team-card h3 {
    font-size: 1.34rem;
  }
}

.team-card-link:focus-visible {
  outline: none;
}

.location-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.location-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding: var(--card-pad);
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.26);
}

.location-item h3 {
  margin: 0 0 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-item p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.form-card {
  width: min(58rem, 100%);
}

/* Hide legacy duplicate team section that remains after contact/form block */
#anfrage-formular + .team-section {
  display: none;
}

.request-form {
  margin-top: var(--stack-gap);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.request-form label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  letter-spacing: normal;
  text-transform: none;
  padding: 0.62rem 0.7rem;
  outline: none;
}

.request-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.92) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) calc(50% - 0.12rem),
    calc(100% - 0.72rem) calc(50% - 0.12rem);
  background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
  background-repeat: no-repeat;
}

.request-form select:invalid {
  color: rgba(245, 241, 232, 0.62);
}

.request-form select option {
  color: #ffffff;
  background: #070707;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.request-form textarea {
  resize: vertical;
  min-height: 7.6rem;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.contact-submit {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.86rem;
}

.legal-note {
  margin-top: var(--stack-gap);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.82rem 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  position: relative;
  padding: 0.6rem var(--section-pad-x) 1.8rem;
}

.footer-inner {
  width: min(58rem, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.95rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--grid-gap);
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-legal-nav a {
  padding: 0.4rem 0.72rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.footer-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

.footer-icon-button {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease;
}

.footer-icon-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.footer-icon-button:active {
  transform: translateY(0) scale(0.96);
}

.footer-icon-button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.easter-rocket {
  position: fixed;
  left: 0;
  top: 0;
  width: 8px;
  height: 20px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(to bottom, #f3f3f3 0%, #c6c6c6 60%, #9b9b9b 100%);
  transform: translate3d(0, 0, 0) rotate(0deg);
  pointer-events: none;
  z-index: 120;
  will-change: transform, opacity;
}

.easter-rocket::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #d8d8d8;
}

.easter-rocket::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 10%, #e5e5e5 0%, #a8a8a8 65%, rgba(168, 168, 168, 0) 100%);
  animation: easter-flame-flicker 120ms linear infinite alternate;
}

.easter-spark {
  position: fixed;
  left: 0;
  top: 0;
  width: 8px;
  height: 4px;
  border-radius: 1px;
  background: var(--confetti-color, #61d957);
  transform: translate3d(var(--spark-start-x), var(--spark-start-y), 0);
  pointer-events: none;
  z-index: 119;
  animation: easter-spark-burst 980ms ease-out forwards;
}

@keyframes easter-flame-flicker {
  from {
    transform: translateX(-50%) scaleY(0.8);
    opacity: 0.82;
  }
  to {
    transform: translateX(-50%) scaleY(1.14);
    opacity: 1;
  }
}

@keyframes easter-spark-burst {
  0% {
    transform:
      translate3d(var(--spark-start-x), var(--spark-start-y), 0)
      rotate(var(--spark-rot-start, 0deg))
      scale(0.9);
    opacity: 1;
  }
  28% {
    opacity: 1;
  }
  100% {
    transform:
      translate3d(var(--spark-end-x), var(--spark-end-y), 0)
      rotate(var(--spark-rot-end, 240deg))
      scale(0.18);
    opacity: 0;
  }
}

.content-card code,
.content-card strong {
  color: #ffffff;
}

@media (max-width: 900px) {
  .social-strip {
    display: none;
  }

  .insta-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .insta-card-featured,
  .insta-card-compact {
    width: min(25rem, 100%);
    grid-template-rows: auto auto;
  }

  .insta-grid.insta-grid-has-open .insta-card:not(.insta-card-comments-open) {
    display: none;
  }

  .insta-card-comments-open {
    width: min(25rem, 100%);
    grid-template-areas:
      "header"
      "media"
      "meta";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    transform: scale(1.01);
  }

  .insta-card-comments-open .insta-media {
    margin: 0 1.15rem;
    transform: scale(1.01);
  }

  .insta-card-comments-open .insta-body {
    max-height: none;
    overflow-y: visible;
  }

  .scroll-stage {
    height: 160vh;
  }

  .project-track {
    min-height: 205vh;
  }

  .project-sticky {
    top: clamp(42px, 7vh, 72px);
    min-height: 82vh;
    padding: 0 1.25rem;
  }

  .project-media,
  .project-meta {
    width: min(100%, calc(100vw - 2.5rem));
  }

  .photo-stage {
    width: min(var(--photo-stage-width, calc(100vw - 2.5rem)), calc(100vw - 2.5rem));
  }

  .panel-copy {
    padding: 1.25rem 1rem 1.75rem;
  }

  .photo-intro {
    width: min(30rem, calc(100vw - 3rem));
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .mask-title-wrap {
    opacity: 1;
  }

  body.fonts-ready .mask-title-wrap {
    animation: none;
    transform: scale(1);
    filter: none;
  }
}

@media (max-width: 640px) {
  .insta-intro {
    width: calc(100vw - 1.6rem);
  }

  .insta-head {
    align-items: center;
  }

  .insta-follow {
    justify-self: end;
  }

  .insta-card {
    width: calc(100vw - 1.6rem);
    border-radius: 24px;
  }

  .insta-body {
    padding: 0.92rem 0.95rem 0.95rem;
  }

  .insta-avatar {
    width: 2.05rem;
    height: 2.05rem;
    margin-right: 0.2rem;
  }

  .insta-account {
    font-size: 0.82rem;
  }

  .insta-caption,
  .insta-comment {
    font-size: 0.76rem;
  }

  .hint {
    font-size: 0.88rem;
  }

  .video-only {
    padding: 1rem;
  }

  .projects-showcase {
    padding-top: 0.4rem;
  }

  .projects-head {
    margin-bottom: 0.7rem;
  }

  .project-track {
    min-height: 180vh;
  }

  .project-sticky {
    top: 1rem;
    min-height: 78vh;
    gap: 0.7rem;
    padding: 0 1rem;
  }

  .project-media {
    width: calc(100vw - 2rem);
    border-radius: 24px;
  }

  .project-meta {
    width: calc(100vw - 2rem);
  }

  .photo-stage {
    width: min(var(--photo-stage-width, calc(100vw - 1.6rem)), calc(100vw - 1.6rem));
    border-radius: 24px;
  }

  .photo-intro {
    width: calc(100vw - 1.6rem);
  }

  .photo-showcase {
    gap: 0.7rem;
    justify-items: center;
    align-content: center;
    padding: 1rem 0 0;
  }

  .photo-slides {
    max-height: calc(100vh - 11.5rem);
  }

  .photo-ui {
    inset: 0;
  }

  .photo-nav-button[data-photo-prev] {
    left: 0.55rem;
  }

  .photo-nav-button[data-photo-next] {
    right: 0.55rem;
  }

  .content-card {
    border-radius: 26px;
  }

  .site-footer {
    padding: 0.8rem 1rem 1.6rem;
  }

  .footer-inner {
    border-radius: 22px;
    padding: 0.8rem 0.75rem;
  }
}
