:root {
  --background: #ffffff;
  --foreground: #000000;
  --muted: #838383;
  --footer: #fbd6d7;
  --grid-cols: 4;
  --grid-margin: 16px;
  --grid-gutter: 8px;
  --grid-max: 1600px;
  --ease-cine: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-overshoot: cubic-bezier(0.34, 1.42, 0.5, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

@media (min-width: 640px) {
  :root {
    --grid-cols: 8;
    --grid-margin: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --grid-cols: 12;
    --grid-margin: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-optical-sizing: auto;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.3px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

html.has-optional-font body {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
  font: inherit;
}

::selection {
  background: #000000;
  color: #ffffff;
}

.skip-link {
  position: fixed;
  top: max(12px, var(--safe-top));
  left: max(12px, var(--safe-left));
  z-index: 10000;
  padding: 8px 12px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform 180ms var(--ease-cine);
}

.skip-link:focus-visible {
  outline-color: #ffffff;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.site-container {
  width: 100%;
  max-width: var(--grid-max);
  margin-inline: auto;
  padding-left: max(var(--grid-margin), var(--safe-left));
  padding-right: max(var(--grid-margin), var(--safe-right));
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  gap: var(--grid-gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  color: #ffffff;
  mix-blend-mode: difference;
}

.header-grid {
  align-items: end;
  min-height: 60px;
  padding-block: 10px;
}

.header-left,
.header-right {
  grid-column: span 2;
  min-width: 0;
}

.header-left,
.header-right,
.home-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.nav-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: -4px -10px;
  padding: 4px 10px;
  overflow: hidden;
  border-radius: 999px;
  color: inherit;
  line-height: 16px;
  letter-spacing: -0.3px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 240ms var(--ease-overshoot),
    color 240ms var(--ease-overshoot),
    opacity 240ms ease,
    transform 240ms var(--ease-overshoot);
}

/* Keep the stacked index signature flush-left. The generic nav rule below
   centers children, which was shifting J—V relative to Portfolio. */
.nav-link.home-signature {
  align-items: flex-start;
}

.header-message-short,
.header-email-short {
  display: none;
}

.header-message-link {
  max-width: min(100%, 360px);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: #000000;
  color: #ffffff;
}

/* The header itself uses difference blending. White/black here becomes a
   visible black/white pill after compositing over a light page. */
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  background: #ffffff;
  color: #000000;
}

/* The real link stays inside the difference-blended case navigation so its
   position, click target and keyboard order remain correct. A body-level visual
   twin is aligned to it by JavaScript, allowing the footer pink to remain exact. */
.case-overview-link {
  position: sticky;
  left: 0;
  z-index: 2;
  flex: none;
  gap: 7px;
  opacity: 0;
}

.case-overview-visual {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  margin: 0;
  background: var(--footer);
  transition: none;
  color: #000000;
  mix-blend-mode: normal;
  opacity: 0;
  pointer-events: none;
}

.case-overview-visual.is-ready {
  opacity: 1;
}

.case-overview-visual.is-active {
  filter: brightness(0.97);
}

.case-overview-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 14px;
}

.nav-link.is-muted {
  opacity: 0.5;
}

.nav-link.is-muted:hover,
.nav-link.is-muted:focus-visible {
  opacity: 1;
}

.case-nav {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 6px 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.case-nav::-webkit-scrollbar {
  display: none;
}

.intro,
.case-intro {
  padding-top: 60px;
  padding-bottom: 48px;
}

.intro-grid,
.case-grid {
  row-gap: 48px;
}

.intro-meta,
.case-meta {
  grid-column: span 4;
}

.intro-copy,
.case-copy {
  grid-column: span 4;
  min-width: 0;
}

.meta-line {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--muted);
  line-height: 20px;
  letter-spacing: 0.6px;
}

.meta-dot {
  flex: none;
  color: #000000;
  line-height: 20px;
}

.case-meta-copy {
  max-width: 390px;
}

.case-meta-copy .primary {
  color: #000000;
}

.case-meta-copy .muted {
  color: var(--muted);
}

.intro-copy,
.case-copy,
.case-outro-copy {
  line-height: 21px;
}

.intro-paragraph + .intro-paragraph {
  margin-top: 12px;
}

.copy-line {
  display: block;
  min-height: 1.5em;
}

.copy-muted {
  color: var(--muted);
}

.marker-copy {
  position: relative;
  display: inline-block;
  max-width: 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.motion-ready .marker-copy::after {
  position: absolute;
  inset: -0.06em -0.04em;
  z-index: 1;
  background: #000000;
  content: "";
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 460ms var(--ease-cine);
  transition-delay: var(--marker-delay, 0ms);
}

.motion-ready .marker-copy.is-inview::after {
  transform: scaleX(0);
}

.portfolio-section {
  padding-bottom: 56px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 10px;
}

.teaser {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.teaser-media {
  position: relative;
  width: 100%;
  aspect-ratio: 236 / 300;
  overflow: hidden;
  border-radius: 0;
  background: #efefef;
  transition: border-radius 500ms var(--ease-overshoot);
}

.teaser-media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.teaser-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal-desktop, 50% 50%);
  transform: scale(1.001);
  transition: transform 700ms var(--ease-cine);
  will-change: transform;
}

.teaser-media.is-black {
  background: #000000;
}

.teaser:hover .teaser-media,
.teaser:focus-visible .teaser-media {
  border-radius: 36px;
}

.teaser:hover .teaser-media img,
.teaser:focus-visible .teaser-media img {
  transform: scale(1.04);
}

.teaser:focus-visible {
  outline: none;
}

.teaser:focus-visible .teaser-media {
  box-shadow: 0 0 0 2px #000000;
}

.teaser-caption {
  padding-top: 12px;
}

.teaser-title,
.teaser-meta {
  font-size: 14px;
  line-height: 14px;
}

.teaser-meta {
  padding-top: 6px;
  color: var(--muted);
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 44px), 0);
  filter: blur(4px);
  transition:
    transform 1000ms var(--ease-cine),
    opacity 1000ms var(--ease-cine),
    filter 1000ms var(--ease-cine);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}

