@font-face {
      font-family: 'nebras';
      src: url('fonts/nebras.woff2') format('woff2');
      font-weight: 100 900;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --vh: 1vh;
      --green-950: #02120f;
      --green-900: #031A16;
      --green-850: #05211c;
      --green-800: #082E26;
      --green-700: #0F4C3A;
      --gold: #D6A84F;
      --gold-light: #FFD86B;
      --warm-white: #FFFCF6;
      --muted: rgba(255,252,246,.72);
      --soft: rgba(255,252,246,.08);
      --line: rgba(255,216,107,.18);
      --brand-green: #00583B;
      --brand-soil: #BC9B6A;
      --brand-cream: #FFFCE7;
      --brand-charcoal: #2A2828;
      --brand-yellow: #F0AF13;
      --topbar-space: 112px;
    }

    * { box-sizing: border-box; }
    html {
      margin: 0;
      background: var(--green-900);
      scroll-behavior: smooth;
      scroll-snap-type: y proximity;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: none;
    }
    body {
      margin: 0;
      overflow-x: hidden;
      font-family: 'nebras', 'Vazirmatn', 'IRANSansX', 'Yekan Bakh', Tahoma, sans-serif;
      color: var(--warm-white);
      background:
        radial-gradient(circle at 50% 8%, rgba(255,216,107,.10), transparent 34rem),
        linear-gradient(180deg, #031A16 0%, #041f1a 42%, #082E26 100%);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 18% 70%, rgba(15,76,58,.44), transparent 40rem),
        radial-gradient(circle at 82% 28%, rgba(255,216,107,.07), transparent 30rem),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.016) 1px, transparent 1px);
      background-size: auto, auto, 76px 76px, 76px 76px;
      opacity: .92;
    }
    body.modal-open { overflow: hidden; }
    a { color: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button, input, textarea, select, option, label, summary { font-family: inherit; }
    img { max-width: 100%; }

    .stage { position: relative; z-index: 1; }
    .scene {
      position: relative;
      min-height: 100svh;
      width: 100%;
      padding: clamp(104px, 10vw, 142px) clamp(18px, 4vw, 64px) clamp(40px, 6vw, 76px);
      scroll-snap-align: center;
      scroll-snap-stop: normal;
      display: grid;
      place-items: center;
      overflow: hidden;
      isolation: isolate;
    }
    .scene-inner { position: relative; z-index: 3; width: min(1180px, 100%); margin-inline: auto; }
    .scene-kicker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 18px;
      padding: 9px 14px;
      border: 1px solid rgba(255,216,107,.22);
      border-radius: 999px;
      color: rgba(255,216,107,.92);
      background: rgba(255,252,246,.045);
      font-size: 12px;
      font-weight: 700;
    }
    .scene-kicker::before {
      content: '';
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--gold-light);
      box-shadow: 0 0 16px rgba(255,216,107,.72);
    }
    .scene-title {
      margin: 0;
      font-size: clamp(34px, 5.1vw, 72px);
      line-height: 1.08;
      letter-spacing: -.06em;
      font-weight: 900;
    }
    .scene-lead {
      margin: 20px 0 0;
      max-width: 720px;
      color: rgba(255,252,246,.72);
      font-size: clamp(14px, 1.25vw, 18px);
      line-height: 2.05;
      text-align: justify;
    }

    .progress {
      position: fixed;
      z-index: 100;
      top: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: rgba(255,255,255,.035);
      pointer-events: none;
    }
    .progress span {
      display: block;
      width: 100%;
      height: 100%;
      transform-origin: right center;
      transform: scaleX(0);
      background: linear-gradient(90deg, var(--gold), var(--gold-light));
      box-shadow: 0 0 18px rgba(255,216,107,.46);
    }
    .cursor-glow {
      position: fixed;
      z-index: 2;
      left: 0;
      top: 0;
      width: 340px;
      height: 340px;
      border-radius: 50%;
      pointer-events: none;
      transform: translate3d(-999px,-999px,0);
      background: radial-gradient(circle, rgba(255,216,107,.10), transparent 68%);
      filter: blur(8px);
      mix-blend-mode: screen;
      opacity: .85;
    }

    /* Header: copied from the personal page language and behavior */
    .topbar {
      position: fixed;
      z-index: 80;
      top: max(16px, env(safe-area-inset-top));
      left: 50%;
      transform: translateX(-50%);
      width: min(1120px, calc(100vw - 32px));
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 10px;
      border: 1px solid rgba(255,216,107,.20);
      border-radius: 999px;
      background: rgba(3,26,22,.46);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: 0 18px 54px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.08);
    }
    .brand-mark {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      padding-inline: 8px 14px;
    }
    .brand-mark img {
      width: 40px;
      height: 40px;
      object-fit: contain;
      filter: drop-shadow(0 0 14px rgba(255,216,107,.35));
    }
    .brand-logo-fallback {
      display: none;
      width: 40px;
      height: 40px;
      place-items: center;
      border: 1px solid rgba(255,216,107,.26);
      border-radius: 50%;
      color: var(--gold-light);
      font-weight: 900;
    }
    .brand-mark span { display: grid; line-height: 1.5; }
    .brand-mark b { font-size: 14px; }
    .brand-mark small { direction: ltr; color: rgba(255,252,246,.58); font-size: 10px; }
    .brand-mark b,
    .brand-mark small {
      display: block;
      width: 100%;
      min-height: 1.2em;
      transition: color .25s ease, opacity .25s ease;
      white-space: nowrap;
      text-align: justify;
      text-align-last: justify;
    }
    .brand-mark.is-project b { color: var(--warm-white); }
    .brand-mark.is-project small { direction: rtl; color: rgba(255,252,246,.66); }
    .brand-mark.is-typing b::after,
    .brand-mark.is-typing small::after {
      content: '';
      display: inline-block;
      width: 1px;
      height: .9em;
      margin-inline-start: 3px;
      vertical-align: -.12em;
      background: rgba(255,216,107,.82);
      animation: brandCaret .85s steps(1) infinite;
    }
    @keyframes brandCaret { 50% { opacity: 0; } }
    .top-actions { display: flex; gap: 8px; align-items: center; }
    .pill-link {
      text-decoration: none;
      border-radius: 999px;
      padding: 12px 16px;
      font-size: 12px;
      font-weight: 780;
      white-space: nowrap;
      border: 1px solid rgba(255,255,255,.11);
      background: rgba(255,252,246,.055);
      color: rgba(255,252,246,.82);
      transition: .25s ease;
    }
    .pill-link:hover { background: rgba(255,252,246,.09); transform: translateY(-1px); }
    .pill-link.primary {
      color: #12382f;
      border-color: transparent;
      background: linear-gradient(135deg, #FFD86B, #D6A84F);
      box-shadow: 0 14px 32px rgba(214,168,79,.18);
    }

    /* Hero */
    .hero {
      padding-top: 122px;
      background:
        radial-gradient(circle at 74% 42%, rgba(0,88,59,.30), transparent 35rem),
        radial-gradient(circle at 28% 20%, rgba(188,155,106,.13), transparent 28rem);
    }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      background: repeating-radial-gradient(circle at 68% 51%, rgba(255,252,231,.045) 0 1px, transparent 1px 40px);
      opacity: .44;
      mask-image: radial-gradient(circle at 68% 51%, #000, transparent 63%);
    }
    .hero-grid {
      width: min(1200px, 100%);
      display: grid;
      grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.05fr);
      gap: clamp(32px, 5vw, 80px);
      align-items: center;
    }
    .hero-copy { position: relative; z-index: 8; }
    .hero h1 {
      margin: 0;
      font-size: clamp(50px, 7.8vw, 110px);
      line-height: .98;
      letter-spacing: -.075em;
      font-weight: 950;
      text-shadow: 0 0 42px rgba(255,216,107,.12);
    }
    .hero-slogan {
      margin: 16px 0 0;
      color: rgba(255,216,107,.95);
      font-size: clamp(22px, 3vw, 42px);
      font-weight: 800;
      letter-spacing: -.04em;
    }
    .hero-lead {
      margin: 24px 0 0;
      max-width: 640px;
      color: rgba(255,252,246,.74);
      font-size: clamp(14px, 1.35vw, 19px);
      line-height: 2.15;
      text-align: justify;
    }
    .hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
    .hero-tags span {
      padding: 9px 13px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,252,246,.05);
      color: rgba(255,252,246,.72);
      font-size: 11px;
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
    .hero-actions a {
      text-decoration: none;
      padding: 14px 22px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 820;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,252,246,.055);
    }
    .hero-actions a:first-child {
      color: #12382f;
      border-color: transparent;
      background: linear-gradient(135deg, #FFD86B, #D6A84F);
      box-shadow: 0 18px 42px rgba(214,168,79,.22);
    }
    .hero-art {
      position: relative;
      min-height: min(650px, 72vh);
      perspective: 1300px;
      transform-style: preserve-3d;
    }
    .hero-orbit {
      position: absolute;
      inset: 4% 2%;
      border-radius: 50%;
      border: 1px solid rgba(255,216,107,.11);
      background: repeating-conic-gradient(from 0deg, rgba(255,216,107,.13) 0 1deg, transparent 1deg 15deg);
      mask: radial-gradient(circle, transparent 61%, #000 62%);
      animation: spin 48s linear infinite;
    }
    .hero-orbit:nth-child(2) { inset: 16%; animation-duration: 31s; animation-direction: reverse; opacity: .62; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .project-mark {
      position: absolute;
      z-index: 7;
      width: clamp(108px, 13vw, 176px);
      aspect-ratio: 1;
      right: 42%;
      top: 34%;
      display: grid;
      place-items: center;
      border-radius: 42% 58% 49% 51% / 52% 42% 58% 48%;
      background: rgba(255,252,231,.92);
      border: 1px solid rgba(255,216,107,.28);
      box-shadow: 0 26px 76px rgba(0,0,0,.34), 0 0 70px rgba(255,216,107,.12);
      animation: markFloat 5.2s ease-in-out infinite;
    }
    .project-mark img { width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,88,59,.16)); }
    @keyframes markFloat { 50% { transform: translateY(-10px) rotate(1.8deg); } }
    .float-item { position: absolute; z-index: 4; will-change: transform; transform-style: preserve-3d; }
    .float-card {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255,216,107,.22);
      background: rgba(255,252,246,.065);
      box-shadow: 0 34px 80px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.12);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      animation: softBob var(--bob, 5s) ease-in-out infinite;
    }
    .float-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .65s cubic-bezier(.22,1,.36,1), filter .65s ease; }
    .float-card::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(145deg, rgba(255,255,255,.16), transparent 28%, rgba(0,88,59,.10));
    }
    .float-card:hover img { transform: scale(1.045); filter: saturate(1.05) contrast(1.03); }
    .float-a { width: 52%; aspect-ratio: 16/9; right: 3%; top: 6%; }
    .float-a .float-card { border-radius: 34px; --bob: 5.8s; transform: rotate(4deg); }
    .float-b { width: 39%; aspect-ratio: 16/10; left: 0; top: 29%; z-index: 6; }
    .float-b .float-card { border-radius: 30px; --bob: 4.7s; transform: rotate(-7deg); }
    .float-c { width: 45%; aspect-ratio: 16/9; right: 14%; bottom: 13%; }
    .float-c .float-card { border-radius: 32px; --bob: 6.2s; transform: rotate(-3deg); }
    .float-d { width: 31%; aspect-ratio: 4/3; left: 3%; bottom: 15%; z-index: 5; }
    .float-d .float-card { border-radius: 28px; --bob: 5.1s; transform: rotate(7deg); }
    @keyframes softBob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
    .scroll-cue {
      position: absolute;
      left: 50%;
      bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
      transform: translateX(-50%);
      display: grid;
      place-items: center;
      gap: 6px;
      color: rgba(255,252,246,.52);
      font-size: 10px;
      pointer-events: none;
    }
    .scroll-cue::after {
      content: '';
      width: 16px;
      height: 16px;
      border-right: 1.5px solid rgba(255,216,107,.75);
      border-bottom: 1.5px solid rgba(255,216,107,.75);
      transform: rotate(45deg);
      animation: arrowDown 1.7s ease-in-out infinite;
    }
    @keyframes arrowDown { 50% { translate: 0 6px; opacity: 1; } }

    /* Shared glass panel */
    .panel {
      position: relative;
      width: 100%;
      border: 1px solid rgba(255,216,107,.18);
      background:
        linear-gradient(145deg, rgba(255,252,246,.09), rgba(255,252,246,.035)),
        linear-gradient(180deg, rgba(15,76,58,.34), rgba(3,26,22,.68));
      box-shadow: 0 34px 110px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-radius: clamp(32px, 4vw, 58px);
      overflow: hidden;
    }
    .panel::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 78% 18%, rgba(255,216,107,.15), transparent 26rem), linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%);
    }
    .panel::after {
      content: '';
      position: absolute;
      inset: 20px;
      border: 1px solid rgba(255,255,255,.07);
      border-radius: inherit;
      pointer-events: none;
    }
    .panel-inner { position: relative; z-index: 2; padding: clamp(26px, 4.6vw, 60px); }

    /* Overview */
    .overview-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 16px; margin-top: 30px; }
    .identity-card {
      min-height: 390px;
      padding: clamp(24px, 3vw, 38px);
      border-radius: 36px;
      background: var(--brand-cream);
      color: var(--brand-charcoal);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      position: relative;
    }
    .identity-card::before {
      content: '';
      position: absolute;
      width: 420px;
      height: 420px;
      left: -190px;
      bottom: -240px;
      border-radius: 50%;
      background: repeating-radial-gradient(circle, rgba(0,88,59,.17) 0 1px, transparent 1px 24px);
    }
    .identity-card img { position: relative; width: 120px; height: 120px; object-fit: contain; }
    .identity-card strong { position: relative; display: block; font-size: clamp(30px, 4vw, 55px); line-height: 1.1; letter-spacing: -.06em; color: var(--brand-green); }
    .identity-card small { position: relative; font-size: 14px; color: rgba(42,40,40,.68); }
    .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .fact {
      min-height: 122px;
      padding: 20px;
      border-radius: 28px;
      background: rgba(255,252,246,.055);
      border: 1px solid rgba(255,255,255,.09);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    }
    .fact small { display: block; color: rgba(255,216,107,.78); font-size: 11px; }
    .fact strong { display: block; margin-top: 10px; font-size: clamp(17px, 1.8vw, 24px); line-height: 1.55; }
    .fact p { margin: 6px 0 0; color: rgba(255,252,246,.62); font-size: 12px; line-height: 1.75; }
    .metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
    .metric {
      padding: 18px 14px;
      border-radius: 26px;
      border: 1px solid rgba(255,255,255,.09);
      background: rgba(3,26,22,.25);
      text-align: center;
    }
    .metric strong { display: block; color: rgba(255,216,107,.96); font-size: clamp(26px, 3vw, 42px); line-height: 1; }
    .metric span { display: block; margin-top: 8px; color: rgba(255,252,246,.60); font-size: 11px; line-height: 1.6; }

    /* Story */
    .story-scene { background: radial-gradient(circle at 22% 52%, rgba(188,155,106,.11), transparent 30rem); }
    .story-grid { display: grid; grid-template-columns: 1fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
    .story-copy p { margin: 18px 0 0; color: rgba(255,252,246,.74); font-size: clamp(14px, 1.35vw, 18px); line-height: 2.15; text-align: justify; }
    .story-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
    .story-visual::before,
    .story-visual::after {
      content: '';
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(255,216,107,.12);
    }
    .story-visual::before { inset: 5%; }
    .story-visual::after { inset: 18%; }
    .story-image {
      position: relative;
      width: min(520px, 94%);
      aspect-ratio: 16/10;
      border-radius: 42% 58% 49% 51% / 44% 38% 62% 56%;
      overflow: hidden;
      border: 1px solid rgba(255,216,107,.22);
      box-shadow: 0 30px 90px rgba(0,0,0,.34);
    }
    .story-image img { width: 100%; height: 100%; object-fit: cover; }
    .story-note {
      position: absolute;
      z-index: 4;
      max-width: 240px;
      padding: 14px 16px;
      border-radius: 24px;
      border: 1px solid rgba(255,216,107,.18);
      background: rgba(3,26,22,.60);
      backdrop-filter: blur(16px);
      color: rgba(255,252,246,.72);
      font-size: 12px;
      line-height: 1.8;
      box-shadow: 0 20px 48px rgba(0,0,0,.24);
    }
    .story-note b { display: block; color: var(--gold-light); margin-bottom: 4px; }
    .story-note.one { right: 0; top: 13%; }
    .story-note.two { left: 0; bottom: 15%; }

    /* Problem */
    .problem-scene { background: linear-gradient(180deg, rgba(2,18,15,.10), rgba(42,40,40,.16)); }
    .problem-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; margin-top: 30px; }
    .problem-core {
      position: relative;
      min-height: 470px;
      padding: clamp(26px, 4vw, 48px);
      border-radius: 42px;
      overflow: hidden;
      color: var(--brand-charcoal);
      background: var(--brand-cream);
    }
    .problem-core::before {
      content: '';
      position: absolute;
      inset: auto -14% -30% -14%;
      height: 250px;
      background: radial-gradient(circle, rgba(240,175,19,.40), transparent 68%);
    }
    .problem-core small { position: relative; color: var(--brand-green); font-weight: 800; }
    .problem-core h3 { position: relative; margin: 22px 0 0; font-size: clamp(31px, 4vw, 56px); line-height: 1.25; letter-spacing: -.055em; }
    .problem-core p { position: relative; margin: 20px 0 0; font-size: 14px; line-height: 2.05; text-align: justify; color: rgba(42,40,40,.72); }
    .tensions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tension {
      min-height: 220px;
      padding: 24px;
      border-radius: 32px;
      background: rgba(255,252,246,.055);
      border: 1px solid rgba(255,255,255,.09);
      position: relative;
      overflow: hidden;
    }
    .tension::after {
      content: attr(data-index);
      position: absolute;
      left: 18px;
      top: 10px;
      color: rgba(255,216,107,.15);
      font-size: 62px;
      font-weight: 900;
      direction: ltr;
    }
    .tension b { display: block; color: rgba(255,216,107,.92); font-size: 17px; }
    .tension p { margin: 12px 0 0; color: rgba(255,252,246,.66); font-size: 13px; line-height: 1.95; text-align: justify; }

    /* Path */
    .path-scene { overflow: visible; }
    .path-wrap { margin-top: 34px; position: relative; }
    .path-line {
      position: absolute;
      z-index: 0;
      right: 6%;
      left: 6%;
      top: 50%;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(255,216,107,.42), transparent);
      transform: scaleX(0);
      transform-origin: right center;
    }
    .path-scene.is-active .path-line { animation: growLine 1.1s .25s cubic-bezier(.22,1,.36,1) forwards; }
    @keyframes growLine { to { transform: scaleX(1); } }
    .path-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
    .path-card {
      min-height: 300px;
      padding: 22px;
      border-radius: 32px;
      border: 1px solid rgba(255,255,255,.10);
      background:
        radial-gradient(circle at 50% 110%, rgba(255,216,107,.12), transparent 58%),
        rgba(255,252,246,.052);
      box-shadow: 0 26px 70px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.06);
      opacity: 0;
      transform: translateY(86px) rotateX(-16deg) scale(.94);
      transform-origin: center bottom;
    }
    .path-scene.is-active .path-card { animation: pathDrop .78s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(.22s + var(--step) * .18s); }
    @keyframes pathDrop { to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); } }
    .path-card .number {
      display: grid;
      place-items: center;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--gold-light), var(--gold));
      color: #12382f;
      font-weight: 900;
      direction: ltr;
      box-shadow: 0 12px 28px rgba(214,168,79,.22);
    }
    .path-card h3 { margin: 22px 0 0; font-size: 21px; line-height: 1.45; }
    .path-card p { margin: 12px 0 0; color: rgba(255,252,246,.65); font-size: 12.5px; line-height: 1.95; text-align: justify; }
    .path-card em { display: block; margin-top: 18px; color: rgba(255,216,107,.76); font-size: 11px; font-style: normal; }

    /* Output scenes */
    .output-scene { padding-inline: clamp(12px, 3vw, 46px); }
    .output-head {
      position: absolute;
      z-index: 10;
      top: clamp(108px, 12vw, 145px);
      right: clamp(24px, 6vw, 90px);
      max-width: 430px;
    }
    .output-head .scene-title { font-size: clamp(30px, 4vw, 58px); }
    .output-head .scene-lead { font-size: 13px; }
    .demo-badge {
      position: absolute;
      z-index: 12;
      left: clamp(24px, 5vw, 72px);
      top: clamp(112px, 12vw, 148px);
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255,216,107,.18);
      background: rgba(3,26,22,.55);
      color: rgba(255,252,246,.64);
      font-size: 11px;
      backdrop-filter: blur(16px);
    }
    .demo-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 14px rgba(255,216,107,.66); }

    /* Book */
    .book-scene {
      background:
        radial-gradient(circle at 50% 62%, rgba(188,155,106,.23), transparent 34rem),
        linear-gradient(180deg, rgba(3,26,22,.20), rgba(2,18,15,.72));
    }
    .book-stage {
      position: relative;
      width: min(1020px, 94vw);
      height: min(610px, 68vh);
      margin-top: 74px;
      display: grid;
      place-items: end center;
      perspective: 1800px;
    }
    .book-shadow {
      position: absolute;
      width: 78%;
      height: 15%;
      bottom: 3%;
      border-radius: 50%;
      background: rgba(0,0,0,.46);
      filter: blur(30px);
      transform: scaleX(.92);
      transition: .8s ease;
    }
    .book {
      position: relative;
      width: min(900px, 90vw);
      aspect-ratio: 16/8.6;
      transform-style: preserve-3d;
      transform: translateY(34px) rotateX(67deg) rotateZ(-1deg) scale(.82);
      opacity: 0;
      transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity .6s ease;
    }
    .book-scene.is-active .book { opacity: 1; transform: translateY(0) rotateX(10deg) rotateZ(0) scale(1); }
    .book-spread {
      position: absolute;
      inset: 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-radius: 22px;
      filter: drop-shadow(0 32px 46px rgba(0,0,0,.34));
      transform-style: preserve-3d;
    }
    .book-page {
      position: relative;
      overflow: hidden;
      background: #fff;
      border: 1px solid rgba(42,40,40,.12);
    }
    .book-page:first-child { border-radius: 22px 5px 5px 22px; transform-origin: right center; }
    .book-page:last-child { border-radius: 5px 22px 22px 5px; transform-origin: left center; }
    .book-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .book-page::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.05), transparent 15%, transparent 85%, rgba(0,0,0,.08)); }
    .book-gutter { position: absolute; z-index: 6; top: 0; bottom: 0; left: 50%; width: 18px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0,0,0,.20), transparent); filter: blur(3px); pointer-events: none; }
    .turning-page {
      position: absolute;
      z-index: 8;
      top: 0;
      right: 50%;
      width: 50%;
      height: 100%;
      transform-origin: right center;
      transform-style: preserve-3d;
      opacity: 0;
      pointer-events: none;
    }
    .turning-page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px 5px 5px 22px; backface-visibility: hidden; background: #fff; }
    .turning-page img.back { transform: rotateY(180deg); }
    .turning-page.turn { opacity: 1; animation: pageTurn .92s cubic-bezier(.55,.02,.21,1) forwards; }
    @keyframes pageTurn { 0% { transform: rotateY(0); } 100% { transform: rotateY(180deg); } }
    .book-controls {
      position: absolute;
      z-index: 14;
      left: 50%;
      bottom: -8px;
      transform: translateX(-50%);
      display: flex;
      gap: 9px;
    }
    .book-controls button,
    .book-controls a {
      appearance: none;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      background: rgba(3,26,22,.66);
      color: rgba(255,252,246,.78);
      padding: 11px 16px;
      font: inherit;
      font-size: 11px;
      text-decoration: none;
      cursor: pointer;
      backdrop-filter: blur(14px);
    }
    .book-controls a { color: #12382f; border-color: transparent; background: linear-gradient(135deg, var(--gold-light), var(--gold)); font-weight: 800; }

    /* Phone */
    .phone-scene {
      background:
        radial-gradient(circle at 50% 60%, rgba(0,88,59,.36), transparent 32rem),
        linear-gradient(180deg, rgba(2,18,15,.20), rgba(42,40,40,.34));
    }
    .phone-stage { position: relative; width: min(1050px, 96vw); height: min(660px, 70vh); margin-top: 78px; display: grid; place-items: center; perspective: 1500px; }
    .phone-aura { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,216,107,.12) 0 2deg, transparent 2deg 17deg); mask: radial-gradient(circle, transparent 59%, #000 60%); animation: spin 40s linear infinite; opacity: .55; }
    .phone {
      position: relative;
      width: min(292px, 72vw);
      aspect-ratio: 9/18.7;
      border-radius: 50px;
      padding: 11px;
      background: linear-gradient(145deg, #343333, #0e0d0d 52%, #4a4848);
      box-shadow: 0 42px 88px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.23);
      transform: translateY(90px) rotateY(-86deg) rotateZ(-9deg) scale(.78);
      opacity: 0;
      transform-style: preserve-3d;
    }
    .phone-scene.is-active .phone { animation: phoneArrive 1.35s cubic-bezier(.22,1,.36,1) forwards, phoneFloat 5.2s 1.4s ease-in-out infinite; }
    @keyframes phoneArrive { to { opacity: 1; transform: translateY(0) rotateY(-10deg) rotateZ(2deg) scale(1); } }
    @keyframes phoneFloat { 50% { translate: 0 -11px; rotate: 0 0 2deg; } }
    .phone-screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: #101110; border: 1px solid rgba(255,255,255,.08); }
    .phone-screen img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); }
    .phone-scene.is-active .phone-screen img { animation: screenReveal .8s 2.15s ease forwards; }
    @keyframes screenReveal { to { opacity: 1; transform: scale(1); } }
    .boot-screen {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: grid;
      place-items: center;
      overflow: hidden;
      background:
        radial-gradient(circle at 50% 48%, rgba(255,216,107,.10), transparent 38%),
        linear-gradient(180deg, #031A16, #02120f);
    }
    .boot-loader {
      position: relative;
      width: clamp(78px, 30%, 126px);
      aspect-ratio: 1;
      display: grid;
      place-items: center;
      border-radius: 50%;
      isolation: isolate;
    }
    .boot-loader::before,
    .boot-loader::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      border: 1px solid rgba(255,216,107,.22);
      animation: nebrasLoaderPulse 1.7s ease-out infinite;
    }
    .boot-loader::after {
      inset: 13%;
      border-color: rgba(255,216,107,.34);
      animation-delay: .48s;
    }
    .boot-loader-ring {
      position: absolute;
      inset: 7%;
      border-radius: 50%;
      background: conic-gradient(from 0deg, transparent 0 67%, rgba(255,216,107,.95) 82%, transparent 100%);
      -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
      mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
      animation: nebrasLoaderSpin 1.45s linear infinite;
      filter: drop-shadow(0 0 8px rgba(255,216,107,.44));
    }
    .boot-loader img {
      position: relative;
      z-index: 2;
      width: 48%;
      height: 48%;
      object-fit: contain;
      filter: drop-shadow(0 0 16px rgba(255,216,107,.34));
      animation: nebrasLogoBreath 1.7s ease-in-out infinite;
    }
    @keyframes nebrasLoaderSpin { to { transform: rotate(360deg); } }
    @keyframes nebrasLoaderPulse {
      0% { transform: scale(.72); opacity: 0; }
      30% { opacity: .72; }
      100% { transform: scale(1.28); opacity: 0; }
    }
    @keyframes nebrasLogoBreath {
      0%, 100% { transform: scale(.94); opacity: .82; }
      50% { transform: scale(1.04); opacity: 1; }
    }
    .phone-scene.is-active .boot-screen { animation: bootOut .55s 2.15s ease forwards; }
    @keyframes bootOut { to { opacity: 0; visibility: hidden; filter: blur(8px); } }
    .phone-notch { position: absolute; z-index: 5; top: 8px; left: 50%; width: 92px; height: 23px; transform: translateX(-50%); border-radius: 999px; background: #090909; }
    .social-cards { position: absolute; inset: 10% 7%; pointer-events: none; }
    .social-card {
      position: absolute;
      width: 180px;
      aspect-ratio: 4/5;
      border-radius: 26px;
      overflow: hidden;
      border: 1px solid rgba(255,216,107,.18);
      box-shadow: 0 22px 50px rgba(0,0,0,.28);
      opacity: 0;
    }
    .social-card img { width: 100%; height: 100%; object-fit: cover; }
    .social-card.one { right: 3%; top: 5%; transform: translate(60px,30px) rotate(12deg); }
    .social-card.two { left: 4%; top: 17%; transform: translate(-60px,30px) rotate(-10deg); }
    .social-card.three { left: 13%; bottom: 1%; transform: translate(-30px,60px) rotate(8deg); }
    .phone-scene.is-active .social-card { animation: cardScatter .8s cubic-bezier(.22,1,.36,1) forwards; }
    .phone-scene.is-active .social-card.one { animation-delay: 2.35s; }
    .phone-scene.is-active .social-card.two { animation-delay: 2.52s; }
    .phone-scene.is-active .social-card.three { animation-delay: 2.68s; }
    @keyframes cardScatter { to { opacity: 1; transform: translate(0,0) rotate(var(--r,0deg)); } }
    .social-card.one { --r: 6deg; } .social-card.two { --r: -5deg; } .social-card.three { --r: 4deg; }

    /* Laptop */
    .laptop-scene { background: radial-gradient(circle at 50% 66%, rgba(255,216,107,.12), transparent 34rem); }
    .laptop-stage { position: relative; width: min(1060px, 96vw); height: min(650px, 70vh); margin-top: 80px; display: grid; place-items: center; perspective: 1800px; }
    .laptop {
      position: relative;
      width: min(760px, 86vw);
      aspect-ratio: 16/10;
      transform-style: preserve-3d;
      transform: translateY(80px) scale(.82);
      opacity: 0;
    }
    .laptop-scene.is-active .laptop { animation: laptopArrive .9s cubic-bezier(.22,1,.36,1) forwards; }
    @keyframes laptopArrive { to { transform: translateY(0) scale(1); opacity: 1; } }
    .laptop-lid {
      position: absolute;
      left: 7%;
      right: 7%;
      bottom: 19%;
      aspect-ratio: 16/10;
      padding: 12px;
      border-radius: 24px 24px 12px 12px;
      background: linear-gradient(145deg, #414141, #161616 58%, #555);
      box-shadow: 0 30px 80px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.22);
      transform-origin: center bottom;
      transform: rotateX(-89deg);
      transform-style: preserve-3d;
    }
    .laptop-scene.is-active .laptop-lid { animation: openLid 1.25s .55s cubic-bezier(.22,1,.36,1) forwards; }
    @keyframes openLid { to { transform: rotateX(-7deg); } }
    .laptop-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 15px; background: #031A16; }
    .laptop-screen img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); }
    .laptop-scene.is-active .laptop-screen img { animation: screenReveal .8s 2.05s ease forwards; }
    .laptop-screen .boot-loader { width: clamp(92px, 18%, 142px); }
    .laptop-scene.is-active .boot-screen { animation: bootOut .55s 2.05s ease forwards; }
    .laptop-base {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 11%;
      height: 15%;
      border-radius: 10px 10px 38px 38px;
      background: linear-gradient(180deg, #515151, #202020 65%, #0f0f0f);
      box-shadow: 0 24px 48px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.24);
      transform: rotateX(66deg);
    }
    .laptop-base::before { content: ''; position: absolute; width: 19%; height: 18%; left: 50%; top: 10%; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: rgba(0,0,0,.22); }
    .laptop-float {
      position: absolute;
      width: 270px;
      aspect-ratio: 16/10;
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid rgba(255,216,107,.18);
      box-shadow: 0 24px 60px rgba(0,0,0,.30);
      opacity: 0;
      transform: translateY(55px) scale(.88);
    }
    .laptop-float img { width: 100%; height: 100%; object-fit: cover; }
    .laptop-float.a { right: 0; top: 11%; transform: translate(70px,30px) rotate(8deg); }
    .laptop-float.b { left: 0; bottom: 12%; transform: translate(-70px,40px) rotate(-7deg); }
    .laptop-scene.is-active .laptop-float { animation: floatReveal .8s 2.35s cubic-bezier(.22,1,.36,1) forwards; }
    .laptop-scene.is-active .laptop-float.b { animation-delay: 2.55s; }
    @keyframes floatReveal { to { opacity: 1; transform: translate(0,0) rotate(var(--fr,0)); } }
    .laptop-float.a { --fr: 4deg; } .laptop-float.b { --fr: -4deg; }

    /* Gallery */
    .gallery-scene { padding-inline: clamp(14px, 3vw, 42px); }
    .gallery-shell { position: relative; width: min(1320px, 100%); height: calc(100svh - 180px); min-height: 570px; margin-top: 22px; }
    .gallery-board {
      position: absolute;
      inset: 0;
      border-radius: clamp(28px, 3vw, 48px);
      border: 1px solid rgba(255,216,107,.16);
      background: rgba(255,252,246,.042);
      box-shadow: 0 24px 86px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
      backdrop-filter: blur(24px);
      overflow: hidden;
    }
    .gallery-nav {
      position: absolute;
      z-index: 18;
      top: 50%;
      width: clamp(46px, 4.6vw, 62px);
      height: clamp(46px, 4.6vw, 62px);
      border: 1px solid rgba(255,216,107,.24);
      border-radius: 999px;
      background: radial-gradient(circle at 50% 45%, rgba(255,216,107,.18), transparent 70%), rgba(3,26,22,.58);
      backdrop-filter: blur(18px);
      box-shadow: 0 18px 42px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.10);
      cursor: pointer;
      transform: translateY(-50%);
      transition: opacity .28s ease, transform .28s ease;
    }
    .gallery-nav::before {
      content: '';
      position: absolute;
      inset: 0;
      margin: auto;
      width: 13px;
      height: 13px;
      border-top: 2px solid rgba(255,216,107,.92);
      border-left: 2px solid rgba(255,216,107,.92);
      filter: drop-shadow(0 0 8px rgba(255,216,107,.55));
    }
    .gallery-nav:hover { transform: translateY(-50%) scale(1.05); }
    .gallery-nav.is-hidden { opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.86); }
    .gallery-prev { right: clamp(12px, 2vw, 28px); }
    .gallery-next { left: clamp(12px, 2vw, 28px); }
    .gallery-prev::before { transform: rotate(135deg); right: 3px; }
    .gallery-next::before { transform: rotate(-45deg); left: 3px; }
    .gallery-scroll { width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; direction: rtl; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255,216,107,.32) transparent; touch-action: pan-x; }
    .gallery-scroll::-webkit-scrollbar { height: 8px; }
    .gallery-scroll::-webkit-scrollbar-thumb { background: rgba(255,216,107,.32); border-radius: 999px; }
    .gallery-track { height: 100%; width: max-content; display: flex; gap: 10px; padding: 10px; align-items: stretch; direction: rtl; }
    .gallery-page { flex: 0 0 min(940px, calc(100vw - 110px)); height: 100%; display: grid; grid-template-columns: repeat(6,1fr); grid-template-rows: repeat(6,1fr); gap: 10px; }
    .gallery-tile { --mx:50%; --my:50%; position: relative; overflow: hidden; border-radius: 24px; border: 0; padding: 0; cursor: zoom-in; background: #0a2a24; color: var(--warm-white); }
    .gallery-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
    .gallery-tile::before { content: ''; position: absolute; inset: 0; z-index: 2; opacity: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,216,107,.52), rgba(0,88,59,.32) 40%, rgba(3,26,22,.70) 100%); mix-blend-mode: screen; transition: opacity .3s ease; }
    .gallery-tile:hover::before { opacity: .82; }
    .gallery-tile:hover img { filter: blur(4px) brightness(.66) saturate(1.05); transform: scale(1.05); }
    .gallery-label { position: absolute; z-index: 4; right: 17px; bottom: 15px; padding: 8px 11px; border-radius: 999px; color: rgba(255,252,246,.90); background: rgba(3,26,22,.50); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); font: inherit; font-size: 11px; }
    .tile-a { grid-column: 1/3; grid-row: 1/4; }
    .tile-b { grid-column: 3/7; grid-row: 1/4; }
    .tile-c { grid-column: 1/5; grid-row: 4/7; }
    .tile-d { grid-column: 5/7; grid-row: 4/7; }
    .tile-e { grid-column: 1/3; grid-row: 1/7; }
    .tile-f { grid-column: 3/7; grid-row: 1/3; }
    .tile-g { grid-column: 3/5; grid-row: 3/7; }
    .tile-h { grid-column: 5/7; grid-row: 3/7; }

    /* Team */
    .team-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 30px; }
    .person-card {
      position: relative;
      min-height: 390px;
      padding: 24px;
      border-radius: 38px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,252,246,.05);
      text-decoration: none;
      display: grid;
      grid-template-columns: 185px 1fr;
      gap: 24px;
      align-items: center;
      transition: transform .35s ease, border-color .35s ease, background .35s ease;
    }
    .person-card:hover { transform: translateY(-4px); border-color: rgba(255,216,107,.28); background: rgba(255,252,246,.07); }
    .person-photo {
      width: 180px;
      aspect-ratio: 1/1.15;
      border-radius: 44% 56% 44% 56% / 44% 36% 64% 56%;
      overflow: hidden;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,216,107,.22);
      background: linear-gradient(145deg, rgba(255,252,246,.10), rgba(15,76,58,.34));
      box-shadow: 0 25px 60px rgba(0,0,0,.24);
    }
    .person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
    .person-photo.logo img { width: 68%; height: 68%; object-fit: contain; }
    .person-copy small { color: rgba(255,216,107,.86); }
    .person-copy h3 { margin: 12px 0 0; font-size: clamp(25px, 3vw, 40px); line-height: 1.25; }
    .person-copy strong { display: block; margin-top: 8px; color: rgba(255,252,246,.72); font-size: 14px; line-height: 1.8; }
    .person-copy p { margin: 16px 0 0; color: rgba(255,252,246,.62); font-size: 13px; line-height: 1.95; text-align: justify; }
    .person-link { display: inline-flex; margin-top: 20px; color: rgba(255,216,107,.88); font-size: 12px; font-weight: 800; }

    /* Voice */
    .voice-scene { background: radial-gradient(circle at 50% 48%, rgba(240,175,19,.10), transparent 34rem); }
    .quote-card {
      position: relative;
      width: min(980px, 100%);
      min-height: 520px;
      margin-inline: auto;
      padding: clamp(34px, 6vw, 78px);
      border-radius: clamp(38px, 5vw, 68px);
      color: var(--brand-charcoal);
      background: var(--brand-cream);
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
      box-shadow: 0 34px 110px rgba(0,0,0,.28);
    }
    .quote-card::before { content: '“'; position: absolute; right: 34px; top: 8px; color: rgba(0,88,59,.12); font-size: 210px; font-family: Georgia, serif; line-height: 1; }
    .quote-card::after { content: ''; position: absolute; width: 620px; height: 620px; left: -310px; bottom: -380px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(0,88,59,.18) 0 1px, transparent 1px 25px); }
    .quote-card blockquote { position: relative; z-index: 2; margin: 0; font-size: clamp(28px, 4.4vw, 60px); line-height: 1.55; letter-spacing: -.055em; font-weight: 850; color: var(--brand-green); }
    .quote-card footer { position: relative; z-index: 2; margin-top: 28px; color: rgba(42,40,40,.62); font-size: 13px; }

    /* Related */
    .related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 30px; }
    .related-card {
      position: relative;
      min-height: 410px;
      padding: 24px;
      border-radius: 34px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.10);
      text-decoration: none;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      background: #0a2a24;
      box-shadow: 0 28px 70px rgba(0,0,0,.22);
    }
    .related-card img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: none;
      transition: transform .65s cubic-bezier(.22,1,.36,1);
    }
    .related-card::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 58%;
      pointer-events: none;
      background: linear-gradient(
        180deg,
        rgba(3,26,22,0) 0%,
        rgba(3,26,22,.18) 20%,
        rgba(3,26,22,.68) 54%,
        rgba(3,26,22,.94) 100%
      );
    }
    .related-card:hover img { transform: scale(1.06); }
    .related-card > *:not(img) { position: relative; z-index: 2; }
    .related-card small { color: rgba(255,216,107,.86); font-size: 11px; }
    .related-card h3 { margin: 12px 0 0; font-size: 27px; line-height: 1.35; }
    .related-card p { margin: 10px 0 0; color: rgba(255,252,246,.66); font-size: 12.5px; line-height: 1.85; }

    /* Result */
    .result-scene { background: radial-gradient(circle at 50% 50%, rgba(255,216,107,.13), transparent 36rem); }
    .result-card {
      width: min(1120px,100%);
      min-height: 650px;
      padding: clamp(34px, 6vw, 82px);
      border-radius: clamp(40px, 5vw, 72px);
      border: 1px solid rgba(255,216,107,.22);
      background:
        radial-gradient(circle at 18% 84%, rgba(0,88,59,.55), transparent 28rem),
        radial-gradient(circle at 82% 16%, rgba(255,216,107,.13), transparent 24rem),
        rgba(3,26,22,.74);
      box-shadow: 0 38px 120px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.09);
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: clamp(28px,5vw,70px);
      align-items: center;
      backdrop-filter: blur(24px);
    }
    .result-copy h2 { margin: 0; font-size: clamp(40px, 6.2vw, 86px); line-height: 1.08; letter-spacing: -.07em; }
    .result-copy p { margin: 24px 0 0; color: rgba(255,252,246,.70); font-size: 15px; line-height: 2.1; text-align: justify; }
    .result-list { display: grid; gap: 10px; }
    .result-item { padding: 18px 20px; border-radius: 25px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,252,246,.055); }
    .result-item b { color: rgba(255,216,107,.92); }
    .result-item span { display: block; margin-top: 6px; color: rgba(255,252,246,.64); font-size: 12px; line-height: 1.75; }
    .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
    .cta-row a { text-decoration: none; border-radius: 999px; padding: 15px 23px; font-size: 13px; font-weight: 840; border: 1px solid rgba(255,255,255,.12); background: rgba(255,252,246,.055); }
    .cta-row a:first-child { color: #12382f; border-color: transparent; background: linear-gradient(135deg,var(--gold-light),var(--gold)); box-shadow: 0 18px 44px rgba(214,168,79,.22); }

    /* Lightbox + PDF */
    .lightbox,
    .pdf-modal {
      position: fixed;
      z-index: 200;
      inset: 0;
      display: none;
      place-items: center;
      padding: 18px;
      background: rgba(2,18,15,.88);
      backdrop-filter: blur(22px);
    }
    .lightbox.is-open,
    .pdf-modal.is-open { display: grid; }
    .lightbox-frame { position: relative; width: min(1320px, 96vw); height: min(880px, 90vh); display: grid; place-items: center; }
    .lightbox img { max-width: 100%; max-height: calc(90vh - 80px); object-fit: contain; border-radius: 20px; box-shadow: 0 32px 100px rgba(0,0,0,.54); }
    .lightbox-close,
    .pdf-close {
      position: absolute;
      z-index: 4;
      top: 10px;
      right: 10px;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.16);
      background: rgba(3,26,22,.70);
      color: var(--warm-white);
      font-size: 25px;
      cursor: pointer;
    }
    .lightbox-nav { position: absolute; z-index: 3; top: 50%; width: 52px; height: 52px; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(255,216,107,.24); background: rgba(3,26,22,.66); color: var(--gold-light); font-size: 28px; cursor: pointer; }
    .lightbox-prev { right: 8px; } .lightbox-next { left: 8px; }
    .lightbox-caption { position: absolute; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); min-width: 220px; padding: 10px 15px; border-radius: 999px; background: rgba(3,26,22,.70); border: 1px solid rgba(255,255,255,.10); text-align: center; color: rgba(255,252,246,.76); font-size: 11px; }
    .pdf-frame { position: relative; width: min(1200px, 96vw); height: min(860px, 92vh); border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,216,107,.20); background: #fff; box-shadow: 0 34px 110px rgba(0,0,0,.50); }
    .pdf-frame object { width: 100%; height: 100%; border: 0; }
    .pdf-close { position: fixed; top: 22px; right: 22px; }

    .reveal { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1), filter .8s ease; }
    .scene.is-active .reveal { opacity: 1; transform: translateY(0); filter: blur(0); }

    @media (max-width: 1020px) {
      .hero-grid, .story-grid, .overview-grid, .problem-layout, .result-card { grid-template-columns: 1fr; }
      .hero { padding-top: 132px; }
      .hero-copy { max-width: 760px; }
      .hero-art { min-height: 580px; }
      .overview-grid { grid-template-columns: 1fr; }
      .identity-card { min-height: 300px; }
      .path-grid { grid-template-columns: repeat(3,1fr); }
      .path-line { display: none; }
      .related-grid { grid-template-columns: 1fr 1fr; }
      .result-card { min-height: auto; }
    }

    @media (max-width: 760px) {
      html { scroll-snap-type: y proximity; }
      .scene { padding: 104px 16px 42px; overflow: clip; }
      .topbar { width: calc(100vw - 20px); top: max(10px, env(safe-area-inset-top)); padding: 7px; }
      .brand-mark { padding-inline: 6px 8px; gap: 7px; }
      .brand-mark img, .brand-logo-fallback { width: 34px; height: 34px; }
      .brand-mark b { font-size: 11px; }
      .brand-mark small { font-size: 8px; }
      .pill-link { padding: 10px 12px; font-size: 10px; }
      .hide-mobile { display: none; }
      .hero { padding-top: 118px; }
      .hero-grid { display: flex; flex-direction: column; gap: 12px; }
      .hero-copy { order: 1; }
      .hero-art { order: 2; width: 100%; min-height: 440px; }
      .hero h1 { font-size: clamp(47px, 15vw, 75px); }
      .hero-lead { line-height: 2; }
      .float-a { width: 58%; right: 1%; top: 5%; }
      .float-b { width: 46%; left: 0; top: 31%; }
      .float-c { width: 51%; right: 8%; bottom: 1%; }
      .float-d { width: 36%; left: 1%; bottom: 3%; }
      .project-mark { width: 100px; right: 38%; top: 36%; }
      .facts, .metrics, .tensions { grid-template-columns: 1fr 1fr; }
      .metric { padding: 16px 9px; }
      .story-visual { min-height: 390px; }
      .story-note { max-width: 185px; font-size: 10px; }
      .problem-core { min-height: 390px; }
      .tension { min-height: 190px; padding: 19px; }
      .path-grid { grid-template-columns: 1fr; }
      .path-card { min-height: auto; }
      .output-head { position: relative; top: auto; right: auto; width: 100%; max-width: none; margin-bottom: 10px; }
      .demo-badge { display: none; }
      .book-stage, .phone-stage, .laptop-stage { margin-top: 8px; height: 58vh; min-height: 430px; }
      .book { width: 98vw; }
      .book-controls { bottom: 8px; }
      .social-card { width: 112px; border-radius: 18px; }
      .phone-aura { width: 360px; height: 360px; }
      .laptop-float { width: 150px; border-radius: 17px; }
      .gallery-shell { height: 67vh; min-height: 500px; }
      .gallery-page { flex-basis: calc(100vw - 40px); grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(4,1fr); }
      .gallery-page .gallery-tile { grid-column: auto; grid-row: auto; }
      .gallery-page .tile-b, .gallery-page .tile-c, .gallery-page .tile-f { grid-column: 1/3; }
      .gallery-nav { width: 44px; height: 44px; }
      .team-grid { grid-template-columns: 1fr; }
      .person-card { min-height: auto; grid-template-columns: 112px 1fr; padding: 18px; gap: 16px; }
      .person-photo { width: 110px; }
      .related-grid { grid-template-columns: 1fr; }
      .related-card { min-height: 330px; }
      .quote-card { min-height: 520px; }
      .result-card { padding: 28px; }
      .lightbox-frame { height: 86vh; }
      .lightbox-nav { top: auto; bottom: 34px; }
    }

    @media (max-width: 460px) {
      .facts, .metrics, .tensions { grid-template-columns: 1fr; }
      .hero-tags span:nth-child(n+4) { display: none; }
      .person-card { grid-template-columns: 1fr; text-align: center; }
      .person-photo { margin-inline: auto; }
      .person-copy p { text-align: center; }
      .book-controls button { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
      .cursor-glow { display: none; }
      .path-card, .reveal, .phone, .laptop, .book { opacity: 1 !important; transform: none !important; filter: none !important; }
      .phone-screen img, .laptop-screen img { opacity: 1 !important; transform: none !important; }
      .boot-screen { display: none !important; }
    }
  

    /* Revision: one continuous canvas across the whole project */
    html { background: #031A16; }
    body {
      background:
        radial-gradient(circle at 78% 10%, rgba(255,216,107,.075), transparent 32rem),
        radial-gradient(circle at 14% 62%, rgba(15,76,58,.42), transparent 42rem),
        linear-gradient(180deg, #031A16 0%, #041f1a 54%, #082E26 100%);
      background-attachment: fixed;
    }
    body::before {
      background:
        radial-gradient(circle at 82% 28%, rgba(255,216,107,.055), transparent 31rem),
        radial-gradient(circle at 20% 76%, rgba(15,76,58,.26), transparent 42rem);
      background-size: auto;
      opacity: 1;
    }
    .hero,
    .story-scene,
    .problem-scene,
    .book-scene,
    .phone-scene,
    .laptop-scene,
    .voice-scene,
    .result-scene { background: transparent !important; }
    .hero::before { display: none; }

    /* Gallery information appears only when the work is being inspected */
    .gallery-label { transition: opacity .28s ease, transform .28s ease; }
    .gallery-info {
      position: absolute;
      z-index: 5;
      inset-inline: 20px;
      bottom: 20px;
      display: grid;
      gap: 8px;
      text-align: right;
      opacity: 0;
      transform: translateY(14px);
      filter: blur(8px);
      transition: opacity .34s ease, transform .34s ease, filter .34s ease;
      pointer-events: none;
    }
    .gallery-info strong { font-size: clamp(17px, 1.7vw, 27px); line-height: 1.35; }
    .gallery-summary { max-width: 470px; color: rgba(255,252,246,.76); font-size: clamp(11px, .95vw, 13px); line-height: 1.8; }
    .gallery-tile:hover .gallery-info,
    .gallery-tile:focus-visible .gallery-info { opacity: 1; transform: translateY(0); filter: blur(0); }
    .gallery-tile:hover .gallery-label,
    .gallery-tile:focus-visible .gallery-label { opacity: 0; transform: translateY(8px); }

    /* Team carousel */
    .team-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
    .team-heading-row > div:first-child { max-width: 820px; }
    .team-counter { direction: ltr; display: flex; align-items: center; gap: 10px; color: rgba(255,252,246,.54); font-size: 12px; flex: 0 0 auto; }
    .team-counter span:first-child { color: rgba(255,216,107,.92); font-size: 22px; font-weight: 850; }
    .team-counter i { display: block; width: 54px; height: 1px; background: rgba(255,216,107,.24); }
    .team-carousel { position: relative; margin-top: 26px; padding-inline: 68px; }
    .team-scroll {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      direction: rtl;
      scroll-behavior: smooth;
      scrollbar-width: none;
      overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory;
      touch-action: pan-x;
      cursor: grab;
    }
    .team-scroll:active { cursor: grabbing; }
    .team-scroll::-webkit-scrollbar { display: none; }
    .team-track { width: max-content; display: flex; gap: 16px; direction: rtl; padding: 4px; }
    .person-card {
      flex: 0 0 clamp(430px, 42vw, 520px);
      min-height: 330px;
      scroll-snap-align: center;
      grid-template-columns: 145px 1fr;
      gap: 20px;
    }
    .person-photo { width: 140px; }
    .person-copy h3 { font-size: clamp(24px, 2.35vw, 35px); }
    .team-nav {
      appearance: none;
      position: absolute;
      z-index: 8;
      top: 50%;
      width: 52px;
      height: 52px;
      transform: translateY(-50%);
      border-radius: 999px;
      border: 1px solid rgba(255,216,107,.23);
      background: radial-gradient(circle at 50% 44%, rgba(255,216,107,.18), transparent 70%), rgba(3,26,22,.62);
      box-shadow: 0 18px 42px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.09);
      backdrop-filter: blur(16px);
      cursor: pointer;
      transition: transform .25s ease, filter .25s ease;
    }
    .team-nav:hover { transform: translateY(-50%) scale(1.05); filter: brightness(1.08); }
    .team-nav::before {
      content: '';
      position: absolute;
      inset: 0;
      margin: auto;
      width: 12px;
      height: 12px;
      border-top: 2px solid rgba(255,216,107,.92);
      border-left: 2px solid rgba(255,216,107,.92);
    }
    .team-prev { right: 2px; }
    .team-next { left: 2px; }
    .team-prev::before { transform: rotate(135deg); right: 3px; }
    .team-next::before { transform: rotate(-45deg); left: 3px; }

    /* Feedback: continued trust rather than an unrelated brand statement */
    .feedback-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
    .feedback-mark { display: block; margin-bottom: 20px; color: rgba(255,216,107,.92); font-size: clamp(18px, 2vw, 28px); font-weight: 850; }
    .feedback-grid { display: grid; gap: 12px; }
    .feedback-card {
      position: relative;
      overflow: hidden;
      padding: 22px 24px;
      border-radius: 28px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,252,246,.052);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    }
    .feedback-card::after { content: ''; position: absolute; width: 160px; height: 160px; left: -72px; bottom: -92px; border-radius: 50%; background: radial-gradient(circle, rgba(255,216,107,.13), transparent 68%); }
    .feedback-card > * { position: relative; z-index: 2; }
    .feedback-card > span { color: rgba(255,216,107,.78); font-size: 11px; }
    .feedback-card h3 { margin: 8px 0 0; font-size: 21px; line-height: 1.45; }
    .feedback-card p { margin: 8px 0 0; color: rgba(255,252,246,.64); font-size: 12.5px; line-height: 1.85; }

    /* Desktop project pages behave as discrete full-screen chapters */
    @media (min-width: 761px) and (min-height: 640px) {
      html { scroll-snap-type: y mandatory; }
      .scene {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow: hidden !important;
      }
      .gallery-shell { height: calc(100dvh - 270px); min-height: 430px; margin-top: 16px; }
      .gallery-scene .scene-inner { height: 100%; display: flex; flex-direction: column; justify-content: center; }
      #team .scene-inner { width: min(1260px, 100%); }
      .result-card { min-height: min(650px, calc(100dvh - 190px)); }
    }

    @media (max-width: 760px) {
      .gallery-info { display: none; }
      .team-heading-row { align-items: start; }
      .team-counter { display: none; }
      .team-carousel { padding-inline: 42px; }
      .person-card { flex-basis: min(86vw, 430px); grid-template-columns: 112px 1fr; min-height: 310px; }
      .person-photo { width: 108px; }
      .team-nav { width: 42px; height: 42px; }
      .feedback-layout { grid-template-columns: 1fr; gap: 22px; }
      .feedback-card { padding: 18px; }
    }

    @media (max-width: 460px) {
      .team-carousel { padding-inline: 0; }
      .team-nav { top: auto; bottom: -52px; }
      .team-prev { right: calc(50% - 50px); }
      .team-next { left: calc(50% - 50px); }
      .person-card { flex-basis: calc(100vw - 40px); grid-template-columns: 1fr; text-align: center; }
    }


    #method .panel {
      border: 0;
      background: transparent;
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      overflow: visible
    }

    #method .panel::before,
    #method .panel::after { display: none }

    #method .panel-inner { overflow: visible }

    .method-source {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none
    }

    .method-source li {
      position: relative;
      min-height: 172px;
      padding: 22px 18px 20px;
      border-radius: 28px;
      background: rgba(255, 252, 246, .055);
      border: 1px solid rgba(255, 255, 255, .10);
      color: rgba(255, 252, 246, .70);
      line-height: 1.9
    }

    .method-source li::before {
      content: attr(data-name);
      display: block;
      margin-bottom: 10px;
      color: rgba(255, 216, 107, .93);
      font-size: 14px;
      font-weight: 780
    }

    .method-source li::after {
      content: attr(data-title);
      display: block;
      margin-bottom: 10px;
      color: var(--warm-white);
      font-size: 18px;
      font-weight: 800;
      line-height: 1.5
    }

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

    .method-stage { display: none }

    .method-enhanced .method-stage {
      display: block;
      position: relative
    }

    .method-controls {
      position: absolute;
      z-index: 22;
      inset-inline: 18px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      justify-content: space-between;
      pointer-events: none
    }

    .method-nav {
      appearance: none;
      position: relative;
      width: 54px;
      height: 54px;
      border: 1px solid rgba(255, 216, 107, .24);
      border-radius: 999px;
      background: radial-gradient(circle at 50% 42%, rgba(255, 216, 107, .20), transparent 70%), rgba(3, 26, 22, .58);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 18px 42px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .10);
      cursor: pointer;
      pointer-events: auto;
      transition: transform .24s ease, opacity .24s ease, filter .24s ease
    }

    .method-nav::before {
      content: '';
      position: absolute;
      inset: 0;
      margin: auto;
      width: 12px;
      height: 12px;
      border-top: 2px solid rgba(255, 216, 107, .92);
      border-left: 2px solid rgba(255, 216, 107, .92);
      filter: drop-shadow(0 0 8px rgba(255, 216, 107, .48))
    }

    .method-nav:hover { transform: scale(1.05); filter: brightness(1.08) }
    .method-nav.is-disabled { opacity: .24; pointer-events: none }
    .method-nav-prev::before { transform: rotate(135deg); right: 3px }
    .method-nav-next::before { transform: rotate(-45deg); left: 3px }

    .method-viewport {
      position: relative;
      height: clamp(590px, 58vw, 720px);
      overflow-x: auto;
      overflow-y: hidden;
      direction: rtl;
      border-radius: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      scrollbar-width: none;
      scrollbar-color: transparent transparent;
      overscroll-behavior-x: contain;
      overscroll-behavior-y: auto;
      scroll-padding-inline: clamp(22px, 8vw, 84px);
      touch-action: pan-x pan-y;
      cursor: grab
    }

    .method-viewport.is-dragging { cursor: grabbing; user-select: none }
    .method-viewport::-webkit-scrollbar { width: 0; height: 0; display: none }
    .method-viewport::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px }

    .method-track {
      position: relative;
      height: 100%;
      width: max(1660px, calc(var(--method-stop-count, 6) * var(--method-stop-width, 438px)));
      min-width: 100%;
      direction: ltr;
      isolation: isolate;
      contain: layout style;
      overflow: visible
    }

    .method-track::before { content: none }

    .method-svg {
      position: absolute;
      z-index: 1;
      inset: 0;
      width: 100%;
      height: 100%;
      overflow: visible;
      pointer-events: none
    }

    .method-path-shadow,
    .method-path-main,
    .method-path-done {
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      vector-effect: non-scaling-stroke
    }

    .method-path-shadow { stroke: rgba(0, 0, 0, .24); stroke-width: 17; filter: blur(7px) }
    .method-path-main { stroke: rgba(255, 252, 246, .16); stroke-width: 5.2; stroke-dasharray: 1 15 }
    .method-path-done {
      stroke: url(#methodPathGradient);
      stroke-width: 5;
      stroke-dasharray: 0 999999;
      stroke-dashoffset: 0;
      filter: drop-shadow(0 0 12px rgba(255, 216, 107, .22))
    }

    .method-pulse {
      position: absolute;
      z-index: 2;
      width: 22px;
      height: 22px;
      left: 0;
      top: 0;
      border-radius: 999px;
      background: #FFD86B;
      box-shadow: 0 0 0 9px rgba(255, 216, 107, .10), 0 0 30px rgba(255, 216, 107, .78), 0 0 74px rgba(214, 168, 79, .38);
      transform: translate3d(-50%, -50%, 0);
      pointer-events: none;
      mix-blend-mode: screen;
      will-change: left, top
    }

    .method-pulse::before,
    .method-pulse::after {
      content: '';
      position: absolute;
      inset: -12px;
      border-radius: inherit;
      border: 1px solid rgba(255, 216, 107, .30);
      animation: methodPulse 1.85s ease-out infinite
    }

    .method-pulse::after { inset: -23px; animation-delay: .6s; opacity: .38 }
    @keyframes methodPulse { to { transform: scale(1.65); opacity: 0 } }

    .method-snap-point {
      position: absolute;
      top: 0;
      width: 1px;
      height: 100%;
      opacity: 0;
      pointer-events: none;
      scroll-snap-align: center;
      scroll-snap-stop: always
    }

    .method-card,
    .method-start-card {
      --lit: 0;
      --card-light-strength: 0;
      --card-light-x: 112%;
      --card-light-y: 50%;
      --tilt: 0deg;
      position: absolute;
      z-index: 10;
      width: clamp(264px, 22vw, 330px);
      min-height: 224px;
      padding: 24px;
      border-radius: 34px;
      color: var(--warm-white);
      direction: rtl;
      text-align: right;
      background:
        radial-gradient(circle at var(--card-light-x, 112%) var(--card-light-y, 50%), rgba(255, 216, 107, calc(.14 + .58 * var(--card-light-strength))) 0%, rgba(255, 216, 107, calc(.06 + .30 * var(--card-light-strength))) 18%, rgba(214, 168, 79, calc(.025 + .15 * var(--card-light-strength))) 36%, transparent 66%),
        linear-gradient(135deg, rgba(255, 255, 255, calc(.18 + .10 * var(--lit))), rgba(255, 255, 255, calc(.08 + .035 * var(--lit))) 38%, rgba(255, 255, 255, .036) 100%),
        rgba(3, 26, 22, .76);
      border: 1px solid rgba(255, 216, 107, calc(.20 + .32 * var(--lit)));
      box-shadow:
        0 28px 82px rgba(0, 0, 0, .46),
        0 0 calc(82px * var(--card-light-strength)) rgba(255, 216, 107, .20),
        inset 0 1px 0 rgba(255, 255, 255, calc(.24 + .16 * var(--lit))),
        inset 0 -58px 98px rgba(3, 26, 22, .82),
        inset 0 0 0 1px rgba(255, 255, 255, .035);
      backdrop-filter: blur(38px) saturate(1.36) contrast(1.18) brightness(.92);
      -webkit-backdrop-filter: blur(38px) saturate(1.36) contrast(1.18) brightness(.92);
      transform: translate(-50%, -50%) rotate(var(--tilt)) scale(calc(.97 + .02 * var(--lit)));
      opacity: calc(.92 + .08 * var(--lit));
      transition: opacity .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
      overflow: hidden;
      isolation: isolate;
      contain: paint;
      scroll-snap-align: center;
      scroll-snap-stop: always
    }

    .method-card::before,
    .method-start-card::before {
      content: '';
      position: absolute;
      z-index: 0;
      inset: 0;
      background:
        radial-gradient(circle at var(--card-light-x, 112%) var(--card-light-y, 50%), rgba(255, 216, 107, calc(.12 + (.50 * var(--card-light-strength)))) 0%, rgba(255, 216, 107, calc(.055 + (.28 * var(--card-light-strength)))) 18%, rgba(214, 168, 79, calc(.02 + (.12 * var(--card-light-strength)))) 36%, transparent 66%),
        linear-gradient(270deg, rgba(255, 216, 107, calc(.16 * var(--card-light-strength))), transparent 66%),
        linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 48%);
      opacity: calc(.38 + (.62 * var(--card-light-strength)));
      pointer-events: none;
      transform: translateZ(0)
    }

    .method-card::after,
    .method-start-card::after {
      content: '';
      position: absolute;
      z-index: 1;
      inset: 1px;
      border-radius: inherit;
      pointer-events: none;
      border: 1px solid rgba(255, 255, 255, calc(.08 + .12 * var(--lit)));
      background:
        linear-gradient(180deg, rgba(3,26,22,.10), rgba(3,26,22,.34) 58%, rgba(3,26,22,.52)),
        linear-gradient(135deg, rgba(255,255,255,.13), transparent 38%),
        linear-gradient(270deg, rgba(255,216,107, calc(.055 * var(--card-light-strength))), transparent 62%)
    }

    .method-start-card {
      width: clamp(254px, 21vw, 306px);
      min-height: 156px;
      display: grid;
      align-content: center;
      justify-items: start;
      gap: 8px;
      text-decoration: none;
      color: var(--warm-white);
      cursor: pointer
    }

    .method-start-card span,
    .method-start-card strong,
    .method-start-card small,
    .method-card b,
    .method-card h3,
    .method-card p,
    .method-card img { position: relative; z-index: 2 }

    .method-start-card span { color: rgba(255, 216, 107, .98); font-size: 15px; font-weight: 820; text-align: right; text-shadow: 0 2px 18px rgba(3, 26, 22, .90) }
    .method-start-card strong { font-size: 24px; line-height: 1.42; text-align: right; text-shadow: 0 3px 22px rgba(3, 26, 22, .94) }
    .method-start-card small { color: rgba(255, 252, 246, .92); font-size: 13.2px; line-height: 1.85; text-align: right; text-shadow: 0 2px 18px rgba(3, 26, 22, .96) }

    .method-card.has-image { padding-top: 142px }

    .method-card img {
      position: absolute;
      inset: 10px 10px auto;
      width: calc(100% - 20px);
      height: 116px;
      object-fit: cover;
      border-radius: 26px;
      opacity: calc(.52 + .34 * var(--lit));
      filter: saturate(.88) brightness(.84);
      transition: opacity .22s ease, filter .22s ease, transform .22s ease
    }

    .method-card.is-active img { filter: saturate(1) brightness(1); transform: scale(1.02) }

    .method-card b {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      justify-content: flex-start;
      text-align: right;
      color: rgba(255, 216, 107, calc(.86 + .14 * var(--lit)));
      font-size: 15px;
      line-height: 1.65
    }

    .method-card b::before {
      content: '';
      flex: 0 0 auto;
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--gold-light);
      box-shadow: 0 0 calc(10px + 12px * var(--lit)) rgba(255, 216, 107, .56)
    }

    .method-card h3 {
      margin: 12px 0 0;
      font-size: 24px;
      line-height: 1.42;
      letter-spacing: -.035em;
      text-align: right;
      text-shadow: 0 2px 18px rgba(3, 26, 22, .80)
    }

    .method-card p {
      margin: 9px 0 0;
      color: rgba(255, 252, 246, calc(.90 + .08 * var(--lit)));
      font-size: 14.5px;
      line-height: 2.05;
      text-align: justify;
      text-align-last: right;
      text-shadow: 0 2px 18px rgba(3, 26, 22, .98)
    }

    @media(max-width:920px) {
      .method-source { grid-template-columns: repeat(2, 1fr) }
      .method-controls { display: none }
      .method-viewport {
        height: 570px;
        cursor: auto;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 28px;
        scrollbar-width: none
      }
      .method-viewport::-webkit-scrollbar { display: none }
      .method-track { width: max(1180px, calc(var(--method-stop-count, 6) * var(--method-stop-width, 356px))) }
      .method-card, .method-start-card { width: 260px }
    }

    @media(max-width:720px) {
      .method-source { grid-template-columns: 1fr }
      .method-viewport { height: 570px; border-radius: 0 }
      .method-track { width: max(1040px, calc(var(--method-stop-count, 6) * var(--method-stop-width, 336px))) }
      .method-card, .method-start-card { width: min(286px, calc(100vw - 58px)); min-height: 214px; padding: 20px; border-radius: 30px }
      .method-start-card { min-height: 154px }
      .method-card.has-image { padding-top: 132px }
      .method-card img { height: 106px; border-radius: 24px }
      .method-card b { font-size: 14.2px }
      .method-card h3 { font-size: 22px }
      .method-card p { font-size: 13.8px; line-height: 2 }
      .method-start-card strong { font-size: 22px }
      .method-start-card small { font-size: 13px }
    }

    /* === Project page refinement v3 START === */
    :root { --content-max: 1280px; }

    html { scroll-snap-type: none !important; }
    body,
    button,
    input,
    textarea,
    select,
    option {
      font-family: 'nebras', 'Vazirmatn', 'IRANSansX', 'Yekan Bakh', Tahoma, sans-serif;
    }

    .scene {
      min-height: auto;
      height: auto;
      max-height: none;
      scroll-snap-align: none;
      scroll-snap-stop: normal;
      overflow: visible;
    }

    .hero { min-height: 100svh; }

    .scene-inner,
    .hero-grid,
    .output-head,
    .book-stage,
    .phone-stage,
    .laptop-stage,
    .gallery-shell,
    .result-card {
      width: min(var(--content-max), 100%);
      max-width: var(--content-max);
      margin-inline: auto;
    }

    .scene-kicker {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 36px;
      margin: 0 0 18px;
      padding: 0 14px;
      border: 1px solid rgba(255,216,107,.22);
      border-radius: 999px;
      color: rgba(255,216,107,.92);
      background: rgba(255,252,246,.045);
      font-family: inherit;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      white-space: nowrap;
      box-sizing: border-box;
    }

    .scene-kicker::before {
      width: 7px;
      height: 7px;
      flex: 0 0 7px;
    }

    .gallery-tile,
    .gallery-label,
    .gallery-info,
    .gallery-info strong,
    .gallery-summary,
    .gallery-nav,
    .lightbox,
    .lightbox-caption,
    .lightbox-nav,
    .lightbox-close {
      font-family: inherit !important;
    }

    #overview > .scene-inner > .scene-kicker,
    #result > .scene-inner > .scene-kicker {
      position: relative;
      z-index: 4;
    }

    #overview > .scene-inner > .panel { margin-top: 0; }

    #method {
      padding-inline: clamp(18px, 4vw, 64px);
      overflow: visible;
    }

    #method > .scene-inner { width: min(var(--content-max), 100%); }

    #method .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 22px;
      margin-bottom: 18px;
    }

    #method .section-head > div { min-width: 0; }

    #method .section-head > p {
      margin: 0;
      max-width: 520px;
      font-size: clamp(13px, 1.25vw, 16px);
      line-height: 2;
      color: rgba(255,252,246,.68);
      text-align: justify;
    }

    #method .panel,
    #method .panel-inner { overflow: visible; }

    #method .panel-inner { padding: 0; }

    .method-enhanced .method-stage {
      --method-content-pad: clamp(18px, 4vw, 64px);
      width: 100%;
      max-width: var(--content-max);
      margin-inline: auto;
      overflow: visible;
    }

    .method-enhanced .method-viewport {
      width: 100%;
      max-width: var(--content-max);
      border-radius: 0;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-padding-inline: 0 !important;
      scroll-snap-type: none !important;
      overscroll-behavior-x: none !important;
      overscroll-behavior-y: auto !important;
      scrollbar-width: none !important;
    }

    .method-enhanced .method-controls { inset-inline: var(--method-content-pad); }
    .method-enhanced .method-track { min-width: 100%; }
    .method-enhanced .method-snap-point {
      scroll-snap-align: none !important;
      scroll-snap-stop: normal !important;
    }
    .method-enhanced .method-viewport::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    @media (max-width: 920px) {
      #method .section-head { display: grid; align-items: start; }
      #method .section-head > p { max-width: 720px; }
      .method-enhanced .method-stage { --method-content-pad: clamp(18px, 6vw, 42px); }
    }

    @media (min-width: 1280px) and (min-height: 768px) {
      html { scroll-snap-type: y mandatory !important; }
      .scene {
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
        padding-top: clamp(92px, 10vh, 112px);
        padding-bottom: clamp(24px, 4vh, 42px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow: hidden;
      }
      #method { overflow: hidden; }
      #method .method-viewport {
        height: clamp(430px, calc(100svh - 250px), 540px);
      }
      .output-head { align-self: start; }
    }

    @media (max-width: 1279px), (max-height: 767px) {
      html { scroll-snap-type: none !important; }
      .scene {
        height: auto;
        min-height: auto;
        max-height: none;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        overflow: visible;
      }
      .hero { min-height: 100svh; }
    }
    /* === Project page refinement v3 END === */



    /* === Project page refinement v4 START === */
    :root {
      --content-max: 1280px;
      --scene-top-space: 104px;
      --scene-bottom-space: 24px;
    }

    html,
    body { scroll-behavior: smooth; }

    .stage { width: 100%; }

    .scene {
      padding-inline: max(18px, calc((100vw - var(--content-max)) / 2));
    }

    .scene > .scene-inner,
    .scene > .hero-grid,
    .scene > .output-layout,
    .gallery-scene > .scene-inner {
      width: 100%;
      max-width: var(--content-max);
      margin-inline: auto;
    }

    .gallery-shell,
    .book-stage,
    .phone-stage,
    .laptop-stage,
    .result-card {
      width: 100%;
      max-width: var(--content-max);
      margin-inline: auto;
    }

    /* One canonical kicker component for every project page. */
    .scene .scene-kicker {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 10px !important;
      width: max-content !important;
      min-width: 0 !important;
      min-height: 36px !important;
      margin: 0 0 18px !important;
      padding: 0 14px !important;
      border: 1px solid rgba(255,216,107,.22) !important;
      border-radius: 999px !important;
      color: rgba(255,216,107,.92) !important;
      background: rgba(255,252,246,.045) !important;
      box-shadow: none !important;
      font-family: 'nebras', 'Vazirmatn', 'IRANSansX', 'Yekan Bakh', Tahoma, sans-serif !important;
      font-size: 12px !important;
      font-style: normal !important;
      font-weight: 700 !important;
      letter-spacing: 0 !important;
      line-height: 1 !important;
      text-align: right !important;
      text-shadow: none !important;
      white-space: nowrap !important;
      opacity: 1;
      transform: none;
    }

    .scene .scene-kicker::before {
      content: '' !important;
      display: block !important;
      width: 7px !important;
      height: 7px !important;
      flex: 0 0 7px !important;
      border-radius: 50% !important;
      background: var(--gold-light) !important;
      box-shadow: 0 0 16px rgba(255,216,107,.72) !important;
    }

    .story-copy > p:not(.scene-kicker) { margin-top: 18px; }

    /* Larger hero previews while preserving the composition. */
    .hero-art { min-height: min(690px, 74vh); }
    .float-a { width: 58%; right: 0; top: 3%; }
    .float-b { width: 44%; left: -1%; top: 28%; }
    .float-c { width: 50%; right: 10%; bottom: 0; }
    .float-d { width: 36%; left: 0; bottom: 2%; }
    .project-mark { right: 40%; top: 33%; }

    /* Output chapters: copy and mockup share one bounded layout. */
    .output-layout {
      position: relative;
      z-index: 3;
      display: grid;
      grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
      gap: clamp(22px, 4vw, 58px);
      align-items: center;
      min-height: 0;
    }

    .output-head {
      position: relative;
      inset: auto;
      width: 100%;
      max-width: 410px;
      align-self: center;
    }

    .output-head .scene-title { font-size: clamp(30px, 3.8vw, 58px); }
    .output-head .scene-lead { font-size: clamp(12px, 1vw, 14px); line-height: 1.95; }

    .output-head .demo-badge {
      position: relative;
      inset: auto;
      width: max-content;
      max-width: 100%;
      margin-top: 18px;
      font-family: inherit;
    }

    .book-stage,
    .phone-stage,
    .laptop-stage {
      margin-top: 0;
      min-width: 0;
      overflow: visible;
    }

    .book-stage { height: min(530px, calc(100dvh - 160px)); }
    .phone-stage,
    .laptop-stage { height: min(560px, calc(100dvh - 150px)); }

    /* Client feedback uses the same calm, minimal visual grammar. */
    .feedback-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
    .client-feedback-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin-top: 28px;
    }
    .client-feedback-card {
      position: relative;
      overflow: hidden;
      min-height: 270px;
      padding: clamp(22px, 3vw, 34px);
      border-radius: 34px;
      border: 1px solid rgba(255,255,255,.10);
      background: linear-gradient(145deg, rgba(255,252,246,.075), rgba(255,252,246,.035));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
    }
    .client-feedback-card::after {
      content: '';
      position: absolute;
      width: 230px;
      height: 230px;
      left: -110px;
      bottom: -135px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,216,107,.14), transparent 68%);
      pointer-events: none;
    }
    .client-feedback-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
    .client-feedback-avatar {
      width: 58px;
      height: 58px;
      flex: 0 0 58px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      border: 1px solid rgba(255,216,107,.20);
      background: rgba(3,26,22,.58);
    }
    .client-feedback-avatar img { width: 34px; height: 34px; object-fit: contain; }
    .client-feedback-card h3 { margin: 0; font-size: 22px; line-height: 1.4; }
    .client-feedback-card small { display: block; margin-top: 4px; color: rgba(255,216,107,.76); font-size: 11px; }
    .client-feedback-card > p { position: relative; z-index: 2; margin: 22px 0 0; color: rgba(255,252,246,.70); font-size: 14px; line-height: 2.05; text-align: justify; }

    /* Native, accurate full-screen snapping on capable desktop screens. */
    @media (min-width: 1280px) and (min-height: 768px) {
      html,
      body {
        width: 100%;
        height: 100%;
        overflow: hidden !important;
      }

      .stage {
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        scroll-padding: 0;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
      }

      .scene {
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        padding-top: var(--scene-top-space) !important;
        padding-bottom: var(--scene-bottom-space) !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        overflow: hidden !important;
      }

      .scene > .scene-inner,
      .scene > .hero-grid,
      .scene > .output-layout {
        max-height: calc(100dvh - var(--scene-top-space) - var(--scene-bottom-space));
        min-height: 0;
      }

      .scene > .scene-inner {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,216,107,.28) transparent;
        padding-inline-end: 2px;
      }

      .scene > .scene-inner::-webkit-scrollbar { width: 5px; }
      .scene > .scene-inner::-webkit-scrollbar-thumb { background: rgba(255,216,107,.28); border-radius: 999px; }

      .hero-grid,
      .output-layout { overflow: visible; }

      .hero { padding-top: var(--scene-top-space) !important; }
      .hero-grid { height: calc(100dvh - var(--scene-top-space) - var(--scene-bottom-space)); }
      .hero-copy { max-height: 100%; overflow-y: auto; padding-inline-end: 3px; }
      .hero-art { min-height: 0; height: 100%; }

      #method > .scene-inner {
        overflow: visible;
        max-height: none;
      }
      #method .method-viewport {
        height: clamp(430px, calc(100dvh - 250px), 540px) !important;
      }

      .gallery-scene .scene-inner { display: flex; flex-direction: column; overflow: hidden; }
      .gallery-shell { flex: 1 1 auto; height: auto !important; min-height: 0 !important; }

      #team .scene-inner,
      #client-feedback .scene-inner,
      #related .scene-inner { overflow-y: auto; }

      .output-layout { height: 100%; }
      .book-stage,
      .phone-stage,
      .laptop-stage { height: min(540px, calc(100dvh - 150px)); }
    }

    @media (max-width: 1279px), (max-height: 767px) {
      html,
      body { height: auto; overflow-x: hidden; overflow-y: auto !important; }
      .stage { height: auto; overflow: visible; }
      .scene {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
        overflow: visible !important;
      }
      .scene > .scene-inner { max-height: none; overflow: visible; }
    }

    @media (max-width: 1060px) {
      .output-layout { grid-template-columns: 1fr; }
      .output-head { max-width: 760px; }
      .book-stage,
      .phone-stage,
      .laptop-stage { height: min(600px, 66vh); }
      .client-feedback-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 760px) {
      .hero-art { min-height: 470px; }
      .float-a { width: 62%; }
      .float-b { width: 49%; }
      .float-c { width: 55%; }
      .float-d { width: 40%; }
      .client-feedback-card { min-height: 0; }
    }
    /* === Project page refinement v4 END === */



    /* === Project page refinement v5 START === */
    /* The layout canvas is transparent; only intentional cards paint a surface. */
    .scene > .scene-inner,
    .scene > .hero-grid,
    .scene > .output-layout {
      background: transparent !important;
      background-color: transparent !important;
      box-shadow: none !important;
      filter: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border-radius: 0 !important;
      mix-blend-mode: normal !important;
    }

    .hero h1 {
      max-width: 720px;
      font-size: clamp(42px, 5.15vw, 78px);
      line-height: 1.08;
      letter-spacing: -.065em;
    }

    /* Fill the hero composition more confidently and reduce dead space. */
    .hero-grid {
      grid-template-columns: minmax(430px, .94fr) minmax(520px, 1.16fr);
      gap: clamp(24px, 3.4vw, 56px);
    }
    .hero-art { min-height: min(720px, 77vh); }
    .float-a { width: 66%; right: -1%; top: 0; }
    .float-b { width: 51%; left: -2%; top: 25%; }
    .float-c { width: 58%; right: 8%; bottom: -1%; }
    .float-d { width: 43%; left: -1%; bottom: 1%; }
    .project-mark { right: 39%; top: 32%; }

    /* Persian, quiet numbering for the problem tensions. */
    .tension::after {
      direction: rtl;
      color: rgba(255,216,107,.18);
      opacity: .56;
      filter: blur(1.8px);
      text-shadow: 0 0 18px rgba(255,216,107,.13);
      transform: translateZ(0);
    }

    @media (min-width: 1280px) and (min-height: 768px) {
      :root {
        --scene-top-space: clamp(88px, 11.2vh, 104px);
        --scene-bottom-space: clamp(14px, 2.3vh, 22px);
      }

      /* Natural content is visible by default. Internal scrolling is enabled by JS only when truly needed. */
      .scene > .scene-inner {
        max-height: calc(100dvh - var(--scene-top-space) - var(--scene-bottom-space));
        overflow: visible !important;
        overscroll-behavior-y: auto !important;
        scrollbar-gutter: auto;
        padding-inline-end: 0;
      }
      .scene > .scene-inner.is-scrollable {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
        padding-inline-end: 5px;
      }
      .scene > .scene-inner.is-scrollable::-webkit-scrollbar { width: 4px; }
      .scene > .scene-inner.is-scrollable::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(255,216,107,.25);
      }

      .scene .scene-kicker {
        min-height: 32px !important;
        margin-bottom: 11px !important;
        padding-inline: 13px !important;
        font-size: 11px !important;
      }
      .scene-title {
        font-size: clamp(30px, 3.55vw, 54px);
        line-height: 1.06;
      }
      .scene-lead {
        margin-top: 12px;
        font-size: clamp(12px, .98vw, 14px);
        line-height: 1.82;
      }

      .panel-inner { padding: clamp(18px, 2.15vw, 30px); }
      .panel::after { inset: 14px; }

      /* Overview is deliberately compact enough to remain a single screen at 768px high. */
      #overview .panel { border-radius: clamp(28px, 3vw, 44px); }
      #overview .overview-grid { margin-top: 16px; gap: 11px; }
      #overview .identity-card {
        min-height: 286px;
        padding: 22px;
        border-radius: 30px;
      }
      #overview .identity-card img { width: 88px; height: 88px; }
      #overview .identity-card strong { font-size: clamp(30px, 3vw, 43px); }
      #overview .identity-card small { font-size: 11.5px; line-height: 1.65; }
      #overview .facts { gap: 8px; }
      #overview .fact {
        min-height: 94px;
        padding: 13px 15px;
        border-radius: 22px;
      }
      #overview .fact small { font-size: 9.5px; }
      #overview .fact strong { margin-top: 6px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.42; }
      #overview .fact p { margin-top: 3px; font-size: 10px; line-height: 1.5; }
      #overview .metrics { margin-top: 8px; gap: 7px; }
      #overview .metric { padding: 10px 7px; border-radius: 19px; }
      #overview .metric strong { font-size: clamp(23px, 2vw, 31px); }
      #overview .metric span { margin-top: 4px; font-size: 9.5px; line-height: 1.35; }

      /* Story and problem keep their visual rhythm without forcing a nested scroll. */
      .story-grid { gap: clamp(24px, 3.5vw, 50px); }
      .story-copy p:not(.scene-kicker) { margin-top: 12px; font-size: 12.5px; line-height: 1.88; }
      .story-visual { min-height: min(430px, calc(100dvh - 185px)); }
      .story-note { max-width: 214px; padding: 11px 13px; font-size: 10.5px; line-height: 1.65; }

      .problem-layout { margin-top: 15px; gap: 12px; }
      .problem-core { min-height: 334px; padding: 27px; border-radius: 34px; }
      .problem-core h3 { margin-top: 15px; font-size: clamp(29px, 3vw, 43px); line-height: 1.19; }
      .problem-core p { margin-top: 13px; font-size: 11.5px; line-height: 1.75; }
      .tensions { gap: 9px; }
      .tension { min-height: 158px; padding: 17px; border-radius: 26px; }
      .tension::after { left: 14px; top: 7px; font-size: 50px; }
      .tension b { font-size: 14.5px; }
      .tension p { margin-top: 8px; font-size: 10.8px; line-height: 1.68; }

      /* The personal-page method remains intact; only its heading is fitted to the viewport. */
      #method .section-head { margin-bottom: 8px; gap: 18px; }
      #method .section-head > p { font-size: 11.5px; line-height: 1.72; }
      #method .method-viewport { height: clamp(410px, calc(100dvh - 222px), 505px) !important; }

      /* Output mockups are bounded by the same 1280px canvas and the available height. */
      .output-layout { gap: clamp(20px, 3vw, 44px); }
      .output-head { max-width: 360px; }
      .output-head .scene-title { font-size: clamp(29px, 3.15vw, 48px); }
      .output-head .scene-lead { font-size: 11.5px; line-height: 1.72; }
      .output-head .demo-badge { margin-top: 11px; padding: 8px 11px; font-size: 9.5px; }
      .book-stage, .phone-stage, .laptop-stage {
        height: min(490px, calc(100dvh - 132px));
        max-width: 100%;
      }
      .book { width: min(820px, 100%); }
      .laptop { width: min(690px, 94%); }

      /* Team, feedback, related projects and result are compact before any internal scroll is considered. */
      .team-heading-row { gap: 18px; }
      .team-carousel { margin-top: 17px; }
      .person-card { min-height: 280px; padding: 18px; }
      .person-copy h3 { font-size: clamp(22px, 2vw, 30px); }
      .person-copy strong { font-size: 12px; line-height: 1.65; }
      .person-copy p { font-size: 10.8px; line-height: 1.68; }

      .feedback-heading { gap: 18px; }
      .client-feedback-grid { margin-top: 17px; gap: 12px; }
      .client-feedback-card { min-height: 224px; padding: 21px; border-radius: 28px; }
      .client-feedback-avatar { width: 48px; height: 48px; flex-basis: 48px; }
      .client-feedback-card h3 { font-size: 19px; }
      .client-feedback-card > p { margin-top: 14px; font-size: 11.5px; line-height: 1.78; }

      .related-grid { margin-top: 17px; gap: 11px; }
      .related-card { min-height: 320px; }
      .related-card h3 { font-size: 21px; }
      .related-card p { font-size: 10.8px; line-height: 1.68; }

      .result-card { min-height: 0; padding: clamp(25px, 3vw, 42px); }
      .result-copy h2 { font-size: clamp(38px, 4.4vw, 67px); }
      .result-copy p { font-size: 12px; line-height: 1.82; }
      .result-item { padding: 13px 15px; }
      .result-item b { font-size: 14px; }
      .result-item span { font-size: 10.5px; line-height: 1.6; }

      .hero-copy { overflow: visible !important; }
      .hero h1 { font-size: clamp(43px, 4.55vw, 68px); }
      .hero-lead { margin-top: 16px; font-size: 12.5px; line-height: 1.82; }
      .hero-tags { margin-top: 17px; gap: 7px; }
      .hero-tags span { padding: 7px 10px; font-size: 9.5px; }
      .hero-actions { margin-top: 17px; }
      .hero-actions a { padding: 11px 17px; font-size: 11px; }
    }

    @media (max-width: 1279px), (max-height: 767px) {
      .hero-grid { grid-template-columns: 1fr 1fr; }
      .hero h1 { font-size: clamp(39px, 6vw, 72px); }
    }

    @media (max-width: 920px) {
      .hero-grid { grid-template-columns: 1fr; }
      .hero-art { min-height: 530px; }
    }
    /* === Project page refinement v5 END === */



    /* === Project page refinement v6 START === */
    /* Denser hero composition without reducing the breathing room of the copy. */
    .hero-art { min-height: min(735px, 78vh); }
    .float-a { width: 70%; right: 1%; top: 0; }
    .float-b { width: 55%; left: 5%; top: 21%; }
    .float-c { width: 62%; right: 7%; bottom: 0; }
    .float-d { width: 47%; left: 7%; bottom: 3%; }
    .project-mark { right: 39%; top: 33%; }

    /* Focused, three-dimensional team carousel. */
    .team-carousel { --team-card-width: clamp(440px, 43vw, 540px); }
    .team-scroll {
      perspective: 1500px;
      overflow-y: visible;
      padding-block: 28px 34px;
      scroll-padding-inline: 50%;
    }
    .team-track { align-items: center; gap: 18px; padding-block: 8px; }
    .team-track .person-card {
      flex: 0 0 var(--team-card-width);
      min-height: 320px;
      transform-origin: 50% 60%;
      transform: perspective(1200px) translateZ(-90px) scale(.79);
      opacity: .34;
      filter: saturate(.70) brightness(.76) blur(1.4px);
      z-index: 1;
      pointer-events: none;
      transition:
        transform .76s cubic-bezier(.22,1,.36,1),
        opacity .62s ease,
        filter .62s ease,
        border-color .62s ease,
        background .62s ease,
        box-shadow .76s cubic-bezier(.22,1,.36,1);
    }
    .team-track .person-card.is-prev {
      transform: perspective(1200px) translateX(-18px) translateZ(-38px) rotateY(10deg) scale(.88);
      opacity: .62;
      filter: saturate(.86) brightness(.88) blur(.45px);
      z-index: 3;
      pointer-events: auto;
    }
    .team-track .person-card.is-next {
      transform: perspective(1200px) translateX(18px) translateZ(-38px) rotateY(-10deg) scale(.88);
      opacity: .62;
      filter: saturate(.86) brightness(.88) blur(.45px);
      z-index: 3;
      pointer-events: auto;
    }
    .team-track .person-card.is-active {
      transform: perspective(1200px) translateZ(42px) rotateY(0) scale(1);
      opacity: 1;
      filter: none;
      z-index: 7;
      pointer-events: auto;
      border-color: rgba(255,216,107,.28);
      background: linear-gradient(145deg, rgba(255,252,246,.085), rgba(255,252,246,.045));
      box-shadow: 0 34px 95px rgba(0,0,0,.32), 0 0 56px rgba(255,216,107,.075), inset 0 1px 0 rgba(255,255,255,.10);
    }
    .team-track .person-card:hover { border-color: rgba(255,216,107,.25); }
    .team-track .person-card.is-prev:hover { transform: perspective(1200px) translateX(-18px) translateZ(-34px) rotateY(9deg) scale(.89); }
    .team-track .person-card.is-next:hover { transform: perspective(1200px) translateX(18px) translateZ(-34px) rotateY(-9deg) scale(.89); }
    .team-track .person-card.is-active:hover { transform: perspective(1200px) translateY(-3px) translateZ(48px) scale(1.01); }

    /* A restrained fan of feedback cards; one card remains readable at the center. */
    .feedback-heading { align-items: end; }
    .feedback-counter { direction: ltr; display: flex; align-items: center; gap: 10px; color: rgba(255,252,246,.54); font-size: 12px; flex: 0 0 auto; }
    .feedback-counter span:first-child { color: rgba(255,216,107,.92); font-size: 22px; font-weight: 850; }
    .feedback-counter i { width: 54px; height: 1px; background: rgba(255,216,107,.24); }
    .feedback-stage {
      position: relative;
      width: min(860px, 100%);
      height: 365px;
      margin: 28px auto 0;
      perspective: 1700px;
      isolation: isolate;
    }
    .feedback-stack { position: relative; width: min(730px, calc(100% - 110px)); height: 100%; margin-inline: auto; }
    .feedback-stack .client-feedback-card {
      position: absolute;
      inset: 0;
      width: 100%;
      min-height: 0;
      height: 100%;
      padding: clamp(25px, 3vw, 36px);
      border-radius: 36px;
      transform-origin: 50% 112%;
      transform:
        translate3d(var(--feedback-x, 0), var(--feedback-y, 22px), var(--feedback-z, -100px))
        rotate(var(--feedback-rotate, 0deg))
        rotateY(var(--feedback-rotate-y, 0deg))
        scale(var(--feedback-scale, .88));
      opacity: var(--feedback-opacity, .22);
      filter: blur(var(--feedback-blur, 1.2px)) saturate(var(--feedback-saturation, .74));
      z-index: var(--feedback-layer, 1);
      pointer-events: none;
      transition:
        transform .86s cubic-bezier(.22,1,.36,1),
        opacity .64s ease,
        filter .64s ease,
        border-color .64s ease,
        box-shadow .86s cubic-bezier(.22,1,.36,1);
      will-change: transform, opacity, filter;
    }
    .feedback-stack .client-feedback-card.is-active {
      --feedback-x: 0px;
      --feedback-y: 0px;
      --feedback-z: 44px;
      --feedback-rotate: 0deg;
      --feedback-rotate-y: 0deg;
      --feedback-scale: 1;
      --feedback-opacity: 1;
      --feedback-blur: 0px;
      --feedback-saturation: 1;
      --feedback-layer: 12;
      pointer-events: auto;
      border-color: rgba(255,216,107,.29);
      box-shadow: 0 38px 110px rgba(0,0,0,.36), 0 0 62px rgba(255,216,107,.075), inset 0 1px 0 rgba(255,255,255,.10);
    }
    .feedback-topic { position: relative; z-index: 2; display: block; margin-top: 22px; color: rgba(255,216,107,.92); font-size: 14px; line-height: 1.6; }
    .feedback-stack .client-feedback-card > p { margin-top: 12px; font-size: 14px; line-height: 2; }
    .feedback-nav {
      appearance: none;
      position: absolute;
      z-index: 22;
      top: 50%;
      width: 50px;
      height: 50px;
      transform: translateY(-50%);
      border-radius: 999px;
      border: 1px solid rgba(255,216,107,.23);
      background: radial-gradient(circle at 50% 44%, rgba(255,216,107,.18), transparent 70%), rgba(3,26,22,.62);
      box-shadow: 0 18px 42px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.09);
      backdrop-filter: blur(16px);
      cursor: pointer;
      transition: transform .25s ease, filter .25s ease;
    }
    .feedback-nav:hover { transform: translateY(-50%) scale(1.05); filter: brightness(1.08); }
    .feedback-nav::before { content: ''; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-top: 2px solid rgba(255,216,107,.92); border-left: 2px solid rgba(255,216,107,.92); }
    .feedback-prev { right: 0; }
    .feedback-next { left: 0; }
    .feedback-prev::before { transform: rotate(135deg); right: 3px; }
    .feedback-next::before { transform: rotate(-45deg); left: 3px; }
    .feedback-dots { display: flex; justify-content: center; gap: 8px; margin-top: 17px; }
    .feedback-dot { appearance: none; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,252,246,.20); cursor: pointer; transition: width .3s ease, background .3s ease, box-shadow .3s ease; }
    .feedback-dot.is-active { width: 25px; background: rgba(255,216,107,.88); box-shadow: 0 0 15px rgba(255,216,107,.30); }

    @media (min-width: 1280px) and (min-height: 768px) {
      /* Comfortable maximum sizes at the 768px baseline; reduce only when content truly cannot fit. */
      .scene .scene-kicker { min-height: 34px !important; margin-bottom: 14px !important; padding-inline: 14px !important; font-size: 12px !important; }
      .scene-title { font-size: clamp(34px, 3.75vw, 58px); line-height: 1.075; }
      .scene-lead { margin-top: 14px; font-size: clamp(13.25px, 1.02vw, 15.5px); line-height: 1.88; }
      .panel-inner { padding: clamp(22px, 2.45vw, 34px); }
      .panel::after { inset: 16px; }

      #overview .overview-grid { margin-top: 18px; gap: 13px; }
      #overview .identity-card { min-height: 300px; padding: 25px; }
      #overview .identity-card img { width: 94px; height: 94px; }
      #overview .identity-card small { font-size: 12.25px; line-height: 1.72; }
      #overview .facts { gap: 9px; }
      #overview .fact { min-height: 98px; padding: 14px 16px; }
      #overview .fact small { font-size: 10.25px; }
      #overview .fact strong { font-size: clamp(15px, 1.28vw, 19px); }
      #overview .fact p { font-size: 10.75px; line-height: 1.56; }
      #overview .metrics { margin-top: 10px; gap: 8px; }
      #overview .metric { padding: 11px 8px; }
      #overview .metric span { font-size: 10px; }

      .story-copy p:not(.scene-kicker) { margin-top: 14px; font-size: 13.35px; line-height: 1.94; }
      .story-note { padding: 12px 14px; font-size: 11.25px; line-height: 1.72; }
      .problem-layout { margin-top: 18px; gap: 14px; }
      .problem-core { padding: 30px; }
      .problem-core p { font-size: 12.35px; line-height: 1.82; }
      .tensions { gap: 11px; }
      .tension { padding: 19px; }
      .tension b { font-size: 15.5px; }
      .tension p { font-size: 11.65px; line-height: 1.74; }

      #method .section-head { margin-bottom: 11px; }
      #method .section-head > p { font-size: 12.5px; line-height: 1.78; }
      #method .method-viewport { height: clamp(420px, calc(100dvh - 226px), 515px) !important; }

      .output-head { max-width: 385px; }
      .output-head .scene-lead { font-size: 12.4px; line-height: 1.78; }
      .output-head .demo-badge { margin-top: 13px; padding: 9px 12px; font-size: 10px; }

      .team-carousel { margin-top: 19px; }
      .team-track .person-card { min-height: 300px; padding: 21px; }
      .person-copy strong { font-size: 13px; line-height: 1.72; }
      .person-copy p { font-size: 12px; line-height: 1.75; }
      .person-link { margin-top: 14px; }

      .feedback-stage { height: 350px; margin-top: 20px; }
      .feedback-stack .client-feedback-card { padding: 26px 31px; }
      .feedback-stack .client-feedback-card > p { font-size: 13.25px; line-height: 1.9; }

      .related-grid { margin-top: 20px; gap: 13px; }
      .related-card p { font-size: 11.8px; line-height: 1.74; }
      .result-copy p { font-size: 13px; line-height: 1.88; }
      .result-item span { font-size: 11.5px; line-height: 1.66; }
      .hero-lead { font-size: 13.25px; line-height: 1.88; }
      .hero-tags span { padding: 8px 11px; font-size: 10.25px; }
      .hero-actions a { padding: 12px 18px; font-size: 11.75px; }
    }

    @media (max-width: 900px) {
      .team-scroll { padding-block: 18px; }
      .team-carousel { --team-card-width: min(86vw, 520px); }
      .team-track .person-card { opacity: .42; transform: scale(.88); }
      .team-track .person-card.is-active { transform: scale(1); opacity: 1; }
      .feedback-stage { height: 405px; }
      .feedback-stack { width: calc(100% - 26px); }
      .feedback-nav { top: auto; bottom: -54px; }
      .feedback-prev { right: calc(50% - 52px); }
      .feedback-next { left: calc(50% - 52px); }
      .feedback-dots { margin-top: 62px; }
      .feedback-counter { display: none; }
    }
    /* === Project page refinement v6 END === */



    /* === Project page refinement v7 START === */
    /* Bring the floating project frames into a tighter constellation around the brand mark. */
    .float-a { width: 70%; right: 7%; top: 0; }
    .float-b { width: 56%; left: 12%; top: 22%; }
    .float-c { width: 63%; right: 8%; bottom: 10%; }
    .float-d { width: 48%; left: 13%; bottom: 14%; }
    .project-mark { right: 40%; top: 34%; z-index: 9; }

    /* A card click changes focus; only the explicit profile link navigates away. */
    .team-track .person-card { cursor: pointer; }
    .person-link {
      position: relative;
      z-index: 10;
      width: fit-content;
      text-decoration: none;
      cursor: pointer;
    }
    .person-link:hover { color: var(--gold-light); }
    .team-track .person-card:focus-visible {
      outline: 2px solid rgba(255,216,107,.72);
      outline-offset: 5px;
    }

    /* The focused feedback card is materially opaque so its text never competes with the fan behind it. */
    .feedback-stack .client-feedback-card.is-active {
      background:
        radial-gradient(circle at 84% 12%, rgba(255,216,107,.10), transparent 27rem),
        linear-gradient(145deg, #0b352d 0%, #06251f 48%, #031914 100%);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow:
        0 38px 110px rgba(0,0,0,.44),
        0 0 62px rgba(255,216,107,.075),
        inset 0 1px 0 rgba(255,255,255,.10);
    }
    .feedback-stack .client-feedback-card.is-active::after { opacity: .72; }
    .feedback-stack .client-feedback-card.is-active > p { color: rgba(255,252,246,.82); }

    @media (min-width: 1280px) and (min-height: 768px) {
      /* Keep the desktop snap layout readable: use the largest comfortable values that still fit a 768px viewport. */
      .scene .scene-kicker {
        min-height: 36px !important;
        margin-bottom: 15px !important;
        padding: 9px 15px !important;
        font-size: 12.5px !important;
      }
      .scene-title { font-size: clamp(36px, 3.9vw, 60px); line-height: 1.08; }
      .scene-lead {
        margin-top: 15px;
        font-size: clamp(14px, calc(11.6px + .34vh), 16.25px);
        line-height: 1.9;
      }
      .panel-inner { padding: clamp(24px, calc(17px + 1.15vh), 36px); }
      .panel::after { inset: 17px; }

      #overview .overview-grid { margin-top: 19px; gap: 14px; }
      #overview .identity-card { min-height: 302px; padding: 26px; }
      #overview .identity-card img { width: 98px; height: 98px; }
      #overview .identity-card small { font-size: 13px; line-height: 1.74; }
      #overview .facts { gap: 10px; }
      #overview .fact { min-height: 101px; padding: 15px 17px; }
      #overview .fact small { font-size: 11px; }
      #overview .fact strong { margin-top: 7px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.46; }
      #overview .fact p { margin-top: 4px; font-size: 11.35px; line-height: 1.58; }
      #overview .metrics { margin-top: 11px; gap: 9px; }
      #overview .metric { padding: 12px 9px; }
      #overview .metric span { margin-top: 5px; font-size: 10.8px; line-height: 1.4; }

      .story-copy p:not(.scene-kicker) {
        margin-top: 15px;
        font-size: clamp(13.8px, calc(11.4px + .34vh), 16px);
        line-height: 1.98;
      }
      .story-note { padding: 13px 15px; font-size: 11.8px; line-height: 1.75; }

      .problem-layout { margin-top: 19px; gap: 15px; }
      .problem-core { padding: 31px; }
      .problem-core p { font-size: 13px; line-height: 1.86; }
      .tensions { gap: 12px; }
      .tension { padding: 20px; }
      .tension b { font-size: 16px; }
      .tension p { font-size: 12.15px; line-height: 1.78; }

      #method .section-head { margin-bottom: 12px; }
      #method .section-head > p { font-size: 13px; line-height: 1.82; }

      .output-head { max-width: 400px; }
      .output-head .scene-lead { font-size: 13px; line-height: 1.82; }
      .output-head .demo-badge { margin-top: 14px; padding: 10px 13px; font-size: 10.5px; }

      .team-carousel { margin-top: 20px; }
      .team-track .person-card { min-height: 306px; padding: 22px; }
      .person-copy strong { font-size: 13.5px; line-height: 1.76; }
      .person-copy p { font-size: 12.5px; line-height: 1.8; }
      .person-link { margin-top: 15px; font-size: 12.25px; }

      .feedback-stage { height: 354px; margin-top: 21px; }
      .feedback-stack .client-feedback-card { padding: 27px 32px; }
      .feedback-stack .client-feedback-card > p { font-size: 13.7px; line-height: 1.94; }

      .related-grid { margin-top: 21px; gap: 14px; }
      .related-card p { font-size: 12.25px; line-height: 1.78; }
      .result-copy p { font-size: 13.5px; line-height: 1.92; }
      .result-item span { font-size: 12px; line-height: 1.7; }
      .hero-lead { font-size: 13.8px; line-height: 1.92; }
      .hero-tags span { padding: 9px 12px; font-size: 10.75px; }
      .hero-actions a { padding: 13px 19px; font-size: 12.25px; }
    }
    /* === Project page refinement v7 END === */

    /* === Project page refinement v8: center-relative hero floats START === */
    /*
      Every floating preview is anchored to the center of .hero-art.
      --hero-x / --hero-y are offsets from that center, not distances
      from the outer right/left/top/bottom edges.
    */
    .float-item {
      --hero-x: 0%;
      --hero-y: 0%;
      --motion-x: 0px;
      --motion-y: 0px;
      --motion-r: 0deg;
      right: auto !important;
      bottom: auto !important;
      left: calc(50% + var(--hero-x)) !important;
      top: calc(50% + var(--hero-y)) !important;
      transform:
        translate(-50%, -50%)
        translate3d(var(--motion-x), var(--motion-y), 0)
        rotate(var(--motion-r));
    }

    .float-a { --hero-x: 8%; --hero-y: -29%; }
    .float-b { --hero-x: -10%; --hero-y: -9%; }
    .float-c { --hero-x: 10.5%; --hero-y: 21%; }
    .float-d { --hero-x: -13%; --hero-y: 17%; }

    .project-mark {
      --hero-x: 0%;
      --hero-y: -4.5%;
      right: auto !important;
      left: calc(50% + var(--hero-x)) !important;
      top: calc(50% + var(--hero-y)) !important;
      transform: translate(-50%, -50%);
    }

    @keyframes markFloat {
      0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0); }
      50% { transform: translate(-50%, -50%) translateY(-10px) rotate(1.8deg); }
    }

    @media (max-width: 760px) {
      .float-a { --hero-x: 8%; --hero-y: -30%; }
      .float-b { --hero-x: -10%; --hero-y: -9%; }
      .float-c { --hero-x: 9%; --hero-y: 22%; }
      .float-d { --hero-x: -13%; --hero-y: 18%; }
      .project-mark { --hero-x: 0%; --hero-y: -4%; }
    }
    /* === Project page refinement v8: center-relative hero floats END === */


    /* === Project page refinement v9: Nebras kinetic sculpture START === */
    .hero-nebras {
      --cursor-x: 50%;
      --cursor-y: 50%;
      position: relative;
      min-height: min(735px, 78vh);
      display: grid;
      place-items: center;
      overflow: hidden;
      isolation: isolate;
      perspective: 1500px;
      border-radius: clamp(34px, 5vw, 74px);
      background:
        radial-gradient(circle at 50% 48%, rgba(255,216,107,.075), transparent 28%),
        radial-gradient(circle at 50% 62%, rgba(15,76,58,.28), transparent 54%);
    }

    .hero-nebras::before {
      content: '';
      position: absolute;
      inset: 9%;
      border-radius: 50%;
      background:
        radial-gradient(circle, transparent 0 46%, rgba(255,216,107,.06) 46.2% 46.5%, transparent 46.8%),
        radial-gradient(circle, transparent 0 67%, rgba(255,255,255,.035) 67.2% 67.4%, transparent 67.7%);
      opacity: .86;
      pointer-events: none;
    }

    .hero-nebras::after {
      content: '';
      position: absolute;
      width: 70%;
      height: 12%;
      left: 15%;
      bottom: 8%;
      border-radius: 50%;
      background: rgba(0,0,0,.42);
      filter: blur(34px);
      transform: perspective(500px) rotateX(68deg);
      opacity: .72;
      pointer-events: none;
    }

    .hero-cursor-light {
      position: absolute;
      z-index: 2;
      width: 280px;
      height: 280px;
      left: var(--cursor-x);
      top: var(--cursor-y);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle, rgba(255,216,107,.14), rgba(255,216,107,.045) 35%, transparent 70%);
      filter: blur(9px);
      mix-blend-mode: screen;
      opacity: .7;
      pointer-events: none;
      transition: opacity .35s ease;
    }

    .hero-nebras:not(:hover) .hero-cursor-light { opacity: .26; }

    .nebras-sculpture {
      --tilt-x: 0deg;
      --tilt-y: 0deg;
      --core-x: 0px;
      --core-y: 0px;
      --field-x: 0px;
      --field-y: 0px;
      --rays-x: 0px;
      --rays-y: 0px;
      --ring-a-x: 0px;
      --ring-a-y: 0px;
      --ring-b-x: 0px;
      --ring-b-y: 0px;
      --ring-c-x: 0px;
      --ring-c-y: 0px;
      position: relative;
      z-index: 4;
      width: min(720px, 100%);
      aspect-ratio: 1 / 1;
      transform-style: preserve-3d;
      transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
      transition: filter .35s ease;
    }

    .nebras-field {
      position: absolute;
      inset: 18%;
      border-radius: 46% 54% 50% 50% / 54% 45% 55% 46%;
      background:
        radial-gradient(circle at 50% 50%, rgba(255,216,107,.08), transparent 42%),
        linear-gradient(145deg, rgba(255,252,246,.045), rgba(3,26,22,.02));
      border: 1px solid rgba(255,216,107,.09);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 32px 100px rgba(0,0,0,.13);
      backdrop-filter: blur(5px);
      transform: translate3d(var(--field-x), var(--field-y), -18px);
      animation: nebrasFieldMorph 11s ease-in-out infinite alternate;
    }

    @keyframes nebrasFieldMorph {
      0%, 100% { transform: translate3d(var(--field-x), var(--field-y), -18px) rotate(0) scale(1); }
      50% { border-radius: 55% 45% 56% 44% / 44% 56% 46% 54%; transform: translate3d(var(--field-x), var(--field-y), -18px) rotate(7deg) scale(1.035); }
    }

    .nebras-rays {
      position: absolute;
      inset: 17%;
      border-radius: 50%;
      background: repeating-conic-gradient(from 8deg, rgba(255,216,107,.14) 0 1deg, transparent 1deg 24deg);
      mask: radial-gradient(circle, transparent 0 58%, #000 59% 59.8%, transparent 60.5%);
      opacity: .52;
      transform: translate3d(var(--rays-x), var(--rays-y), -8px) rotate(0deg);
      animation: nebrasRaySpin 48s linear infinite;
    }

    @keyframes nebrasRaySpin {
      from { transform: translate3d(var(--rays-x), var(--rays-y), -8px) rotate(0deg); }
      to { transform: translate3d(var(--rays-x), var(--rays-y), -8px) rotate(360deg); }
    }

    .nebras-ring {
      position: absolute;
      left: 50%;
      top: 50%;
      border: 1px solid rgba(255,216,107,.15);
      border-radius: 50%;
      transform-style: preserve-3d;
      pointer-events: none;
    }

    .nebras-ring::before,
    .nebras-ring::after {
      content: '';
      position: absolute;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--gold-light);
      box-shadow: 0 0 18px rgba(255,216,107,.72);
    }

    .nebras-ring::before { left: 9%; top: 19%; }
    .nebras-ring::after { right: 10%; bottom: 18%; opacity: .5; }

    .nebras-ring-a {
      width: 76%;
      height: 44%;
      transform: translate(calc(-50% + var(--ring-a-x)), calc(-50% + var(--ring-a-y))) rotate(-13deg) rotateX(61deg);
      animation: nebrasRingA 17s linear infinite;
    }

    .nebras-ring-b {
      width: 60%;
      height: 60%;
      transform: translate(calc(-50% + var(--ring-b-x)), calc(-50% + var(--ring-b-y))) rotate(27deg) rotateY(66deg);
      border-color: rgba(255,252,246,.085);
      animation: nebrasRingB 22s linear infinite reverse;
    }

    .nebras-ring-c {
      width: 42%;
      height: 42%;
      transform: translate(calc(-50% + var(--ring-c-x)), calc(-50% + var(--ring-c-y))) rotateX(71deg);
      border-style: dashed;
      opacity: .55;
      animation: nebrasRingC 13s linear infinite;
    }

    @keyframes nebrasRingA {
      from { transform: translate(calc(-50% + var(--ring-a-x)), calc(-50% + var(--ring-a-y))) rotate(-13deg) rotateX(61deg); }
      to { transform: translate(calc(-50% + var(--ring-a-x)), calc(-50% + var(--ring-a-y))) rotate(347deg) rotateX(61deg); }
    }
    @keyframes nebrasRingB {
      from { transform: translate(calc(-50% + var(--ring-b-x)), calc(-50% + var(--ring-b-y))) rotate(27deg) rotateY(66deg); }
      to { transform: translate(calc(-50% + var(--ring-b-x)), calc(-50% + var(--ring-b-y))) rotate(387deg) rotateY(66deg); }
    }
    @keyframes nebrasRingC {
      from { transform: translate(calc(-50% + var(--ring-c-x)), calc(-50% + var(--ring-c-y))) rotate(0deg) rotateX(71deg); }
      to { transform: translate(calc(-50% + var(--ring-c-x)), calc(-50% + var(--ring-c-y))) rotate(360deg) rotateX(71deg); }
    }

    .nebras-core {
      position: absolute;
      z-index: 65;
      left: 50%;
      top: 50%;
      width: clamp(116px, 17vw, 178px);
      aspect-ratio: 1;
      transform:
        translate(-50%, -50%)
        translate3d(var(--core-x), var(--core-y), 72px);
      transform-style: preserve-3d;
      pointer-events: none;
    }

    .nebras-core-aura {
      position: absolute;
      inset: -48%;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,216,107,.26), rgba(255,216,107,.06) 35%, transparent 69%);
      filter: blur(8px);
      animation: nebrasCorePulse 3.6s ease-in-out infinite;
    }

    @keyframes nebrasCorePulse {
      50% { transform: scale(1.12); opacity: .7; }
    }

    .nebras-core-glass {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      overflow: hidden;
      border-radius: 42% 58% 46% 54% / 53% 42% 58% 47%;
      border: 1px solid rgba(255,216,107,.34);
      background:
        radial-gradient(circle at 36% 24%, rgba(255,255,255,.22), transparent 31%),
        linear-gradient(145deg, rgba(255,252,246,.13), rgba(3,26,22,.66));
      box-shadow:
        0 28px 72px rgba(0,0,0,.38),
        0 0 72px rgba(255,216,107,.12),
        inset 0 1px 0 rgba(255,255,255,.25),
        inset 0 -28px 48px rgba(3,26,22,.55);
      backdrop-filter: blur(24px) saturate(1.15);
      animation: nebrasCoreMorph 7s ease-in-out infinite alternate;
    }

    .nebras-core-glass::before {
      content: '';
      position: absolute;
      inset: 13%;
      border-radius: 45% 55% 50% 50% / 54% 44% 56% 46%;
      background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,.78), transparent 34%),
        linear-gradient(145deg, rgba(255,252,231,.96), rgba(255,252,231,.80));
      box-shadow:
        0 15px 34px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.82),
        0 0 42px rgba(255,216,107,.11);
      pointer-events: none;
    }

    .nebras-core-glass::after {
      content: '';
      position: absolute;
      inset: 8%;
      border-radius: inherit;
      border: 1px solid rgba(255,255,255,.10);
      pointer-events: none;
    }

    .nebras-core-glass img {
      position: relative;
      z-index: 2;
      width: 62%;
      height: 62%;
      object-fit: contain;
      filter: drop-shadow(0 10px 18px rgba(0,88,59,.18)) drop-shadow(0 0 14px rgba(255,216,107,.15));
      transform: translateZ(25px);
    }

    @keyframes nebrasCoreMorph {
      50% { border-radius: 55% 45% 56% 44% / 44% 56% 46% 54%; transform: rotate(-2deg) scale(1.025); }
    }

    .nebras-orbit {
      position: absolute;
      z-index: 10;
      inset: 0;
      transform-style: preserve-3d;
    }

    .nebras-panel {
      --panel-x: 0px;
      --panel-y: 0px;
      --panel-z: 0px;
      --panel-scale: .8;
      --panel-opacity: .7;
      --panel-blur: 0px;
      --panel-rotate-y: 0deg;
      --panel-rotate-z: 0deg;
      --panel-light: .5;
      appearance: none;
      position: absolute;
      left: 50%;
      top: 50%;
      width: clamp(190px, 27vw, 292px);
      aspect-ratio: 16 / 10;
      padding: 0;
      border: 0;
      background: transparent;
      opacity: var(--panel-opacity);
      filter: blur(var(--panel-blur)) saturate(calc(.72 + var(--panel-light) * .36)) brightness(calc(.72 + var(--panel-light) * .28));
      transform:
        translate(-50%, -50%)
        translate3d(var(--panel-x), var(--panel-y), var(--panel-z))
        rotateY(var(--panel-rotate-y))
        rotateZ(var(--panel-rotate-z))
        scale(var(--panel-scale));
      transform-style: preserve-3d;
      cursor: pointer;
      will-change: transform, opacity, filter;
      transition: filter .3s ease;
    }

    .nebras-panel-shell {
      position: absolute;
      inset: 0;
      display: block;
      overflow: hidden;
      border-radius: clamp(24px, 3vw, 38px);
      border: 1px solid rgba(255,216,107, calc(.10 + var(--panel-light) * .25));
      background: rgba(255,252,246,.055);
      box-shadow:
        0 calc(16px + var(--panel-light) * 24px) calc(44px + var(--panel-light) * 42px) rgba(0,0,0,calc(.22 + var(--panel-light) * .18)),
        0 0 calc(var(--panel-light) * 44px) rgba(255,216,107,.10),
        inset 0 1px 0 rgba(255,255,255,.14);
      backdrop-filter: blur(18px);
      transform: translateZ(0);
      transition: transform .42s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease;
    }

    .nebras-panel-shell::before {
      content: '';
      position: absolute;
      z-index: 2;
      inset: 0;
      background:
        linear-gradient(145deg, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(320deg, rgba(0,88,59,.26), transparent 42%);
      pointer-events: none;
    }

    .nebras-panel-shell::after {
      content: '';
      position: absolute;
      z-index: 3;
      inset: 9px;
      border-radius: calc(clamp(24px, 3vw, 38px) - 9px);
      border: 1px solid rgba(255,255,255,.065);
      pointer-events: none;
    }

    .nebras-panel img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      transform: scale(1.04);
      transition: transform .8s cubic-bezier(.22,1,.36,1), filter .8s ease;
    }

    .nebras-panel:hover,
    .nebras-panel:focus-visible { filter: blur(0) saturate(1.04) brightness(1.03); }
    .nebras-panel:hover .nebras-panel-shell,
    .nebras-panel:focus-visible .nebras-panel-shell { transform: translateZ(24px) scale(1.035); border-color: rgba(255,216,107,.40); }
    .nebras-panel:hover img,
    .nebras-panel:focus-visible img { transform: scale(1); }
    .nebras-panel:focus-visible { outline: none; }
    .nebras-panel:focus-visible .nebras-panel-shell { box-shadow: 0 32px 84px rgba(0,0,0,.42), 0 0 0 2px rgba(255,216,107,.72), 0 0 58px rgba(255,216,107,.16); }
    .nebras-panel.is-front .nebras-panel-shell { border-color: rgba(255,216,107,.34); }

    .nebras-sparks {
      position: absolute;
      z-index: 80;
      inset: 0;
      pointer-events: none;
    }

    .nebras-sparks i {
      position: absolute;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--gold-light);
      box-shadow: 0 0 16px rgba(255,216,107,.70);
      opacity: .58;
      animation: nebrasSpark 5.4s ease-in-out infinite;
    }

    .nebras-sparks i:nth-child(1) { left: 18%; top: 25%; animation-delay: -.7s; }
    .nebras-sparks i:nth-child(2) { left: 77%; top: 19%; animation-delay: -2.2s; transform: scale(.7); }
    .nebras-sparks i:nth-child(3) { left: 83%; top: 58%; animation-delay: -3.6s; }
    .nebras-sparks i:nth-child(4) { left: 24%; top: 75%; animation-delay: -1.8s; transform: scale(.65); }
    .nebras-sparks i:nth-child(5) { left: 13%; top: 52%; animation-delay: -4.1s; }
    .nebras-sparks i:nth-child(6) { left: 67%; top: 82%; animation-delay: -2.9s; transform: scale(.55); }
    .nebras-sparks i:nth-child(7) { left: 52%; top: 12%; animation-delay: -1.1s; transform: scale(.5); }
    .nebras-sparks i:nth-child(8) { left: 90%; top: 39%; animation-delay: -4.7s; transform: scale(.7); }

    @keyframes nebrasSpark {
      0%, 100% { translate: 0 0; opacity: .25; }
      50% { translate: 0 -13px; opacity: .88; }
    }

    @media (min-width: 1280px) and (min-height: 768px) {
      .hero-nebras { min-height: 0; height: 100%; }
      .nebras-sculpture { width: min(680px, 100%); }
    }

    @media (max-width: 920px) {
      .hero-nebras { min-height: 560px; }
      .nebras-sculpture { width: min(610px, 100%); }
      .nebras-panel { width: clamp(170px, 37vw, 260px); }
    }

    @media (max-width: 760px) {
      .hero-nebras {
        min-height: 500px;
        border-radius: 36px;
      }
      .nebras-sculpture { width: min(520px, 112%); }
      .nebras-panel { width: clamp(148px, 43vw, 222px); }
      .nebras-core { width: 112px; }
      .nebras-ring-a { width: 82%; }
      .nebras-ring-b { width: 68%; height: 68%; }
    }

    @media (max-width: 460px) {
      .hero-nebras { min-height: 455px; }
      .nebras-sculpture { width: 116%; }
      .nebras-panel { width: min(184px, 49vw); }
      .nebras-core { width: 94px; }
      .hero-cursor-light { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      .nebras-field,
      .nebras-rays,
      .nebras-ring,
      .nebras-core-aura,
      .nebras-core-glass,
      .nebras-sparks i { animation: none !important; }
      .nebras-panel { transition: none !important; filter: none !important; opacity: 1; }
      .nebras-panel:nth-child(1) { transform: translate(-50%,-50%) translate3d(0,150px,80px) scale(1); z-index: 8; }
      .nebras-panel:nth-child(2) { transform: translate(-50%,-50%) translate3d(-205px,0,-20px) scale(.78); z-index: 4; }
      .nebras-panel:nth-child(3) { transform: translate(-50%,-50%) translate3d(0,-145px,-60px) scale(.68); z-index: 2; }
      .nebras-panel:nth-child(4) { transform: translate(-50%,-50%) translate3d(205px,0,-20px) scale(.78); z-index: 4; }
    }
    /* === Project page refinement v9: Nebras kinetic sculpture END === */

    /* === Project page refinement v10: allow hero cards to breathe START === */
    /*
      The visual sculpture is intentionally allowed to escape its own rounded
      canvas during parallax, focus and auto-advance transitions. Image clipping
      remains local to .nebras-panel-shell so rounded card corners are preserved.
    */
    .hero-nebras,
    .hero-art,
    .nebras-sculpture,
    .nebras-orbit {
      overflow: visible !important;
    }

    /* Desktop snap mode previously clipped the entire hero scene. */
    @media (min-width: 1280px) and (min-height: 768px) {
      .scene.hero,
      .scene.hero > .hero-grid {
        overflow: visible !important;
      }
    }

    /* Keep only the image surface clipped to its rounded card shape. */
    .nebras-panel-shell {
      overflow: hidden;
    }
    /* === Project page refinement v10: allow hero cards to breathe END === */


    /* === Project page refinement v11: relaxed snap spacing START === */
    /*
      Snap remains full-screen, but content is no longer aggressively compressed
      to force every chapter into a 768px viewport. Long chapters may use the
      existing subtle internal scroll behavior when they genuinely need it.
    */
    @media (min-width: 1280px) and (min-height: 768px) {
      :root {
        --scene-top-space: clamp(108px, 13.5vh, 132px);
        --scene-bottom-space: clamp(28px, 4.5vh, 46px);
      }

      .scene {
        padding-top: var(--scene-top-space) !important;
        padding-bottom: var(--scene-bottom-space) !important;
      }

      .scene .scene-kicker {
        min-height: 38px !important;
        margin-bottom: 19px !important;
        padding: 9px 16px !important;
        font-size: 13px !important;
      }

      .scene-title {
        font-size: clamp(40px, 4.15vw, 64px);
        line-height: 1.1;
      }

      .scene-lead {
        margin-top: 20px;
        font-size: clamp(14.5px, 1.08vw, 17px);
        line-height: 2;
      }

      .panel-inner { padding: clamp(30px, 3.15vw, 46px); }
      .panel::after { inset: 20px; }

      #overview .overview-grid { margin-top: 26px; gap: 18px; }
      #overview .identity-card {
        min-height: 330px;
        padding: 30px;
        border-radius: 34px;
      }
      #overview .identity-card img { width: 108px; height: 108px; }
      #overview .identity-card small { font-size: 13.5px; line-height: 1.82; }
      #overview .facts { gap: 13px; }
      #overview .fact {
        min-height: 112px;
        padding: 18px 20px;
        border-radius: 25px;
      }
      #overview .fact small { font-size: 11.5px; }
      #overview .fact strong {
        margin-top: 8px;
        font-size: clamp(17px, 1.42vw, 22px);
        line-height: 1.5;
      }
      #overview .fact p { margin-top: 5px; font-size: 12px; line-height: 1.66; }
      #overview .metrics { margin-top: 14px; gap: 11px; }
      #overview .metric { padding: 15px 11px; border-radius: 22px; }
      #overview .metric span { margin-top: 6px; font-size: 11.5px; line-height: 1.5; }

      .story-grid { gap: clamp(34px, 4.5vw, 66px); }
      .story-copy p:not(.scene-kicker) {
        margin-top: 20px;
        font-size: clamp(14.5px, 1.08vw, 16.5px);
        line-height: 2.08;
      }
      .story-visual { min-height: min(500px, calc(100dvh - 210px)); }
      .story-note { max-width: 235px; padding: 15px 17px; font-size: 12.5px; line-height: 1.82; }

      .problem-layout { margin-top: 27px; gap: 18px; }
      .problem-core { min-height: 390px; padding: 38px; border-radius: 38px; }
      .problem-core h3 { margin-top: 20px; font-size: clamp(34px, 3.3vw, 50px); line-height: 1.26; }
      .problem-core p { margin-top: 18px; font-size: 13.5px; line-height: 1.94; }
      .tensions { gap: 14px; }
      .tension { min-height: 185px; padding: 24px; border-radius: 29px; }
      .tension b { font-size: 17px; }
      .tension p { margin-top: 11px; font-size: 12.8px; line-height: 1.88; }

      #method .section-head { margin-bottom: 20px; gap: 26px; }
      #method .section-head > p { font-size: 14px; line-height: 1.95; }
      #method .method-viewport { height: clamp(460px, calc(100dvh - 244px), 560px) !important; }

      .output-layout { gap: clamp(30px, 4vw, 58px); }
      .output-head { max-width: 420px; }
      .output-head .scene-title { font-size: clamp(36px, 3.7vw, 58px); }
      .output-head .scene-lead { font-size: 14px; line-height: 1.94; }
      .output-head .demo-badge { margin-top: 18px; padding: 11px 15px; font-size: 11px; }
      .book-stage,
      .phone-stage,
      .laptop-stage { height: min(530px, calc(100dvh - 168px)); }

      .team-carousel { margin-top: 28px; }
      .team-track .person-card { min-height: 330px; padding: 26px; }
      .person-copy strong { font-size: 14px; line-height: 1.85; }
      .person-copy p { font-size: 13px; line-height: 1.9; }
      .person-link { margin-top: 18px; font-size: 12.75px; }

      .feedback-stage { height: 382px; margin-top: 30px; }
      .feedback-stack .client-feedback-card { padding: 32px 38px; }
      .feedback-stack .client-feedback-card > p { font-size: 14.5px; line-height: 2.02; }

      .related-grid { margin-top: 29px; gap: 17px; }
      .related-card { min-height: 355px; padding: 27px; }
      .related-card h3 { font-size: 24px; }
      .related-card p { font-size: 13px; line-height: 1.9; }

      .result-card { padding: clamp(38px, 4.4vw, 60px); }
      .result-copy p { margin-top: 26px; font-size: 14px; line-height: 2; }
      .result-list { gap: 12px; }
      .result-item { padding: 17px 20px; }
      .result-item span { margin-top: 7px; font-size: 12.75px; line-height: 1.82; }

      .hero-lead { font-size: 14.5px; line-height: 2; }
      .hero-tags { margin-top: 23px; gap: 9px; }
      .hero-tags span { padding: 9px 13px; font-size: 11px; }
      .hero-actions { margin-top: 24px; }
      .hero-actions a { padding: 14px 21px; font-size: 13px; }
    }
    /* === Project page refinement v11: relaxed snap spacing END === */


