/* ==========================================================================
   PRODENTOM — Cinematic dark studio theme
   Structure: tokens · base · primitives · nav · hero · dobiko · work ·
              studio · contact · footer · dialogs · motion states · responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #09090c;
  --bg-2: #0f0e14;
  --bg-3: #16151e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f3f8;
  --muted: #a3a2b3;
  --dim: #6e6d80;

  --violet: #e8291c;
  --violet-2: #f05a3a;
  --violet-3: #c01a10;
  --amber: #ff7a2f;
  --amber-2: #ffb26b;

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(96px, 14vw, 200px);
  --nav-h: 58px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scrollbar-gutter: stable;
}
html.lock { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}

/* Film grain — static, very low opacity */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
::selection { background: rgba(232, 41, 28, 0.45); color: #fff; }

:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 10000;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 600;
  transform: translateY(-200%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Animated gradient type */
.grad {
  background: linear-gradient(
    105deg,
    #ffffff  0%,
    #ffe4c8 12%,
    #ffb870 26%,
    #ff6a28 40%,
    #e8291c 54%,
    #ff6a28 68%,
    #ffb870 82%,
    #fff4e8 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: sheen 7s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.is-paused .grad, .is-paused .marquee-track, .is-paused .ring, .is-paused .logo-wrap, .is-paused .chip, .is-paused .scroll-cue i::after { animation-play-state: paused; }

/* Section typography */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet);
}
.kicker::before { content: ''; width: 32px; height: 2px; background: currentColor; opacity: 0.95; border-radius: 2px; }
.h2 { font-size: clamp(2.5rem, 6.2vw, 5.2rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 20px; }
.h2 .serif { color: var(--violet); font-size: 1.04em; -webkit-text-stroke: 0.45px currentColor; }
.section-sub { color: var(--muted); font-size: clamp(1.04rem, 1.32vw, 1.22rem); font-weight: 600; line-height: 1.62; max-width: 58ch; margin-top: 24px; }
.sub-h { font-family: var(--font-display); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 12px 0 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.96rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.22s var(--ease), background-color 0.22s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn > span { position: relative; z-index: 1; }
.btn-ic {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: #0a0a0f; color: #fff;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-primary {
  background: #ffffff; color: #09090c;
  box-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary .btn-ic {
  background: #09090c; color: #ffffff;
}
.btn-primary::before {
  content: ''; position: absolute; inset: -1px; z-index: 0;
  background: linear-gradient(110deg, var(--violet-3), var(--violet) 50%, #d36a3a);
  transform: translateY(101%); transition: transform 0.3s var(--ease);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 40px -6px rgba(232, 41, 28, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover::before { transform: none; }
.btn-primary:hover .btn-ic { background: #fff; color: #0a0a0f; transform: rotate(45deg); }
.btn-glass {
  padding: 0 28px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12); color: #f4f3f8;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 0.88rem; }
.btn-xl { min-height: 72px; padding: 0 14px 0 40px; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.btn-xl .btn-ic { width: 46px; height: 46px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--font-display); font-size: 0.94rem; font-weight: 700; color: var(--violet); transition: gap 0.24s var(--ease), color 0.2s; }
.text-link:hover { gap: 14px; color: #ffffff; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #e5e4ee; background: rgba(255, 255, 255, 0.04); }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 9500; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--amber)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 1000; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.nav {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(900px, 100%); height: var(--nav-h); padding: 0 8px 0 22px;
  background: rgba(14, 13, 19, 0.78); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav-wrap.is-scrolled .nav { background: rgba(14, 13, 19, 0.94); border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75); }

.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; font-size: 0.86rem; color: #ffffff; }
.nav-brand img { width: 30px; height: auto; }

.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; z-index: 1; display: block; padding: 8px 16px; font-size: 0.88rem; color: var(--muted); border-radius: 999px; transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: #ffffff; }
.nav-indicator {
  position: absolute; top: 50%; left: 0; height: 36px; margin-top: -18px; width: 0;
  border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0; transition: transform 0.25s var(--ease), width 0.25s var(--ease), opacity 0.2s;
  pointer-events: none;
}
.nav-indicator.is-ready { opacity: 1; }

.nav-cta {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px;
  background: #ffffff; color: #09090c; font-size: 0.86rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s, box-shadow 0.2s var(--ease);
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--violet), var(--amber));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(232, 41, 28, 0.55);
}

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, 0.07); }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #1a1714; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: 110px var(--gutter) 48px; background: rgba(250, 249, 247, 0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.7s var(--ease-io), visibility 0s 0.7s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--ease-io), visibility 0s; }
.menu li a { display: flex; align-items: baseline; gap: 18px; padding: 8px 0; font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 600; letter-spacing: -0.03em; }
.menu li a span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--violet-2); letter-spacing: 0.1em; }
.menu li { opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.menu.is-open li { opacity: 1; transform: none; }
.menu.is-open li:nth-child(1) { transition-delay: 0.2s; } .menu.is-open li:nth-child(2) { transition-delay: 0.26s; }
.menu.is-open li:nth-child(3) { transition-delay: 0.32s; } .menu.is-open li:nth-child(4) { transition-delay: 0.38s; }
.menu.is-open li:nth-child(5) { transition-delay: 0.44s; }
.menu-social { display: flex; gap: 12px; }
.menu-social a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); }

/* ==========================================================================
   STUDIO MODULAR ARCHITECTURAL HERO BANNER
   ========================================================================== */

.sm-hero {
  position: relative;
  min-height: 132vh;
  min-height: 132svh;
  display: flex;
  flex-direction: column;
  overflow: clip;
  isolation: isolate;
  background: #0d0d10;
}

.sm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Subtle architectural geometry inspired by Studio Modular */
.sm-hero__shape--arch {
  position: absolute;
  left: -4vw;
  top: 26svh;
  width: 44vw;
  height: 76svh;
  border-radius: 100% 0 0 0 / 100% 0 0 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(232, 41, 28, 0.045) 55%, rgba(255, 255, 255, 0.006) 100%);
}

.sm-hero__shape--circle {
  position: absolute;
  left: 39vw;
  top: 24svh;
  width: 44vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(165deg, rgba(255, 122, 47, 0.065) 0%, rgba(232, 41, 28, 0.04) 50%, rgba(255, 255, 255, 0.008) 100%);
}

.sm-hero__glow--1 {
  position: absolute;
  top: -12%;
  right: -8%;
  width: min(820px, 75vw);
  height: min(820px, 75vw);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 41, 28, 0.16) 0%, rgba(255, 122, 47, 0.07) 50%, transparent 100%);
  filter: blur(72px);
}

