/* =========================================================
   MIDU STUDIO — rebuilt to match midu.design reference
   Breakpoints: ≤809.98 mobile · 810–1279.98 tablet ·
                1280–1919.98 desktop (base) · ≥1920 large
   ========================================================= */

@keyframes bounce-scroll {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(6px);
    opacity: 0.5;
  }
}

/* --- Fonts (self-hosted, same files as reference) --- */
@font-face {
  font-family: "Switzer Medium";
  src: url("assets2/fonts/SwitzerMedium.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Switzer Regular";
  src: url("assets2/fonts/SwitzerRegular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Switzer Semibold";
  src: url("assets2/fonts/SwitzerSemibold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Switzer Bold";
  src: url("assets2/fonts/SwitzerBold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #050505;
  --bg-light: #e6e6e6;

  --white: #fff;
  --white-80: rgba(255, 255, 255, 0.8);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-40: rgba(255, 255, 255, 0.4);
  --black-txt: #030303;
  --black-60: rgba(0, 0, 0, 0.6);
  --black-40: rgba(0, 0, 0, 0.4);

  --card-05: rgba(255, 255, 255, 0.05);
  --card-07: rgba(255, 255, 255, 0.07);
  --menu-bg: rgba(21, 21, 21, 0.8);
  --line-05: rgba(255, 255, 255, 0.05);

  /* Jost ≈ Futura (display/UI), Oswald ≈ Univers Condensed (labels) */
  --font-medium: "Jost", "Switzer Medium", "Inter", sans-serif;
  --font-regular: "Jost", "Switzer Regular", "Inter", sans-serif;
  --font-semibold: "Jost", "Switzer Semibold", "Inter", sans-serif;
  --font-bold: "Jost", "Switzer Bold", "Inter", sans-serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;

  /* appear easing measured from reference */
  --ease-appear: cubic-bezier(0.11, 0.06, 0.18, 1);
  --ease-menu: cubic-bezier(0.12, 0.23, 0.39, 1);
  /* spring curve lifted from pacomepertant.com — slight overshoot, long settle */
  --ease-spring: linear(0, .0014, .0055 1.03%, .0239, .053 3.44%, .0961 4.81%, .1957 7.39%, .4354 12.88%, .5484, .6494, .7362, .8083 23.88%, .8696, .9168 29.72%, .9368, .9536 32.81%, .9793 35.9%, .997 39.17%, 1.0084 42.77%, 1.0142 47.07%, 1.0144 53.43%, 1.0054 68.37%, 1.0019 77.3%, .9998 99.98%);
  --menu-ink: #0a0a0a;
  --menu-paper: #fafafa;

  /* fluid display scale, proportions from a 1512px layout (podium-style) */
  --h-huge: clamp(40px, 4.23vw, 84px);
  /* about/works/reviews/pricing headlines */
  --h-services: clamp(42px, 4.4vw, 88px);
  /* light-section headline */
  --label-size: 12px;

  --wordmark: url("assets2/original/03b_wordmark.svg");
}

@media (max-width: 809.98px) {
  :root {
    --h-huge: 30px;
    --h-services: 34px;
    /* Raised card background opacity for better visibility in bright light */
    --card-05: rgba(255, 255, 255, 0.09);
    --card-07: rgba(255, 255, 255, 0.11);
  }
}

@media (max-width: 389.98px) {
  :root {
    --h-huge: 26px;
    --h-services: 28px;
  }
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-regular);
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--white);
  color: var(--bg);
}

/* =========================================================
   TYPE HELPERS
   ========================================================= */
/* podium-style display type: heavy caps, tight leading */
h1,
h2,
h3,
.h-huge {
  font-family: var(--font-bold);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
}

.h-huge {
  font-size: var(--h-huge);
  letter-spacing: -0.01em;
  color: var(--white);
}

.h-huge .dim {
  color: var(--white-40);
}

/* small condensed caps label (podium's Univers-style) */
.label {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--label-size);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* word-reveal: split words get blur+lift like reference */
.word-reveal .w {
  display: inline-block;
  text-indent: 0;
  /* inline-block re-applies inherited indent inside itself */
  opacity: 0.001;
  filter: blur(4px);
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease-appear), filter 0.7s var(--ease-appear), transform 0.7s var(--ease-appear);
  will-change: opacity, filter, transform;
}

.word-reveal.visible .w {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* =========================================================
   APPEAR (load) ANIMATIONS — timings from reference
   ========================================================= */
@keyframes appearUp {
  from {
    opacity: 0.001;
    transform: translateY(var(--from-y, 60px));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appearDown {
  from {
    opacity: 0.001;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.appear-nav {
  opacity: 0.001;
  animation: appearUp 1s var(--ease-appear) 1.15s forwards;
  --from-y: 40px;
}

.appear-menu {
  opacity: 0.001;
  animation: appearDown 0.85s var(--ease-menu) 0.25s forwards;
}

.appear-tagline {
  opacity: 0.001;
  animation: appearUp 1s var(--ease-appear) 1.05s forwards;
  --from-y: 40px;
}

.appear-meta {
  opacity: 0.001;
  animation: appearUp 1s var(--ease-appear) 0.9s forwards;
  --from-y: 60px;
}

.appear-wordmark {
  opacity: 0.001;
  animation: appearUp 1s var(--ease-appear) 0.75s forwards;
  --from-y: 80px;
}

/* scroll reveal for section blocks (CTA etc.) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-appear), transform 0.8s var(--ease-appear);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  pointer-events: none;
}

.navbar>* {
  pointer-events: auto;
}

.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
}

/* two pre-cut (transparent-background) PNGs stacked and cross-faded —
   avoids CSS mask-image, which Chrome silently fails to load for local
   file:// pages opened directly (no dev server) */
.nav-logo-mark {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
  transition: opacity 0.35s var(--ease-appear);
}

.nav-logo-mark-light {
  position: absolute;
  inset: 0;
  opacity: 0;
}

body.light-zone .nav-logo-mark-dark {
  opacity: 0;
}

body.light-zone .nav-logo-mark-light {
  opacity: 1;
}

/* =========================================================
   PILL → PANEL MENU (pacome-style morph)
   One white rounded box: closed it's the "menu •" pill, open it
   springs into a right-anchored column panel. The dot in the pill
   is the close button at scale(.125).
   ========================================================= */
.menu-veil {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.menu-veil.on {
  opacity: 1;
  visibility: visible;
}

.menu-shell {
  position: fixed;
  top: 30px;
  right: 40px;
  z-index: 40;
  width: 97px;
  height: 48px;
  background: var(--menu-paper);
  border-radius: 24px;
  overflow: hidden;
  transition: width 0.9s var(--ease-spring), height 1s var(--ease-spring),
    border-radius 0.9s ease, background-color 0.35s var(--ease-appear);
}

.menu-shell.open {
  width: min(510px, calc(100vw - 80px));
  height: calc(100dvh - 60px);
  border-radius: 16px;
}

/* closed pill face */
.menu-pill {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 28px 0 18px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 17px;
  text-transform: lowercase;
  color: var(--menu-ink);
}

.menu-shell.open .menu-pill {
  pointer-events: none;
  cursor: default;
}

.menu-pill-text {
  transform-origin: left center;
  transition: opacity 0.2s ease 0.35s, transform 0.2s ease 0.35s;
}

.menu-shell.open .menu-pill-text {
  opacity: 0;
  transform: translateX(5px);
  transition-delay: 0s;
}

/* close button — doubles as the pill's "•" dot when scaled down */
.menu-close {
  position: absolute;
  top: 20px;
  right: 15px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--menu-ink);
  color: var(--menu-paper);
  transform: scale(0.125);
  transform-origin: top right;
  pointer-events: none;
  transition: transform 0.8s var(--ease-spring), right 0.8s var(--ease-spring),
    top 0.8s var(--ease-spring), background-color 0.35s var(--ease-appear);
}

.menu-close svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: rotate(-45deg);
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.menu-shell.open .menu-close {
  top: 20px;
  right: 20px;
  transform: scale(1);
  pointer-events: auto;
}

.menu-shell.open .menu-close svg {
  opacity: 1;
  transform: rotate(0);
}

.menu-close-text {
  position: absolute;
  left: -55px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  text-transform: lowercase;
  color: var(--menu-ink);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.1s ease, transform 0.1s ease;
}

.menu-shell.open .menu-close-text {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

/* panel content — fixed final size anchored right, revealed by the morph */
.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(510px, calc(100vw - 80px));
  height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 48px;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-links a {
  position: relative;
  width: fit-content;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: clamp(56px, 5.2vw, 78px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--menu-ink);
  opacity: 0;
  transform: translate(10px, -10px);
  transition: opacity 0.3s ease, transform 0.3s ease, padding-left 0.5s var(--ease-spring);
}

.menu-shell.open .menu-links a {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.5s ease, transform 0.5s ease, padding-left 0.5s var(--ease-spring);
}

.menu-shell.open .menu-links a:nth-child(1) {
  transition-delay: 0.2s, 0.2s, 0s;
}

.menu-shell.open .menu-links a:nth-child(2) {
  transition-delay: 0.27s, 0.27s, 0s;
}

.menu-shell.open .menu-links a:nth-child(3) {
  transition-delay: 0.34s, 0.34s, 0s;
}

/* hover: a dark dot springs in on the left, link shifts right */
.menu-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--menu-ink);
  opacity: 0;
  transform: translateY(-50%) scale(0);
  transition: transform 0.5s var(--ease-spring), opacity 0.5s var(--ease-spring);
}

.menu-links a:hover {
  padding-left: 40px;
}

.menu-links a:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* footer row: email + social circles */
.menu-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 20px 20px 45px;
}

.menu-mail {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 14px;
  color: var(--menu-ink);
  opacity: 0;
  transform: translate(10px, -10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-shell.open .menu-mail {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.menu-socials {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translate(10px, -10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-shell.open .menu-socials {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.menu-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--menu-ink);
  color: var(--menu-paper);
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* hovering one circle shrinks + greys the others (pacome's :has trick) */
.menu-socials:has(a:hover) a:not(:hover) {
  background: #e6e6e6;
  color: var(--menu-ink);
  transform: scale(0.9);
}

/* closed pill inverts inside the light crossfade zone */
body.light-zone .menu-shell:not(.open) {
  background: var(--menu-ink);
}

body.light-zone .menu-shell:not(.open) .menu-pill {
  color: var(--menu-paper);
}

body.light-zone .menu-shell:not(.open) .menu-close {
  background: var(--menu-paper);
}

/* primary CTA — sharp white block, dark caps text */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 22px;
  background: var(--white);
  transition: opacity 0.3s var(--ease-appear), transform 0.4s var(--ease-appear);
  will-change: transform;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.btn-primary span {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black-txt);
  white-space: nowrap;
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 160px 40px 20px;
  overflow: clip;
}

/* interactive grid backdrop — fixed behind the whole site, warps into a
   lens shape around the cursor. Sits under every section; dark sections
   leave their background transparent so it shows through, the light
   .services break intentionally covers it. */
.site-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* fixed light backdrop — opacity is scroll-driven in app2.js: fades in as
   the reviews section enters, holds through services, fades back out
   before pricing. Blueprint-style dashed grid + arcs sit on top of it. */
.bg-fade {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* after .site-grid in the DOM, so it paints above the grid */
  background-color: var(--bg-light);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.bg-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='252' height='252'%3E%3Cpath d='M251.5 0v252M0 251.5h252' fill='none' stroke='%23000' stroke-opacity='0.1' stroke-dasharray='7 7'/%3E%3C/svg%3E");
  background-size: 252px 252px;
}

.bg-fade::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(160vh, 1500px);
  height: min(160vh, 1500px);
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1600'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='0.1' stroke-dasharray='9 9'%3E%3Ccircle cx='800' cy='800' r='220'/%3E%3Ccircle cx='800' cy='800' r='380'/%3E%3Ccircle cx='800' cy='800' r='540'/%3E%3Ccircle cx='800' cy='800' r='700'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* three.js wireframe shape, centered behind the hero copy */
.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* "03b" corner mark — flips into "design" on hover */
.hero-mark {
  position: absolute;
  z-index: 2;
  top: 220px;
  left: 40px;
  display: inline-flex;
  cursor: default;
}

.hero-mark-stack {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: clamp(64px, 8vw, 128px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

.hero-mark-swap {
  position: relative;
  display: inline-grid;
}

.flip-letter,
.hero-mark-word {
  grid-area: 1 / 1;
  justify-self: start;
}

.hero-mark-word {
  opacity: 0;
  filter: blur(6px);
  transition: opacity .4s var(--ease-appear) .1s, filter .4s var(--ease-appear) .1s;
}

.hero-mark:hover .hero-mark-word {
  opacity: 1;
  filter: blur(0);
}

.flip-letter {
  position: relative;
  display: inline-block;
  width: 0.58em;
  height: 1em;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-appear), opacity .3s var(--ease-appear) .15s;
}

.hero-mark:hover .flip-letter {
  transform: rotateY(180deg);
  opacity: 0;
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.flip-face.flip-d {
  transform: rotateY(180deg);
}

/* Moscow time — large, lower-right of the hero. Hovering it reveals the
   studio/availability label, which otherwise stays hidden underneath. */
.hero-clock-wrap {
  position: absolute;
  z-index: 2;
  right: clamp(60px, 9vw, 160px);
  top: 58%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  cursor: default;
}

.hero-clock-big {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--white);
}

.hero-clock-wrap .hero-corner {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease-appear), filter 0.35s var(--ease-appear), transform 0.35s var(--ease-appear);
}

.hero-clock-wrap:hover .hero-corner {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.hero-bottom {
  /* positioned but z-index:auto — keeps paint order above the grid canvas
     without creating a stacking context that would isolate the
     wordmark blend modes from the backdrop */
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-meta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
}

.hero-corner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  font-family: var(--font-label);
  font-size: var(--label-size);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}

.scroll-prompt {
  font-family: var(--font-label);
  font-size: var(--label-size);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}


/* =========================================================
   MORPHING CARD STACK (hero services showcase)
   ========================================================= */

/* hide leftover 3d canvas just in case */
.hero-3d {
  display: none !important;
}

.morph-cards {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Layout toggle pill */
.morph-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.morph-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  transition: background 0.25s var(--ease-appear), color 0.25s var(--ease-appear);
}

.morph-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.morph-toggle-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Container — shared */
.morph-container {
  position: relative;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Smooth card transition base (used by all layouts) --- */
.morph-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  /* single smooth transition for everything */
  transition:
    top 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  will-change: transform, top, left, opacity;
}

.morph-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(24, 24, 26, 0.95);
}

.morph-card.expanded {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* during active drag — disable CSS transition so JS moves it immediately */
.morph-card.dragging {
  cursor: grabbing;
  transition: none !important;
}

/* Stack layout — BIGGER cards */
.morph-layout-stack {
  width: 320px;
  height: 260px;
}

.morph-layout-stack .morph-card {
  position: absolute;
  width: 300px;
  height: 240px;
}

.morph-layout-stack .morph-card .morph-card-swipe {
  display: block;
}

/* Grid layout — BIGGER */
.morph-layout-grid {
  width: 540px;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.morph-layout-grid .morph-card {
  position: relative;
  width: auto;
  height: auto;
  aspect-ratio: 1;
  top: 0 !important;
  left: 0 !important;
  transform: rotate(0deg) !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

/* List layout — BIGGER */
.morph-layout-list {
  width: 420px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.morph-layout-list .morph-card {
  position: relative;
  width: 100%;
  height: auto;
  top: 0 !important;
  left: 0 !important;
  transform: rotate(0deg) !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

.morph-layout-list .morph-card-desc {
  -webkit-line-clamp: 1;
}

/* Icon badge */
.morph-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  color: #fff;
}

/* Card content */
.morph-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.morph-card-title {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.morph-card-desc {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Swipe hint (only stack) */
.morph-card-swipe {
  display: none;
  text-align: center;
  font-family: var(--font-regular);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  margin-top: auto;
  padding-top: 4px;
}

/* Dot navigation */
.morph-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}

.morph-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.morph-dot:hover {
  background: rgba(255, 255, 255, 0.3);
}

.morph-dot.active {
  width: 16px;
  background: rgba(255, 255, 255, 0.6);
}

/* Hide dots when not in stack mode */
.morph-cards[data-layout="grid"] .morph-dots,
.morph-cards[data-layout="list"] .morph-dots {
  opacity: 0;
  pointer-events: none;
}

/* Stack mode: top card is grabbable */
.morph-layout-stack .morph-card[data-stack="0"] {
  cursor: grab;
}

.morph-layout-stack .morph-card[data-stack="0"]:active {
  cursor: grabbing;
}

/* Responsive — hero morph cards on small screens */
@media (max-width: 809.98px) {
  .morph-cards {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: auto;
    padding-top: 0;
    gap: 14px;
  }

  .morph-layout-stack {
    width: min(72vw, 300px);
    height: 200px;
  }

  .morph-layout-stack .morph-card {
    width: min(66vw, 270px);
    height: 180px;
    padding: 16px;
  }

  .morph-layout-grid {
    width: min(92vw, 440px);
  }

  .morph-layout-list {
    width: min(92vw, 380px);
  }

  .morph-card-title {
    font-size: 15px;
  }

  .morph-card-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .morph-card-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 389.98px) {
  .morph-layout-stack {
    width: 78vw;
    height: 190px;
  }

  .morph-layout-stack .morph-card {
    width: 72vw;
    height: 170px;
  }
}



/* =========================================================
   SHARED BLUR BUTTONS (48px / radius 20)
   ========================================================= */
.btn-blur {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 18px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s var(--ease-appear), transform 0.3s var(--ease-appear);
  will-change: transform;
}

.btn-blur:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-blur:active {
  transform: scale(0.97);
}

.btn-blur svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.btn-blur span {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--white);
  white-space: nowrap;
}

.btn-blur-dark {
  background: rgba(0, 0, 0, 0.07);
}

.btn-blur-dark:hover {
  background: rgba(0, 0, 0, 0.12);
}

.btn-blur-dark span {
  color: var(--black-txt);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 200px;
  padding: 240px 0 0;
  overflow: clip;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  width: 100%;
  padding: 0 40px;
}

.about-headline {
  width: 100%;
  max-width: 900px;
}

.about-headline h2 {
  text-indent: 110px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
  max-width: 900px;
}

.about-columns {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  width: 100%;
}

.about-desc {
  flex: 1 0 0;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--white-40);
}

.about-desc strong {
  color: var(--white);
  font-weight: 500;
}

.about-sub {
  width: 285px;
  flex-shrink: 0;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--white-40);
}

/* full-bleed brand image with scroll zoom */
.about-image {
  width: 100%;
  padding: 0 40px;
}

.about-image-inner {
  width: 100%;
  height: min(100vh, 900px);
  border-radius: 0;
  overflow: hidden;
  transform: translateY(-80px) scale(0.9);
  will-change: transform;
}

.about-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   WORKS
   ========================================================= */
.works {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  padding: 240px 40px;
  overflow: clip;
}

.works-header {
  display: flex;
  flex-direction: column;
  gap: 120px;
  width: 100%;
  max-width: 900px;
}

.works-header .h-huge {
  text-indent: 110px;
}

.works-columns {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  width: 100%;
}

.works-desc {
  flex: 1 0 0;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--white-40);
}

.works-desc strong {
  color: var(--white);
  font-weight: 500;
}

.works-sub {
  width: 285px;
  flex-shrink: 0;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--white-40);
}

/* Carousel dots — hidden by default, shown only on mobile via media query */
.works-carousel-dots {
  display: none;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.projects-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.project-card {
  position: relative;
  flex: 1 0 0;
  aspect-ratio: 0.907692;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 30px 40px;
  isolation: isolate;
}

.project-card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: scale(1.08);
  transition: transform 0.9s var(--ease-appear);
}

.project-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .project-card-bg {
  transform: scale(1.02);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.project-tags {
  display: flex;
  gap: 8px;
  align-self: flex-end;
}

.project-tag {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.project-tag span {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white-80);
  white-space: nowrap;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.project-title {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.project-cat {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0.6;
}

.project-open {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-height: 0;
  opacity: 0;
  transform: translateY(12px);
  overflow: hidden;
  transition: max-height 0.5s var(--ease-appear), opacity 0.5s var(--ease-appear), transform 0.5s var(--ease-appear);
}

.project-card:hover .project-open,
.project-card:focus-visible .project-open {
  max-height: 60px;
  opacity: 1;
  transform: translateY(0);
}

.project-open-label {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  padding-top: 12px;
}

.project-open-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-open-btn img {
  width: 10px;
  height: 10px;
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 240px;
  overflow: clip;
}

.reviews-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  width: 100%;
  padding: 0 40px;
}

.reviews-headline {
  width: 100%;
  max-width: 900px;
}

.reviews-headline .h-huge {
  text-indent: 110px;
}

.reviews-row {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

.reviews-trusted {
  flex: none;
  width: 27%;
  min-width: 300px;
  border-radius: 0;
  background: var(--card-05);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-glyph {
  width: 90px;
  opacity: 0.14;
}

.quote-glyph svg {
  width: 100%;
  height: auto;
  display: block;
  fill: var(--white);
}

.trusted-caption h3 {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 10px;
}

.trusted-caption p {
  font-family: var(--font-regular);
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--white-40);
}

.reviews-slider {
  flex: 1 0 0;
  border-radius: 0;
  background: var(--card-05);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  min-height: 434px;
}

.review-toggles {
  display: flex;
  gap: 8px;
}

.review-toggles button {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--white-40);
  transition: background 0.3s var(--ease-appear), width 0.3s var(--ease-appear);
}

.review-toggles button.active {
  background: var(--white);
}

.reviews-carousel-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.reviews-carousel {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.7s var(--ease-appear);
  will-change: transform;
}

.review-slide {
  flex: none;
  width: 100%;
  height: 100%;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-quote {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--white-40);
  max-width: 730px;
}

.review-quote strong {
  color: var(--white);
  font-weight: 500;
}

.review-client {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.review-client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card-05, rgba(255, 255, 255, 0.05));
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-name {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 7px;
}

.review-company {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white-50);
}

.review-logo {
  height: 36px;
  opacity: 0.95;
}

.review-logo img {
  height: 100%;
  width: auto;
}

/* reviews live inside the light crossfade zone — dark ink like podium's
   manifesto, so the text "emerges from darkness" as the backdrop fades in */
.reviews {
  color: var(--black-txt);
}

.reviews .h-huge {
  color: var(--black-txt);
}

.reviews .h-huge .dim {
  color: rgba(0, 0, 0, 0.35);
}

.reviews-trusted,
.reviews-slider {
  background: rgba(0, 0, 0, 0.05);
}

.quote-glyph svg {
  fill: var(--black-txt);
}

.trusted-caption h3 {
  color: var(--black-txt);
}

.trusted-caption p {
  color: var(--black-40);
}

.review-toggles button {
  background: var(--black-40);
}

.review-toggles button.active {
  background: var(--black-txt);
}

.review-quote {
  color: var(--black-40);
}

.review-quote strong {
  color: var(--black-txt);
}

.review-name {
  color: var(--black-txt);
}

.review-company {
  color: var(--black-60);
}

.review-avatar {
  background: rgba(0, 0, 0, 0.08);
}

/* =========================================================
   SERVICES (light)
   ========================================================= */
.services {
  position: relative;
  z-index: 2;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 200px 40px 240px;
  overflow: clip;
  color: var(--black-txt);
}

.services-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.services-heading-row {
  width: 100%;
  max-width: 785px;
  overflow: clip;
}

.services-h {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: var(--h-services);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #000;
  will-change: transform;
}

.services-h-primary {
  transform: translateY(100px) rotate(5deg);
  transform-origin: 0% 50%;
}

.services-h-secondary {
  text-align: right;
  transform: translateY(100px) rotate(-5deg);
  transform-origin: 100% 50%;
}

.services-h-primary,
.services-h-secondary {
  transition: transform 0.9s var(--ease-appear);
}

.services-intro.visible .services-h-primary,
.services-intro.visible .services-h-secondary {
  transform: translateY(0) rotate(0);
}

/* icons row — static, magnifies on hover like a dock */
.services-ticker {
  width: 100%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 34px;
}

.services-ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.ticker-icon {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  will-change: transform;
}

.ticker-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  will-change: transform;
}

.ticker-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* fallback magnification when JS dock is off (reduced motion / touch) */
@media (prefers-reduced-motion: reduce),
(hover: none) {
  .ticker-icon-img {
    transition: transform 0.3s var(--ease-appear);
  }

  .ticker-icon:hover .ticker-icon-img {
    transform: scale(1.25);
  }
}

.ticker-tag {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 2px);
  background: #ececec;
  color: var(--black-txt);
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: -0.02em;
  padding: 5px 10px;
  border-radius: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-appear), transform 0.25s var(--ease-appear);
}

.ticker-icon:hover .ticker-tag {
  opacity: 1;
  transform: translate(-50%, 10px);
}

.services-body {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 785px;
}

.services-body-col {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 40px;
}

.services-desc {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--black-60);
}

.services-list {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 785px;
}

.services-col {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.services-col-left {
  padding-top: 80px;
}

.service-card {
  width: 100%;
  background: var(--white);
  border-radius: 0;
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.05);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card h3 {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #000;
}

.service-divider {
  width: 100%;
  height: 1px;
  background: #ececec;
}

.service-info-label {
  font-family: var(--font-regular);
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black-40);
  margin-bottom: 10px;
}

.service-info p {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--black-txt);
}

.service-foot {
  display: flex;
  justify-content: flex-end;
}

.service-arrow {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-appear), transform 0.3s var(--ease-appear);
}

.service-card:hover .service-arrow {
  background: #030303;
  transform: rotate(45deg);
}

.service-arrow svg {
  width: 12px;
  height: 12px;
  stroke: #030303;
  transition: stroke 0.3s;
}

.service-card:hover .service-arrow svg {
  stroke: #fff;
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  padding: 285px 0 240px;
  overflow: clip;
}

.pricing-gradient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  aspect-ratio: 2.4;
  z-index: 0;
  background:
    radial-gradient(42% 60% at 18% 12%, rgba(255, 40, 20, 0.5) 0%, transparent 65%),
    radial-gradient(55% 70% at 55% 0%, rgba(255, 90, 50, 0.28) 0%, transparent 70%),
    radial-gradient(35% 55% at 88% 20%, rgba(200, 200, 210, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.pricing-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  width: 100%;
  padding: 0 40px;
}

.pricing-headline {
  width: 100%;
  max-width: 900px;
}

.pricing-columns {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
  max-width: 900px;
}

.pricing-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.pricing-label {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.plans-row {
  display: flex;
  gap: 40px;
  width: 100%;
  align-items: stretch;
}

.plan-card {
  flex: 1 0 0;
  background: var(--card-05);
  border-radius: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  overflow: visible;
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 60px;
}

.plan-name {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.plan-name span {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white-80);
}

/* keycap: top part presses down onto base on hover */
.keycap {
  position: relative;
  width: 119px;
  height: 142px;
  margin-top: -60px;
  flex-shrink: 0;
  cursor: pointer;
}

.keycap-base {
  position: absolute;
  left: 5px;
  bottom: 0;
  width: 110px;
  aspect-ratio: 1.52;
}

.keycap-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  aspect-ratio: 1.23771;
  transition: transform 0.25s var(--ease-appear), filter 0.35s var(--ease-appear);
  will-change: transform, filter;
}

.keycap:hover .keycap-top,
.keycap.pressed .keycap-top {
  transform: translate(-4px, 14px);
}

.keycap-amber:hover .keycap-top {
  filter: drop-shadow(0 5px 12px rgba(255, 128, 0, 0.55));
}

.keycap-yellow:hover .keycap-top {
  filter: drop-shadow(0 5px 12px rgba(255, 200, 0, 0.55));
}

.keycap-red:hover .keycap-top {
  filter: drop-shadow(0 5px 12px rgba(255, 40, 20, 0.55));
}

.plan-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.plan-price-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.plan-price {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
  white-space: nowrap;
}

.plan-period {
  font-family: var(--font-regular);
  font-size: 16px;
  line-height: 2;
  letter-spacing: -0.02em;
  color: var(--white-60);
}

.plan-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-benefits-label {
  font-family: var(--font-regular);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--white);
}

.plan-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit svg {
  width: 12px;
  height: 9px;
  flex-shrink: 0;
  fill: var(--white);
}

.benefit span {
  font-family: var(--font-regular);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--white-60);
}

/* reassurances strip */
.reassurances {
  display: flex;
  gap: 40px;
  width: 100%;
  padding: 24px 0;
  border-radius: 0;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: linear-gradient(rgba(21, 21, 21, 0) 0%, rgba(21, 21, 21, 0.6) 100%);
}

.reassurance {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 40px;
}

.reassurance-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reassurance-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reassurance-icon svg {
  width: 13px;
  height: 13px;
  fill: var(--white);
}

.reassurance-head h3 {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.reassurance p {
  font-family: var(--font-regular);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--white-60);
  padding-left: 56px;
}

/* project-based card */
.project-model-card {
  width: 100%;
  background: var(--card-05);
  border-radius: 0;
  padding: 40px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.project-model-left {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-model-right {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.btn-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 0;
  background: var(--white);
  width: fit-content;
  transition: box-shadow 0.4s var(--ease-appear), transform 0.4s var(--ease-appear);
}

.btn-select:hover {
  box-shadow: 0 0 20px 5px rgba(255, 43, 43, 0.45);
}

.btn-select:active {
  transform: scale(0.97);
}

.btn-select span {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--black-txt);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 900px;
}

.faq-block>h3 {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.faq-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.faq-col {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  width: 100%;
  background: var(--card-07);
  border-radius: 0;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  text-align: left;
}

.faq-trigger p {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--white);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-icon img {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease-appear);
}

.faq-item.open .faq-icon img {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-appear);
}

.faq-answer-inner {
  padding: 0 28px 24px;
  font-family: var(--font-regular);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--white-60);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 0 40px;
  overflow: clip;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.footer-body {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.footer-left {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
}

.footer-intro {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.footer-clock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-regular);
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer-clock svg {
  width: 14px;
  height: 14px;
}

.footer-clock .time {
  font-family: var(--font-medium);
  font-weight: 500;
}

.footer-headline {
  max-width: 390px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--white);
}

.footer-right {
  width: 34%;
  display: flex;
  gap: 80px;
}

.footer-col {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-col h4 {
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--white-60);
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col nav a {
  font-family: var(--font-regular);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--white);
  width: fit-content;
  transition: opacity 0.25s var(--ease-appear);
}

.footer-col nav a:hover {
  opacity: 0.6;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: var(--font-regular);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-40);
}

.footer-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-meta a {
  color: var(--white-40);
  transition: color 0.25s var(--ease-appear);
}

.footer-meta a:hover {
  color: var(--white);
}

/* giant red MIDU */
.footer-wordmark {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wordmark-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: min(490px, calc(100vw - 40px));
  background: #151515;
  border-radius: 0;
  padding: 28px;
  display: none;
  flex-direction: column;
  gap: 18px;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner h4 {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.cookie-banner p {
  font-family: var(--font-regular);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--white-60);
}

.cookie-banner p a {
  color: var(--white);
}

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

.cookie-actions button {
  flex: 1 0 0;
  height: 48px;
  border-radius: 0;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.cookie-customize {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white-60);
}

.cookie-accept {
  background: var(--white);
  color: var(--black-txt);
}

/* =========================================================
   CONTACT DRAWER + CONFIRM DIALOG (kept functionality)
   ========================================================= */
.contact-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  /* keep the drawer visible while it slides back out, then hide */
  transition: visibility 0s linear 0.9s;
}

.contact-drawer.active {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.contact-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.7s var(--ease-appear);
}

.contact-drawer.active .contact-drawer-backdrop {
  opacity: 1;
}

/* floating dark panel — same footprint & radius as the open menu */
.contact-drawer-content {
  position: absolute;
  top: 30px;
  right: 40px;
  width: min(510px, calc(100vw - 80px));
  height: calc(100dvh - 60px);
  background: var(--menu-ink);
  color: var(--white);
  border-radius: 16px;
  padding: 84px 40px 32px 48px;
  overflow-y: auto;
  transform: translateX(calc(100% + 60px));
  transition: transform 0.9s var(--ease-spring);
  display: flex;
  flex-direction: column;
}

.contact-drawer.active .contact-drawer-content {
  transform: translateX(0);
}

.contact-drawer-close {
  position: absolute;
  top: 50px;
  right: 60px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--menu-paper);
  color: var(--menu-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-spring);
}