/* === Related projects horizontal carousel START === */
.related-carousel {
  --related-card-width: clamp(300px, 27.5vw, 340px);
  position: relative;
  margin-top: 30px;
  padding-inline: 68px;
}

.related-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  direction: rtl;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
  cursor: grab;
  padding-block: 10px 20px;
}

.related-scroll:active { cursor: grabbing; }
.related-scroll::-webkit-scrollbar { display: none; }

.related-grid {
  display: flex !important;
  grid-template-columns: none !important;
  width: max-content;
  max-width: none;
  gap: 16px;
  direction: rtl;
  margin-top: 0 !important;
  padding: 4px;
}

.related-grid .related-card {
  flex: 0 0 var(--related-card-width);
  width: var(--related-card-width);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Navigation borrows only the team controls' visual language. */
.related-nav {
  appearance: none;
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255,216,107,.23);
  background:
    radial-gradient(circle at 50% 44%, rgba(255,216,107,.18), transparent 70%),
    rgba(3,26,22,.62);
  box-shadow: 0 18px 42px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease, opacity .25s ease;
}

.related-nav:hover,
.related-nav:focus-visible {
  transform: translateY(-50%) scale(1.05);
  filter: brightness(1.08);
}

.related-nav:focus-visible {
  outline: 2px solid rgba(255,216,107,.72);
  outline-offset: 4px;
}