.sm-hero__glow--2 {
  position: absolute;
  bottom: -15%;
  left: -12%;
  width: min(860px, 80vw);
  height: min(860px, 80vw);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168, 85, 247, 0.1) 0%, rgba(232, 41, 28, 0.05) 55%, transparent 100%);
  filter: blur(80px);
}

.sm-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(128px, 25svh, 220px);
  padding-bottom: clamp(56px, 8svh, 96px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Upper Stage: Full-Bleed Kinetic Display Type + Layered Portrait Card ── */
.sm-hero__stage {
  position: relative;
  width: 100%;
}

.sm-hero__logo {
  position: relative;
  width: 100%;
  padding-inline: clamp(14px, 1.8vw, 34px);
  z-index: 4;
  user-select: none;
  pointer-events: none;
  overflow: visible;
}

.sm-logo-strip {
  width: 100%;
  overflow: visible;
  will-change: transform;
}

.sm-logo-strip--top {
  display: flex;
  justify-content: flex-start;
}

.sm-logo-strip--btm {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.035em;
}

.sm-logo-inner {
  display: inline-block;
  will-change: transform, opacity;
}

.sm-huge-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, min(15.4vw, 35svh), 16.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.042em;
  color: #ffffff;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ── Floating Media Cards (z-index: 2 so giant text glides cleanly in front) ── */
.sm-hero__media {
  z-index: 2;
  pointer-events: auto;
  will-change: transform, opacity;
}

/* Portrait card (Dobiko) — tucked on right behind "Studio" */
.sm-hero__media--1 {
  position: absolute;
  top: 32%;
  right: clamp(28px, 6.8vw, 124px);
  width: clamp(136px, 12vw, 196px);
}

.sm-media-card--portrait {
  aspect-ratio: 3 / 4.2;
}

.sm-media-card--landscape {
  aspect-ratio: 16 / 10.2;
}

/* ── Lower Row: Landscape Card (peeks into opening screen) | Scroll Stamp | Editorial Copy ── */
.sm-hero__bottom {
  position: relative;
  width: 100%;
  max-width: min(1460px, 90vw);
  margin-inline: auto;
  margin-top: clamp(44px, 7.5svh, 80px);
  display: grid;
  grid-template-columns: minmax(220px, 23vw) auto minmax(300px, 1fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 72px);
}

/* Mattil card — pulled upward so its top half peeks into the bottom-left of the initial 100vh viewport */
.sm-hero__media--2 {
  position: relative;
  width: 100%;
  margin-top: clamp(-145px, -16svh, -80px);
}

/* Editorial copy — crisp right column */
.sm-hero__content {
  position: relative;
  z-index: 5;
  max-width: 560px;
  justify-self: end;
  min-width: 0;
}

.sm-media-card {
  position: relative;
  border-radius: clamp(16px, 1.8vw, 24px);
  overflow: hidden;
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 60px -10px rgba(0, 0, 0, 0.7),
    0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.sm-media-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 32px 75px -10px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.sm-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-media-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ── Editorial Content ── */
.sm-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: #ffffff;
}

.sm-serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(110deg, var(--violet) 0%, var(--amber) 55%, #ffb26b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1.08em;
  padding-left: 0.05em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.9;
  animation: smArrowBounce 2s ease-in-out infinite;
}

.sm-hero__desc {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.56);
  font-size: clamp(0.86rem, 0.96vw, 0.98rem);
  line-height: 1.62;
  margin-bottom: 22px;
}

.sm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Rotating Circular Scroll Stamp ── */
.sm-scroll-badge {
  position: relative;
  z-index: 5;
  width: clamp(92px, 7.6vw, 120px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-scroll-badge:hover { transform: scale(1.08); }

.sm-scroll-badge__circle {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-scroll-badge__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: smRotate 16s linear infinite;
  pointer-events: none;
}

.sm-scroll-badge__text {
  font-family: var(--font-body);
  font-size: 8.8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.72);
  opacity: 0.9;
}

.sm-scroll-badge__arrow {
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #100e0c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation: smArrowBounce 2s ease-in-out infinite;
}

@keyframes smRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes smArrowBounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .sm-hero {
    min-height: auto;
  }
  .sm-hero__container {
    padding-top: 108px;
    padding-bottom: 44px;
  }
  .sm-hero__shape--arch,
  .sm-hero__shape--circle {
    opacity: 0.6;
  }
  .sm-hero__media--1 { display: none; }
  .sm-huge-text { font-size: clamp(3rem, 15.5vw, 5.8rem); }
  .sm-hero__bottom {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 24px;
    margin-top: 28px;
  }
  .sm-hero__media--2 {
    margin-top: 0;
    max-width: 320px;
  }
  .sm-hero__content {
    justify-self: start;
  }
  .sm-scroll-badge { display: none; }
}

/* Marquee */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; color: var(--dim); white-space: nowrap; }
.marquee-track span::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Dobiko Task ---------- */
.dobiko { position: relative; padding: var(--section-y) 0 calc(var(--section-y) * 0.5); isolation: isolate; }
.dobiko-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 30% at 85% 20%, rgba(255, 255, 255, 0.02), transparent 70%),
    linear-gradient(180deg, #09090c 0%, #0d0c11 30%, #0c0b10 70%, #09090c 100%);
}