.contact-drawer.active .contact-drawer-close {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.contact-drawer-close svg {
  width: 14px;
  height: 14px;
}

.contact-drawer.active .contact-drawer-close:hover {
  transform: scale(1.08);
}

.contact-drawer-close-text {
  position: absolute;
  left: -55px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  text-transform: lowercase;
  color: var(--white);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-drawer.active .contact-drawer-close-text {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: auto 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--white-60);
}

.segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.segment-btn {
  padding: 8px 22px;
  border-radius: 999px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 14px;
  text-transform: lowercase;
  color: var(--white-60);
  transition: background 0.35s var(--ease-spring), color 0.3s var(--ease-appear);
}

.segment-btn.active {
  background: var(--menu-paper);
  color: var(--menu-ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 13px 20px;
  color: var(--white);
  font-family: var(--font-regular);
  font-size: 15px;
  transition: border-color 0.3s, background 0.3s;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--white-40);
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

#contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
  border-radius: 20px;
}

.pill-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-select-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--white-60);
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 14px;
  text-transform: lowercase;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.pill-select-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.pill-select-btn.active {
  background: var(--menu-paper);
  border-color: var(--menu-paper);
  color: var(--menu-ink);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  background: var(--menu-paper);
  color: var(--menu-ink);
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 15px;
  text-transform: lowercase;
  transition: opacity 0.25s, transform 0.25s;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-disclaimer {
  text-align: center;
  font-family: var(--font-regular);
  font-size: 12px;
  color: var(--white-40);
}

.form-disclaimer a {
  text-decoration: underline;
}

/* =========================================================
   APP CASE MODAL — floating window with app screens
   ========================================================= */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: visibility 0s linear 0.85s;
}