.related-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255,216,107,.92);
  border-left: 2px solid rgba(255,216,107,.92);
}

.related-prev { right: 2px; }
.related-next { left: 2px; }
.related-prev::before { transform: rotate(135deg); right: 3px; }
.related-next::before { transform: rotate(-45deg); left: 3px; }

@media (max-width: 980px) {
  .related-carousel {
    --related-card-width: clamp(300px, 43vw, 390px);
    padding-inline: 50px;
  }

  .related-nav { width: 44px; height: 44px; }
}

@media (max-width: 640px) {
  .related-carousel {
    --related-card-width: min(84vw, 370px);
    padding-inline: 0;
    padding-bottom: 58px;
  }

  .related-scroll { padding-bottom: 12px; }
  .related-nav { top: auto; bottom: 0; transform: none; }
  .related-nav:hover,
  .related-nav:focus-visible { transform: scale(1.05); }
  .related-prev { right: calc(50% - 50px); }
  .related-next { left: calc(50% - 50px); }
}
/* === Related projects horizontal carousel END === */


/* === Mobile feedback swipe controls START === */
@media (max-width: 760px) {
  .feedback-fan-stage {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
  }

  .feedback-fan-stage.is-touch-dragging { cursor: grabbing; }

  .feedback-fan-nav {
    display: none !important;
  }

  .feedback-fan-deck {
    transform: translate3d(var(--feedback-swipe-x, 0px), 0, 0);
    transition: transform .34s cubic-bezier(.22,1,.36,1);
    will-change: transform;
  }

  .feedback-fan-stage.is-touch-dragging .feedback-fan-deck {
    transition: none;
  }

  .feedback-fan-footer {
    bottom: 12px;
  }

  .feedback-fan-dots { gap: 7px; }
}
/* === Mobile feedback swipe controls END === */



    /* === Mockup loader refinement: immediate Nebras mark START === */
    .boot-loader img {
      opacity: 1;
      transform: scale(1);
      animation: nebrasLogoBreathFast 1.45s ease-in-out infinite;
    }

    @keyframes nebrasLogoBreathFast {
      0%, 100% { transform: scale(.98); opacity: 1; }
      50% { transform: scale(1.045); opacity: 1; }
    }

    /* Reveal the device and its loading mark immediately; keep the final screen timing intact. */
    @keyframes phoneArriveFast {
      0% { opacity: 1; transform: translateY(90px) rotateY(-86deg) rotateZ(-9deg) scale(.78); }
      14% { opacity: 1; }
      100% { opacity: 1; transform: translateY(0) rotateY(-10deg) rotateZ(2deg) scale(1); }
    }
    .phone-scene.is-active .phone {
      animation: phoneArriveFast 1.18s cubic-bezier(.22,1,.36,1) forwards, phoneFloat 5.2s 1.22s ease-in-out infinite;
    }

    .laptop-scene.is-active .laptop-lid {
      animation: openLid 1.18s .12s cubic-bezier(.22,1,.36,1) forwards;
    }

    .phone-scene.is-active .boot-loader,
    .laptop-scene.is-active .boot-loader {
      animation: loaderInstantIn .18s both;
    }

    @keyframes loaderInstantIn {
      from { opacity: 0; transform: scale(.92); }
      to { opacity: 1; transform: scale(1); }
    }
    /* === Mockup loader refinement: immediate Nebras mark END === */