.motion-ready .reveal-item.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(96px, 9vw, 148px);
  padding-bottom: calc(20px + var(--safe-bottom));
  background: transparent;
  color: #000000;
}

.footer-bounce-shape {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.footer-bounce-path {
  fill: var(--footer);
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-intro {
  row-gap: 48px;
  padding-bottom: 80px;
}

.footer-label,
.footer-copy {
  grid-column: span 4;
  line-height: 24px;
}

.footer-bottom {
  align-items: end;
  row-gap: 16px;
}

.footer-imprint,
.footer-email,
.footer-social {
  grid-column: span 4;
}

.footer-link {
  color: #000000;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-settings {
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-legal-placeholder {
  opacity: 0.5;
}

.case-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-group {
  display: flex;
  flex-direction: column;
}

.case-paragraph {
  white-space: pre-line;
}

.content-gallery {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 4px;
  padding-block: 4px;
}

.gallery-image {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #efefef;
}

.gallery-image picture,
.gallery-image img {
  width: 100%;
  height: 100%;
}

.gallery-image picture {
  display: block;
}

.gallery-image img {
  object-fit: cover;
  object-position: var(--focal-desktop, 50% 50%);
}

.gravity-feature-grid {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 4px;
  background: #ffffff;
}

.gravity-feature-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 340px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px 28px;
  background: #f5f5f3;
}

.gravity-feature-card > * {
  position: relative;
  z-index: 1;
}

.gravity-feature-card > .gravity-feature-noise {
  position: absolute;
  z-index: 0;
  inset: -16%;
  width: 132%;
  height: 132%;
  /* Same visibility value as .login-noise so both surfaces match. */
  opacity: 0.20;
  mix-blend-mode: multiply;
  /* Keep grain crisp instead of blurred when the canvas is scaled. */
  image-rendering: pixelated;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.gravity-feature-icon {
  display: flex;
  min-height: 150px;
  align-items: flex-start;
}

.gravity-feature-icon img {
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 145px;
  object-fit: contain;
  object-position: left top;
}

.gravity-feature-copy {
  max-width: 330px;
}

.gravity-feature-title {
  margin-bottom: 4px;
  line-height: 20px;
}

.gravity-feature-body {
  color: var(--muted);
  line-height: 20px;
}

@media (min-width: 640px) {
  .gravity-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gravity-feature-card {
    min-height: 380px;
    padding: 28px 24px 30px;
  }
}

@media (min-width: 1024px) {
  .gravity-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gravity-feature-card {
    min-height: clamp(360px, 29vw, 470px);
    padding: 30px 24px 34px;
  }

  .gravity-feature-icon {
    min-height: 170px;
  }

  .gravity-feature-icon img {
    max-width: 146px;
    max-height: 145px;
  }
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  background: #efefef;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  height: min(60vh, 760px);
  gap: 4px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  height: 100%;
  flex: 0 0 100%;
  overflow: hidden;
}

.carousel-slide picture,
.carousel-slide img {
  width: 100%;
  height: 100%;
}

.carousel-slide picture {
  display: block;
}

.carousel-slide img {
  object-fit: cover;
  object-position: var(--focal-desktop, 50% 50%);
}

.carousel-pagination {
  position: absolute;
  right: max(16px, var(--safe-right));
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.carousel-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-dot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  content: "";
  transform: translate(-50%, -50%);
}

.carousel-dot.is-active::before {
  background: #ffffff;
}


.case-outro {
  padding-top: 48px;
  padding-bottom: 100px;
}

.case-outro-spacer {
  display: none;
}

.case-outro-copy {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.outro-body {
  color: var(--muted);
}

.vimeo-block {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111111;
}

.vimeo-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.vimeo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  text-align: center;
}

.action-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding-inline: 24px;
  border: 1px solid #000000;
  border-radius: 9999px;
  background: transparent;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease,
    transform 220ms var(--ease-overshoot);
}

.button-state {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.button-icon,
.button-label {
  position: relative;
  z-index: 1;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.action-button.has-icon {
  padding-left: 16px;
}

.action-button:hover .button-state {
  opacity: 0.08;
}

.action-button:focus-visible .button-state,
.action-button:active .button-state {
  opacity: 0.1;
}

.action-button:active {
  transform: scale(0.97);
}

.action-button.is-filled {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

.vimeo-placeholder .action-button {
  border-color: #ffffff;
  color: #ffffff;
}

/* Material-style press feedback restored from the Figma Make version. */
.interaction-ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.24;
  pointer-events: none;
  transform: scale(0);
  animation: interaction-ripple 560ms ease-out forwards;
}

@keyframes interaction-ripple {
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}

.cookie-shell {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  padding-top: 0;
  padding-right: max(var(--grid-margin), var(--safe-right));
  padding-bottom: max(var(--grid-margin), var(--safe-bottom));
  padding-left: max(var(--grid-margin), var(--safe-left));
  /* Only the card itself catches clicks; the padding strip stays transparent
     so footer links behind the banner remain reachable. */
  pointer-events: none;
}

.cookie-card {
  border: 1px solid #000000;
  background: #ffffff;
  padding-block: 20px;
  pointer-events: auto;
}

.cookie-grid {
  align-items: center;
  row-gap: 24px;
  padding-inline: var(--grid-margin);
}

.cookie-copy,
.cookie-actions {
  grid-column: span 4;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-privacy-link {
  display: inline;
  margin: 0;
  padding: 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-privacy-link:hover,
.cookie-privacy-link:focus-visible {
  background: transparent;
  color: inherit;
}


.legal-copy {
  padding-bottom: 24px;
}

.legal-action {
  padding-top: 8px;
}

/* The root carries the tint too, so rubber-band overscroll stays salmon. */
html.is-login-page-root {
  background: var(--footer);
}

body.is-login-page {
  background: var(--footer);
}

.login-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--footer);
  color: #000000;
  transition: opacity 320ms var(--ease-cine), transform 320ms var(--ease-cine), filter 320ms var(--ease-cine);
}

.login-page.is-leaving {
  opacity: 0;
  filter: blur(5px);
  transform: scale(1.006);
}

.login-noise {
  /* Absolute inside the overflow-hidden login page: a fixed 140% layer would
     silently widen the document's scroll bounds beyond the viewport. */
  position: absolute;
  inset: -20%;
  z-index: 0;
  width: 140%;
  height: 140%;
  /* Noise visibility on the salmon surface. Raise/lower to taste. */
  opacity: 0.20;
  mix-blend-mode: soft-light;
  /* Keep grain crisp instead of blurred when the canvas is scaled. */
  image-rendering: pixelated;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: max(64px, calc(var(--safe-top) + 40px));
  /* Reserves room for the legal row pinned to the bottom, so the centred
     form never collides with it on short viewports. */
  padding-bottom: max(80px, calc(var(--safe-bottom) + 64px));
}

.login-legal {
  position: absolute;
  bottom: max(20px, var(--safe-bottom));
  left: 50%;
  z-index: 2;
  display: flex;
  max-width: min(100%, 560px);
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  padding-inline: 16px;
  color: rgba(0, 0, 0, 0.56);
  transform: translateX(-50%);
}

.login-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  row-gap: 26px;
}

.login-meta {
  grid-column: span 4;
  text-align: center;
}

.login-meta .meta-line {
  justify-content: center;
}

.login-meta .meta-dot {
  display: none;
}

.login-content {
  grid-column: span 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-intro {
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 21px;
  text-align: center;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-password-shell {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 400px;
  min-height: 112px;
  align-items: center;
  gap: 18px;
  padding: 18px 32px;
  overflow: hidden;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  cursor: text;
  transform: translateZ(0);
  transition: transform 300ms var(--ease-overshoot), box-shadow 300ms ease;
}

.login-password-shell:focus-within {
  transform: scale(1.004);
}

.login-password-shell.has-error {
  animation: login-wobble 420ms var(--ease-cine);
}

.login-password-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.login-password-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-password-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.login-password-input::placeholder {
  color: #ffffff;
  opacity: 1;
}

.login-action-row {
  display: flex;
  flex-direction: column;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
}

.login-send {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity 220ms ease, transform 360ms var(--ease-overshoot);
}

.login-form.has-value .login-send {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.login-form.is-submitting .login-send {
  opacity: 0.6;
}

.login-status {
  min-height: 21px;
  color: rgba(0, 0, 0, 0.56);
}

@keyframes login-wobble {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.page-error {
  min-height: 70vh;
  padding-top: 160px;
  padding-bottom: 80px;
}

.page-error-copy {
  grid-column: span 4;
}

.global-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform, width, height, opacity;
}

/* A white source with difference blending appears black on the white page and
   automatically inverts over imagery. Width and height are always identical. */
.global-cursor.is-visible {
  opacity: 1;
}

.global-cursor.is-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  mix-blend-mode: difference;
}


html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}


@media (min-width: 640px) {
  .header-left,
  .header-right {
    grid-column: span 4;
  }

  .intro,
  .case-intro {
    padding-top: 120px;
  }

  .intro-meta,
  .case-meta {
    grid-column: span 4;
  }

  .intro-copy,
  .case-copy {
    grid-column: span 8;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-label,
  .footer-copy,
  .footer-imprint,
  .footer-email,
  .footer-social {
    grid-column: span 4;
  }

  .case-outro-copy {
    grid-column: span 8;
  }

  .cookie-card {
    margin-inline: calc((100% - (var(--grid-cols) - 1) * var(--grid-gutter)) / var(--grid-cols) + var(--grid-gutter));
  }

  .cookie-copy {
    grid-column: span 5;
  }

  .cookie-actions {
    grid-column: span 3;
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .header-left,
  .header-right {
    grid-column: span 6;
  }

  .case-nav {
    max-width: 40vw;
    flex-wrap: wrap;
    overflow: visible;
  }

  .intro,
  .case-intro {
    padding-top: 160px;
  }

  .intro-meta {
    grid-column: span 4;
  }

  .intro-copy {
    grid-column: 7 / span 6;
  }

  .case-meta {
    grid-column: span 6;
  }

  .case-copy {
    grid-column: 7 / span 6;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-intro {
    padding-bottom: 160px;
  }

  .footer-label,
  .footer-copy {
    grid-column: span 6;
  }

  .footer-imprint {
    grid-column: span 6;
  }

  .footer-email {
    grid-column: span 4;
  }

  .footer-social {
    grid-column: span 2;
  }

  .carousel-track {
    height: min(80vh, 980px);
  }

  .carousel-slide {
    flex-basis: calc((100% - 4px) / 2);
  }

  .carousel-pagination {
    display: none;
  }


  .case-outro-spacer {
    display: block;
    grid-column: span 6;
  }

  .case-outro-copy {
    grid-column: 7 / span 6;
  }

  .cookie-copy {
    grid-column: span 8;
  }

  .cookie-actions {
    grid-column: span 4;
  }
}

@media (min-width: 640px) {
  .login-meta {
    grid-column: span 3;
  }

  .login-content {
    grid-column: 4 / span 5;
  }
}

@media (min-width: 1024px) {
  .login-meta {
    grid-column: span 3;
  }

  .login-content {
    grid-column: 4 / span 8;
  }

  .login-intro {
    margin-top: 0;
    margin-bottom: 44px;
  }
}

@media (max-width: 639px) {
  .login-container {
    padding-top: max(36px, calc(var(--safe-top) + 24px));
  }

  .login-content {
    grid-column: span 4;
  }

  .login-intro {
    margin-bottom: 36px;
  }

  .login-password-shell {
    min-height: 100px;
    gap: 14px;
    padding: 16px 26px;
  }

  .login-password-icon {
    width: 30px;
    height: 30px;
  }

  .login-password-input {
    font-size: 30px;
    letter-spacing: -0.02em;
  }

  .header-message-full,
  .header-email-full {
    display: none;
  }

  .header-message-short,
  .header-email-short {
    display: inline;
  }

  .site-header .site-container {
    padding-right: max(16px, var(--safe-right));
  }

  /* Sideways entrance transforms widened the document before cards entered
     the viewport. Mobile keeps the same reveal language, but only vertically —
     and without the blur, which is expensive on phone GPUs. */
  .motion-ready .reveal-item {
    transform: translate3d(0, var(--reveal-y, 44px), 0);
    filter: none;
    transition:
      transform 1000ms var(--ease-cine),
      opacity 1000ms var(--ease-cine);
    will-change: transform, opacity;
  }

  .motion-ready .reveal-item.is-inview {
    transform: translate3d(0, 0, 0);
    filter: none;
  }

  .gallery-image {
    height: 100vh;
    height: 100svh;
    min-height: 520px;
  }

  .carousel-track {
    min-height: 420px;
  }

  .teaser-media img,
  .gallery-image img,
  .carousel-slide img {
    object-position: var(--focal-mobile, var(--focal-desktop, 50% 50%));
  }
}

@media (hover: none), (pointer: coarse) {
  .teaser:hover .teaser-media {
    border-radius: 0;
  }

  .teaser:active .teaser-media {
    border-radius: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready .marker-copy::after {
    transform: scaleX(0);
  }

  .motion-ready .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .global-cursor {
    display: none;
  }
}

/* ---------------------------------------------------------------
   Page transitions (flying into a case, login warp).
   The layer sits above everything and is removed once done.
   --------------------------------------------------------------- */
.transition-layer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

html.is-transitioning,
html.is-transitioning body {
  overflow: hidden;
}

.transition-clone {
  position: fixed;
  margin: 0;
  overflow: hidden;
  will-change: transform;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.transition-clone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.warp-shape {
  position: fixed;
  background: #000000;
  border-radius: 9999px;
  will-change: transform, border-radius;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.warp-flash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  .transition-layer { display: none; }
}