.case-modal.active {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.7s var(--ease-appear);
}

.case-modal.active .case-modal-backdrop {
  opacity: 1;
}

/* the floating window itself */
.case-modal-window {
  position: relative;
  width: min(880px, calc(100vw - 80px));
  max-height: calc(100dvh - 96px);
  background: var(--menu-ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(48px) scale(0.94);
  transition: transform 0.85s var(--ease-spring), opacity 0.5s var(--ease-appear);
}

.case-modal.active .case-modal-window {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* macOS-style chrome bar */
.case-modal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-05);
  flex-shrink: 0;
}

.case-chrome-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.case-chrome-dot:first-child {
  background: rgba(255, 255, 255, 0.22);
}

/* scrollable screenshot area */
.case-modal-media {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  background: #050505;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.case-modal-media::-webkit-scrollbar {
  width: 8px;
}

.case-modal-media::-webkit-scrollbar-track {
  background: transparent;
}

.case-modal-media::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.case-modal-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* info block under the screens */
.case-modal-info {
  flex-shrink: 0;
  padding: 24px 32px 28px;
  border-top: 1px solid var(--line-05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-modal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.case-modal-title {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--white);
}

.case-modal-cat {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-40);
}

.case-modal-desc {
  font-family: var(--font-regular);
  font-size: 15px;
  line-height: 1.55;
  color: var(--white-60);
  max-width: 560px;
}