/* --- block --- */

/* === Feedback fan rebuild START === */
#client-feedback,
#client-feedback .scene-inner {
  overflow: visible !important;
}

#client-feedback .scene-inner.is-scrollable {
  overflow: visible !important;
  max-height: none !important;
}

.feedback-fan-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}

.feedback-fan-heading > div:first-child {
  min-width: 0;
}

.feedback-fan-counter {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: rgba(255, 252, 246, .52);
  font-size: 12px;
  letter-spacing: .08em;
}

.feedback-fan-counter strong {
  color: #ffda70;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.feedback-fan-counter i {
  display: block;
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 216, 107, .12), rgba(255, 216, 107, .62));
}

.feedback-fan-stage {
  --fan-card-width: min(660px, calc(100vw - 250px));
  --fan-card-height: 316px;
  position: relative;
  width: min(980px, 100%);
  height: 438px;
  margin: clamp(28px, 4vh, 44px) auto 0;
  perspective: 1900px;
  isolation: isolate;
  overflow: visible !important;
  outline: none;
}

.feedback-fan-stage::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 42px;
  width: min(760px, 78%);
  height: 132px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .42), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.feedback-fan-deck {
  position: absolute;
  z-index: 2;
  inset: 0 72px 58px;
  transform-style: preserve-3d;
  overflow: visible !important;
}