.d-intro { max-width: 980px; }
.d-title { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); margin-top: 28px; }
.d-icon { width: clamp(68px, 9.2vw, 124px); height: auto; border-radius: 26%; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.d-title h2 { font-size: clamp(2.8rem, 8.2vw, 7.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.94; color: #ffffff; }
.d-colon {
  display: block; margin-top: 0.12em; font-size: 0.45em; line-height: 1.08; letter-spacing: -0.01em;
  color: var(--violet); -webkit-text-stroke: 0.5px rgba(232, 41, 28, 0.55);
}
.d-lead { margin-top: 32px; font-family: var(--font-display); font-size: clamp(1.45rem, 2.8vw, 2.3rem); font-weight: 700; letter-spacing: -0.028em; line-height: 1.16; max-width: 32ch; color: #ffffff; }

/* Real Engineering Telemetry Strip */
.d-telemetry {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 36px; padding: 22px 26px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.d-telemetry-item { display: flex; flex-direction: column; gap: 4px; }
.d-telemetry-val { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: #ffffff; letter-spacing: -0.02em; }
.d-telemetry-val i { display: none !important; }
.d-telemetry-lbl { font-size: 0.82rem; font-weight: 700; color: #e5e4ee; letter-spacing: -0.01em; }
.d-telemetry-desc { font-size: 0.74rem; font-weight: 500; color: var(--dim); line-height: 1.4; }

.d-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.d-stage { display: grid; grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr); gap: 20px; margin-top: clamp(56px, 8vw, 104px); align-items: stretch; }
.d-phone-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 26px;
  padding: clamp(24px, 2.8vw, 36px) clamp(20px, 2.4vw, 32px); border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; isolation: isolate;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.d-phone-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.d-phone-hint { font-size: 0.76rem; color: var(--dim); letter-spacing: 0.04em; }

/* Phone */
.phone-tilt { perspective: 1400px; margin-block: auto; }
.phone { touch-action: pan-y; position: relative; width: clamp(220px, 18.5vw, 266px); aspect-ratio: 9 / 19.5; outline-offset: 14px; }
.phone-glow { display: none; }
.phone-body {
  position: absolute; inset: 0; padding: 9px; border-radius: 15% / 7%;
  background: linear-gradient(145deg, #3d3d46 0%, #1c1c23 18%, #0e0e13 52%, #24242c 82%, #42424c 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 1.5px rgba(255, 255, 255, 0.06), 0 50px 80px -20px rgba(0, 0, 0, 0.9);
}
.phone-btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #3a3a44, #17171c); }
.phone-btn--a { left: -3px; top: 17%; height: 5%; }
.phone-btn--b { left: -3px; top: 25%; height: 9%; }
.phone-btn--c { right: -3px; top: 27%; height: 13%; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; background: #050309; isolation: isolate; }
.phone-island { position: absolute; z-index: 5; top: 2.2%; left: 50%; width: 30%; height: 3.2%; transform: translateX(-50%); border-radius: 999px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04); }
.phone-glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 22%, transparent 38%); }

.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); filter: blur(4px); transition: opacity 0.35s var(--ease), transform 0.4s var(--ease), filter 0.35s var(--ease); pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; filter: none; }
.slide img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.slide[data-fit='fill'] img { object-fit: fill; }

.carousel-ui { display: flex; flex-direction: column; gap: 18px; width: min(100%, 380px); }
.carousel-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.carousel-count { font-size: 0.8rem; color: var(--dim); letter-spacing: 0.1em; }
.carousel-count b { color: #ffffff; font-weight: 500; }
.carousel-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: #ffffff; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 8px; align-items: center; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); transition: width 0.25s var(--ease), background-color 0.25s; }
.dot::after { content: ''; position: absolute; inset: -14px -4px; }
.dot:hover { background: rgba(255, 255, 255, 0.4); }
.dot.is-active { width: 28px; background: #ffffff; }
.arrows { display: flex; gap: 8px; }
.arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: #ffffff; transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.arrow:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.25); transform: scale(1.05); }

/* Feature bento grid */
.d-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: stretch; }
.feature {
  position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 32px);
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; isolation: isolate;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
  will-change: transform;
}
.feature[data-slide] { cursor: pointer; }
.feature[data-slide]:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}
.feature.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.feature > * { position: relative; }
.feature-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.feature-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.feature-no { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--dim); letter-spacing: 0.08em; }
.feature.is-active .feature-kicker { color: #ffffff; }
.feature.is-active .feature-no { color: #ffffff; }
.feature h3 { font-size: clamp(1.35rem, 1.85vw, 1.65rem); font-weight: 800; letter-spacing: -0.025em; color: #ffffff; }
.feature p { margin: 10px 0 20px; color: var(--muted); font-size: 0.95rem; font-weight: 500; line-height: 1.6; }
.feature .tags { margin-top: auto; }

.feature--privacy { grid-column: 1 / -1; gap: 18px; justify-content: space-between; }
.feature-privacy-main { display: flex; flex-direction: column; gap: 14px; }
.feature-privacy-main p { margin: 0; max-width: 68ch; }
.feature-privacy-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.feature-privacy-foot .tags { margin-top: 0; }
.feature-privacy-foot .text-link { margin-top: 0; }

/* Also inside */
.d-also { margin-top: clamp(44px, 5vw, 68px); }
.also-interactive { cursor: pointer; }
.also-interactive.is-active { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }
.d-also-title { font-family: var(--font-display); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.also-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.also-grid li {
  display: flex; flex-direction: column; padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s;
}
.also-grid li:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
}
.also-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.also-no { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--dim); letter-spacing: 0.08em; }
.also-grid h4 { margin: 0 0 8px; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.02em; color: #ffffff; }
.also-grid p { color: var(--muted); font-size: 0.9rem; font-weight: 500; line-height: 1.55; }

/* Gallery */
.d-gallery { display: grid; grid-template-columns: 1.7fr 0.65fr 0.65fr; gap: 18px; margin-top: 18px; align-items: stretch; }
.zoom { position: relative; display: block; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08); background: #0c0b10; text-align: left; }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.zoom:hover img { transform: scale(1.04); }
.zoom-label { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 0.8rem; font-weight: 600; color: #fff; background: rgba(8, 8, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.12); }
.zoom--wide .zoom-label { left: auto; max-width: calc(100% - 24px); gap: 14px; }

.transparency { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 56px; padding: 22px 28px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; background: rgba(255, 255, 255, 0.03); }
.transparency-info { display: flex; align-items: center; gap: 14px; font-weight: 600; color: #ffffff; }
.transparency-info .ic { font-size: 1.5rem; color: #5ee09a; }

.d-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.d-socials > span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.d-socials ul { display: flex; flex-wrap: wrap; gap: 10px; }
.d-socials a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.86rem; color: var(--muted); background: rgba(255, 255, 255, 0.02); transition: color 0.35s, background-color 0.35s, border-color 0.35s, transform 0.35s var(--ease); }
.d-socials a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* ---------- Work ---------- */
.work { padding: var(--section-y) 0; background: linear-gradient(180deg, #09090c 0%, #0d0c12 50%, #09090c 100%); }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.projects { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 150px); }
.project { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.project--rev { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
.project--rev .project-media { order: 2; }

.project-media { display: block; perspective: 1400px; }
.browser {
  position: relative; border-radius: 22px; overflow: hidden; background: #121118; border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 35px 90px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.22s;
  will-change: transform;
}
.project:hover .browser {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 50px 110px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.project--violet .browser { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: #16151f; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; }
.browser-bar i:nth-child(1) { background: #ff5f56; }
.browser-bar i:nth-child(2) { background: #ffbd2e; }
.browser-bar i:nth-child(3) { background: #27c93f; }
.browser-bar span {
  margin: 0 auto; padding: 3px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); font-size: 0.72rem; font-weight: 500;
  color: var(--muted); transform: translateX(-24px); letter-spacing: 0.02em;
}
.browser-view { position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.browser-view img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; transition: transform 0.35s var(--ease); }
.project--violet .browser-view { background: #02010a; }
.project--violet .browser-view img { top: 0; height: 100%; object-fit: contain; }
.project:hover .browser-view img { transform: scale(1.03); }
.project--violet:hover .browser-view img { transform: scale(1.02); }

.project-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.project-no { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--dim); }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.74rem; color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.live i {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-live 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
.project-cat { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }
.project h3 { margin-top: 14px; font-size: clamp(2.2rem, 4.3vw, 3.7rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #ffffff; }
.project h3 .serif { display: block; margin-top: 6px; font-size: 0.56em; color: var(--violet); -webkit-text-stroke: 0.4px currentColor; }
.project-desc { margin: 22px 0 20px; color: var(--muted); font-size: 1.04rem; font-weight: 500; line-height: 1.65; max-width: 50ch; }

/* Engineering Project Specs */
.project-specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px;
  margin: 20px 0 28px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
}
.project-spec-item { display: flex; flex-direction: column; gap: 2px; }
.project-spec-k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.project-spec-v { font-size: 0.86rem; font-weight: 700; color: #ffffff; }

.project .tags { margin-bottom: 30px; }

/* ---------- Studio ---------- */
.studio { position: relative; padding: var(--section-y) 0; background: linear-gradient(180deg, #09090c 0%, #0e0d14 30%, #0d0c12 80%, #09090c 100%); isolation: isolate; overflow: hidden; }
.studio-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.studio-particles-canvas { width: 100%; height: 100%; display: block; opacity: 0.75; }
.studio > .container { position: relative; z-index: 1; }
.statement { margin-top: 28px; font-size: clamp(2rem, 4.7vw, 4.2rem); font-weight: 800; letter-spacing: -0.038em; line-height: 1.06; max-width: 26ch; color: #ffffff; }
.statement .w { display: inline-block; white-space: pre; }

.caps { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); }
.cap {
  position: relative; display: flex; flex-direction: column; min-height: 205px;
  padding: clamp(20px, 2.2vw, 28px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden; isolation: isolate;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 18px 45px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), background-color 0.22s;
  will-change: transform, opacity;
}
.cap--6 { grid-column: span 6; }
.cap--7 { grid-column: span 7; }
.cap--5 { grid-column: span 5; }
.cap::before { display: none; }
.cap:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.7);
}
.cap-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cap-no { font-family: var(--font-display); font-size: 0.82rem; color: var(--dim); letter-spacing: 0.08em; font-weight: 500; }
.cap h4 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(1.22rem, 1.65vw, 1.52rem); font-weight: 500; letter-spacing: -0.025em; color: #ffffff; }
.cap p { margin: 0 0 16px; max-width: 44ch; color: rgba(255, 255, 255, 0.74); font-size: 0.9rem; font-weight: 400; line-height: 1.55; }
.cap-foot { margin-top: auto; padding-top: 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); border-top: 1px solid rgba(255, 255, 255, 0.07); }

/* Scroll-Morphing Textured Studio Stack Showcase (Video Style) */
.studio-stack-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
}
.studio-stack {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 45%, #4f46e5 0%, rgba(79, 70, 229, 0.85) 32%, transparent 68%),
    radial-gradient(circle at 58% 50%, #9333ea 0%, rgba(147, 51, 234, 0.88) 42%, transparent 74%),
    radial-gradient(circle at 92% 52%, #e11d48 0%, rgba(225, 29, 72, 0.78) 32%, transparent 66%),
    linear-gradient(135deg, #1e1b4b 0%, #581c87 55%, #881337 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 70px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-origin: center center;
  will-change: width, border-radius;
}
.studio-stack-inner {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 2.8vw, 34px) clamp(22px, 3.2vw, 38px);
  min-width: 740px;
  will-change: opacity;
}
.studio-stack-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); padding-bottom: 16px; }
.studio-stack-title { font-family: var(--font-display); font-size: clamp(1.3rem, 1.85vw, 1.68rem); font-weight: 400; letter-spacing: -0.025em; color: #ffffff; }
.studio-stack-desc { font-size: 0.86rem; font-weight: 400; color: rgba(255, 255, 255, 0.8); margin-top: 3px; }
.stack-badge { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px; font-size: 0.74rem; font-weight: 500; color: #ffffff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
.studio-stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.studio-stack-col { display: flex; flex-direction: column; gap: 10px; }
.studio-stack-cat { font-family: var(--font-display); font-size: 0.84rem; font-weight: 500; letter-spacing: -0.01em; color: #ffffff; }
.studio-stack-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.studio-stack-pill { padding: 5px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 400; color: rgba(255, 255, 255, 0.92); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.studio-stack-pill:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.4); color: #ffffff; transform: translateY(-2px); }

/* The Prodentom Engineering Principles */
.standard { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 30px); border-top: 1px solid rgba(255, 255, 255, 0.09); padding-top: 36px; margin-top: clamp(44px, 6vw, 76px); }
.standard-item { display: flex; flex-direction: column; }
.standard-no { font-family: var(--font-display); font-size: 0.76rem; font-weight: 600; color: var(--violet); letter-spacing: 0.12em; margin-bottom: 8px; }
.standard h4 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; letter-spacing: -0.02em; color: #ffffff; }
.standard p { margin-top: 8px; color: var(--muted); font-size: 0.86rem; font-weight: 400; line-height: 1.55; }

.text-center { text-align: center; }

.studio-giant-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}
.studio-giant-head .kicker {
  justify-content: center;
}
.studio-stack-intro {
  margin-top: clamp(56px, 7vw, 88px);
  margin-bottom: clamp(20px, 3vw, 32px);
}

/* ---------- Contact & Giant Ending ---------- */
.contact {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0 clamp(44px, 6vw, 76px);
  isolation: isolate;
  overflow: clip;
}
.contact-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 60%, rgba(124, 58, 237, 0.07), transparent 70%),
    radial-gradient(50% 50% at 50% 100%, rgba(225, 43, 29, 0.05), transparent 75%);
}
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact .kicker {
  color: var(--dim);
}
.contact-giant-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8.8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.94;
  color: #ffffff;
  margin: 16px 0 20px;
}
.studio-hero-title {
  font-size: clamp(2.5rem, 6.8vw, 5.6rem);
  margin: 12px 0 16px;
}
.together-gradient {
  display: inline-block;
  background: linear-gradient(130deg, #9333ea 0%, #c026d3 35%, #f43f2e 70%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.contact-sub {
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.55;
  margin: 0 auto;
}
.contact-quick-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- V-Footer (Video-Inspired Textured Morphing Card on Scroll) ---------- */
.v-footer {
  position: relative;
  padding: 0 0 clamp(32px, 4.5vw, 64px);
  background: #09090c;
  overflow: clip;
}
.v-footer-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  box-sizing: border-box;
}

/* The Panoramic Textured Card that morphs from dot to full card */
.v-footer-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 50%, #f43f2e 0%, rgba(244, 63, 46, 0.88) 28%, transparent 65%),
    radial-gradient(circle at 55% 45%, #7c3aed 0%, rgba(124, 58, 237, 0.92) 45%, transparent 75%),
    radial-gradient(circle at 92% 55%, #ea580c 0%, rgba(234, 88, 12, 0.75) 30%, transparent 65%),
    linear-gradient(135deg, #b91c1c 0%, #6d28d9 55%, #4c1d95 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 75px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform-origin: center center;
  will-change: width, border-radius;
}

/* SVG Noise Overlay */
.v-card-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.36'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.v-card-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  padding: clamp(22px, 2.5vw, 32px) clamp(22px, 3vw, 40px);
  min-width: 780px;
  will-change: opacity;
}

.v-card-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.v-card-headline h3 {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.15vw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #ffffff;
}
.v-card-sub {
  margin-top: 4px;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: clamp(1.38rem, 2.15vw, 1.95rem);
  line-height: 1.18;
  color: #ffffff;
}
.v-card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}
.v-legal-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.v-legal-btn:hover {
  color: #ffffff;
}
.v-copy {
  color: rgba(255, 255, 255, 0.72);
}

/* Right Nav Columns */
.v-card-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}
.v-nav-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 12px;
}
.v-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v-nav-col a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s, transform 0.2s var(--ease);
  display: inline-block;
}
.v-nav-col a:hover {
  color: #ffffff;
  transform: translateX(3px);
}
.v-email-link {
  word-break: break-all;
  font-weight: 600;
}

@media (max-width: 900px) {
  .v-footer-card {
    width: 100%;
  }
  .v-card-inner,
  .studio-stack-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 18px;
    min-width: 0;
  }
}

.v-footer-bar {
  width: calc(100% - 24px);
  margin: 20px auto 0;
  display: flex;
  justify-content: flex-end;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color 0.3s; font-size: 0.88rem; }
.to-top:hover { color: #ffffff; }

/* ---------- Dialogs ---------- */
.dialog { margin: auto; padding: 0; border: 0; color: var(--text); background: transparent; max-width: 100vw; max-height: 100dvh; overflow: visible; }
.dialog::backdrop { background: rgba(3, 3, 6, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.dialog[open] { animation: dialog-in 0.5s var(--ease); }
.dialog[open]::backdrop { animation: fade-in 0.5s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
.dialog-card { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; border-radius: 28px; border: 1px solid var(--line-2); background: #ffffff; box-shadow: 0 60px 120px rgba(0, 0, 0, 0.18); overflow: hidden; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.dialog-close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.04); color: var(--text); transition: background-color 0.3s, transform 0.4s var(--ease); }
.dialog-close:hover { background: var(--violet); transform: rotate(90deg); }
.dialog-body { padding: 26px; overflow-y: auto; color: var(--muted); font-size: 0.95rem; }
.dialog-body h3 { margin: 24px 0 8px; font-size: 1rem; letter-spacing: -0.01em; color: var(--amber-2); }
.dialog-body p + p { margin-top: 10px; }
.dialog-body .notice { padding: 16px 20px; margin-bottom: 18px; border-radius: 14px; border-left: 3px solid #5ee09a; background: rgba(94, 224, 154, 0.08); color: var(--text); }
.dialog--lightbox { width: 100vw; height: 100dvh; display: none; align-items: center; justify-content: center; padding: 24px; }
.dialog--lightbox[open] { display: flex; }
.dialog--lightbox img { max-width: min(94vw, 1200px); max-height: 88dvh; width: auto; height: auto; border-radius: 18px; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.9); background: #000; }
.dialog-close--float { position: fixed; top: 20px; right: 20px; z-index: 2; }

/* ---------- Motion states (only when GSAP is running) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(36px); }
.anim [data-rise] { transform: translateY(56px); }
.anim [data-intro-top],
.anim [data-intro-btm] { opacity: 0; }
.anim [data-banner-media-1],
.anim [data-banner-media-2] { opacity: 0; }
.anim [data-banner-text] { opacity: 0; }
.anim .sm-scroll-badge { opacity: 0; }
.anim .statement .w { opacity: 0.16; }
.anim .nav { opacity: 0; transform: translateY(-24px); }
.anim .nav.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 12px; }
  .d-stage { grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.2fr); gap: 18px; }
}

@media (max-width: 960px) {
  .nav { padding-right: 6px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-wrap { top: 12px; }

  .hero { padding: 120px 0 110px; align-items: flex-start; }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .stage { order: -1; width: min(72vw, 380px); margin-top: 0; }
  .hero-title { font-size: clamp(2.2rem, 10.5vw, 5rem); }
  .chip--a { left: 0; }
  .chip--b { right: 0; }

  .hero-stats { margin-top: 24px; padding: 14px 0; }
  .hero-stat-num { font-size: clamp(1.3rem, 5vw, 1.7rem); }

  .d-stage { grid-template-columns: 1fr; }
  .d-telemetry { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .also-grid { grid-template-columns: repeat(2, 1fr); }
  .d-gallery { grid-template-columns: 1fr 1fr; }
  .zoom--wide { grid-column: 1 / -1; }

  .project, .project--rev { grid-template-columns: 1fr; gap: 28px; }
  .project--rev .project-media { order: 0; }
  .project-specs { grid-template-columns: 1fr; }

  .caps { grid-template-columns: 1fr; }
  .cap--6, .cap--7, .cap--5 { grid-column: auto; min-height: 190px; }
  .studio-stack-grid { grid-template-columns: repeat(2, 1fr); }
  .standard { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --section-y: 88px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 12px 0 0; }
  .hero-stat:not(:last-child) { margin-right: 12px; }
  .d-actions .btn { width: 100%; }
  .d-title { flex-direction: column; align-items: flex-start; }
  .d-telemetry { grid-template-columns: 1fr; gap: 12px; }
  .d-bento { grid-template-columns: 1fr; }
  .also-grid { grid-template-columns: 1fr; }
  .feature-privacy-main { flex-direction: column; gap: 14px; }
  .phone { width: min(66vw, 260px); }
  .transparency { padding: 20px; }
  .d-gallery { grid-template-columns: 1fr; }
  .studio-stack-grid { grid-template-columns: 1fr; }
  .standard { grid-template-columns: 1fr; }
  .btn-xl { width: 100%; padding-left: 28px; justify-content: space-between; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .chip { font-size: 0.72rem; padding: 7px 12px; }
}


/* ==========================================================================
   DARK / LIGHT SPLIT SECTIONS
   ========================================================================== */

/* Sections that go full dark */
.sm-hero,
.contact,
.footer {
  --text: #f4f3f8;
  --muted: #a3a2b3;
  --dim: #6f6e80;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.sm-hero  { background: #0d0d10; }
.contact { background: #0d0d10; }
.footer  { background: #080808; border-top-color: rgba(255, 255, 255, 0.08); }

/* Marquee: dark separator band */
.marquee { background: #0a0a0c; border-block-color: rgba(255, 255, 255, 0.07); }
.marquee-track span { color: rgba(255, 255, 255, 0.35); }

/* Hero bottom-fade blends into marquee dark */
.sm-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, #0a0a0c); pointer-events: none; z-index: 1; }

/* Eyebrow pill on dark hero */
.sm-hero .eyebrow {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
/* Primary & glass buttons on dark sections (hero + contact) */
.sm-hero .btn-primary,
.contact .btn-primary {
  background: #ffffff;
  color: #0d0d10;
  box-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.45);
}
.sm-hero .btn-primary .btn-ic,
.contact .btn-primary .btn-ic {
  background: #0d0d10;
  color: #ffffff;
}
.sm-hero .btn-primary:hover,
.contact .btn-primary:hover {
  color: #ffffff;
}
.sm-hero .btn-primary:hover .btn-ic,
.contact .btn-primary:hover .btn-ic {
  background: #ffffff;
  color: #0d0d10;
}
.sm-hero .btn-glass,
.contact .btn-glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.contact .btn-glass .btn-ic {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.sm-hero .btn-glass:hover,
.contact .btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.contact .btn-glass:hover .btn-ic {
  background: #fff;
  color: #0d0d10;
  transform: rotate(45deg);
}

/* Dialog always dark regardless of theme */
.dialog-card { background: #111116; color: #f4f3f8; }
.dialog-body { color: #a3a2b3; }
.dialog-body .notice { color: #f4f3f8; }
.dialog-close { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.14); }
/* ---------- iOS Liquid Glass Navigation ---------- */
.nav,
.nav-wrap.is-scrolled .nav {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.14) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  -webkit-backdrop-filter: blur(30px) saturate(220%) brightness(1.12);
  backdrop-filter: blur(30px) saturate(220%) brightness(1.12);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 0 rgba(255, 255, 255, 0.12),
    inset 1.5px 0 0 rgba(255, 255, 255, 0.18),
    inset -1.5px 0 0 rgba(255, 255, 255, 0.10),
    inset 0 0 26px rgba(255, 255, 255, 0.07),
    0 18px 50px -12px rgba(0, 0, 0, 0.7) !important;
  overflow: hidden;
}
.nav::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background:
    radial-gradient(70% 140% at 18% -40%, rgba(255, 255, 255, 0.34), transparent 60%),
    radial-gradient(60% 120% at 90% 150%, rgba(255, 255, 255, 0.14), transparent 60%);
}
.nav > * { position: relative; z-index: 1; }
.nav-indicator {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.10)) !important;
  -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
.nav-links a { color: rgba(255, 255, 255, 0.78); }
.nav-links a:hover, .nav-links a.is-active { color: #ffffff; text-shadow: 0 1px 8px rgba(255, 255, 255, 0.25); }
.nav-brand { text-shadow: 0 1px 10px rgba(255, 255, 255, 0.2); }
.nav-cta {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)) !important;
  color: #0b0b10 !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(200%); backdrop-filter: blur(14px) saturate(200%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.4), 0 8px 22px -6px rgba(0, 0, 0, 0.5) !important;
}
.nav-cta:hover {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.92), rgba(244, 63, 46, 0.85)) !important;
  color: #fff !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 10px 28px -6px rgba(244, 63, 46, 0.6) !important;
}

/* ---------- iOS Liquid Glass Text Boxes (website cards) ---------- */
.cap, .feature, .also-grid > *, .d-telemetry, .project-specs, .transparency, .standard-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(168, 85, 247, 0.20), transparent 60%),
    radial-gradient(90% 120% at 0% 100%, rgba(249, 115, 22, 0.16), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.09) 100%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset 0 0 26px rgba(255, 255, 255, 0.06),
    0 20px 50px -14px rgba(0, 0, 0, 0.7) !important;
}
.cap, .feature, .also-grid > * { border-radius: 28px; }
.d-telemetry, .project-specs, .transparency { border-radius: 24px; }
.standard-item { padding: 22px 24px; border-radius: 24px; }

.cap::after, .feature::after, .also-grid > *::after, .d-telemetry::after, .project-specs::after, .transparency::after, .standard-item::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 60% at 10% -15%, rgba(255, 255, 255, 0.26), transparent 55%);
}
.cap > *, .feature > *, .also-grid > * > *, .d-telemetry > *, .project-specs > *, .transparency > *, .standard-item > * { position: relative; z-index: 1; }

.cap:hover, .feature:hover, .also-grid > *:hover, .standard-item:hover {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 32px rgba(255, 255, 255, 0.09),
    0 28px 64px -14px rgba(0, 0, 0, 0.8) !important;
}
.cap p, .feature p, .standard-item p { color: rgba(255, 255, 255, 0.78); }
.cap-foot, .cap-no, .feature-no, .also-no { color: rgba(255, 255, 255, 0.6); }
.cap-foot { border-top-color: rgba(255, 255, 255, 0.16); }
.studio-stack-stage .studio-stack { backdrop-filter: blur(26px) saturate(190%); -webkit-backdrop-filter: blur(26px) saturate(190%); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 26px 70px -18px rgba(0, 0, 0, 0.8); }

/* ---------- Mobile Menu: compact iOS liquid glass dropdown ---------- */
.nav-toggle { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.nav-toggle span { background: #ffffff; }

.menu {
  inset: auto;
  top: calc(var(--nav-h, 64px) + 26px);
  left: 14px; right: 14px; bottom: auto;
  max-height: calc(100dvh - var(--nav-h, 64px) - 44px);
  overflow-y: auto;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 20px 18px;
  border-radius: 30px;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(168, 85, 247, 0.28), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(249, 115, 22, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(34px) saturate(220%) brightness(1.05);
  backdrop-filter: blur(34px) saturate(220%) brightness(1.05);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), inset 0 0 28px rgba(255, 255, 255, 0.06), 0 26px 60px -12px rgba(0, 0, 0, 0.75);
  clip-path: inset(0 0 100% 0 round 30px);
  color: #ffffff;
}
.menu.is-open { clip-path: inset(0 round 30px); }
.menu li a {
  color: #ffffff;
  font-size: clamp(1.5rem, 6.4vw, 1.9rem);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.menu li:last-child a { border-bottom: 0; }
.menu li a span { color: #f97316; font-size: 0.72rem; min-width: 22px; }
.menu-social { padding-top: 6px; gap: 10px; }
.menu-social a {
  width: 44px; height: 44px; color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---------- Mobile polish (phones): compact sizes, nothing oversized or missing ---------- */
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; }

@media (max-width: 768px) {
  :root { --section-y: 72px; }

  /* Hero: all pieces visible, laid out as a tidy 2-column collage */
  .sm-hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 18px;
    align-content: start;
    padding: 104px 16px 40px;
  }
  .sm-hero__stage, .sm-hero__bottom { display: contents; }
  .sm-hero__logo { grid-column: 1 / -1; padding-inline: 0; }
  .sm-huge-text { font-size: clamp(2.5rem, 13.4vw, 4.6rem); letter-spacing: -0.045em; }
  .sm-logo-strip--btm { margin-top: -0.02em; }

  .sm-hero__media--1 {
    display: block;
    position: static;
    width: 100%;
    grid-column: 2; grid-row: 2;
  }
  .sm-hero__media--2 {
    grid-column: 1; grid-row: 2;
    width: 100%; max-width: none; margin-top: 0;
  }
  .sm-media-card--portrait, .sm-media-card--landscape { aspect-ratio: 4 / 5; border-radius: 20px; }
  .sm-media-card img { position: absolute; inset: 0; }
  .sm-media-tag { font-size: 0.62rem; padding: 3px 9px; bottom: 8px; left: 8px; }

  .sm-hero__content { grid-column: 1 / -1; grid-row: 3; max-width: none; justify-self: stretch; }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.1em; padding: 5px 11px; white-space: normal; line-height: 1.4; }
  .sm-hero__tagline { font-size: clamp(1.4rem, 6.4vw, 1.75rem); line-height: 1.18; }
  .sm-hero__desc { font-size: 0.92rem; line-height: 1.55; margin-bottom: 18px; }
  .sm-hero__actions { gap: 10px; }
  .sm-hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }

  /* Section headings */
  .statement { font-size: clamp(1.7rem, 7.4vw, 2.3rem); max-width: none; }
  .studio-hero-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .contact-giant-title { font-size: clamp(2.2rem, 11.5vw, 3.2rem); white-space: normal; letter-spacing: -0.045em; }
  .d-title h2 { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .d-icon { width: 64px; }
  .d-lead { font-size: clamp(1.15rem, 5vw, 1.4rem); margin-top: 22px; }
  .project h3 { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .project-desc { font-size: 0.96rem; }

  /* Cards: tighter */
  .cap, .feature, .also-grid > *, .standard-item { padding: 20px; border-radius: 22px; }
  .cap { min-height: 0; }
  .cap h4, .feature h3, .feature h4 { font-size: 1.2rem; }
  .cap p, .feature p, .standard-item p { font-size: 0.9rem; }
  .studio-stack-inner { padding: 22px 18px; }
  .studio-stack-title { font-size: 1.25rem; }

  /* Dobiko gallery: swipeable strip instead of huge stacked images */
  .d-gallery {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter, 16px) * -1);
    padding: 4px var(--gutter, 16px) 14px;
    scrollbar-width: none;
  }
  .d-gallery::-webkit-scrollbar { display: none; }
  .d-gallery .zoom { flex: 0 0 74%; height: 320px; scroll-snap-align: center; border-radius: 22px; }
  .d-gallery .zoom--wide { flex-basis: 88%; }
  .d-gallery .zoom img { height: 100%; object-fit: cover; }

  .d-stage .phone { width: min(62vw, 240px); }
  .btn-xl { min-height: 60px; font-size: 1rem; padding-left: 26px; }
  .contact-sub { font-size: 0.92rem; }
  .v-card-headline h3, .v-card-sub { font-size: 1.3rem; }
}

/* ---------- Marquee + Dobiko intro: premium liquid glass polish ---------- */
.marquee {
  margin: 18px clamp(12px, 3vw, 40px);
  padding: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.09)) !important;
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  backdrop-filter: blur(26px) saturate(200%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 18px 46px -14px rgba(0, 0, 0, 0.7);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee-track span { color: rgba(255, 255, 255, 0.82) !important; font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.05rem, 1.7vw, 1.45rem); }
.marquee-track span::after { background: linear-gradient(135deg, #f43f2e, #f97316); opacity: 1; width: 7px; height: 7px; box-shadow: 0 0 12px rgba(249, 115, 22, 0.8); }
.marquee:hover .marquee-track { animation-play-state: paused; }

.dobiko-bg {
  background:
    radial-gradient(38vw 38vw at 8% 12%, rgba(147, 51, 234, 0.26), transparent 70%),
    radial-gradient(34vw 34vw at 92% 30%, rgba(244, 63, 46, 0.18), transparent 70%),
    radial-gradient(40vw 40vw at 50% 95%, rgba(249, 115, 22, 0.14), transparent 70%),
    linear-gradient(180deg, #09090c 0%, #0d0c11 40%, #09090c 100%) !important;
}
.dobiko .kicker { color: #f97316; }
.d-title { gap: clamp(18px, 3vw, 40px); }
.d-icon {
  width: clamp(84px, 11vw, 150px);
  padding: clamp(8px, 1vw, 14px);
  border-radius: 30%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.07) 55%, rgba(255, 255, 255, 0.14));
  -webkit-backdrop-filter: blur(20px) saturate(200%); backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 0 24px rgba(255, 255, 255, 0.1), 0 22px 60px -10px rgba(147, 51, 234, 0.65), 0 0 80px rgba(147, 51, 234, 0.35);
  animation: dIconFloat 6s ease-in-out infinite;
}
@keyframes dIconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.d-title h2 { font-weight: 800; letter-spacing: -0.05em; }
.d-colon {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; margin-top: 0.14em;
  background: linear-gradient(110deg, #f43f2e 0%, #f97316 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; -webkit-text-stroke: 0;
}
.d-lead { font-weight: 500; color: rgba(255, 255, 255, 0.86); max-width: 34ch; letter-spacing: -0.025em; }
.d-telemetry-val {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  background: linear-gradient(110deg, #ffffff 30%, #f97316 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.d-telemetry-lbl { color: #ffffff; font-size: 0.9rem; }
.d-telemetry-desc { color: rgba(255, 255, 255, 0.62); font-size: 0.8rem; }
.d-phone-card {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(147, 51, 234, 0.28), transparent 65%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.08)) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%); backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55), inset 0 0 28px rgba(255, 255, 255, 0.05), 0 26px 64px -16px rgba(0, 0, 0, 0.75);
}
.d-phone-hint { color: rgba(255, 255, 255, 0.6); }
.d-actions .btn-glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  -webkit-backdrop-filter: blur(20px) saturate(200%); backdrop-filter: blur(20px) saturate(200%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55), 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
@media (max-width: 768px) {
  .marquee { margin: 12px 10px; padding: 12px 0; }
  .d-icon { width: 76px; }
}
@media (prefers-reduced-motion: reduce) { .d-icon { animation: none; } }

/* ---------- Performance: lighter glass on phones, no layout thrash ---------- */
@media (max-width: 768px) {
  .nav, .nav-wrap.is-scrolled .nav, .menu, .marquee, .cap, .feature, .also-grid > *, .d-telemetry,
  .project-specs, .transparency, .standard-item, .d-phone-card, .d-icon, .studio-stack-stage .studio-stack,
  .d-actions .btn-glass, .nav-cta, .dt-feat, .perm-card, .perm-notice, .privacy-list li, .work-card {
    -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
    backdrop-filter: blur(12px) saturate(150%) !important;
  }
  .showcase-orb { animation: none !important; }
  .marquee-track { animation-duration: 90s; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }


/* ---------- Phones + low-power devices: no heavy GPU work ---------- */
@media (max-width: 768px) {
  /* Background behind cards is flat dark, so blur adds nothing visible — drop it (biggest lag source) */
  .marquee, .cap, .feature, .also-grid > *, .d-telemetry, .project-specs, .transparency, .standard-item,
  .d-phone-card, .d-icon, .studio-stack-stage .studio-stack, .d-actions .btn-glass, .nav-cta,
  .dt-feat, .perm-card, .perm-notice, .privacy-list li, .work-card, .stack-badge, .studio-stack-pill,
  .zoom-label, .sm-media-tag, .nav-indicator, .perm-tag, .showcase-counter, .dt-badge, .dt-store-btn {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .nav, .nav-wrap.is-scrolled .nav, .menu {
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
  }
  .sm-hero__glow { filter: none !important; opacity: 0.7; }
  .slide { filter: none !important; }
  .studio-bg { display: none; }
  .cap, .feature, .browser, .browser-view img, .studio-stack, .v-footer-card, .v-card-inner,
  .studio-stack-inner, .sm-logo-strip, .sm-logo-inner, .sm-hero__media { will-change: auto !important; }
  .eyebrow-dot, .live i, .marquee-track { animation: none !important; }
}
.lite .cap, .lite .feature, .lite .also-grid > *, .lite .d-telemetry, .lite .project-specs, .lite .transparency,
.lite .standard-item, .lite .d-phone-card, .lite .d-icon, .lite .studio-stack-stage .studio-stack, .lite .marquee,
.lite .studio-stack-pill, .lite .stack-badge, .lite .dt-feat, .lite .perm-card, .lite .work-card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.lite .sm-hero__glow { filter: none !important; }
.lite .studio-bg { display: none; }
.lite .d-icon, .lite .eyebrow-dot, .lite .live i { animation: none !important; }