.case-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.case-modal-tags span {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 13px;
  text-transform: lowercase;
  color: var(--white-60);
}

/* floating close button — same language as the drawer close */
.case-modal-close {
  position: absolute;
  top: 50px;
  right: 60px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--menu-paper);
  color: var(--menu-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-spring);
}

.case-modal.active .case-modal-close {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.case-modal-close svg {
  width: 14px;
  height: 14px;
}

.case-modal.active .case-modal-close:hover {
  transform: scale(1.08);
}

.case-modal-close-text {
  position: absolute;
  left: -55px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 16px;
  text-transform: lowercase;
  color: var(--white);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.case-modal.active .case-modal-close-text {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
}

.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-appear), visibility 0.4s;
}

.confirm-dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.confirm-dialog-content {
  background: var(--menu-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.5s var(--ease-spring);
}

.confirm-dialog-overlay.active .confirm-dialog-content {
  transform: scale(1);
}

.confirm-dialog-content h3 {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--white);
  margin-bottom: 28px;
}

.confirm-dialog-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-btn-close,
.confirm-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 14px;
  text-transform: lowercase;
  border-radius: 999px;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s, transform 0.25s;
}

.confirm-btn-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.confirm-btn-close:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.confirm-btn-back {
  background: var(--menu-paper);
  color: var(--menu-ink);
}