.feedback-fan-card {
  --fan-x: 0px;
  --fan-y: 36px;
  --fan-z: -120px;
  --fan-rotate: 0deg;
  --fan-scale: .86;
  --fan-opacity: .7;
  --fan-layer: 1;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--fan-card-width);
  height: var(--fan-card-height);
  padding: clamp(27px, 3.2vw, 39px);
  border: 1px solid rgba(255, 216, 107, .18);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 216, 107, .11), transparent 31%),
    linear-gradient(148deg, #123d34 0%, #0a3028 42%, #051f1a 100%);
  box-shadow:
    0 28px 66px rgba(0, 0, 0, .30),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 0 0 1px rgba(255, 255, 255, .018);
  transform-origin: 50% 116%;
  transform:
    translateX(-50%)
    translate3d(var(--fan-x), var(--fan-y), var(--fan-z))
    rotate(var(--fan-rotate))
    scale(var(--fan-scale));
  opacity: var(--fan-opacity);
  z-index: var(--fan-layer);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  transition:
    transform .76s cubic-bezier(.22, .82, .24, 1),
    opacity .60s ease,
    border-color .45s ease,
    box-shadow .72s cubic-bezier(.2, .9, .22, 1),
    filter .52s ease;
}

.feedback-fan-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 216, 107, .07);
  border-radius: 23px;
  pointer-events: none;
}

.feedback-fan-card::after {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  left: -105px;
  bottom: -132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 107, .13), transparent 68%);
  pointer-events: none;
}

.feedback-fan-card.is-awaiting {
  transform: translateX(-50%) translate3d(0, 120px, -240px) rotate(0deg) scale(.68) !important;
  opacity: 0 !important;
}

.feedback-fan-card.is-no-transition {
  transition: none !important;
}

.feedback-fan-card.is-active {
  --fan-x: 0px !important;
  --fan-y: -18px !important;
  --fan-z: 104px !important;
  --fan-rotate: 0deg !important;
  --fan-scale: 1 !important;
  --fan-opacity: 1 !important;
  --fan-layer: 60 !important;
  pointer-events: auto;
  user-select: text;
  border-color: rgba(255, 216, 107, .42);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 222, 126, .16), transparent 33%),
    linear-gradient(148deg, #17483d 0%, #0d352d 44%, #06251f 100%);
  box-shadow:
    0 48px 118px rgba(0, 0, 0, .50),
    0 0 0 1px rgba(255, 216, 107, .055),
    0 0 56px rgba(255, 216, 107, .07),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}


.feedback-fan-stage.is-shuffling .feedback-fan-card {
  box-shadow:
    0 34px 82px rgba(0, 0, 0, .36),
    inset 0 1px 0 rgba(255, 255, 255, .075),
    inset 0 0 0 1px rgba(255, 255, 255, .018);
}