.confirm-btn-back:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 1920px) {

  .services-heading-row,
  .services-body,
  .services-list {
    max-width: 955px;
  }

  .about-headline,
  .about-body,
  .works-header,
  .reviews-headline,
  .pricing-headline,
  .pricing-columns,
  .faq-block {
    max-width: 1200px;
  }

  .works {
    padding: 240px 160px;
  }
}

@media (max-width: 1279.98px) {
  .hero {
    padding: 200px 20px 20px;
  }

  .hero-mark {
    left: 20px;
  }
}

@media (max-width: 809.98px) {

  /* ---- nav ---- */
  .navbar {
    /* Safe-area for notch / dynamic island on iPhone */
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  }

  .nav-logo-mark {
    width: 34px;
    height: 34px;
  }

  .menu-shell {
    top: 12px;
    right: 16px;
  }

  .menu-shell.open {
    width: calc(100vw - 32px);
    height: calc(100dvh - 24px);
  }

  .menu-panel {
    width: calc(100vw - 32px);
    height: calc(100dvh - 24px);
    padding-left: 24px;
    /* Center links vertically to fill the space evenly */
    justify-content: center;
    padding-top: 0;
  }

  .menu-links a {
    font-size: clamp(40px, 11vw, 52px);
  }

  .menu-foot {
    padding: 16px 16px 20px 24px;
  }

  .menu-mail {
    font-size: 13px;
  }

  .menu-socials a {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  /* ---- contact drawer ---- */
  .contact-drawer-content {
    top: 12px;
    right: 16px;
    width: calc(100vw - 32px);
    height: calc(100dvh - 24px);
    padding: 72px 20px 20px 20px;
  }

  .contact-drawer-close {
    top: 24px;
    right: 26px;
  }

  .contact-drawer-close-text {
    display: none;
  }

  .btn-primary {
    height: 44px;
    padding: 0 16px;
  }

  .btn-primary span {
    font-size: 14px;
  }

  .menu-central {
    top: 12px;
  }

  .menu-box {
    width: 220px;
  }

  .menu-box.open {
    width: min(450px, calc(100vw - 24px));
  }

  .menu-slots {
    display: none;
  }

  /* ---- hero ---- */
  .hero {
    padding: max(72px, calc(env(safe-area-inset-top) + 60px)) 16px max(16px, env(safe-area-inset-bottom));
    min-height: 100svh;
    height: 100svh;
    /* Use column layout with space-between to eliminate accidental gaps */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
  }

  .hero-mark {
    top: auto;
    bottom: auto;
    position: relative;
    left: 0;
    order: 0;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .hero-mark-stack {
    font-size: clamp(48px, 14vw, 72px);
  }

  .morph-cards {
    /* Remove absolute centering — flow in normal flex order */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
    padding-top: 0;
    gap: 14px;
    flex-shrink: 0;
    order: 1;
    align-self: center;
  }

  /* Hide layout toggle on mobile — swipe cards only */
  .morph-toggle {
    display: none !important;
  }

  .hero-clock-wrap {
    top: auto;
    bottom: auto;
    right: auto;
    position: relative;
    order: 2;
    /* vertical layout matching desktop: clock on top, meta below */
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    justify-content: flex-end;
    width: 100%;
    flex-shrink: 0;
    padding-bottom: 8px;
  }

  .hero-clock-big {
    font-size: 32px;
  }

  .hero-clock-wrap .hero-corner {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(-6px);
    font-size: 10px;
    align-items: flex-end;
    text-align: right;
    pointer-events: none;
  }

  /* On touch, the label only appears while the clock is pressed/tapped —
     mirroring the desktop hover reveal. */
  .hero-clock-wrap:active .hero-corner {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  .hero-meta .scroll-prompt {
    display: inline-block;
    font-size: 10px;
    animation: bounce-scroll 2s ease-in-out infinite;
  }

  /* Scroll hint at bottom of hero — explicit order so it doesn’t float up */
  .hero-bottom {
    order: 3;
    width: 100%;
    flex-shrink: 0;
  }

  /* ---- about ---- */
  .about {
    gap: 60px;
    padding: 100px 0 0;
  }

  .about-content {
    gap: 50px;
    padding: 0 16px;
  }

  .about-headline h2,
  .works-header .h-huge,
  .reviews-headline .h-huge {
    text-indent: 0;
    font-size: var(--h-huge);
    line-height: 0.95;
  }

  .about-body {
    gap: 32px;
  }

  .about-columns {
    flex-direction: column;
    gap: 24px;
  }

  .about-desc {
    font-size: 18px;
    line-height: 1.4;
  }

  .about-sub {
    width: 100%;
    font-size: 15px;
  }

  .about-image {
    padding: 0;
    /* full width edge-to-edge on mobile */
  }

  .about-image-inner {
    height: 65vw;
    min-height: 240px;
    /* remove the scroll-parallax transform that clips the image on mobile */
    transform: none !important;
  }

  /* ---- works ---- */
  .works {
    gap: 60px;
    padding: 120px 16px 100px;
  }

  .works-header {
    gap: 40px;
  }

  .works-columns {
    flex-direction: column;
    gap: 24px;
  }

  .works-desc {
    font-size: 18px;
    line-height: 1.4;
  }

  .works-sub {
    width: 100%;
    font-size: 15px;
  }

  /* ---- works: mobile horizontal swipe carousel ---- */
  .works {
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
    /* allow carousel to scroll past edges */
  }

  .works-header {
    padding: 0 16px;
  }

  /* Turn the grid into a flat horizontal scroll strip */
  .projects-grid {
    /* Flatten all rows into one horizontal scroller */
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    /* Padding-right trick: peek next card */
    padding: 0 0 0 16px;
    /* Stretch full width ignoring parent padding */
    width: 100vw;
    margin-left: -16px;
  }

  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  /* Each "row" (InnoHome+Wandor, Stackd+Tickr) becomes horizontal inside the scroller */
  .projects-row {
    display: contents;
    /* rows disappear, cards become direct children of .projects-grid */
  }

  .project-card {
    /* Each card: 88vw wide, peek of ~12% next card */
    flex: 0 0 88vw;
    width: 88vw;
    aspect-ratio: 16 / 10;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin-right: 10px;
    padding: 16px 16px 20px 20px;
    border-radius: 2px;
  }

  /* Last card: add right margin so it can fully snap into view */
  .project-card:last-child {
    margin-right: 16px;
  }

  .project-title,
  .project-open-label {
    font-size: 20px;
  }

  .project-cat {
    font-size: 13px;
  }

  .project-tags {
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    max-width: 100%;
  }

  .project-tag {
    height: 28px;
    padding: 0 10px;
    flex-shrink: 0;
  }

  .project-tag span {
    font-size: 11px;
  }

  /* Dot indicators */
  .works-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0 16px;
  }

  .works-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
    flex-shrink: 0;
  }

  .works-carousel-dot.active {
    width: 20px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.85);
  }

  /* Hide countdown timer overlay on mobile — visual noise */
  .project-timer {
    display: none !important;
  }

  /* ---- reviews + services: the real scroll-driven crossfade (.bg-fade,
     fixed behind these sections, animated via app2.js) now runs on mobile
     too, exactly like desktop — no static background/gradient stand-ins
     needed here. Both sections stay transparent so the fixed backdrop
     (with its dashed-grid pattern) shows and fades through underneath. */

  .reviews {
    padding: 60px 0 80px;
  }

  .reviews-content {
    gap: 40px;
    padding: 0 16px;
  }

  .reviews-row {
    flex-direction: column;
    gap: 10px;
  }

  .reviews-trusted {
    width: 100%;
    min-height: auto;
    padding: 20px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 12px;
  }

  .quote-glyph {
    width: 44px;
    flex-shrink: 0;
  }

  .trusted-caption h3 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .trusted-caption p {
    font-size: 13px;
  }

  .reviews-slider {
    width: 100%;
    padding: 20px;
    min-height: 260px;
  }

  .review-quote {
    font-size: 16px;
    line-height: 1.4;
  }

  .review-toggles {
    gap: 6px;
  }

  .review-avatar {
    width: 36px;
    height: 36px;
  }

  .review-name {
    font-size: 14px;
    margin-bottom: 3px;
  }

  .review-company {
    font-size: 13px;
  }

  /* ---- services ---- */
  .services {
    gap: 50px;
    padding: 80px 16px;
  }

  /* Allow reordered children to display correctly without clipping */
  .services-intro {
    overflow: visible;
  }

  .services-h {
    font-size: var(--h-services);
  }


  .services-ticker {
    padding: 12px 0 20px;
  }

  .services-ticker-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 14px;
    column-gap: 10px;
    width: 100%;
  }

  .ticker-icon {
    width: 54px;
    height: 54px;
  }

  .ticker-tag {
    display: none;
  }

  .services-body {
    flex-direction: column;
    gap: 24px;
  }

  .services-body-col {
    padding: 0;
    width: 100%;
  }

  .services-desc {
    font-size: 15px;
  }

  .services-list {
    flex-direction: column;
    gap: 14px;
  }

  .services-col {
    gap: 14px;
    width: 100%;
  }

  .services-col-left {
    padding-top: 0;
  }

  .service-card {
    padding: 20px;
    border-radius: 0;
    gap: 16px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-info-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .service-info p {
    font-size: 14px;
  }

  .service-arrow {
    width: 34px;
    height: 34px;
  }

  /* ---- pricing ---- */
  .pricing {
    padding: 100px 0 120px;
    gap: 50px;
  }

  /* The desktop glow uses aspect-ratio: 2.4 sized off full container width,
     which on narrow phone viewports collapses to a short, barely-visible
     sliver behind the small top padding. Give mobile its own taller,
     stronger glow so the dark→light→dark handoff reads clearly. */
  .pricing-gradient {
    aspect-ratio: 0.9;
    background:
      radial-gradient(65% 45% at 30% 0%, rgba(255, 40, 20, 0.75) 0%, transparent 68%),
      radial-gradient(70% 50% at 70% 6%, rgba(255, 90, 50, 0.4) 0%, transparent 72%),
      radial-gradient(50% 40% at 85% 15%, rgba(200, 200, 210, 0.2) 0%, transparent 70%);
    filter: blur(28px);
  }

  .pricing-content {
    gap: 50px;
    padding: 0 16px;
  }

  .pricing-label {
    font-size: 20px;
  }

  .plans-row {
    flex-direction: column;
    gap: 14px;
  }

  .plan-card {
    padding: 20px;
    overflow: visible;
    gap: 20px;
  }

  /* plan-head stays row: name left, keycap right */
  .plan-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    min-height: auto;
    overflow: visible;
  }

  .plan-name {
    height: 32px;
    padding: 0 10px;
  }

  .plan-name span {
    font-size: 12px;
  }

  /* Keycap: position:relative keeps abs children contained; no negative margin on mobile */
  .keycap {
    position: relative;
    margin-top: 0;
    width: 90px;
    height: 108px;
    flex-shrink: 0;
  }

  .keycap-base {
    width: 82px;
    left: 4px;
  }

  .keycap-top {
    width: 82px;
  }

  .plan-price {
    font-size: 36px;
  }

  .plan-period {
    font-size: 13px;
  }

  .plan-benefits-label {
    font-size: 15px;
  }

  .benefit span {
    font-size: 14px;
  }

  .reassurances {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0 24px;
  }

  .reassurance {
    padding: 0 16px;
  }

  .reassurance-head h3 {
    font-size: 17px;
  }

  /* Remove left padding — icon+text stack vertically on mobile */
  .reassurance p {
    font-size: 14px;
    padding-left: 0;
  }

  .reassurance-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .project-model-card {
    flex-direction: column;
    gap: 24px;
    padding: 20px;
  }

  .faq-block>h3 {
    font-size: 24px;
  }

  .faq-columns {
    flex-direction: column;
    gap: 8px;
  }

  .faq-trigger {
    padding: 16px;
  }

  .faq-trigger p {
    font-size: 14px;
  }

  /* Larger tap target for faq toggle (44x44 minimum per Apple/Google guidelines) */
  .faq-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .faq-icon img {
    width: 12px;
    height: 12px;
  }

  .faq-answer-inner {
    padding: 0 16px 16px;
    font-size: 14px;
  }

  /* ---- footer ---- */
  .footer {
    padding: 0 16px max(16px, env(safe-area-inset-bottom));
    overflow: visible;
  }

  .footer-body {
    flex-direction: column;
    gap: 40px;
  }

  .footer-left {
    width: 100%;
    gap: 24px;
  }

  .footer-intro {
    gap: 16px;
  }

  .footer-clock {
    font-size: 12px;
  }

  .footer-headline {
    max-width: 100%;
    font-size: 18px;
  }

  .footer-right {
    width: 100%;
    justify-content: flex-start;
    gap: 40px;
  }

  .footer-col {
    flex: none;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 10px;
  }

  .footer-meta-right {
    align-items: flex-start;
    flex-direction: row;
    gap: 16px;
  }

  .footer-wordmark {
    overflow: hidden;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* ---- cookie banner ---- */
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    padding: 20px;
    gap: 12px;
    width: calc(100vw - 20px);
  }

  .cookie-banner h4 {
    font-size: 16px;
  }

  .cookie-banner p {
    font-size: 13px;
  }

  .cookie-actions button {
    height: 42px;
    font-size: 14px;
  }

  /* ---- case modal ---- */
  .case-modal-window {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 40px);
    border-radius: 12px;
  }

  .case-modal-close {
    top: 12px;
    right: 14px;
  }

  .case-modal-close-text {
    display: none;
  }

  .case-modal-info {
    padding: 16px;
  }

  .case-modal-title {
    font-size: 18px;
  }

  /* ---- confirm dialog ---- */
  .confirm-dialog-content {
    padding: 24px 20px;
    margin: 0 16px;
  }

  .confirm-dialog-content h3 {
    font-size: 18px;
  }
}

/* extra small devices */
@media (max-width: 389.98px) {
  .morph-card {
    padding: 12px;
  }

  .hero-mark-stack {
    font-size: clamp(40px, 12vw, 56px);
  }

  .plan-price {
    font-size: 30px;
  }
}

/* =========================================================
   TOUCH / NO-HOVER DEVICE OVERRIDES
   Applied to phones and tablets where hover doesn't exist.
   Critical: makes project CTAs always visible.
   ========================================================= */
@media (hover: none) {

  /* ---- Project card CTA — ALWAYS VISIBLE on touch ---- */
  /* Without this, the "Visit Website"/"View Case" button is unreachable */
  .project-open {
    max-height: 60px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    overflow: visible !important;
  }

  /* Active state tap feedback for project cards */
  .project-card:active {
    transform: scale(0.985);
  }

  /* ---- Morph card text contrast — readable on bright screens ---- */
  .morph-card-desc {
    color: rgba(255, 255, 255, 0.68);
  }

  /* ---- Swipe hint — make it visible ---- */
  .morph-card-swipe {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
  }

  /* ---- btn-blur — touch feedback ---- */
  .btn-blur {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .btn-blur:active {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25);
  }

  /* Arrow nudge on touch tap */
  .btn-blur:active svg,
  .btn-blur:active .btn-arrow {
    transform: translateX(4px);
    transition: transform 0.15s ease;
  }
}