.feedback-fan-card:not(.is-active) .feedback-fan-card-inner {
  opacity: .24;
  filter: saturate(.72);
}

.feedback-fan-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: opacity .42s ease, filter .42s ease;
}

.feedback-fan-card-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 18px;
}

.feedback-fan-person {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.feedback-fan-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  padding: 9px;
  border: 1px solid rgba(255, 216, 107, .20);
  border-radius: 18px;
  background: rgba(255, 252, 246, .95);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.feedback-fan-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feedback-fan-person h3 {
  margin: 0;
  color: rgba(255, 255, 255, .98);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
}

.feedback-fan-person small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 224, 132, .82);
  font-size: 11px;
  line-height: 1.7;
}


.feedback-fan-topic {
  display: block;
  margin-top: 25px;
  color: #ffe08a;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 850;
  line-height: 1.55;
}

.feedback-fan-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .91);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 2.02;
  text-align: justify;
}

.feedback-fan-quote {
  position: absolute;
  left: 28px;
  bottom: 19px;
  color: rgba(255, 216, 107, .12);
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: 1;
  pointer-events: none;
}

.feedback-fan-nav {
  appearance: none;
  position: absolute;
  z-index: 110;
  top: 48%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 216, 107, .25);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 216, 107, .17), transparent 72%),
    #06261f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.feedback-fan-nav:hover {
  transform: translateY(-50%) scale(1.07);
  border-color: rgba(255, 216, 107, .52);
  background: #0a3128;
}

.feedback-fan-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  border-top: 2px solid #ffda70;
  border-left: 2px solid #ffda70;
}

.feedback-fan-prev { right: 0; }
.feedback-fan-next { left: 0; }
.feedback-fan-prev::before { right: 3px; transform: rotate(135deg); }
.feedback-fan-next::before { left: 3px; transform: rotate(-45deg); }

.feedback-fan-footer {
  position: absolute;
  z-index: 115;
  right: 50%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  transform: translateX(50%);
}

.feedback-fan-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.feedback-fan-dot {
  appearance: none;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 246, .20);
  cursor: pointer;
  transition: width .32s ease, background .32s ease, box-shadow .32s ease;
}

.feedback-fan-dot {
  position: relative;
  overflow: hidden;
}

.feedback-fan-dot.is-active {
  width: 30px;
  background: rgba(255, 252, 246, .16);
  box-shadow: 0 0 18px rgba(255, 216, 107, .22);
}

.feedback-fan-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #ffda70;
  box-shadow: 0 0 14px rgba(255, 216, 107, .38);
  transform: scaleX(0);
  transform-origin: right center;
}

.feedback-fan-dot.is-active.is-timing::after {
  animation: feedbackFanProgress 5.2s linear both;
}

.feedback-fan-stage.is-paused .feedback-fan-dot.is-active::after {
  animation-play-state: paused;
}

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

@media (min-width: 1280px) and (min-height: 768px) {
  .feedback-fan-stage {
    height: 432px;
    margin-top: 28px;
  }
}

@media (max-width: 900px) {
  .feedback-fan-heading {
    display: block;
  }

  .feedback-fan-counter {
    display: none;
  }

  .feedback-fan-stage {
    --fan-card-width: min(620px, calc(100vw - 52px));
    --fan-card-height: 350px;
    height: 460px;
    margin-top: 24px;
  }

  .feedback-fan-deck {
    inset-inline: 12px;
    bottom: 72px;
  }

  .feedback-fan-card {
    padding: 25px;
    border-radius: 28px;
  }

  .feedback-fan-card::before {
    inset: 10px;
    border-radius: 20px;
  }

  .feedback-fan-nav {
    top: auto;
    bottom: 1px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .feedback-fan-nav:hover {
    transform: scale(1.05);
  }

  .feedback-fan-prev { right: calc(50% - 74px); }
  .feedback-fan-next { left: calc(50% - 74px); }

  .feedback-fan-footer {
    bottom: 16px;
  }

}

@media (max-width: 560px) {
  .feedback-fan-stage {
    --fan-card-width: calc(100vw - 34px);
    --fan-card-height: 382px;
    height: 490px;
  }

  .feedback-fan-card {
    padding: 22px 20px;
    border-radius: 25px;
  }

  .feedback-fan-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
  }

  .feedback-fan-person h3 {
    font-size: 18px;
  }

  .feedback-fan-person small {
    font-size: 10px;
  }

  .feedback-fan-topic {
    margin-top: 21px;
    font-size: 17px;
  }

  .feedback-fan-card p {
    font-size: 12.5px;
    line-height: 1.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-fan-card,
  .feedback-fan-dot,
  .feedback-fan-nav {
    transition-duration: .01ms !important;
  }

  .feedback-fan-dot.is-active::after {
    animation: none !important;
    transform: scaleX(1);
  }
}
/* === Feedback fan rebuild END === */

/* === Related cards gradient + hover readability START === */
.related-card img {
  filter: none;
  transform: scale(1.001);
  transition:
    transform .72s cubic-bezier(.22,1,.36,1),
    filter .48s ease;
  will-change: transform, filter;
}

.related-card::after {
  height: 76%;
  background: linear-gradient(
    180deg,
    rgba(3,26,22,0) 0%,
    rgba(3,26,22,.08) 15%,
    rgba(3,26,22,.30) 34%,
    rgba(3,26,22,.68) 58%,
    rgba(3,26,22,.90) 78%,
    rgba(3,26,22,.98) 100%
  );
  transition: opacity .42s ease;
}

.related-card:hover img,
.related-card:focus-visible img {
  transform: scale(1.085);
  filter: blur(4.5px) brightness(.72) saturate(.90);
}

.related-card:hover::after,
.related-card:focus-visible::after {
  opacity: 1;
}
/* === Related cards gradient + hover readability END === */


/* === Related carousel polish: wide cards, soft edges, free shadows START === */
/* The related section itself must not clip the carousel or its shadows. */
#related,
#related > .scene-inner {
  overflow: visible !important;
}

.related-carousel {
  --related-card-width: clamp(450px, 41.25vw, 510px);
  overflow: visible;
  padding-inline: 76px;
}

.related-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-block: 26px 108px;
  margin-block: -26px -76px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transition: -webkit-mask-image .35s ease, mask-image .35s ease;
}

.related-scroll.has-left-overflow.has-right-overflow {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.18) 2.2%,
    #000 8.5%,
    #000 91.5%,
    rgba(0,0,0,.18) 97.8%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.18) 2.2%,
    #000 8.5%,
    #000 91.5%,
    rgba(0,0,0,.18) 97.8%,
    transparent 100%
  );
}

.related-scroll.has-left-overflow:not(.has-right-overflow) {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.18) 2.2%,
    #000 8.5%,
    #000 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.18) 2.2%,
    #000 8.5%,
    #000 100%
  );
}

.related-scroll.has-right-overflow:not(.has-left-overflow) {
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 91.5%,
    rgba(0,0,0,.18) 97.8%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 91.5%,
    rgba(0,0,0,.18) 97.8%,
    transparent 100%
  );
}

.related-grid {
  padding: 8px 8px 0;
}

.related-nav {
  transition:
    opacity .42s ease,
    transform .42s cubic-bezier(.22,1,.36,1),
    filter .42s ease,
    visibility 0s linear 0s;
}

.related-nav:disabled,
.related-nav.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(5px) brightness(.8);
  transform: translateY(-50%) scale(.72);
  transition:
    opacity .42s ease,
    transform .42s cubic-bezier(.22,1,.36,1),
    filter .42s ease,
    visibility 0s linear .42s;
}

@media (max-width: 980px) {
  .related-carousel {
    --related-card-width: clamp(450px, 64.5vw, 585px);
    padding-inline: 58px;
  }
}

@media (max-width: 640px) {
  .related-carousel {
    --related-card-width: min(92vw, 510px);
    padding-inline: 0;
  }

  .related-scroll {
    padding-block: 22px 104px;
    margin-block: -22px -70px;
  }

  .related-scroll.has-left-overflow.has-right-overflow {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5.5%, #000 94.5%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5.5%, #000 94.5%, transparent 100%);
  }

  .related-scroll.has-left-overflow:not(.has-right-overflow) {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5.5%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5.5%, #000 100%);
  }

  .related-scroll.has-right-overflow:not(.has-left-overflow) {
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 94.5%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 94.5%, transparent 100%);
  }

  .related-nav:disabled,
  .related-nav.is-hidden {
    transform: scale(.72);
  }
}
/* === Related carousel polish: wide cards, soft edges, free shadows END === */



/* === Related carousel v4: stable edges + responsive controls START === */
#related,
#related > .scene-inner,
.related-carousel,
.related-viewport {
  overflow: visible !important;
}

.related-carousel {
  --related-card-width: clamp(450px, 41.25vw, 510px);
  --related-edge-width: clamp(54px, 7vw, 94px);
  position: relative;
  padding-inline: 72px;
}

.related-viewport {
  position: relative;
  width: 100%;
  isolation: isolate;
}

/* Physical edge fades are separate layers, so their opacity can animate reliably. */
.related-viewport::before,
.related-viewport::after {
  content: '';
  position: absolute;
  z-index: 6;
  top: 28px;
  bottom: 108px;
  width: var(--related-edge-width);
  pointer-events: none;
  opacity: 0;
  filter: blur(.01px);
  transition:
    opacity .5s cubic-bezier(.22,1,.36,1),
    transform .5s cubic-bezier(.22,1,.36,1);
}

.related-viewport::before {
  left: 0;
  transform: translateX(-14px);
  background: linear-gradient(
    90deg,
    rgba(4,31,26,.98) 0%,
    rgba(4,31,26,.84) 28%,
    rgba(4,31,26,.38) 64%,
    rgba(4,31,26,0) 100%
  );
}

.related-viewport::after {
  right: 0;
  transform: translateX(14px);
  background: linear-gradient(
    270deg,
    rgba(4,31,26,.98) 0%,
    rgba(4,31,26,.84) 28%,
    rgba(4,31,26,.38) 64%,
    rgba(4,31,26,0) 100%
  );
}

.related-viewport.has-left-overflow::before,
.related-viewport.has-right-overflow::after {
  opacity: 1;
  transform: translateX(0);
}

.related-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  direction: rtl;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  container-type: inline-size;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  padding-block: 28px 108px;
  margin-block: -28px -76px;
}

.related-scroll::-webkit-scrollbar { display: none; }

.related-grid {
  padding: 8px 0 0 !important;
}

.related-grid::before,
.related-grid::after {
  content: '';
  flex: 0 0 var(--related-spacer, max(0px, calc((100cqw - var(--related-card-width)) / 2)));
}

.related-grid .related-card {
  flex: 0 0 var(--related-card-width);
  width: var(--related-card-width);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.related-controls { display: contents; }

.related-controls .related-nav {
  z-index: 10;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity .38s ease,
    transform .38s cubic-bezier(.22,1,.36,1),
    filter .38s ease,
    visibility 0s linear 0s;
}

.related-controls .related-nav:disabled,
.related-controls .related-nav.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(4px) brightness(.78);
  transform: translateY(-50%) scale(.76);
  transition:
    opacity .38s ease,
    transform .38s cubic-bezier(.22,1,.36,1),
    filter .38s ease,
    visibility 0s linear .38s;
}

.related-prev { right: 4px; }
.related-next { left: 4px; }

@media (max-width: 1080px) {
  .related-carousel {
    --related-card-width: clamp(430px, 55vw, 560px);
    padding-inline: 58px;
  }
}

/* On narrower layouts the controls become a stable row below the slider. */
@media (max-width: 900px) {
  .related-carousel {
    --related-card-width: min(82vw, 520px);
    --related-edge-width: clamp(38px, 8vw, 66px);
    padding-inline: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .related-viewport { min-width: 0; }

  .related-scroll {
    padding-block: 24px 94px;
    margin-block: -24px -64px;
  }

  .related-viewport::before,
  .related-viewport::after {
    top: 24px;
    bottom: 94px;
  }

  .related-controls {
    position: relative;
    z-index: 12;
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    margin-top: 2px;
  }

  .related-controls .related-nav {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .related-controls .related-nav:hover,
  .related-controls .related-nav:focus-visible {
    transform: scale(1.05);
  }

  .related-controls .related-nav:disabled,
  .related-controls .related-nav.is-hidden {
    transform: scale(.76);
  }
}

@media (max-width: 640px) {
  .related-carousel {
    --related-card-width: min(86vw, 430px);
    --related-edge-width: 44px;
    margin-top: 24px;
  }

  .related-scroll {
    padding-block: 20px 82px;
    margin-block: -20px -54px;
  }

  .related-viewport::before,
  .related-viewport::after {
    top: 20px;
    bottom: 82px;
  }

  .related-grid { gap: 12px; }

  .related-controls {
    gap: 12px;
    margin-top: 6px;
  }

  .related-controls .related-nav {
    width: 44px;
    height: 44px;
  }
}
/* === Related carousel v4: stable edges + responsive controls END === */

/* --- block --- */

/* === Related projects carousel v5: rebuilt interaction START === */
#related,
#related > .scene-inner,
.related-carousel,
.related-viewport {
  overflow: visible !important;
}

.related-carousel {
  --related-card-width: clamp(440px, 40vw, 520px);
  --related-gap: clamp(16px, 1.6vw, 24px);
  --related-fade-width: clamp(54px, 7vw, 96px);
  position: relative;
  margin-top: 30px;
  padding-inline: 72px;
}

.related-viewport {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.related-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  direction: rtl;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  cursor: grab;
  padding-block: 28px 104px;
  margin-block: -28px -72px;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.related-scroll:active { cursor: grabbing; }
.related-scroll::-webkit-scrollbar { display: none; }

.related-grid {
  display: flex !important;
  width: max-content;
  max-width: none;
  gap: var(--related-gap) !important;
  margin-top: 0 !important;
  padding: 8px 0 0 !important;
  direction: rtl;
}

.related-grid::before,
.related-grid::after {
  content: '';
  flex: 0 0 var(--related-spacer, 0px);
}

.related-grid .related-card {
  flex: 0 0 var(--related-card-width);
  width: var(--related-card-width);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Real edge fades. They never affect layout and animate only through opacity. */
.related-viewport::before,
.related-viewport::after {
  content: '';
  position: absolute;
  z-index: 7;
  top: 18px;
  bottom: 92px;
  width: var(--related-fade-width);
  pointer-events: none;
  opacity: 0;
  transition: opacity .46s cubic-bezier(.22,1,.36,1);
}

.related-viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(4,31,26,.98) 0%, rgba(4,31,26,.72) 36%, rgba(4,31,26,0) 100%);
}

.related-viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(4,31,26,.98) 0%, rgba(4,31,26,.72) 36%, rgba(4,31,26,0) 100%);
}

.related-viewport.can-go-next::before,
.related-viewport.can-go-prev::after {
  opacity: 1;
}

.related-controls { display: contents; }

.related-controls .related-nav {
  z-index: 10;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity .32s ease,
    transform .32s cubic-bezier(.22,1,.36,1),
    filter .32s ease,
    visibility 0s linear 0s;
}