/* =========================================================
   MOBILE CONTRAST + LAYOUT OVERRIDES
   Applied only on mobile (≤809px) regardless of pointer type.
   ========================================================= */
@media (max-width: 809.98px) {

  /* ---- Works / Reviews headline contrast ---- */
  /* Boosts legibility of the dimmed headline span on small screens,
     independent of the (now unified) .bg-fade crossfade. */
  .h-huge .dim {
    color: rgba(255, 255, 255, 0.6);
  }

  .reviews .h-huge .dim {
    /* Light-zone section — darker dim for readability on light bg */
    color: rgba(0, 0, 0, 0.55);
  }

  /* ---- Services section — ticker reorder ---- */
  /* Structure in HTML: .services-intro > heading-row (1st), ticker (2nd), heading-row (3rd)
     On mobile: move ticker BELOW both heading rows so "OUR TOOLS & YOUR BRAND."
     reads as one complete phrase, not interrupted by the icon strip.
     Using nth-child since :first-of-type/:last-of-type match by tag, not class. */
  .services-intro> :nth-child(1) {
    order: 0;
  }

  /* "Our tools &" heading */
  .services-intro> :nth-child(2) {
    order: 2;
  }

  /* ticker → pushed to bottom */
  .services-intro> :nth-child(3) {
    order: 1;
  }

  /* "your brand." heading */

  /* ---- Logo + menu flip to dark ink inside the light zone ----
     Now driven by the same body.light-zone class the desktop
     scroll crossfade uses (see rules near line 335+), since the
     JS crossfade runs unconditionally on all viewport sizes. */
}