.related-controls .related-nav[disabled],
.related-controls .related-nav.is-unavailable {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(3px) brightness(.82);
  transform: translateY(-50%) scale(.78);
  transition:
    opacity .32s ease,
    transform .32s cubic-bezier(.22,1,.36,1),
    filter .32s ease,
    visibility 0s linear .32s;
}

.related-prev { right: 4px; }
.related-next { left: 4px; }

@media (max-width: 1080px) and (min-width: 769px) {
  .related-carousel {
    --related-card-width: clamp(410px, 58vw, 560px);
    padding-inline: 56px;
  }
}

/* Mobile/tablet: native touch carousel only. No arrows, no masks. */
@media (max-width: 768px) {
  .related-carousel {
    --related-card-width: min(84vw, 430px);
    --related-gap: 14px;
    margin-top: 24px;
    padding-inline: 0;
  }

  .related-viewport::before,
  .related-viewport::after,
  .related-controls {
    display: none !important;
  }

  .related-scroll {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 8vw;
    cursor: default;
    padding-block: 18px 72px;
    margin-block: -18px -48px;
    touch-action: pan-x pan-y;
  }

  .related-grid {
    padding-inline: 8vw !important;
  }

  .related-grid::before,
  .related-grid::after {
    display: none;
  }

  .related-grid .related-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .related-carousel { --related-card-width: 82vw; }
  .related-grid { gap: 12px !important; }
}
/* === Related projects carousel v5: rebuilt interaction END === */

/* --- block --- */

/* === Mobile layout recovery: based on the stable legacy canvas START === */
@media (max-width: 920px) {
  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  body { position: relative; }

  .stage,
  .scene,
  .scene-inner,
  .hero-grid,
  .output-layout,
  .panel,
  .panel-inner,
  .story-grid,
  .problem-layout,
  .overview-grid,
  .result-card,
  .feedback-heading,
  .team-heading-row {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .scene {
    padding-inline: 16px !important;
    overflow-x: clip !important;
  }

  .scene > *,
  .scene-inner > *,
  .panel-inner > *,
  .hero-grid > *,
  .output-layout > *,
  .story-grid > *,
  .problem-layout > *,
  .overview-grid > *,
  .result-card > * {
    min-width: 0 !important;
    max-width: 100%;
  }

  img,
  video,
  canvas,
  svg,
  iframe,
  object {
    max-width: 100%;
  }

  .hero-grid,
  .story-grid,
  .problem-layout,
  .overview-grid,
  .output-layout,
  .result-card,
  .feedback-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-art,
  .story-visual,
  .book-stage,
  .phone-stage,
  .laptop-stage,
  .gallery-shell,
  .feedback-stage,
  .team-carousel,
  .related-carousel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Only intentional horizontal carousels may grow wider than the viewport. */
  .gallery-scroll,
  .team-scroll,
  .method-viewport,
  .related-scroll {
    max-width: 100% !important;
    overscroll-behavior-x: contain;
  }

  .gallery-track,
  .team-track,
  .method-track,
  .related-grid {
    max-width: none !important;
  }

  .topbar {
    max-width: calc(100vw - 20px) !important;
  }

  .scene-title,
  .scene-lead,
  .hero h1,
  .hero-lead,
  .story-copy p,
  .problem-core p,
  .tension p,
  .person-copy p,
  .client-feedback-card > p,
  .related-card p,
  .result-copy p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  html { scroll-snap-type: none !important; }

  body,
  .stage {
    overflow-x: clip !important;
  }

  .scene {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 104px 16px 46px !important;
    scroll-snap-align: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .hero { min-height: 100svh !important; }
  .hero-grid { display: flex !important; flex-direction: column !important; }
  .hero-copy,
  .hero-art { width: 100% !important; }

  .output-head {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .book-stage,
  .phone-stage,
  .laptop-stage {
    margin-inline: auto !important;
    overflow: visible !important;
  }

  .gallery-shell,
  .gallery-board { max-width: 100% !important; }

  .team-carousel {
    padding-inline: 0 !important;
    overflow: visible !important;
  }

  .team-scroll {
    width: 100% !important;
    padding-inline: 0 !important;
  }

  .team-track .person-card,
  .person-card {
    flex-basis: min(86vw, 430px) !important;
    max-width: min(86vw, 430px) !important;
  }

  .feedback-stage,
  .feedback-stack {
    max-width: 100% !important;
  }

  /* Related projects: native mobile strip, contained inside the viewport. */
  #related,
  #related > .scene-inner,
  .related-carousel,
  .related-viewport {
    overflow: visible !important;
  }

  .related-carousel {
    --related-card-width: min(82vw, 430px) !important;
    width: 100% !important;
    padding-inline: 0 !important;
    margin-top: 24px !important;
  }

  .related-viewport {
    width: 100% !important;
  }

  .related-viewport::before,
  .related-viewport::after,
  .related-controls,
  .related-nav {
    display: none !important;
  }

  .related-scroll {
    box-sizing: border-box;
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin-inline: -16px !important;
    padding: 18px 16px 70px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    direction: rtl;
    scroll-snap-type: x proximity !important;
    scroll-padding-inline: 16px !important;
    touch-action: pan-x pan-y !important;
    scrollbar-width: none;
  }

  .related-scroll::-webkit-scrollbar { display: none; }

  .related-grid {
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 14px !important;
  }

  .related-grid::before,
  .related-grid::after { display: none !important; }

  .related-grid .related-card {
    flex: 0 0 var(--related-card-width) !important;
    width: var(--related-card-width) !important;
    max-width: var(--related-card-width) !important;
    scroll-snap-align: start !important;
  }
}

@media (max-width: 460px) {
  .scene { padding-inline: 14px !important; }

  .related-scroll {
    width: calc(100% + 28px) !important;
    margin-inline: -14px !important;
    padding-inline: 14px !important;
  }

  .related-carousel { --related-card-width: 84vw !important; }

  .person-card,
  .team-track .person-card {
    flex-basis: calc(100vw - 42px) !important;
    max-width: calc(100vw - 42px) !important;
  }
}
/* === Mobile layout recovery: based on the stable legacy canvas END === */

/* --- block --- */

/* === Related projects: true viewport edge mask START === */
@property --related-mask-left {
  syntax: '<number>';
  inherits: false;
  initial-value: 1;
}
@property --related-mask-right {
  syntax: '<number>';
  inherits: false;
  initial-value: 1;
}

@media (min-width: 769px) {
  .related-viewport::before,
  .related-viewport::after {
    display: none !important;
    content: none !important;
  }

  .related-scroll {
    --related-mask-left: 1;
    --related-mask-right: 1;
    -webkit-mask-image: linear-gradient(
      90deg,
      rgba(0,0,0,var(--related-mask-left)) 0,
      #000 var(--related-fade-width),
      #000 calc(100% - var(--related-fade-width)),
      rgba(0,0,0,var(--related-mask-right)) 100%
    ) !important;
    mask-image: linear-gradient(
      90deg,
      rgba(0,0,0,var(--related-mask-left)) 0,
      #000 var(--related-fade-width),
      #000 calc(100% - var(--related-fade-width)),
      rgba(0,0,0,var(--related-mask-right)) 100%
    ) !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-size: 100% 100% !important;
    mask-size: 100% 100% !important;
    transition:
      --related-mask-left .46s cubic-bezier(.22,1,.36,1),
      --related-mask-right .46s cubic-bezier(.22,1,.36,1);
  }

  .related-viewport.can-go-next .related-scroll { --related-mask-left: 0; }
  .related-viewport.can-go-prev .related-scroll { --related-mask-right: 0; }
}

@media (max-width: 768px) {
  .related-scroll {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}
/* === Related projects: true viewport edge mask END === */

/* --- block --- */

/* === Mid-width desktop mockup containment START === */
@media (min-width: 921px) and (max-width: 1279px) {
  .output-layout {
    grid-template-columns: minmax(280px, 34%) minmax(0, 1fr) !important;
    gap: clamp(18px, 2.5vw, 32px) !important;
  }

  .output-head {
    max-width: 360px !important;
  }

  .book-stage,
  .phone-stage,
  .laptop-stage {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: auto !important;
    place-items: center !important;
  }

  .laptop {
    width: min(640px, 88%) !important;
    max-width: 88% !important;
    margin-inline: auto !important;
  }

  .laptop-float {
    width: clamp(150px, 17vw, 205px) !important;
  }

  .laptop-float.a {
    right: 1.5% !important;
  }

  .laptop-float.b {
    left: 1.5% !important;
  }

  .phone {
    width: min(270px, 58%) !important;
  }

  .social-card {
    width: clamp(120px, 14vw, 165px) !important;
  }

  .book {
    width: min(760px, 94%) !important;
  }
}

@media (min-width: 1061px) and (max-width: 1140px) {
  .output-layout {
    grid-template-columns: minmax(260px, 32%) minmax(0, 1fr) !important;
  }

  .laptop {
    width: min(590px, 84%) !important;
  }

  .laptop-float {
    width: clamp(140px, 15vw, 180px) !important;
  }
}
/* === Mid-width desktop mockup containment END === */

/* ===== Smart 3D book stage — rebuilt ===== */
.book-scene{overflow:hidden}
.book-scene .output-layout{overflow:visible}
.book-stage{
  position:relative;
  width:min(1040px,100%);
  height:min(620px,calc(100dvh - 132px));
  min-height:390px;
  margin-top:clamp(28px,5vh,72px);
  display:grid;
  place-items:center;
  perspective:2200px;
  overflow:visible;
  contain:layout style;
}
.book-wrap{
  position:relative;
  display:grid;
  place-items:center;
  transform-style:preserve-3d;
  transform:translate3d(0,62px,0) rotateX(58deg) rotateZ(-1.4deg) scale(.76);
  opacity:0;
  filter:blur(7px);
  transition:transform 1.25s cubic-bezier(.16,1,.3,1),opacity .48s ease,filter .75s ease;
  will-change:transform,opacity;
}
.book-scene.is-active .book-wrap{
  transform:translate3d(0,-2px,0) rotateX(7deg) rotateZ(0) scale(1);
  opacity:1;
  filter:none;
}
.book-ground-shadow{
  position:absolute;
  left:50%;top:54%;
  width:min(82%,820px);height:18%;
  transform:translate(-50%,58%) scaleX(.82);
  border-radius:50%;
  background:radial-gradient(ellipse,rgba(0,0,0,.5),rgba(0,0,0,.18) 45%,transparent 72%);
  filter:blur(24px);
  opacity:.15;
  transition:opacity 1s ease .15s,transform 1.25s cubic-bezier(.16,1,.3,1);
  pointer-events:none;
}
.book-scene.is-active .book-ground-shadow{opacity:.92;transform:translate(-50%,58%) scaleX(1)}
.book{
  --book-radius:clamp(5px,1.1vw,15px);
  position:relative;
  width:760px;height:410px;
  max-width:none;
  aspect-ratio:auto;
  transform-style:preserve-3d;
  transform:none;
  opacity:1;
  transition:none;
  isolation:isolate;
}
.book-scene.is-active .book{transform:none;opacity:1}
.book-spread{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;transform-style:preserve-3d;filter:drop-shadow(0 28px 38px rgba(0,0,0,.34));border-radius:var(--book-radius)}
.book-page{position:relative;overflow:hidden;background:#f6f2e9;border:0;box-shadow:inset 0 0 0 1px rgba(35,29,19,.08);backface-visibility:hidden}
.book-page-left{border-radius:var(--book-radius) 2px 2px var(--book-radius)}
.book-page-right{border-radius:2px var(--book-radius) var(--book-radius) 2px}
.book-page img,.turn-face img{width:100%;height:100%;display:block;object-fit:fill;user-select:none;-webkit-user-drag:none}
.book-page::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none}
.book-page-left::before{background:linear-gradient(90deg,rgba(0,0,0,.07),transparent 10%,transparent 79%,rgba(0,0,0,.16) 100%)}
.book-page-right::before{background:linear-gradient(90deg,rgba(0,0,0,.18),transparent 18%,transparent 90%,rgba(0,0,0,.075))}
.book-gutter{position:absolute;z-index:9;inset-block:-.4%;left:50%;width:4.4%;transform:translateX(-50%);background:radial-gradient(ellipse at center,rgba(0,0,0,.26),rgba(0,0,0,.1) 26%,transparent 70%);filter:blur(2px);pointer-events:none;mix-blend-mode:multiply}
.book-page-stack{position:absolute;z-index:-2;top:1.1%;bottom:-1.5%;width:49.5%;background:repeating-linear-gradient(to bottom,#eee9df 0 1px,#c9c1b4 1px 2px,#faf7f0 2px 4px);box-shadow:0 14px 20px rgba(0,0,0,.22);transform:translateZ(-5px)}
.stack-left{left:.3%;border-radius:var(--book-radius) 2px 5px calc(var(--book-radius) + 2px);transform:translate3d(-3px,4px,-5px) skewY(-.35deg)}
.stack-right{right:.3%;border-radius:2px var(--book-radius) calc(var(--book-radius) + 2px) 5px;transform:translate3d(3px,4px,-5px) skewY(.35deg)}
.book-edge{position:absolute;z-index:12;top:1.5%;bottom:1%;width:1.2%;pointer-events:none;opacity:.72}
.book-edge-left{left:-.5%;border-radius:999px 0 0 999px;background:linear-gradient(90deg,rgba(26,19,12,.46),rgba(255,255,255,.18),transparent)}
.book-edge-right{right:-.5%;border-radius:0 999px 999px 0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),rgba(26,19,12,.46))}
.turning-page{position:absolute;z-index:20;top:0;width:50%;height:100%;opacity:0;pointer-events:none;transform-style:preserve-3d;will-change:transform;filter:drop-shadow(0 12px 16px rgba(0,0,0,.2))}
.turning-page.is-forward{right:0;transform-origin:left center}
.turning-page.is-backward{left:0;transform-origin:right center}
.turn-face{position:absolute;inset:0;overflow:hidden;background:#f8f5ed;backface-visibility:hidden;transform-style:preserve-3d}
.is-forward .turn-front{border-radius:2px var(--book-radius) var(--book-radius) 2px}
.is-forward .turn-back{transform:rotateY(180deg);border-radius:var(--book-radius) 2px 2px var(--book-radius)}
.is-backward .turn-front{border-radius:var(--book-radius) 2px 2px var(--book-radius)}
.is-backward .turn-back{transform:rotateY(180deg);border-radius:2px var(--book-radius) var(--book-radius) 2px}
.turn-face::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;animation:inherit}
.turning-page.turn-forward{opacity:1;animation:bookTurnForward 1.16s cubic-bezier(.48,.03,.18,1) forwards}
.turning-page.turn-backward{opacity:1;animation:bookTurnBackward 1.16s cubic-bezier(.48,.03,.18,1) forwards}
.turning-page.turn-forward .turn-front::after,.turning-page.turn-backward .turn-front::after{animation:pageLight 1.16s ease both;background:linear-gradient(90deg,rgba(0,0,0,.3),transparent 30%,rgba(255,255,255,.12) 72%,rgba(0,0,0,.08))}
.page-curl{position:absolute;z-index:5;inset-block:0;width:20%;opacity:0;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),rgba(0,0,0,.18));filter:blur(8px)}
.turn-forward .page-curl{left:-7%;animation:curlForward 1.16s ease both}
.turn-backward .page-curl{right:-7%;animation:curlBackward 1.16s ease both}
@keyframes bookTurnForward{0%{transform:rotateY(0deg) translateZ(1px)}42%{transform:rotateY(-82deg) translateZ(18px) rotateZ(-.45deg)}100%{transform:rotateY(-180deg) translateZ(1px)}}
@keyframes bookTurnBackward{0%{transform:rotateY(0deg) translateZ(1px)}42%{transform:rotateY(82deg) translateZ(18px) rotateZ(.45deg)}100%{transform:rotateY(180deg) translateZ(1px)}}
@keyframes pageLight{0%,100%{opacity:.15}48%{opacity:.85}}
@keyframes curlForward{0%,100%{opacity:0;transform:translateX(0)}48%{opacity:.8;transform:translateX(115%)}}
@keyframes curlBackward{0%,100%{opacity:0;transform:translateX(0)}48%{opacity:.8;transform:translateX(-115%)}}
.book-controls{bottom:clamp(2px,1.4vh,14px);white-space:nowrap}
.book-controls button:disabled{opacity:.45;cursor:wait}
@media(max-width:900px){.book-stage{height:min(560px,calc(100dvh - 190px));min-height:350px;margin-top:8px}.book-ground-shadow{top:49%}.book-controls{bottom:4px}.book-wrap{transform:translate3d(0,38px,0) rotateX(52deg) scale(.8)}}
@media(max-width:600px){.book-stage{width:100%;height:min(470px,52vh);min-height:320px;overflow:visible}.book-controls{bottom:2px}.book-controls button{display:inline-flex}.book-controls a{padding-inline:13px}.book-wrap{transform:translate3d(0,26px,0) rotateX(48deg) scale(.84)}.book-scene.is-active .book-wrap{transform:translate3d(0,-4px,0) rotateX(5deg) scale(1)}.book-ground-shadow{width:92%;filter:blur(17px)}}

.book-stage{touch-action:pan-y;overscroll-behavior-x:contain}
.book{cursor:grab;-webkit-user-select:none;user-select:none}
.book.is-dragging{cursor:grabbing}
.turning-page.is-dragging{opacity:1;animation:none!important;transition:none!important;filter:drop-shadow(0 16px 20px rgba(0,0,0,.27))}
.turning-page.is-settling{transition:transform .42s cubic-bezier(.2,.8,.2,1),opacity .18s ease;animation:none!important}
@media(prefers-reduced-motion:reduce){.book-wrap,.book-ground-shadow{transition:none}.turning-page.turn-forward,.turning-page.turn-backward{animation-duration:.01ms}.page-curl,.turn-face::after{animation:none!important}}

/* --- block --- */

@media (max-width: 760px) {
  .gallery-scene {
    padding-inline: 14px !important;
  }

  .gallery-scene > .scene-inner {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  .gallery-shell {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 18px !important;
    overflow: hidden !important;
  }

  .gallery-board,
  .gallery-scroll {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .gallery-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    touch-action: pan-x pan-y !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-scroll::-webkit-scrollbar { display: none; }

  .gallery-track {
    width: max-content !important;
    height: auto !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  .gallery-page {
    flex: 0 0 calc(100vw - 28px) !important;
    width: calc(100vw - 28px) !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: dense;
    gap: 8px !important;
    scroll-snap-align: start;
  }

  .gallery-page .gallery-tile {
    min-width: 0 !important;
    min-height: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    border-radius: 18px !important;
  }

  .gallery-page .tile-a,
  .gallery-page .tile-d,
  .gallery-page .tile-e,
  .gallery-page .tile-g,
  .gallery-page .tile-h {
    grid-column: span 1 !important;
    grid-row: span 2 !important;
  }

  .gallery-page .tile-b,
  .gallery-page .tile-c,
  .gallery-page .tile-f {
    grid-column: 1 / -1 !important;
    grid-row: span 1 !important;
  }

  .gallery-label {
    right: 10px !important;
    bottom: 10px !important;
    padding: 6px 9px !important;
    font-size: 10px !important;
  }

  .gallery-nav {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .gallery-page {
    flex-basis: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
    aspect-ratio: 3 / 4;
  }
}

/* --- block --- */

@media (max-width: 760px) {
  /* Keep a real box for the absolutely-positioned gallery board. */
  .gallery-shell {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    overflow: visible !important;
  }

  .gallery-board {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .gallery-scroll,
  .gallery-track,
  .gallery-page {
    height: 100% !important;
  }
}

@media (max-width: 420px) {
  .gallery-shell { aspect-ratio: 3 / 4 !important; }
}

/* --- block --- */

.phone-screen > .mockup-slide,
  .laptop-screen > .mockup-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: opacity, transform, filter;
    transition:
      opacity .62s cubic-bezier(.22,1,.36,1),
      transform .92s cubic-bezier(.22,1,.36,1),
      filter .62s ease;
  }
  .phone-screen.mockup-cycle-ready > .mockup-slide,
  .laptop-screen.mockup-cycle-ready > .mockup-slide {
    animation: none !important;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  .phone-screen.mockup-is-loading > .mockup-slide,
  .laptop-screen.mockup-is-loading > .mockup-slide {
    opacity: 0;
    transform: scale(1.025);
    filter: blur(5px);
  }
  .phone-screen.mockup-cycle-ready > .boot-screen,
  .laptop-screen.mockup-cycle-ready > .boot-screen {
    animation: none !important;
    opacity: 0;
    visibility: hidden;
    filter: blur(8px);
    transition:
      opacity .48s ease,
      visibility 0s linear .48s,
      filter .48s ease;
  }
  .phone-screen.mockup-is-loading > .boot-screen,
  .laptop-screen.mockup-is-loading > .boot-screen {
    opacity: 1 !important;
    visibility: visible !important;
    filter: blur(0) !important;
    transition:
      opacity .42s ease,
      visibility 0s,
      filter .42s ease;
  }
  @media (prefers-reduced-motion: reduce) {
    .phone-screen > .mockup-slide,
    .laptop-screen > .mockup-slide,
    .phone-screen.mockup-cycle-ready > .boot-screen,
    .laptop-screen.mockup-cycle-ready > .boot-screen {
      transition-duration: .01ms !important;
    }
  }

/* --- block --- */

/* Preserve the full 3D card shadow inside the horizontal scrollport.
   A scroll container clips visual overflow, so reserve real space below the cards. */
.team-scroll {
  padding-top: 34px !important;
  padding-bottom: 104px !important;
}
.team-track {
  padding-top: 10px !important;
  padding-bottom: 18px !important;
}
#team .scene-inner {
  padding-bottom: 18px;
}
@media (max-width: 760px) {
  .team-scroll {
    padding-top: 24px !important;
    padding-bottom: 92px !important;
  }
  .team-track {
    padding-bottom: 14px !important;
  }
  #team .scene-inner {
    padding-bottom: 58px;
  }
}