/* =========================================================
   SHOW MORPH-TOGGLE ONLY ON DESKTOP/TABLET (≥810px)
   Already hidden via display:none in mobile block above,
   but add explicit show rule for clarity.
   ========================================================= */
@media (min-width: 810px) {
  .morph-toggle {
    display: flex;
  }
}


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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   BOTTOM PROGRESSIVE BLUR — fixed edge, blur ramps up
   toward the very bottom of the viewport
   ========================================================= */
.bottom-progressive-blur {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.bottom-progressive-blur>div {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bottom-progressive-blur>div:nth-child(1) {
  backdrop-filter: blur(0.137px);
  -webkit-backdrop-filter: blur(0.137px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 37.5%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 37.5%);
}

.bottom-progressive-blur>div:nth-child(2) {
  backdrop-filter: blur(0.273px);
  -webkit-backdrop-filter: blur(0.273px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 0) 50%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 0) 50%);
}

.bottom-progressive-blur>div:nth-child(3) {
  backdrop-filter: blur(0.547px);
  -webkit-backdrop-filter: blur(0.547px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 62.5%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 62.5%);
}

.bottom-progressive-blur>div:nth-child(4) {
  backdrop-filter: blur(1.094px);
  -webkit-backdrop-filter: blur(1.094px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 0) 75%);
}

.bottom-progressive-blur>div:nth-child(5) {
  backdrop-filter: blur(2.188px);
  -webkit-backdrop-filter: blur(2.188px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 87.5%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 87.5%);
}

.bottom-progressive-blur>div:nth-child(6) {
  backdrop-filter: blur(4.375px);
  -webkit-backdrop-filter: blur(4.375px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 0) 100%);
}

.bottom-progressive-blur>div:nth-child(7) {
  backdrop-filter: blur(8.75px);
  -webkit-backdrop-filter: blur(8.75px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 0) 112.5%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 0) 112.5%);
}

.bottom-progressive-blur>div:nth-child(8) {
  backdrop-filter: blur(17.5px);
  -webkit-backdrop-filter: blur(17.5px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 87.5%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 112.5%, rgba(0, 0, 0, 0) 125%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 87.5%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 112.5%, rgba(0, 0, 0, 0) 125%);
}

/* =========================================================
   FILM GRAIN — full-page animated noise (podium-style)
   ========================================================= */
body::after {
  content: "";
  position: fixed;
  inset: -120px;
  z-index: 60;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.05;
  animation: grain 1.2s steps(4) infinite;
}

@keyframes grain {
  0% {
    background-position: 0 0;
  }

  25% {
    background-position: 60px -40px;
  }

  50% {
    background-position: -35px 55px;
  }

  75% {
    background-position: 45px 30px;
  }

  100% {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }
}