:root {
    --bg: #08090b;
    --bg-2: #101216;
    --ink: #f3f3f0;
    --dim: #84878d;
    --line: rgba(243,243,240,0.13);
    --line-strong: rgba(243,243,240,0.3);
    --accent: #5be27a;          /* same green as the buttons */
    --accent-rgb: 91,226,122;
    --hot: #5be27a;        /* CTA / marks — the one loud colour */
    --hot-ink: #08090b;    /* text on --hot */
    --hot-text: #5be27a;   /* --hot as text; darkened on light sections */
    --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { height: 100%; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  a:focus-visible, button:focus-visible, .faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; }

  /* ---------- 3D layer ---------- */
  .hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #08090b url("../uploads/hero-bg.webp") center / cover no-repeat;
    background-blend-mode: multiply;
    background-color: #8c9094;  /* multiplies the image down — darker overall */
  }
  #scene {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  /* degrade guard fade-out — !important because the scroll handler writes
     scene.style.opacity inline */
  #scene.off { opacity: 0 !important; transition: opacity .4s ease; pointer-events: none; }
  .grain {
    position: fixed; inset: 0; z-index: 2; pointer-events: none;
    opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  /* readability gradient — darkens left where the headline sits */
  .veil {
    position: fixed; inset: 0; z-index: 2; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(8,9,11,0.96) 0%, rgba(8,9,11,0.78) 32%, rgba(8,9,11,0) 62%),
      linear-gradient(0deg, rgba(8,9,11,0.85) 0%, rgba(8,9,11,0) 30%);
  }
  /* faint navy glows — screen-blended ABOVE the veil so both corners read equally */
  .bg-tint {
    position: fixed; inset: 0; z-index: 2; pointer-events: none;
    mix-blend-mode: screen;
    background:
      radial-gradient(120% 95% at 82% 2%, rgba(27,47,88,0.31) 0%, rgba(27,47,88,0) 52%),
      radial-gradient(110% 92% at 12% 102%, rgba(26,45,86,0.36) 0%, rgba(26,45,86,0) 50%);
  }

  /* below-the-fold sections: skip their layout/paint until they near the
     viewport — the initial full-document layout then only covers the hero */
  .kinetic, .services, .works, .work, .pricing, .why, .faq, .closing, .footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
  }

  .shell {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    min-height: 100svh; /* mobile browsers: exclude the collapsing address bar */
    display: flex;
    flex-direction: column;
    pointer-events: none;   /* let the 3D receive drags; re-enable on interactive bits */
  }
  .shell a, .shell button, .shell .logo { pointer-events: auto; }

  /* ---------- Nav ---------- */
  #nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px clamp(22px, 4vw, 56px);
    border-bottom: 1px solid transparent;
    transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, color 0.35s ease;
  }
  /* over a light section (JS toggles .inv): dark type, light glass */
  #nav.inv { --ink: #0c0d0c; --dim: #5d6166; --line: rgba(12,13,12,0.12); --line-strong: rgba(12,13,12,0.32); color: #0c0d0c; }
  #nav.inv.scrolled { background: rgba(235,235,231,0.84); }
  #nav.inv .mark { background: #0c0d0c; }
  #nav.inv .mark img { filter: invert(1) hue-rotate(180deg); }
  #nav.scrolled {
    padding-top: 15px; padding-bottom: 15px;
    background: rgba(8,9,11,0.72);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
  }
  .logo { display: flex; align-items: center; gap: 14px; }
  .mark {
    width: 38px; height: 38px; border-radius: 9px;
    background: var(--ink);
    display: grid; place-items: center;
    overflow: hidden;
    flex: none;
  }
  .mark span {
    color: var(--bg);
    font-weight: 900;
    font-size: 25px;
    line-height: 1;
    transform: skewX(-12deg);
    letter-spacing: -0.08em;
  }
  .wordmark {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.16em;
  }
  .nav-mid { display: flex; gap: 36px; }
  /* contact lives in the burger menu on mobile; desktop shows the pill instead */
  .nav-mid .nav-contact { display: none; }
  .nav-burger {
    display: none;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
  #nav.menu-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  #nav.menu-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-mid a {
    font-size: 20px; font-weight: 700; letter-spacing: 0.005em;
    color: var(--ink);
    transition: color 0.3s, opacity 0.3s;
  }
  .nav-mid a:hover { opacity: 0.6; }
  .nav-right { display: flex; align-items: center; gap: 22px; }
  .availability {
    display: flex; align-items: center; gap: 9px; white-space: nowrap;
    font-family: var(--mono); font-size: 11.5px; color: var(--dim);
    letter-spacing: 0.02em;
  }
  .live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
  /* expanding ring on a pseudo — transform/opacity only, no box-shadow repaints */
  .live-dot::after {
    content: ""; position: absolute; inset: -1px; border-radius: 50%;
    border: 1px solid rgba(243,243,240,0.45);
    animation: pulse 2.6s ease-out infinite;
  }
  .btn-pill {
    border: 1px solid var(--hot);
    background: var(--hot); color: var(--hot-ink); cursor: pointer;
    border-radius: 100px; padding: 11px 22px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
    transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
  }
  .btn-pill:hover { background: #7cec96; border-color: #7cec96; transform: translateY(-1px); }

  /* ---------- Hero ---------- */
  .hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px clamp(22px, 4vw, 56px) 24px;  /* top clears the fixed nav */
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
  }
  h1 {
    font-weight: 800;
    font-size: clamp(42px, 8.4vw, 116px);
    line-height: 0.95;
    letter-spacing: -0.035em;
  }
  .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
  .line > span { display: block; white-space: nowrap; will-change: transform; }
  .outline {
    color: transparent;
    -webkit-text-stroke: 1.4px var(--ink);
    text-stroke: 1.4px var(--ink);
  }
  .subtext {
    margin-top: 34px;
    font-size: clamp(15px, 1.55vw, 19px);
    line-height: 1.55;
    color: var(--dim);
    max-width: 44ch;
    font-weight: 400;
  }
  .cta-row { margin-top: 42px; display: flex; gap: 16px; align-items: center; }
  .btn-solid {
    background: var(--hot); color: var(--hot-ink);
    border: none; border-radius: 100px;
    padding: 12px 12px 12px 26px; font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
    display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; cursor: pointer;
    transition: transform 0.3s cubic-bezier(.22,.61,.36,1), background 0.3s;
  }
  .btn-solid::after {
    content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: var(--hot-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235be27a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9.5 9.5 2.5M4 2.5h5.5V8'/%3E%3C/svg%3E") center / 12px no-repeat;
    transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
  }
  .btn-solid:hover, .form-submit:hover:not(.is-ok):not(.is-err) { background: #7cec96; }
  .btn-solid:hover { transform: translateY(-2px); }
  .btn-solid:hover::after { transform: rotate(45deg); }
  .btn-line {
    background: transparent; color: var(--ink);
    border: none; padding: 16px 6px; font-size: 15px; font-weight: 600; white-space: nowrap;
    position: relative;
  }
  .btn-line { transition: opacity 0.3s; }
  .btn-line:hover { opacity: 0.7; }

  .lang-sw {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
    color: var(--dim); text-decoration: none; padding: 8px 10px;
  }
  .lang-sw:hover { color: var(--ink); }

  /* ---------- Footer meta ---------- */
  .meta {
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 0 clamp(22px, 4vw, 56px) 30px;
    font-family: var(--mono); font-size: 11.5px; color: var(--dim);
    letter-spacing: 0.03em;
  }
  .meta .col { display: flex; flex-direction: column; gap: 5px; }
  .meta .scroll { display: flex; align-items: center; gap: 10px; }
  .meta .scroll .bar {
    width: 1px; height: 30px; background: var(--line-strong); position: relative; overflow: hidden;
  }
  .meta .scroll .bar::after {
    content: ""; position: absolute; left: 0; top: -30px; width: 100%; height: 30px;
    background: var(--ink); animation: scrolldash 2.2s cubic-bezier(.7,0,.3,1) infinite;
  }

  /* staggered intro */
  .reveal > span { transform: translateY(110%); }
  .fade { opacity: 0; transform: translateY(16px); }
  .in-up { animation: rise 0.95s cubic-bezier(.16,.84,.34,1) forwards; }
  .in-line > span { animation: lineUp 1s cubic-bezier(.16,.84,.34,1) forwards; }

  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
  @keyframes lineUp { to { transform: translateY(0); } }
  @keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    70%, 100% { transform: scale(3); opacity: 0; }
  }
  @keyframes scrolldash { 0% { transform: translateY(0); } 60%,100% { transform: translateY(60px); } }

  /* ---------- How we work (pinned horizontal scroll) ---------- */
  .work { position: relative; z-index: 3; height: 400vh; background: var(--bg); }
  .work-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
  .work-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: clamp(110px,18vh,200px) clamp(22px,4vw,56px) 0;
  }
  .work-eyebrow {
    font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink); display: inline-flex; align-items: center; gap: 10px;
  }
  .work-eyebrow::before, .sec-eyebrow::before { content: "/"; font-weight: 800; font-size: 15px; line-height: 1; color: var(--hot-text); transform: skewX(-12deg); flex: none; }
  /* same size as the "Amit nyújtunk" section title */
  .work-title { font-size: clamp(30px,4.4vw,62px); font-weight: 800; letter-spacing: -0.032em; line-height: 0.98; }
  .work-count { font-family: var(--mono); font-size: 13px; color: var(--ink); letter-spacing: 0.12em; }
  .work-track {
    flex: 1; display: flex; align-items: center; gap: 5vw;
    padding: 0 clamp(22px,4vw,56px); width: max-content; will-change: transform;
  }
  .panel {
    flex: 0 0 72vw; min-width: 0; display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(28px,3.4vw,64px); align-items: center;
  }
  .panel .step-no {
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--dim);
    margin-bottom: 22px; display: flex; align-items: center; gap: 12px; text-transform: uppercase;
  }
  .panel h3 { font-size: clamp(30px,3.6vw,56px); font-weight: 800; letter-spacing: -0.025em; line-height: 0.98; }
  .panel p { margin-top: 20px; color: var(--dim); font-size: clamp(15px,1.25vw,18px); line-height: 1.62; max-width: 44ch; }
  .work.outline-titles .panel h3 {
    color: transparent;
    -webkit-text-stroke: 1.3px var(--ink);
    text-stroke: 1.3px var(--ink);
  }

  /* mockup window */
  .mock {
    width: 100%; aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: 16px;
    overflow: hidden; background: linear-gradient(180deg, #0f1116, #0a0b0e);
    box-shadow: 0 40px 90px rgba(0,0,0,0.55); display: flex; flex-direction: column;
  }
  .mock-bar { height: 40px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); }
  .mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
  .mock-bar i:nth-child(1) { background: #ff5f57; }
  .mock-bar i:nth-child(2) { background: #febc2e; }
  .mock-bar i:nth-child(3) { background: #28c840; }
  .mock-bar .url { margin-left: 12px; height: 16px; flex: 1; max-width: 240px; border-radius: 6px; background: rgba(243,243,240,0.06); }
  .mock-body { flex: 1; padding: 22px; display: flex; gap: 18px; position: relative; }
  /* ---- focus-driven entrance: each panel wakes up when it reaches centre ---- */
  .panel { perspective: 1400px; }
  .panel .mock {
    opacity: 0.38; transform: translateY(26px) scale(0.965) rotateY(-7deg); transform-origin: center bottom;
    transition: opacity 0.6s ease, transform 0.85s cubic-bezier(.16,.84,.34,1);
  }
  .panel.active .mock { opacity: 1; transform: translateY(0) scale(1) rotateY(0deg); will-change: transform; }
  .panel .panel-text > * { opacity: 0.5; transform: translateY(8px); transition: opacity 0.55s ease, transform 0.7s cubic-bezier(.16,.84,.34,1); }
  .panel.active .panel-text > * { opacity: 1; transform: none; }
  .panel.active .panel-text h3 { transition-delay: 0.05s; }
  .panel.active .panel-text p { transition-delay: 0.12s; }

  /* ===== Scope — checklist ticking ===== */
  .mock-body.scope { flex-direction: column; justify-content: center; }
  .checklist { display: flex; flex-direction: column; gap: 15px; width: 100%; }
  .todo { display: flex; align-items: center; gap: 13px; --d: 0s; }
  .todo:nth-child(1) { --d: 0.4s; }
  .todo:nth-child(2) { --d: 1.1s; }
  .todo:nth-child(3) { --d: 1.8s; }
  .todo:nth-child(4) { --d: 2.5s; }
  .todo:nth-child(5) { --d: 3.2s; }
  .todo .box { width: 18px; height: 18px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 5px; display: flex; align-items: center; justify-content: center; }
  .todo .box::after { content: ""; width: 4px; height: 8px; margin-bottom: 2px; border: solid #0b0c0e; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); opacity: 0; }
  .todo .tbar { position: relative; height: 9px; border-radius: 5px; background: rgba(243,243,240,0.1); }
  .todo .tbar::after { content: ""; position: absolute; left: 0; top: 50%; margin-top: -1px; height: 2px; width: 100%; border-radius: 2px; background: rgba(243,243,240,0.5); transform: scaleX(0); transform-origin: left; }
  .panel.active .scope .todo .box { animation: tickbox 0.5s var(--d) cubic-bezier(.5,1.6,.5,1) forwards; }
  .panel.active .scope .todo .box::after { animation: tickmark 0.45s var(--d) forwards; }
  .panel.active .scope .todo .tbar { animation: tbardim 0.5s var(--d) forwards; }
  .panel.active .scope .todo .tbar::after { animation: strike 0.5s var(--d) cubic-bezier(.5,0,.2,1) forwards; }
  @keyframes tickbox {
    0% { transform: scale(1); border-color: var(--line-strong); background: transparent; }
    55% { transform: scale(1.22); border-color: var(--accent); background: var(--accent); }
    100% { transform: scale(1); border-color: var(--accent); background: var(--accent); }
  }
  @keyframes tickmark { 0% { opacity: 0; transform: rotate(45deg) scale(0); } 55% { opacity: 1; } 100% { opacity: 1; transform: rotate(45deg) scale(1); } }
  @keyframes tbardim { to { opacity: 0.5; } }
  @keyframes strike { to { transform: scaleX(1); } }

  /* ===== Prototype — cursor clicking through frames ===== */
  .mock-body.proto { align-items: stretch; }
  .frames { flex: 1; display: flex; gap: 14px; }
  .frames .frame { flex: 1; border: 1px solid var(--line); border-radius: 10px; }
  .pcursor {
    position: absolute; width: 15px; height: 15px; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0;
    background: var(--ink); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6));
    clip-path: polygon(0 0, 0 80%, 22% 62%, 40% 100%, 52% 94%, 34% 58%, 60% 58%);
  }
  .panel.active .proto .pcursor { animation: cursormove 4.4s cubic-bezier(.5,0,.5,1) infinite; }
  .panel.active .proto .frame { animation: framehit 4.4s ease infinite; }
  .panel.active .proto .frame:nth-child(1) { animation-delay: 0.5s; }
  .panel.active .proto .frame:nth-child(2) { animation-delay: 1.95s; }
  .panel.active .proto .frame:nth-child(3) { animation-delay: 3.4s; }
  @keyframes cursormove {
    0%      { opacity: 0; left: 24%; top: 92%; }
    8%      { opacity: 1; }
    14%,30% { left: 19%; top: 47%; }   /* frame 1 */
    44%,58% { left: 50%; top: 52%; }   /* frame 2 */
    72%,86% { left: 81%; top: 47%; }   /* frame 3 */
    96%,100%{ opacity: 0; left: 84%; top: 92%; }
  }
  @keyframes framehit { 0%,9%,100% { border-color: var(--line); background: transparent; } 2%,5% { border-color: var(--accent); background: rgba(var(--accent-rgb),.14); } }

  /* ===== Build — typing code editor ===== */
  .mock-body.build { flex-direction: column; justify-content: center; }
  .editor { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 12px; width: 100%; }
  .editor .ln { display: flex; align-items: center; gap: 12px; min-height: 13px; }
  .editor .lnum { width: 14px; flex: none; height: 8px; border-radius: 3px; background: rgba(243,243,240,0.08); }
  .editor .cdim { height: 8px; border-radius: 4px; background: rgba(243,243,240,0.09); }
  .editor .code { color: #9db4ee; white-space: pre; }
  .editor .caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); margin-left: 1px; opacity: 0; vertical-align: middle; }
  .panel.active .build .caret { animation: blink 1s steps(1) infinite; }
  @keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

  /* ===== Launch — deploy log streaming + progress ===== */
  .mock-body.launch { flex-direction: column; justify-content: center; gap: 11px; font-family: var(--mono); font-size: 12px; }
  .launch .lg { color: var(--dim); opacity: 0; transform: translateX(-8px); }
  .launch .lg.ok { color: #28c840; }
  .launch .pbar { height: 4px; border-radius: 3px; background: rgba(243,243,240,0.1); overflow: hidden; margin-top: 8px; }
  .launch .pbar > i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
  .panel.active .launch .lg { animation: logline 0.4s forwards; }
  .panel.active .launch .lg:nth-child(1) { animation-delay: 0.3s; }
  .panel.active .launch .lg:nth-child(2) { animation-delay: 0.9s; }
  .panel.active .launch .lg:nth-child(3) { animation-delay: 1.5s; }
  .panel.active .launch .lg:nth-child(4) { animation-delay: 2.3s; }
  .panel.active .launch .pbar > i { animation: fillbar 2s cubic-bezier(.5,0,.2,1) forwards; animation-delay: 0.3s; }
  @keyframes logline { to { opacity: 1; transform: none; } }
  @keyframes fillbar { to { transform: scaleX(1); } }

  /* ===== Scale — counter + climbing chart ===== */
  .mock-body.scale { flex-direction: column; gap: 16px; }
  .scale .metric { display: flex; align-items: baseline; gap: 12px; }
  .scale .counter { font-family: var(--sans); font-weight: 800; font-size: 38px; letter-spacing: -0.02em; line-height: 1; }
  .scale .munit { font-family: var(--mono); font-size: 11px; color: var(--dim); }
  .scale .trend { margin-left: auto; font-family: var(--mono); font-size: 12px; color: #28c840; }
  .chart { flex: 1; display: flex; align-items: flex-end; gap: 12px; }
  .chart > span { flex: 1; border-radius: 6px 6px 0 0; background: rgba(243,243,240,0.12); height: var(--h,40%); transform: scaleY(0); transform-origin: bottom; transition: transform 0.7s cubic-bezier(.16,.84,.34,1); }
  .chart > span.up { background: rgba(var(--accent-rgb),0.6); }
  .panel.active .scale .chart > span { transform: scaleY(1); }
  .panel.active .scale .chart > span:nth-child(1) { transition-delay: 0.15s; }
  .panel.active .scale .chart > span:nth-child(2) { transition-delay: 0.27s; }
  .panel.active .scale .chart > span:nth-child(3) { transition-delay: 0.39s; }
  .panel.active .scale .chart > span:nth-child(4) { transition-delay: 0.51s; }
  .panel.active .scale .chart > span:nth-child(5) { transition-delay: 0.63s; }
  .panel.active .scale .chart > span:nth-child(6) { transition-delay: 0.75s; }

  @media (prefers-reduced-motion: reduce) {
    .panel .mock, .panel .panel-text > * { opacity: 1 !important; transform: none !important; }
    .scope .todo .box { background: var(--accent); border-color: var(--accent); }
    .scope .todo .box::after { transform: rotate(45deg) scale(1); opacity: 1; }
    .chart > span { transform: scaleY(1); }
    .launch .lg { opacity: 1; transform: none; }
    .launch .pbar > i { transform: scaleX(1); }
    .pcursor { display: none; }
  }

  .work-progress { height: 2px; margin: 0 clamp(22px,4vw,56px) clamp(26px,4vh,40px); background: rgba(243,243,240,0.1); position: relative; overflow: hidden; }
  .work-progress > i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--ink); }
  .process-cta {
    position: relative; z-index: 3; background: var(--bg);
    text-align: center; padding: clamp(38px,7vh,78px) clamp(22px,4vw,56px) clamp(30px,5vh,58px);
    display: flex; flex-direction: column; align-items: center; gap: 20px;
  }
  .process-cta p { color: var(--dim); font-size: clamp(16px,1.6vw,20px); letter-spacing: -0.01em; }

  /* ---------- Light sections (works · proof) ---------- */
  .sec-light {
    --bg: #ebebe7; --bg-2: #f7f7f4; --ink: #0c0d0c; --dim: #5d6166;
    --line: rgba(12,13,12,0.12); --line-strong: rgba(12,13,12,0.32); --hot-text: #178f3f;
    background: var(--bg); color: var(--ink);
  }
  /* the mockups stay dark inside the light cards (zalehy-style colour blocks on white) */
  .sec-light .ph {
    --bg: #08090b; --bg-2: #101216; --ink: #f3f3f0; --dim: #84878d;
    --line: rgba(243,243,240,0.13); --line-strong: rgba(243,243,240,0.3); --hot-text: #5be27a;
    color: var(--ink);
  }
  .sec-light .wcard-cat { color: #f3f3f0; }
  .sec-light .wcard-media { background: #101216; }
  /* fine grain over the light ground (zalehy noise-bg): grayscale fractal noise, multiplied down */
  .sec-light { position: relative; }
  .sec-light::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  .sec-light > * { position: relative; z-index: 1; }

  /* ---------- Our work (grid) ---------- */
  .works {
    position: relative; z-index: 3; background: var(--bg);
    padding: clamp(72px,11vh,140px) max(clamp(22px,4vw,56px), calc((100% - 1500px) / 2 + clamp(22px,4vw,56px))) clamp(80px,12vh,160px);
  }
  .works-grid, .works-head { max-width: 1500px; margin-left: auto; margin-right: auto; }
  .works-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: clamp(34px,5vh,58px); gap: 20px; flex-wrap: wrap;
  }
  .works-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px,3vw,56px);
  }
  /* work-card mockups live in css/mockups.css (shared with the case-study pages) */
  /* one number per card, zalehy-style, in the title row */
  .works .wcard-top { align-items: center; }
  .wcard-go.btn-solid { margin-left: auto; padding: 9px 9px 9px 20px; font-size: 14px; gap: 12px; font-family: var(--sans); letter-spacing: 0.01em; color: var(--hot-ink); }
  .wcard-go.btn-solid::after { width: 26px; height: 26px; background-size: 11px; }
  .wcard:hover .wcard-go.btn-solid { color: var(--hot-ink); }
  @media (max-width: 480px) {
    .wcard-go.btn-solid { margin-left: 0; }
  }

  /* ---------- Why Slidey + who (manifesto) ---------- */
  .why {
    position: relative; z-index: 3; background: var(--bg);
    padding: clamp(48px,7vh,100px) max(clamp(22px,4vw,56px), calc((100% - 1500px) / 2 + clamp(22px,4vw,56px))) clamp(80px,12vh,160px);
  }
  .why-head { margin-bottom: clamp(8px,2vh,24px); }
  .why-item {
    display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
    gap: clamp(20px,4vw,72px); align-items: start;
    padding: clamp(40px,7vh,86px) 0; border-top: 1px solid var(--line);
  }
  /* scroll-scrubbed fill: outlined → solid as it rises through the viewport */
  .stmt {
    font-size: clamp(34px,5.4vw,76px); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98;
    -webkit-text-stroke: 1.2px rgba(243,243,240,0.42);
    color: transparent;
    background-image: linear-gradient(90deg, var(--ink), var(--ink) var(--p,0%), transparent var(--p,0%));
    -webkit-background-clip: text; background-clip: text;
  }
  .exp {
    color: var(--dim); font-size: clamp(15px,1.25vw,18px); line-height: 1.6; max-width: 42ch;
    padding-top: clamp(6px,1.4vw,18px);
    opacity: 0.16; transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.16,.84,.34,1);
  }
  .why-item.lit .exp { opacity: 1; transform: none; }

  .who {
    border-top: 1px solid var(--line); margin-top: clamp(24px,5vh,64px);
    padding-top: clamp(50px,8vh,110px);
    display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(30px,5vw,84px); align-items: stretch;
  }
  .who-kbd {
    position: relative; width: 100%;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(12px);
    transition: opacity 1s ease 0.15s, transform 1s cubic-bezier(.16,.84,.34,1) 0.15s;
  }
  .who.in .who-kbd { opacity: 1; transform: none; }
  .cli {
    flex: 1 1 auto;
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: linear-gradient(180deg, #10131a, #0a0c10);
    box-shadow: 0 44px 100px -28px rgba(0,0,0,0.7), 0 0 70px -34px rgba(var(--accent-rgb),0.5);
    display: flex; flex-direction: column;
  }
  .cli-bar { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.018); }
  .cli-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
  .cli-bar i:nth-child(1) { background: #ff5f57; }
  .cli-bar i:nth-child(2) { background: #febc2e; }
  .cli-bar i:nth-child(3) { background: #28c840; }
  .cli-title { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: 0.04em; }
  .cli-body { padding: 24px 24px 26px; flex: 1 1 auto; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
  .cli-lines { display: flex; flex-direction: column; gap: 3px; }
  .cli-line { font-family: var(--mono); font-size: clamp(13px,1.05vw,15px); line-height: 1.85; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
  .cli-line .pr-dir { color: var(--dim); }
  .cli-line .pr-arrow { color: var(--accent); margin: 0 7px 0 3px; }
  .cli-line .cmd { color: var(--ink); font-weight: 500; }
  .cli-line .flag { color: var(--accent); }
  .cli-line .arg { color: #aeb2ba; }
  .cli-line.mut { color: var(--dim); }
  .cli-line.ok { color: #5bbd6e; }
  .cli-cursor { display: inline-block; width: 9px; height: 1.02em; background: var(--accent); vertical-align: -2px; margin-left: 3px; border-radius: 1px; }
  .cli-cursor.blink { animation: cliblink 1.05s steps(1) infinite; }
  @keyframes cliblink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }
  .who-stmt {
    font-size: clamp(30px,4.4vw,60px); font-weight: 800; letter-spacing: -0.028em; line-height: 1.02;
    max-width: 22ch; margin-top: clamp(20px,3vh,34px);
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.85s cubic-bezier(.16,.84,.34,1);
  }
  .who-stmt .accent { color: inherit; -webkit-text-stroke: 0; background: none; -webkit-background-clip: initial; }
  .who.in .who-stmt { opacity: 1; transform: none; }
  .who-note {
    margin-top: clamp(22px,3vw,34px); color: var(--dim);
    font-size: clamp(15px,1.4vw,19px); line-height: 1.62; max-width: 54ch;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.8s ease 0.1s, transform 0.85s cubic-bezier(.16,.84,.34,1) 0.1s;
  }
  .who.in .who-note { opacity: 1; transform: none; }
  .who-sign {
    margin-top: clamp(30px,4vw,48px); display: flex; flex-direction: column; gap: 7px;
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.9s ease 0.24s, transform 1s cubic-bezier(.16,.84,.34,1) 0.24s;
  }
  .who.in .who-sign { opacity: 1; transform: none; }
  .sign-name { font-size: clamp(22px,2.4vw,32px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
  .sign-role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
  .sign-links { display: flex; gap: 14px; margin-top: 6px; }
  .sign-links a { color: var(--dim); display: inline-flex; transition: color 0.25s ease; }
  .sign-links a:hover { color: var(--ink); }
  .sign-links svg { width: 18px; height: 18px; fill: currentColor; }
  .who .cta-row {
    margin-top: clamp(32px,4vw,46px);
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.9s ease 0.34s, transform 1s cubic-bezier(.16,.84,.34,1) 0.34s;
  }
  .who.in .cta-row { opacity: 1; transform: none; }

  /* big S/ mark next to the about text, outline only: the S traces itself,
     the slash follows in green, then a short green light runs along the S */
  .who-mark {
    position: relative; align-self: center; justify-self: center;
    width: min(100%, 420px); aspect-ratio: 1; perspective: 900px;
  }
  .who-mark::before {
    content: ""; position: absolute; inset: 8%; border-radius: 50%;
    background: radial-gradient(circle at 62% 50%, rgba(var(--accent-rgb),0.16), transparent 62%);
    filter: blur(28px); opacity: 0; transition: opacity 1.4s ease 1.2s;
  }
  .who.in .who-mark::before { opacity: 1; animation: wmglow 6s ease-in-out 2.6s infinite; }
  .wm-svg {
    position: relative; display: block; width: 100%; height: 100%; overflow: visible;
    transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
    transition: transform 0.7s cubic-bezier(.16,.84,.34,1);
  }
  .wm-s, .wm-slash, .wm-run { fill: none; stroke-width: 0.5; stroke-linejoin: round; stroke-linecap: round; }
  /* dash a bit longer than the path so start and end overlap, no seam at the S's bottom */
  .wm-s { stroke: var(--ink); stroke-dasharray: 1.05 1.05; stroke-dashoffset: 1.05; }
  .who.in .wm-s { animation: wmdraw 1.8s cubic-bezier(.65,0,.35,1) 0.2s forwards; }
  .wm-slash { stroke: var(--accent); stroke-dasharray: 1.05 1.05; stroke-dashoffset: 1.05; }
  .who.in .wm-slash { animation: wmdraw 0.8s cubic-bezier(.65,0,.35,1) 1.6s forwards; }
  .wm-run { stroke: var(--accent); stroke-width: 1.1; stroke-dasharray: 0 1; opacity: 0; }
  .wm-run-core { stroke: #eafff0; stroke-width: 0.35; }
  .who.in .wm-run { animation: wmrun 11s linear 2.8s infinite, wmneon 11s linear 2.8s infinite; }
  @keyframes wmdraw { to { stroke-dashoffset: 0; } }
  /* neon light: flickers on like a tube while its tail grows out, glides
     along the S (eases in and out), then shrinks to a point and dims away.
     Movement and look are separate animations so each keeps its own easing */
  @keyframes wmrun {
    0%   { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.45,0,.25,1); }
    48%, 100% { stroke-dashoffset: -1; }
  }
  @keyframes wmneon {
    0%   { opacity: 0;    stroke-dasharray: 0 1; }
    3%   { opacity: 0.7; }
    4.5% { opacity: 0.2; }
    7%   { opacity: 0.9; }
    8%   { opacity: 0.55; }
    12%  { opacity: 1;    stroke-dasharray: 0.1 0.9; }
    36%  { opacity: 1;    stroke-dasharray: 0.1 0.9; }
    48%, 100% { opacity: 0; stroke-dasharray: 0 1; }
  }
  @keyframes wmglow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
  @media (prefers-reduced-motion: reduce) {
    .who-mark::before { opacity: 1; transition: none; animation: none !important; }
    .wm-s, .wm-slash { stroke-dashoffset: 0; animation: none !important; }
    .wm-run { display: none; }
    .wm-svg { transform: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .stmt { background-image: linear-gradient(90deg, var(--ink), var(--ink)); -webkit-text-stroke-color: var(--ink); }
    .exp, .who-stmt, .who-note, .who-sign, .who .cta-row { opacity: 1 !important; transform: none !important; }
  }

  @media (max-width: 860px) {
    .availability { display: none; }
    .nav-burger { display: inline-flex; }
    .btn-pill { min-height: 44px; }
    .nav-mid {
      display: none;
      position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; gap: 0;
      background: rgba(8,9,11,0.96);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
      padding: 6px 0 10px;
    }
    #nav.inv .nav-mid { background: rgba(243,243,240,0.97); }
    #nav.menu-open .nav-mid { display: flex; }
    .nav-mid a { padding: 14px clamp(22px,5vw,40px); font-size: 15px; }
    .nav-mid .nav-contact { display: block; }
    #nav .btn-pill { display: none; }
    .veil { background: linear-gradient(0deg, rgba(8,9,11,0.94) 0%, rgba(8,9,11,0.55) 40%, rgba(8,9,11,0.35) 62%, rgba(8,9,11,0.65) 100%); }
    /* two full-screen blend layers over the WebGL frame are too expensive on
       mid-range phones — drop them; the plain-alpha veil stays */
    .grain, .bg-tint { display: none; }
    h1 { max-width: 100%; }
    .subtext { color: #c9cbcf; text-shadow: 0 1px 14px rgba(8,9,11,0.85), 0 0 30px rgba(8,9,11,0.6); }
    .work { height: auto; }
    .work-sticky { position: static; height: auto; overflow: visible; }
    .work-track { flex-direction: column; width: auto; gap: 56px; padding: 36px clamp(22px,5vw,40px); transform: none !important; }
    .panel { flex: none; grid-template-columns: 1fr; gap: 24px; }
    /* Stacked panels: the desktop focus dimming reads as "disabled" here, and
       whenever the gap between two panels sits mid-screen every step went grey.
       Keep text and mock fully visible; .active only drives the mock animations. */
    .panel .mock, .panel .panel-text > * { opacity: 1; transform: none; }
    .work-progress { display: none; }
    .works-grid { grid-template-columns: 1fr; }
    .why-item { grid-template-columns: 1fr; gap: 16px; }
    .who { grid-template-columns: 1fr; gap: clamp(30px,6vw,48px); }
    .who-kbd { max-width: 560px; }
    .who-mark { width: min(64vw, 260px); justify-self: start; }
    .cli-body { min-height: 260px; }
  }

  /* ============================================================
     NEW SECTIONS — Services · Pricing · FAQ · Closing · Footer
     ============================================================ */

  /* shared scroll-reveal */
  .ru { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.16,.84,.34,1); }
  .ru.in { opacity: 1; transform: none; }
  .sec-eyebrow {
    font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink); display: inline-flex; align-items: center; gap: 10px;
  }

  /* ---------- Services ---------- */
  .services {
    position: relative; z-index: 3; background: var(--bg);
    /* full-bleed background; side padding grows past 1500px so content matches the other capped sections */
    padding: clamp(60px,9vh,128px) max(clamp(22px,4vw,56px), calc((100% - 1500px) / 2 + clamp(22px,4vw,56px)));
  }
  .services-head { margin-bottom: clamp(40px,6vh,72px); }
  .services-head h2 {
    font-size: clamp(30px,4.4vw,62px); font-weight: 800; letter-spacing: -0.032em;
    line-height: 0.98; margin-top: clamp(18px,2.4vh,26px); max-width: 18ch;
  }
  .services-head h2 .outline { color: transparent; -webkit-text-stroke: 1.3px var(--ink); text-stroke: 1.3px var(--ink); }

  .svc-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  }
  .svc {
    position: relative; display: flex; flex-direction: column; min-height: 290px;
    padding: clamp(26px,2.5vw,40px);
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    transition: background 0.45s ease;
  }
  .svc::after {
    content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s cubic-bezier(.16,.84,.34,1);
  }
  .svc:hover { background: var(--bg-2); }
  .svc:hover::after { transform: scaleX(1); }
  .svc-no { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.12em; }
  .svc h3 { margin-top: clamp(38px,5vw,74px); font-size: clamp(21px,1.85vw,27px); font-weight: 800; letter-spacing: -0.022em; line-height: 1.05; }
  .svc p { margin-top: 13px; color: var(--dim); font-size: 14.5px; line-height: 1.56; flex: 1; }

  /* ---------- Services — interactive index + detail pane ---------- */
  .svc-explorer {
    display: grid; grid-template-columns: minmax(0,0.92fr) minmax(0,1.08fr);
    gap: clamp(28px,4vw,72px); align-items: start;
  }
  .svc-list { position: relative; display: flex; flex-direction: column; }
  .svc-rail {
    position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--accent);
    transform: translateY(0); opacity: 0;
    transition: transform .45s cubic-bezier(.16,.84,.34,1), height .45s cubic-bezier(.16,.84,.34,1), opacity .4s ease;
  }
  .svc-list.ready .svc-rail { opacity: 1; }
  .svc-item {
    position: relative; display: flex; align-items: baseline; gap: clamp(14px,1.4vw,22px);
    background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer;
    text-align: left; width: 100%;
    padding: clamp(15px,1.9vh,23px) 0 clamp(15px,1.9vh,23px) clamp(16px,1.5vw,26px);
  }
  .svc-item:first-of-type { border-top: 1px solid var(--line); }
  /* faint green wash from the rail, fading out to the right, on the active row */
  .svc-item::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(var(--accent-rgb),0.11), rgba(var(--accent-rgb),0.035) 38%, rgba(var(--accent-rgb),0) 72%);
    opacity: 0; transition: opacity .45s ease;
  }
  .svc-item.active::before, .svc-item:hover::before { opacity: 1; }
  .svc-name {
    font-size: clamp(21px,2.7vw,40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02;
    color: transparent; -webkit-text-stroke: 1.1px var(--line-strong);
    background-image: linear-gradient(90deg, var(--ink), var(--ink));
    background-repeat: no-repeat; background-size: 0% 100%;
    -webkit-background-clip: text; background-clip: text;
    transition: background-size .5s cubic-bezier(.16,.84,.34,1), -webkit-text-stroke-color .4s ease;
  }
  .svc-item.active .svc-name, .svc-item:hover .svc-name {
    background-size: 100% 100%; -webkit-text-stroke-color: transparent;
  }

  .svc-stage { position: relative; display: grid; min-height: clamp(430px,56vh,580px); }
  .svc-card {
    grid-area: 1 / 1; display: flex; flex-direction: column; gap: clamp(18px,2vw,26px);
    opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none;
    transition: opacity .5s ease, transform .6s cubic-bezier(.16,.84,.34,1), visibility .5s ease, gap .55s cubic-bezier(.16,.84,.34,1);
  }
  .svc-card.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .svc-motif {
    position: relative; flex: 1; min-height: 200px; max-height: clamp(260px,44vh,420px); overflow: hidden;
    border: 1px solid var(--line); border-radius: 16px;
    background: linear-gradient(180deg,#0f1116,#0a0b0e);
    box-shadow: 0 40px 90px -50px rgba(0,0,0,.7);
    display: flex; align-items: center; justify-content: center; gap: clamp(14px,2vw,22px);
    padding: clamp(22px,3vw,40px);
  }
  .svc-copy h3 { font-size: clamp(22px,2.2vw,32px); font-weight: 800; letter-spacing: -0.02em; }
  .svc-copy p { margin-top: 12px; color: var(--dim); font-size: clamp(15px,1.2vw,17px); line-height: 1.6; max-width: 62ch; }
  .svc-more { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); text-decoration: none; }
  .svc-more:hover { text-decoration: underline; }

  /* long copy: everything past the first paragraph collapses behind a toggle,
     so every card sits at roughly the same height and the stage stays compact */
  .svc-extra { display: grid; grid-template-rows: 1fr; }
  .svc-extra-in { overflow: hidden; min-height: 0; }
  .svc-copy.collapsible .svc-extra {
    grid-template-rows: 0fr; opacity: 0;
    transition: grid-template-rows .5s cubic-bezier(.16,.84,.34,1), opacity .35s ease;
  }
  .svc-copy.collapsible.open .svc-extra { grid-template-rows: 1fr; opacity: 1; }
  .svc-toggle {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 16px;
    background: none; border: 0; padding: 0; cursor: pointer;
    font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--accent);
  }
  .svc-toggle .ic {
    position: relative; flex: none; width: 15px; height: 15px;
    border: 1px solid currentColor; border-radius: 4px;
  }
  .svc-toggle .ic::before, .svc-toggle .ic::after {
    content: ""; position: absolute; left: 50%; top: 50%; background: currentColor;
    transform: translate(-50%,-50%);
    transition: transform .4s cubic-bezier(.16,.84,.34,1), opacity .25s ease;
  }
  .svc-toggle .ic::before { width: 7px; height: 1px; }
  .svc-toggle .ic::after { width: 1px; height: 7px; }
  .svc-copy.open .svc-toggle .ic::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }
  .svc-toggle:hover .tx, .svc-toggle:focus-visible .tx { text-decoration: underline; }

  /* opening a card folds the mockup panel away, so the extra copy moves into the
     space it leaves and the stage never has to grow */
  @media (min-width: 901px) {
    .svc-motif {
      transition: max-height .55s cubic-bezier(.16,.84,.34,1),
                  min-height .55s cubic-bezier(.16,.84,.34,1),
                  padding .55s cubic-bezier(.16,.84,.34,1),
                  border-width .55s cubic-bezier(.16,.84,.34,1), opacity .35s ease;
    }
    .svc-card.open { gap: 0; justify-content: center; }
    /* min-height beats max-height, and a border-box floor keeps padding and
       border, so every one of them has to go to zero for the panel to vanish */
    .svc-card.open .svc-motif {
      max-height: 0; min-height: 0; opacity: 0;
      padding-top: 0; padding-bottom: 0; border-top-width: 0; border-bottom-width: 0;
    }
    .svc-card.open .svc-motif * { animation-play-state: paused; }
    .svc-copy p { transition: font-size .45s cubic-bezier(.16,.84,.34,1); }
    .svc-copy.open p { font-size: clamp(16px,1.35vw,19px); }
  }

  /* shared motif keyframes */
  @keyframes mmappear { to { opacity: 1; transform: none; } }
  @keyframes mmpop { to { transform: scale(1); } }
  @keyframes mmfade { to { opacity: 1; } }
  @keyframes mmdraw { to { stroke-dashoffset: 0; } }

  /* motif — web (product dashboard) */
  .m-web { align-items: stretch; padding: clamp(16px,2.2vw,28px); }
  .m-web .mm-win { width: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(243,243,240,.02); }
  .m-web .mm-top { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
  .m-web .mm-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
  .m-web .mm-top i:nth-child(1) { background: #ff5f57; }
  .m-web .mm-top i:nth-child(2) { background: #febc2e; }
  .m-web .mm-top i:nth-child(3) { background: #28c840; }
  .m-web .mm-url { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: var(--dim); }
  .m-web .mm-app { display: flex; min-height: 152px; }
  .m-web .mm-side { flex: none; width: 48px; border-right: 1px solid var(--line); padding: 13px 11px; display: flex; flex-direction: column; gap: 9px; }
  .m-web .mm-logo { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); }
  .m-web .mm-nav { height: 8px; border-radius: 4px; background: rgba(243,243,240,.1); }
  .m-web .mm-nav.on { background: rgba(var(--accent-rgb),.65); }
  .m-web .mm-main { flex: 1; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
  .m-web .mm-tiles { display: flex; gap: 10px; }
  .m-web .mm-tile { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; opacity: 0; transform: translateY(8px); }
  .m-web .mm-tile b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
  .m-web .mm-tile em { display: block; margin-top: 5px; height: 5px; width: 70%; border-radius: 3px; background: rgba(243,243,240,.14); }
  .m-web .mm-graph { flex: 1; min-height: 54px; }
  .m-web .mm-graph svg { width: 100%; height: 100%; }
  .m-web .mm-graph .area { fill: rgba(var(--accent-rgb),.14); stroke: none; opacity: 0; }
  .m-web .mm-graph .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .m-web .mm-rows { display: flex; flex-direction: column; gap: 7px; }
  .m-web .mm-rows span { height: 8px; border-radius: 4px; background: rgba(243,243,240,.08); }
  .svc-card.active .m-web .mm-tile { animation: mmappear .5s forwards; }
  .svc-card.active .m-web .mm-tile:nth-child(2) { animation-delay: .1s; }
  .svc-card.active .m-web .mm-tile:nth-child(3) { animation-delay: .2s; }
  .svc-card.active .m-web .mm-graph .area { animation: mmfade .8s .5s forwards; }
  .svc-card.active .m-web .mm-graph .line { animation: mmdraw 1.3s .3s cubic-bezier(.5,0,.2,1) forwards; }

  /* motif — mobile (app screen, auto-switching tabs) */
  .m-mobile { padding: clamp(12px,1.6vw,20px); }
  .m-mobile .mm-phone {
    position: relative; height: min(400px, 100%); aspect-ratio: 9/18.5; max-width: 100%;
    border: 1.5px solid var(--line-strong); border-radius: 22px; overflow: hidden;
    display: flex; flex-direction: column; background: rgba(243,243,240,.02);
  }
  .m-mobile .mm-statusbar { flex: none; height: 20px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
  .m-mobile .mm-time { width: 22px; height: 5px; border-radius: 3px; background: rgba(243,243,240,.3); }
  .m-mobile .mm-sig { display: flex; gap: 3px; align-items: center; }
  .m-mobile .mm-sig i { width: 5px; height: 5px; border-radius: 1px; background: rgba(243,243,240,.3); }
  .m-mobile .mm-sig i:last-child { width: 12px; border-radius: 2px; }
  .m-mobile .mm-screen { position: relative; flex: 1; min-height: 0; }
  .m-mobile .mm-view { position: absolute; inset: 0; padding: 12px 13px; display: flex; flex-direction: column; gap: 10px; opacity: 0; overflow: hidden; }
  .m-mobile .mm-av { width: 22px; height: 22px; border-radius: 50%; background: rgba(var(--accent-rgb),.6); flex: none; }
  .m-mobile .mm-vhead { width: 42%; height: 12px; border-radius: 5px; background: rgba(243,243,240,.2); }

  /* home */
  .m-mobile .mm-vtop { display: flex; align-items: center; justify-content: space-between; }
  .m-mobile .mm-hello { display: flex; flex-direction: column; gap: 5px; }
  .m-mobile .mm-hello span { width: 60px; height: 9px; border-radius: 4px; background: rgba(243,243,240,.2); }
  .m-mobile .mm-hello span.s { width: 38px; height: 7px; background: rgba(243,243,240,.1); }
  .m-mobile .mm-search { display: flex; align-items: center; gap: 8px; height: 26px; border-radius: 8px; background: rgba(243,243,240,.07); border: 1px solid var(--line); padding: 0 9px; }
  .m-mobile .mm-search i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--dim); flex: none; }
  .m-mobile .mm-search span { flex: 1; height: 6px; border-radius: 3px; background: rgba(243,243,240,.1); }
  .m-mobile .mm-banner { position: relative; height: 58px; border-radius: 10px; background: linear-gradient(120deg, rgba(var(--accent-rgb),.55), rgba(var(--accent-rgb),.12)); }
  .m-mobile .mm-play { position: absolute; left: 12px; bottom: 10px; width: 20px; height: 20px; border-radius: 50%; background: rgba(243,243,240,.85); }
  .m-mobile .mm-sec { display: flex; align-items: center; justify-content: space-between; }
  .m-mobile .mm-seclbl { width: 44px; height: 9px; border-radius: 4px; background: rgba(243,243,240,.2); }
  .m-mobile .mm-seeall { width: 26px; height: 7px; border-radius: 4px; background: var(--accent); opacity: .7; }
  .m-mobile .mm-hcards { display: flex; gap: 9px; }
  .m-mobile .mm-hcard { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
  .m-mobile .mm-thumb { height: 38px; border-radius: 6px; background: rgba(var(--accent-rgb),.25); }
  .m-mobile .mm-tl { height: 7px; border-radius: 4px; background: rgba(243,243,240,.16); }
  .m-mobile .mm-tl.s { width: 60%; background: rgba(243,243,240,.09); }

  /* list */
  .m-mobile .v-list { gap: 9px; }
  .m-mobile .mm-litem { display: flex; align-items: center; gap: 10px; }
  .m-mobile .mm-ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(243,243,240,.1); flex: none; }
  .m-mobile .mm-lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
  .m-mobile .mm-lt span { height: 8px; border-radius: 4px; background: rgba(243,243,240,.16); }
  .m-mobile .mm-lt span.s { width: 66%; height: 6px; background: rgba(243,243,240,.09); }
  .m-mobile .mm-lmeta { width: 16px; height: 6px; border-radius: 3px; background: rgba(243,243,240,.1); flex: none; }

  /* chart */
  .m-mobile .mm-kpi2 { display: flex; align-items: baseline; gap: 8px; }
  .m-mobile .mm-big { width: 62px; height: 18px; border-radius: 5px; background: rgba(243,243,240,.22); }
  .m-mobile .mm-delta { width: 30px; height: 9px; border-radius: 4px; background: rgba(84,197,105,.6); }
  .m-mobile .mm-plot { position: relative; flex: 1; margin-top: 2px; }
  .m-mobile .mm-grid { position: absolute; left: 0; right: 0; height: 1px; background: rgba(243,243,240,.07); }
  .m-mobile .mm-grid:nth-of-type(1) { top: 22%; }
  .m-mobile .mm-grid:nth-of-type(2) { top: 52%; }
  .m-mobile .mm-grid:nth-of-type(3) { top: 82%; }
  .m-mobile .mm-pbars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 6px; }
  .m-mobile .mm-pbars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(var(--accent-rgb),.55); height: calc(var(--h,.6) * 100%); }
  .m-mobile .mm-legend { display: flex; gap: 10px; }
  .m-mobile .mm-legend span { width: 40px; height: 6px; border-radius: 3px; background: rgba(243,243,240,.12); }
  .m-mobile .mm-legend span.s { width: 28px; }

  /* profile */
  .m-mobile .v-profile { align-items: center; padding-top: 16px; gap: 9px; }
  .m-mobile .mm-pav { width: 50px; height: 50px; border-radius: 50%; background: rgba(var(--accent-rgb),.6); }
  .m-mobile .mm-pl { height: 9px; border-radius: 5px; background: rgba(243,243,240,.16); }
  .m-mobile .mm-pl.s { background: rgba(243,243,240,.09); }
  .m-mobile .mm-stats3 { display: flex; gap: 8px; width: 100%; margin-top: 4px; }
  .m-mobile .mm-stats3 > div { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
  .m-mobile .mm-stats3 b { width: 22px; height: 11px; border-radius: 3px; background: rgba(243,243,240,.2); }
  .m-mobile .mm-stats3 em { width: 30px; height: 6px; border-radius: 3px; background: rgba(243,243,240,.09); }
  .m-mobile .mm-setrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 0; border-top: 1px solid var(--line); }
  .m-mobile .mm-sic { width: 18px; height: 18px; border-radius: 5px; background: rgba(243,243,240,.12); flex: none; }
  .m-mobile .mm-slbl { flex: 1; height: 8px; border-radius: 4px; background: rgba(243,243,240,.14); }
  .m-mobile .mm-chev { width: 6px; height: 6px; border-right: 1.5px solid var(--dim); border-top: 1.5px solid var(--dim); transform: rotate(45deg); flex: none; }
  .m-mobile .mm-toggle2 { position: relative; width: 26px; height: 15px; border-radius: 100px; background: var(--accent); flex: none; }
  .m-mobile .mm-toggle2 b { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }

  /* tabbar */
  .m-mobile .mm-tabbar { position: relative; flex: none; height: 36px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-around; }
  .m-mobile .mm-tabbar i { width: 15px; height: 15px; border-radius: 4px; background: rgba(243,243,240,.16); }
  /* full-width carrier: translateX(%) of own width == % of the tabbar, so the
     indicator moves between tab slots on the compositor (no `left` layout work) */
  .m-mobile .mm-ind { position: absolute; bottom: 5px; left: 0; width: 100%; height: 3px; pointer-events: none; transform: translateX(12.5%); }
  .m-mobile .mm-ind::before {
    content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 3px;
    border-radius: 2px; background: var(--accent); transform: translateX(-50%);
  }
  .svc-card.active .m-mobile .mm-view { animation: mmcycle 6s ease-in-out infinite; }
  .svc-card.active .m-mobile .v-list { animation-delay: 1.5s; }
  .svc-card.active .m-mobile .v-chart { animation-delay: 3s; }
  .svc-card.active .m-mobile .v-profile { animation-delay: 4.5s; }
  .svc-card.active .m-mobile .mm-ind { animation: mmtab 6s ease-in-out infinite; }
  .svc-card.active .m-mobile .mm-tabbar i { animation: mmtabhi 6s ease-in-out infinite; }
  .svc-card.active .m-mobile .mm-tabbar i:nth-child(2) { animation-delay: 1.5s; }
  .svc-card.active .m-mobile .mm-tabbar i:nth-child(3) { animation-delay: 3s; }
  .svc-card.active .m-mobile .mm-tabbar i:nth-child(4) { animation-delay: 4.5s; }
  @keyframes mmcycle { 0% { opacity: 0; } 3%,22% { opacity: 1; } 27%,100% { opacity: 0; } }
  @keyframes mmtab { 0%,17% { transform: translateX(12.5%); } 25%,42% { transform: translateX(37.5%); } 50%,67% { transform: translateX(62.5%); } 75%,92% { transform: translateX(87.5%); } 100% { transform: translateX(12.5%); } }
  @keyframes mmtabhi { 0% { background: rgba(243,243,240,.16); } 3%,22% { background: rgba(var(--accent-rgb),.9); } 27%,100% { background: rgba(243,243,240,.16); } }

  /* motif — ai (assistant panel: chat + RAG + integrations) */
  .m-ai { align-items: stretch; padding: clamp(18px,2.4vw,30px); }
  .m-ai .mm-ai { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; }
  .m-ai .mm-aihead { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .m-ai .mm-sp { width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb),.5); }
  .m-ai .mm-aititle { width: 92px; height: 9px; border-radius: 4px; background: rgba(243,243,240,.2); }
  .m-ai .mm-aistatus { margin-left: auto; width: 44px; height: 7px; border-radius: 4px; background: rgba(84,197,105,.45); }
  /* bottom-anchored and clipped like a real chat: when the card is short the oldest
     message scrolls up under the header instead of the reply spilling over the input */
  .m-ai .mm-chat {
    flex: 1; min-height: 0; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding-top: 12px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px);
            mask-image: linear-gradient(to bottom, transparent 0, #000 12px);
  }
  .m-ai .mm-chat > * { flex-shrink: 0; }
  .m-ai .mm-msg { display: flex; gap: 10px; }
  .m-ai .mm-msg.user { justify-content: flex-end; }
  .m-ai .mm-bub { width: 55%; max-width: 260px; height: 32px; border-radius: 12px 12px 4px 12px; background: rgba(var(--accent-rgb),.22); border: 1px solid rgba(var(--accent-rgb),.4); opacity: 0; transform: translateY(8px); }
  .m-ai .mm-botav { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--accent); opacity: .85; }
  .m-ai .mm-botbody { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; background: rgba(243,243,240,.03); padding: 12px; display: flex; flex-direction: column; gap: 9px; }
  .m-ai .mm-rl { height: 8px; border-radius: 4px; background: rgba(243,243,240,.16); width: 0; }
  .m-ai .mm-cites { display: flex; gap: 7px; margin-top: 3px; }
  .m-ai .mm-cites span { width: 46px; height: 16px; border-radius: 100px; border: 1px solid var(--line-strong); background: rgba(243,243,240,.03); opacity: 0; }
  /* out of flow: sits where the reply will land, so it leaves no gap once it fades */
  .m-ai .mm-typing { position: absolute; left: 4px; bottom: 10px; display: flex; gap: 5px; opacity: 0; }
  .m-ai .mm-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
  .m-ai .mm-inbar { display: flex; align-items: center; gap: 9px; }
  .m-ai .mm-infield { flex: 1; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(243,243,240,.04); }
  .m-ai .mm-send { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent); }
  .m-ai .mm-tools { display: flex; gap: 9px; }
  .m-ai .mm-tools span { flex: 1; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: rgba(243,243,240,.05); }
  .svc-card.active .m-ai .mm-sp { animation: mmspark 2.2s ease-in-out infinite; }
  .svc-card.active .m-ai .mm-aistatus { animation: mmblink 2.6s ease-in-out infinite; }
  .svc-card.active .m-ai .mm-bub { animation: mmappear .5s .3s forwards; }
  .svc-card.active .m-ai .mm-typing { animation: mmtyp 1.4s .6s forwards; }
  .svc-card.active .m-ai .mm-typing i { animation: mmdots 1s ease-in-out infinite; }
  .svc-card.active .m-ai .mm-typing i:nth-child(2) { animation-delay: .15s; }
  .svc-card.active .m-ai .mm-typing i:nth-child(3) { animation-delay: .3s; }
  /* the reply takes no room until it arrives, then grows and pushes the question up */
  .m-ai .mm-msg.bot { max-height: 0; overflow: hidden; }
  .svc-card.active .m-ai .mm-msg.bot { opacity: 0; animation: mmreply .7s cubic-bezier(.4,0,.2,1) 2s forwards; }
  .svc-card.active .m-ai .mm-rl { animation: mmstream .55s cubic-bezier(.4,0,.2,1) forwards; }
  .svc-card.active .m-ai .mm-rl:nth-child(1) { animation-delay: 2.2s; }
  .svc-card.active .m-ai .mm-rl:nth-child(2) { animation-delay: 2.55s; }
  .svc-card.active .m-ai .mm-rl:nth-child(3) { animation-delay: 2.9s; }
  .svc-card.active .m-ai .mm-cites span { animation: mmappear .4s forwards; }
  .svc-card.active .m-ai .mm-cites span:nth-child(1) { animation-delay: 3.3s; }
  .svc-card.active .m-ai .mm-cites span:nth-child(2) { animation-delay: 3.42s; }
  .svc-card.active .m-ai .mm-tools span { animation: mmlight .5s forwards; }
  .svc-card.active .m-ai .mm-tools span:nth-child(1) { animation-delay: 3.7s; }
  .svc-card.active .m-ai .mm-tools span:nth-child(2) { animation-delay: 3.83s; }
  .svc-card.active .m-ai .mm-tools span:nth-child(3) { animation-delay: 3.96s; }
  .svc-card.active .m-ai .mm-tools span:nth-child(4) { animation-delay: 4.09s; }
  .svc-card.active .m-ai .mm-tools span:nth-child(5) { animation-delay: 4.22s; }
  @keyframes mmstream { to { width: var(--w,90%); } }
  @keyframes mmlight { to { border-color: rgba(var(--accent-rgb),.7); background: rgba(var(--accent-rgb),.18); } }
  /* static shadow on the element; the pulse is transform+opacity only */
  @keyframes mmspark { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .72; } }
  @keyframes mmreply { to { opacity: 1; max-height: 180px; } }
  @keyframes mmtyp { 0% { opacity: 0; } 15%,80% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes mmdots { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

  /* motif — architecture & audits (audit report UI) */
  .m-arch { align-items: stretch; padding: clamp(16px,2.2vw,28px); }
  .m-arch .aw {
    width: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #10131a, #0a0c10);
    box-shadow: 0 34px 80px -30px rgba(0,0,0,.7), 0 0 60px -30px rgba(var(--accent-rgb),.4);
  }
  .m-arch .aw-top { flex: none; display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
  .m-arch .aw-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
  .m-arch .aw-top i:nth-child(1) { background: #ff5f57; }
  .m-arch .aw-top i:nth-child(2) { background: #febc2e; }
  .m-arch .aw-top i:nth-child(3) { background: #28c840; }
  .m-arch .aw-url { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: var(--dim); }
  .m-arch .aw-status { position: relative; margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
  .m-arch .aw-live { color: var(--accent); }
  .m-arch .aw-done { position: absolute; right: 0; top: 0; color: #54c569; white-space: nowrap; opacity: 0; }
  .svc-card.active .m-arch .aw-live { animation: mmblink 1.25s ease-in-out 3, mmout .3s 3.85s forwards; }
  .svc-card.active .m-arch .aw-done { animation: mmfade .35s 4.05s forwards; }
  @keyframes mmout { to { opacity: 0; } }
  .m-arch .aw-scan { height: 2px; background: rgba(243,243,240,.07); }
  .m-arch .aw-scan i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
  .svc-card.active .m-arch .aw-scan i { animation: fillbar 3.4s .2s cubic-bezier(.4,0,.3,1) forwards; }
  .m-arch .aw-body { flex: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(14px,1.6vw,22px); padding: clamp(14px,1.6vw,22px); min-height: 170px; }
  .m-arch .aw-checks { display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; }
  .m-arch .aw-chead { display: flex; align-items: center; justify-content: space-between; padding-bottom: 4px; opacity: 0; transform: translateY(8px); }
  .m-arch .aw-chead .t { width: 38%; height: 9px; border-radius: 4px; background: rgba(243,243,240,.18); }
  .m-arch .aw-chead .chip { font-family: var(--mono); font-size: 10px; color: var(--dim); padding: 3px 9px; border: 1px solid var(--line); border-radius: 100px; }
  .svc-card.active .m-arch .aw-chead { animation: mmappear .5s .1s forwards; }
  .m-arch .aw-lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
  .m-arch .aw-lt .sub { height: 6px; border-radius: 3px; background: rgba(243,243,240,.07); }
  .m-arch .aw-chk { display: flex; align-items: center; gap: 11px; opacity: 0; transform: translateY(8px); }
  .m-arch .aw-chk .box { position: relative; width: 17px; height: 17px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 5px; }
  .m-arch .aw-chk .box::after {
    content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
    border: solid #0b0c0e; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  }
  .m-arch .aw-chk .lbl { height: 8px; border-radius: 4px; background: rgba(243,243,240,.12); }
  .m-arch .aw-chk .pill { margin-left: auto; width: 34px; height: 14px; border-radius: 100px; flex: none; }
  .m-arch .aw-chk .pill.ok { background: rgba(84,197,105,.22); border: 1px solid rgba(84,197,105,.45); }
  .m-arch .aw-chk .pill.wa { background: rgba(254,188,46,.18); border: 1px solid rgba(254,188,46,.45); }
  .svc-card.active .m-arch .aw-chk { animation: mmappear .6s forwards; }
  .svc-card.active .m-arch .aw-chk:nth-child(2) { animation-delay: .25s; }
  .svc-card.active .m-arch .aw-chk:nth-child(3) { animation-delay: .5s; }
  .svc-card.active .m-arch .aw-chk:nth-child(4) { animation-delay: .75s; }
  .svc-card.active .m-arch .aw-chk:nth-child(5) { animation-delay: 1.0s; }
  .svc-card.active .m-arch .aw-chk:nth-child(6) { animation-delay: 1.25s; }
  .svc-card.active .m-arch .aw-chk .box { animation: awtick .6s cubic-bezier(.5,1.6,.5,1) forwards; }
  .svc-card.active .m-arch .aw-chk .box::after { animation: awmark .55s forwards; }
  .svc-card.active .m-arch .aw-chk:nth-child(2) .box, .svc-card.active .m-arch .aw-chk:nth-child(2) .box::after { animation-delay: 1.7s; }
  .svc-card.active .m-arch .aw-chk:nth-child(3) .box, .svc-card.active .m-arch .aw-chk:nth-child(3) .box::after { animation-delay: 2.15s; }
  .svc-card.active .m-arch .aw-chk:nth-child(4) .box, .svc-card.active .m-arch .aw-chk:nth-child(4) .box::after { animation-delay: 2.6s; }
  .svc-card.active .m-arch .aw-chk:nth-child(5) .box, .svc-card.active .m-arch .aw-chk:nth-child(5) .box::after { animation-delay: 3.05s; }
  .svc-card.active .m-arch .aw-chk:nth-child(6) .box, .svc-card.active .m-arch .aw-chk:nth-child(6) .box::after { animation-delay: 3.5s; }
  .svc-card.active .m-arch .aw-chk.warn .box { animation-name: awtickwa; }
  @keyframes awtick {
    0% { transform: scale(1); }
    55% { transform: scale(1.2); border-color: #54c569; background: #54c569; }
    100% { transform: scale(1); border-color: #54c569; background: #54c569; }
  }
  @keyframes awtickwa {
    0% { transform: scale(1); }
    55% { transform: scale(1.2); border-color: #febc2e; background: #febc2e; }
    100% { transform: scale(1); border-color: #febc2e; background: #febc2e; }
  }
  @keyframes awmark { 0% { transform: rotate(45deg) scale(0); } 100% { transform: rotate(45deg) scale(1); } }
  .m-arch .aw-side { display: flex; flex-direction: column; gap: 14px; justify-content: center; border-left: 1px solid var(--line); padding-left: clamp(14px,1.6vw,22px); min-width: 0; }
  .m-arch .aw-score { display: flex; align-items: baseline; gap: 7px; opacity: 0; transform: translateY(8px); }
  .m-arch .aw-score b { font-size: clamp(32px,3.2vw,44px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
  .m-arch .aw-score .of { font-family: var(--mono); font-size: 11px; color: var(--dim); }
  .m-arch .aw-score .delta { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #54c569; opacity: 0; transform: scale(.5); }
  .svc-card.active .m-arch .aw-score { animation: mmappear .7s 1.9s forwards; }
  .svc-card.active .m-arch .aw-score .delta { animation: awdelta .45s 3.4s cubic-bezier(.5,1.7,.5,1) forwards; }
  @keyframes awdelta { to { opacity: 1; transform: scale(1); } }
  /* flagged check flashes to draw the eye */
  .svc-card.active .m-arch .aw-chk.warn .box { box-shadow: 0 0 0 0 rgba(254,188,46,0); }
  .svc-card.active .m-arch .aw-chk.warn { animation: mmappear .6s .75s forwards, awwglow 1s 3.3s ease-in-out 2; }
  @keyframes awwglow { 50% { transform: translateX(3px); } }
  .m-arch .aw-cov { display: flex; align-items: center; gap: 10px; font-family: var(--mono); }
  .m-arch .aw-cov .k { width: 38px; flex: none; font-size: 10.5px; color: var(--dim); letter-spacing: .06em; }
  .m-arch .aw-cov b { width: 22px; flex: none; font-size: 10.5px; font-weight: 500; color: var(--ink); text-align: right; }
  .m-arch .aw-cov .bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(243,243,240,.09); overflow: hidden; }
  .m-arch .aw-cov .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); }
  .svc-card.active .m-arch .aw-cov .bar i { animation: mmstream 1s cubic-bezier(.4,0,.2,1) forwards; }
  .svc-card.active .m-arch .aw-cov:nth-child(2) .bar i { animation-delay: 2.5s; }
  .svc-card.active .m-arch .aw-cov:nth-child(3) .bar i { animation-delay: 2.9s; }
  .svc-card.active .m-arch .aw-cov:nth-child(4) .bar i { animation-delay: 3.3s; }
  .m-arch .aw-cov .k, .m-arch .aw-cov b { opacity: 0; }
  .svc-card.active .m-arch .aw-cov .k, .svc-card.active .m-arch .aw-cov b { animation: mmfade .5s forwards; }
  .svc-card.active .m-arch .aw-cov:nth-child(2) .k, .svc-card.active .m-arch .aw-cov:nth-child(2) b { animation-delay: 2.5s; }
  .svc-card.active .m-arch .aw-cov:nth-child(3) .k, .svc-card.active .m-arch .aw-cov:nth-child(3) b { animation-delay: 2.9s; }
  .svc-card.active .m-arch .aw-cov:nth-child(4) .k, .svc-card.active .m-arch .aw-cov:nth-child(4) b { animation-delay: 3.3s; }
  .m-arch .aw-foot {
    padding: 10px 14px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: .04em;
    opacity: 0;
  }
  .svc-card.active .m-arch .aw-foot { animation: mmfade .6s 4.1s forwards; }
  @media (max-width: 1050px) {
    .m-arch .aw-body { grid-template-columns: 1fr; }
    .m-arch .aw-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  }

  /* motif — design systems (design-tool canvas: sketch → build → style) */
  .m-design { align-items: stretch; padding: clamp(16px,2.2vw,28px); }
  .m-design .dz {
    width: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #10131a, #0a0c10);
    box-shadow: 0 34px 80px -30px rgba(0,0,0,.7), 0 0 60px -30px rgba(var(--accent-rgb),.4);
  }
  .m-design .dz-top { flex: none; display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
  .m-design .dz-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
  .m-design .dz-top i:nth-child(1) { background: #ff5f57; }
  .m-design .dz-top i:nth-child(2) { background: #febc2e; }
  .m-design .dz-top i:nth-child(3) { background: #28c840; }
  .m-design .dz-name { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: var(--dim); }
  .m-design .dz-zoom { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--dim); }
  .m-design .dz-body { flex: 1; display: flex; min-height: 190px; }
  /* toolbar */
  .m-design .dz-tools { flex: none; width: 38px; border-right: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .m-design .dz-tools .t { width: 16px; height: 16px; border-radius: 5px; background: rgba(243,243,240,.12); opacity: 0; }
  .m-design .dz-tools .t.on { background: var(--accent); }
  .svc-card.active .m-design .dz-tools .t { animation: mmfade .4s forwards; }
  .svc-card.active .m-design .dz-tools .t:nth-child(2) { animation-delay: .08s; }
  .svc-card.active .m-design .dz-tools .t:nth-child(3) { animation-delay: .16s; }
  .svc-card.active .m-design .dz-tools .t:nth-child(4) { animation-delay: .24s; }
  /* canvas + frame */
  .m-design .dz-canvas {
    position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center;
    background-image: radial-gradient(rgba(243,243,240,.07) 1px, transparent 1px);
    background-size: 14px 14px;
  }
  .m-design .dz-frame { position: relative; width: 74%; aspect-ratio: 220/132; }
  .m-design .dz-sketch { position: absolute; inset: 0; width: 100%; height: 100%; }
  .m-design .dz-sketch .sk { fill: none; stroke: rgba(var(--accent-rgb),.6); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .svc-card.active .m-design .dz-sketch .sk { animation: mmdraw .45s ease forwards; }
  .svc-card.active .m-design .dz-sketch .sk:nth-child(1) { animation-duration: .7s; animation-delay: .3s; }
  .svc-card.active .m-design .dz-sketch .sk:nth-child(2) { animation-delay: .95s; }
  .svc-card.active .m-design .dz-sketch .sk:nth-child(3) { animation-delay: 1.15s; }
  .svc-card.active .m-design .dz-sketch .sk:nth-child(4) { animation-delay: 1.3s; }
  .svc-card.active .m-design .dz-sketch .sk:nth-child(5) { animation-delay: 1.45s; }
  .svc-card.active .m-design .dz-sketch .sk:nth-child(6) { animation-delay: 1.6s; }
  .svc-card.active .m-design .dz-sketch { animation: dzdim .5s 2s forwards; }
  @keyframes dzdim { to { opacity: .18; } }
  /* real component — geometry matches the sketch exactly (220×132 space) */
  .m-design .dz-real > * { position: absolute; opacity: 0; }
  .m-design .dz-thumb {
    left: 1.4%; top: 2.3%; right: 1.4%; height: 40.1%;
    border-radius: 7px 7px 3px 3px;
    background: rgba(var(--accent-rgb),.16); border: 1px solid rgba(var(--accent-rgb),.28);
    display: grid; place-items: center;
  }
  .m-design .dz-thumb svg { width: 24%; max-width: 44px; }
  .m-design .dz-thumb svg circle { fill: rgba(243,243,240,.45); }
  .m-design .dz-thumb svg path { fill: rgba(243,243,240,.22); }
  .m-design .dz-badge2 {
    position: absolute; left: 7px; top: 7px; width: 30px; height: 10px; border-radius: 100px;
    background: rgba(8,9,11,.55); border: 1px solid rgba(243,243,240,.28);
  }
  .m-design .dz-l1 { left: 6.4%; top: 54.5%; width: 61.8%; height: 6%; border-radius: 4px; background: rgba(243,243,240,.22); }
  .m-design .dz-l2 { left: 6.4%; top: 65.2%; width: 43.6%; height: 4.6%; border-radius: 3px; background: rgba(243,243,240,.11); }
  .m-design .dz-price { right: 6.4%; top: 54.5%; width: 20.9%; height: 6%; border-radius: 4px; background: rgba(var(--accent-rgb),.45); }
  .m-design .dz-btn {
    left: 6.4%; top: 75.8%; width: 25.5%; height: 13.6%; border-radius: 100px;
    background: rgba(243,243,240,.14);
    display: flex; align-items: center; justify-content: center;
  }
  .m-design .dz-btn i { width: 52%; height: 4px; border-radius: 2px; background: rgba(8,9,11,.55); }
  .svc-card.active .m-design .dz-real > * { animation: mmappear .5s forwards; }
  .svc-card.active .m-design .dz-thumb { animation-delay: 2.1s; }
  .svc-card.active .m-design .dz-l1 { animation-delay: 2.25s; }
  .svc-card.active .m-design .dz-l2 { animation-delay: 2.4s; }
  .svc-card.active .m-design .dz-price { animation-delay: 2.5s; }
  .svc-card.active .m-design .dz-btn { animation: mmappear .5s 2.6s forwards, dzbtnfill .5s 3.5s forwards; }
  @keyframes dzbtnfill { to { background: var(--accent); } }
  /* selection handles + dimension tag (figma-style) */
  .m-design .dz-sel { position: absolute; inset: -6px; border: 1.5px solid var(--accent); border-radius: 10px; opacity: 0; }
  .m-design .dz-h { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: var(--bg); border: 1.5px solid var(--accent); opacity: 0; }
  .m-design .dz-h.h1 { left: -9px; top: -9px; }
  .m-design .dz-h.h2 { right: -9px; top: -9px; }
  .m-design .dz-h.h3 { left: -9px; bottom: -9px; }
  .m-design .dz-h.h4 { right: -9px; bottom: -9px; }
  .m-design .dz-dim {
    position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%);
    font-family: var(--mono); font-size: 9.5px; color: #fff; background: var(--accent);
    padding: 2px 7px; border-radius: 4px; opacity: 0; white-space: nowrap;
  }
  .svc-card.active .m-design .dz-sel { animation: mmfade .35s 4.3s forwards; }
  .svc-card.active .m-design .dz-h { animation: mmpop .3s cubic-bezier(.5,1.6,.5,1) forwards; transform: scale(0); }
  .svc-card.active .m-design .dz-h.h1 { animation-delay: 4.35s; }
  .svc-card.active .m-design .dz-h.h2 { animation-delay: 4.42s; }
  .svc-card.active .m-design .dz-h.h3 { animation-delay: 4.49s; }
  .svc-card.active .m-design .dz-h.h4 { animation-delay: 4.56s; }
  .svc-card.active .m-design .dz-dim { animation: mmfade .35s 4.6s forwards; }
  /* right panel: palette, type scale, spacing */
  .m-design .dz-panel { flex: none; width: 32%; max-width: 150px; border-left: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
  .m-design .dz-ptitle { width: 55%; height: 7px; border-radius: 4px; background: rgba(243,243,240,.16); opacity: 0; }
  .m-design .dz-ptitle.s { margin-top: 6px; width: 40%; }
  .svc-card.active .m-design .dz-ptitle { animation: mmfade .4s .5s forwards; }
  .svc-card.active .m-design .dz-ptitle.s { animation-delay: 3.4s; }
  .m-design .dz-pal { display: flex; gap: 6px; }
  .m-design .dz-pal i { width: 19px; height: 19px; border-radius: 6px; transform: scale(0); }
  .m-design .dz-pal i:nth-child(1) { background: #1c2230; }
  .m-design .dz-pal i:nth-child(2) { background: var(--accent); }
  .m-design .dz-pal i:nth-child(3) { background: #6b6f76; }
  .m-design .dz-pal i:nth-child(4) { background: #c9ccd2; }
  .m-design .dz-pal i:nth-child(5) { background: #e9e9f1; }
  .svc-card.active .m-design .dz-pal i { animation: mmpop .45s cubic-bezier(.5,1.6,.5,1) forwards; }
  .svc-card.active .m-design .dz-pal i:nth-child(1) { animation-delay: 2.3s; }
  .svc-card.active .m-design .dz-pal i:nth-child(2) { animation-delay: 2.42s; }
  .svc-card.active .m-design .dz-pal i:nth-child(3) { animation-delay: 2.54s; }
  .svc-card.active .m-design .dz-pal i:nth-child(4) { animation-delay: 2.66s; }
  .svc-card.active .m-design .dz-pal i:nth-child(5) { animation-delay: 2.78s; }
  .svc-card.active .m-design .dz-pal i.pick { animation: mmpop .45s 2.42s cubic-bezier(.5,1.6,.5,1) forwards, dzpick .4s 3.3s forwards; }
  @keyframes dzpick { to { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); } }
  .m-design .dz-type { display: flex; flex-direction: column; gap: 6px; }
  .m-design .dz-type span { height: 8px; border-radius: 4px; background: rgba(243,243,240,.16); width: 0; }
  .m-design .dz-type span:nth-child(1) { height: 11px; }
  .m-design .dz-type span:nth-child(3) { height: 6px; }
  .svc-card.active .m-design .dz-type span { animation: mmstream .5s cubic-bezier(.16,.84,.34,1) forwards; }
  .svc-card.active .m-design .dz-type span:nth-child(1) { animation-delay: 3.6s; }
  .svc-card.active .m-design .dz-type span:nth-child(2) { animation-delay: 3.75s; }
  .svc-card.active .m-design .dz-type span:nth-child(3) { animation-delay: 3.9s; }
  .m-design .dz-sp { display: flex; gap: 6px; margin-top: 2px; }
  .m-design .dz-sp em { width: 26px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); opacity: 0; }
  .svc-card.active .m-design .dz-sp em { animation: mmfade .4s forwards; }
  .svc-card.active .m-design .dz-sp em:nth-child(1) { animation-delay: 4.05s; }
  .svc-card.active .m-design .dz-sp em:nth-child(2) { animation-delay: 4.15s; }
  .svc-card.active .m-design .dz-sp em:nth-child(3) { animation-delay: 4.25s; }

  /* motif — maintenance & scaling (ops console: cluster + rolling restart + scale-out) */
  .m-maint { align-items: stretch; padding: clamp(16px,2.2vw,28px); }
  .m-maint .mo {
    width: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #10131a, #0a0c10);
    box-shadow: 0 34px 80px -30px rgba(0,0,0,.7), 0 0 60px -30px rgba(var(--accent-rgb),.4);
  }
  .m-maint .mo-top { flex: none; display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
  .m-maint .mo-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
  .m-maint .mo-top i:nth-child(1) { background: #ff5f57; }
  .m-maint .mo-top i:nth-child(2) { background: #febc2e; }
  .m-maint .mo-top i:nth-child(3) { background: #28c840; }
  .m-maint .mo-name { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: var(--dim); }
  .m-maint .mo-live { margin-left: auto; font-family: var(--mono); font-size: 10px; color: #54c569; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 6px; }
  .m-maint .mo-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #54c569; }
  .svc-card.active .m-maint .mo-live::before { animation: mmblink 1.6s ease-in-out infinite; }
  @keyframes mmblink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
  .m-maint .mo-body { flex: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(12px,1.5vw,20px); padding: clamp(12px,1.5vw,20px); }
  /* cluster panel */
  .m-maint .mo-cluster { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .m-maint .mo-chead { display: flex; align-items: center; justify-content: space-between; }
  .m-maint .mo-chead .t { width: 34%; height: 8px; border-radius: 4px; background: rgba(243,243,240,.18); }
  .m-maint .mo-chead .chip { font-family: var(--mono); font-size: 9.5px; color: var(--dim); padding: 3px 8px; border: 1px solid var(--line); border-radius: 100px; }
  .m-maint .mo-grid { flex: 1; display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: 1fr 1fr; gap: 8px; }
  .m-maint .nd {
    position: relative; min-height: 34px; border: 1px solid var(--line-strong); border-radius: 8px;
    background: rgba(243,243,240,.04); opacity: 0; transform: scale(.6);
  }
  .m-maint .nd::before, .m-maint .nd::after {
    content: ""; position: absolute; left: 7px; height: 3px; border-radius: 2px; background: rgba(243,243,240,.14);
  }
  .m-maint .nd::before { top: 8px; width: 46%; }
  .m-maint .nd::after { top: 15px; width: 30%; }
  .m-maint .nd i { position: absolute; right: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #54c569; }
  .m-maint .nd.old, .m-maint .nd.new { grid-column: 4; grid-row: 1; }
  .m-maint .nd.sc.s1 { grid-column: 3; grid-row: 2; }
  .m-maint .nd.sc.s2 { grid-column: 4; grid-row: 2; }
  .svc-card.active .m-maint .nd { animation: mopop .45s cubic-bezier(.5,1.5,.5,1) forwards; }
  .svc-card.active .m-maint .nd.n1 { animation-delay: .3s; }
  .svc-card.active .m-maint .nd.n2 { animation-delay: .42s; }
  .svc-card.active .m-maint .nd.n3 { animation-delay: .54s; }
  .svc-card.active .m-maint .nd.old { animation: mopop .45s .66s cubic-bezier(.5,1.5,.5,1) forwards, moout .5s 3.2s ease forwards; }
  .svc-card.active .m-maint .nd.n5 { animation-delay: .78s; }
  .svc-card.active .m-maint .nd.n6 { animation-delay: .9s; }
  .svc-card.active .m-maint .nd.new { animation: mopop .5s 3.6s cubic-bezier(.5,1.5,.5,1) forwards; }
  .svc-card.active .m-maint .nd.sc.s1 { animation: mopop .5s 4.5s cubic-bezier(.5,1.5,.5,1) forwards; }
  .svc-card.active .m-maint .nd.sc.s2 { animation: mopop .5s 4.7s cubic-bezier(.5,1.5,.5,1) forwards; }
  @keyframes mopop { to { opacity: 1; transform: scale(1); } }
  @keyframes moout { to { opacity: 0; transform: scale(.75); } }
  /* degraded node: dot flashes amber before drain */
  .svc-card.active .m-maint .nd.old i { animation: mowarn .6s 2.2s ease-in-out 2; }
  @keyframes mowarn { 50% { background: #febc2e; box-shadow: 0 0 8px rgba(254,188,46,.8); } }
  /* fresh nodes get accent border while joining */
  .m-maint .nd.new, .m-maint .nd.sc { border-color: rgba(var(--accent-rgb),.65); }
  /* metrics column */
  .m-maint .mo-metrics { display: flex; flex-direction: column; gap: 11px; justify-content: center; border-left: 1px solid var(--line); padding-left: clamp(12px,1.5vw,20px); min-width: 0; }
  .m-maint .mo-m { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); opacity: 0; }
  .m-maint .mo-m .k { width: 28px; flex: none; }
  .m-maint .mo-m .bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(243,243,240,.09); overflow: hidden; }
  .m-maint .mo-m .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); width: 100%; transform: scaleX(.4); transform-origin: left; }
  .svc-card.active .m-maint .mo-m { animation: mmfade .5s 1.2s forwards; }
  .svc-card.active .m-maint .mo-m .cpu { animation: mocpu 4.5s 1.2s ease-in-out infinite; }
  .svc-card.active .m-maint .mo-m .mem { animation: momem 6s 1.2s ease-in-out infinite; }
  @keyframes mocpu { 0%,100% { transform: scaleX(.42); } 30% { transform: scaleX(.68); } 55% { transform: scaleX(.48); } 80% { transform: scaleX(.82); } }
  @keyframes momem { 0%,100% { transform: scaleX(.55); } 40% { transform: scaleX(.63); } 70% { transform: scaleX(.58); } }
  .m-maint .mo-spark { opacity: 0; }
  .svc-card.active .m-maint .mo-spark { animation: mmfade .5s 1.5s forwards; }
  .m-maint .mo-spark svg { display: block; width: 100%; height: 34px; }
  .m-maint .mo-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px rgba(var(--accent-rgb),.5)); }
  .svc-card.active .m-maint .mo-spark polyline { animation: mmdraw 1.2s 1.6s cubic-bezier(.5,0,.2,1) forwards; }
  .m-maint .mo-kpi { display: flex; align-items: baseline; gap: 7px; opacity: 0; transform: translateY(8px); }
  .m-maint .mo-kpi b { font-size: clamp(19px,1.7vw,24px); font-weight: 800; letter-spacing: -.02em; color: #54c569; }
  .m-maint .mo-kpi em { font-family: var(--mono); font-style: normal; font-size: 10px; color: var(--dim); letter-spacing: .04em; }
  .svc-card.active .m-maint .mo-kpi { animation: mmappear .5s 5.4s forwards; }
  /* log strip */
  .m-maint .mo-logs { border-top: 1px solid var(--line); padding: 9px 14px; display: flex; flex-direction: column; gap: 5px; font-family: var(--mono); font-size: 10.5px; }
  .m-maint .mo-logs .lg { color: var(--dim); opacity: 0; transform: translateX(-8px); }
  .m-maint .mo-logs .lg.w { color: #febc2e; }
  .m-maint .mo-logs .lg.ok { color: #54c569; }
  .svc-card.active .m-maint .mo-logs .lg { animation: mmappear .4s forwards; }
  .svc-card.active .m-maint .mo-logs .lg.w { animation-delay: 2.2s; }
  .svc-card.active .m-maint .mo-logs .lg:nth-child(2) { animation-delay: 3.3s; }
  .svc-card.active .m-maint .mo-logs .lg.ok { animation-delay: 5.1s; }

  @media (max-width: 900px) {
    .svc-explorer { grid-template-columns: 1fr; gap: 0; }
    .svc-list { display: none; }
    .svc-stage { min-height: 0; display: flex; flex-direction: column; gap: clamp(40px,7vw,64px); }
    .svc-card { position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
    .svc-motif { min-height: 190px; max-height: none; }
    /* the motif has no definite height on mobile, so size the phone from its width instead */
    .m-mobile .mm-phone { height: auto; width: min(195px, 56vw); }
  }

  @media (prefers-reduced-motion: reduce) {
    .svc-name, .svc-card, .svc-extra, .svc-motif, .svc-copy p,
    .svc-toggle .ic::before, .svc-toggle .ic::after { transition: none; }
    .svc-motif *, .svc-card.active .svc-motif * { animation: none !important; }
    .m-web .mm-tile { opacity: 1; transform: none; }
    .m-web .mm-graph .area { opacity: 1; }
    .m-web .mm-graph .line { stroke-dashoffset: 0; }
    .m-mobile .mm-view { opacity: 0; }
    .m-mobile .v-home { opacity: 1; }
    .m-arch .aw-chk, .m-arch .aw-score, .m-arch .aw-chead { opacity: 1; transform: none; }
    .m-arch .aw-chk .box { border-color: #54c569; background: #54c569; }
    .m-arch .aw-chk.warn .box { border-color: #febc2e; background: #febc2e; }
    .m-arch .aw-chk .box::after { transform: rotate(45deg) scale(1); }
    .m-arch .aw-cov .bar i { width: var(--w,60%); }
    .m-arch .aw-cov .k, .m-arch .aw-cov b, .m-arch .aw-foot { opacity: 1; }
    .m-arch .aw-scan i { transform: scaleX(1); }
    .m-arch .aw-live { display: none; }
    .m-arch .aw-done { opacity: 1; }
    .m-arch .aw-score .delta { opacity: 1; transform: none; }
    .m-ai .mm-bub { opacity: 1; transform: none; }
    .m-ai .mm-msg.bot { opacity: 1; max-height: none; }
    .m-ai .mm-rl { width: var(--w,90%); }
    .m-ai .mm-cites span { opacity: 1; }
    .m-ai .mm-typing { opacity: 0; }
    .m-ai .mm-tools span { border-color: rgba(var(--accent-rgb),.7); background: rgba(var(--accent-rgb),.18); }
    .m-design .dz-tools .t, .m-design .dz-real > *, .m-design .dz-ptitle, .m-design .dz-sp em, .m-design .dz-sel, .m-design .dz-dim { opacity: 1; }
    .m-design .dz-sketch { opacity: .22; }
    .m-design .dz-sketch .sk { stroke-dashoffset: 0; }
    .m-design .dz-btn { background: var(--accent); }
    .m-design .dz-pal i { transform: scale(1); }
    .m-design .dz-pal i.pick { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
    .m-design .dz-type span { width: var(--w,60%); }
    .m-design .dz-h { opacity: 1; transform: scale(1); }
    .m-maint .nd { opacity: 1; transform: none; }
    .m-maint .nd.old { display: none; }
    .m-maint .mo-m, .m-maint .mo-spark, .m-maint .mo-kpi, .m-maint .mo-logs .lg { opacity: 1; transform: none; }
    .m-maint .mo-m .cpu { width: 58%; }
    .m-maint .mo-m .mem { width: 60%; }
    .m-maint .mo-spark polyline { stroke-dashoffset: 0; }
  }

  /* ---------- Pricing / engagement ---------- */
  .pricing {
    position: relative; z-index: 3; background: var(--bg);
    padding: clamp(60px,9vh,128px) max(clamp(22px,4vw,56px), calc((100% - 1500px) / 2 + clamp(22px,4vw,56px)));
  }
  /* green backlight behind the pricing headline (same idea as the closing glow) */
  .pricing::before {
    content: ""; position: absolute; left: 50%; top: 58%; z-index: -1; pointer-events: none;
    width: 140%; height: 110%; transform: translate(-50%,-50%);
    background: radial-gradient(ellipse 36% 34% at 46% 52%, rgba(120,150,210,0.085), rgba(120,150,210,0) 100%);
  }
  /* fine white grain over the dark sections (mirror of .sec-light::before) */
  .services::after, .work::after, .process-cta::after, .pricing::after, .why::after, .faq::after, .closing::after, .footer::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.6 1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  .pricing-head { margin-bottom: clamp(40px,6vh,72px); }
  .pricing-head h2 {
    font-size: clamp(30px,4.4vw,62px); font-weight: 800; letter-spacing: -0.032em;
    line-height: 0.98; margin-top: clamp(18px,2.4vh,26px); max-width: 20ch;
  }
  .pricing-head h2 .outline { color: transparent; -webkit-text-stroke: 1.3px var(--ink); text-stroke: 1.3px var(--ink); }
  .pricing-head p { margin-top: 22px; color: var(--dim); font-size: clamp(15px,1.3vw,18px); line-height: 1.62; max-width: 50ch; }

  .price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(14px,1.4vw,20px); }
  .price-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10); border-radius: 20px; padding: clamp(22px,1.9vw,30px);
    background: rgba(255,255,255,0.035);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.12),
      0 24px 50px -30px rgba(0,0,0,0.7);
    transition: border-color 0.4s ease, transform 0.45s cubic-bezier(.16,.84,.34,1), box-shadow 0.5s ease;
  }
  .price-card > * { position: relative; }
  .price-card:hover {
    border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); transform: translateY(-5px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.18),
      0 36px 80px -36px rgba(0,0,0,0.8);
  }
  .price-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
  .price-card h3 { margin-top: 14px; font-size: clamp(19px,1.6vw,24px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
  .price-for { margin-top: 11px; color: var(--dim); font-size: 13.5px; line-height: 1.5; min-height: 60px; }
  .price-list { list-style: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; flex: 1; }
  .price-list li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--ink); line-height: 1.45; }
  .price-list li::before { content: "›"; color: var(--accent); font-weight: 700; flex: none; }
  .price-anchor { margin-top: 20px; font-weight: 800; font-size: clamp(19px,1.7vw,25px); letter-spacing: -0.02em; line-height: 1; }
  .price-foot { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.05em; }
  .price-note {
    margin-top: clamp(28px,4vh,42px); display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap; padding-top: clamp(24px,3vh,32px); border-top: 1px solid var(--line);
  }
  .price-note p { color: var(--dim); font-size: clamp(14px,1.2vw,17px); line-height: 1.55; max-width: 56ch; }
  .price-note p b { color: var(--ink); font-weight: 700; }

  /* ---------- FAQ ---------- */
  .faq {
    position: relative; z-index: 3; background: var(--bg);
    padding: clamp(60px,9vh,128px) max(clamp(22px,4vw,56px), calc((100% - 1120px) / 2 + clamp(22px,4vw,56px)));
  }
  .faq-head { margin-bottom: clamp(32px,5vh,54px); }
  .faq-head h2 { margin-top: clamp(16px,2.2vh,24px); font-size: clamp(28px,4vw,56px); font-weight: 800; letter-spacing: -0.032em; line-height: 0.98; max-width: 16ch; }
  .faq-list { border-top: 1px solid var(--line); }
  .faq-item { border-bottom: 1px solid var(--line); }
  .faq-h { margin: 0; font-size: inherit; font-weight: 400; }
  .faq-q {
    width: 100%; background: none; border: none; color: var(--ink); cursor: pointer; text-align: left;
    display: flex; align-items: center; gap: clamp(16px,2vw,26px);
    padding: clamp(22px,3vh,30px) 4px;
  }
  .faq-q .qt { flex: 1; font-size: clamp(17px,1.7vw,23px); font-weight: 700; letter-spacing: -0.012em; line-height: 1.25; transition: color 0.3s ease; }
  .faq-q .qx { position: relative; flex: none; width: 20px; height: 20px; }
  .faq-q .qx::before, .faq-q .qx::after {
    content: ""; position: absolute; background: var(--dim); border-radius: 2px;
    transition: transform 0.4s cubic-bezier(.16,.84,.34,1), opacity 0.3s ease, background 0.3s ease;
  }
  .faq-q .qx::before { left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; }
  .faq-q .qx::after  { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
  .faq-item.open .qx::before, .faq-item.open .qx::after { background: var(--ink); }
  .faq-item.open .qx::after { transform: scaleY(0); opacity: 0; }
  .faq-item.open .qt { color: var(--ink); }
  .faq-q:hover .qt { color: var(--ink); }
  .faq-a { overflow: hidden; height: 0; transition: height 0.45s cubic-bezier(.16,.84,.34,1); }
  .faq-a-inner {
    padding: 0 4px clamp(24px,3.4vh,34px);
    color: var(--dim); font-size: clamp(15px,1.2vw,17px); line-height: 1.66; max-width: 72ch;
  }

  /* ---------- Closing CTA ---------- */
  .closing {
    position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line);
    padding: clamp(80px,15vh,190px) clamp(22px,4vw,56px);
    text-align: center; overflow: hidden;
  }
  /* same soft navy glow as the pricing cards */
  .closing::before {
    content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none;
    width: 140%; height: 110%; transform: translate(-50%,-50%);
    background: radial-gradient(ellipse 36% 34% at 50% 46%, rgba(120,150,210,0.085), rgba(120,150,210,0) 100%);
  }
  .closing-inner { position: relative; max-width: 1100px; margin: 0 auto; }
  .closing h2 {
    font-size: clamp(40px,8vw,108px); font-weight: 800; letter-spacing: -0.038em; line-height: 0.95;
  }
  .closing h2 .outline { color: transparent; -webkit-text-stroke: 1.6px var(--ink); text-stroke: 1.6px var(--ink); }
  .closing h2.cta-mail { font-size: clamp(30px,8.5vw,96px); }
  .closing h2.cta-mail a { color: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color 0.3s ease; font-variant-ligatures: none; }
  .closing h2.cta-mail.copied a { color: var(--hot); }
  .sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .closing h2.cta-mail a:hover .outline { color: var(--ink); }
  .closing p { margin: clamp(22px,3vh,32px) auto 0; color: var(--dim); font-size: clamp(16px,1.5vw,20px); line-height: 1.6; max-width: 54ch; }
  .closing .cta-row { margin-top: clamp(34px,4.5vh,48px); justify-content: center; }
  .closing-mail {
    margin-top: clamp(26px,3.5vh,38px); display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: 0.04em;
  }
  .closing-mail a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.3s ease; }
  .closing-mail a:hover { border-color: var(--ink); }
  .closing p.closing-call { margin-top: clamp(14px,2vh,20px); color: var(--ink); }
  .closing-call .linklike {
    color: var(--ink); background: none; border: none; padding: 0 0 2px; font: inherit; cursor: pointer;
    border-bottom: 1px solid var(--line-strong); text-decoration: none; transition: border-color 0.3s ease;
  }
  .closing-call .linklike:hover { border-color: var(--ink); }
  .contact-form {
    max-width: 560px; margin: clamp(40px,5.5vh,60px) auto 0; text-align: left;
    display: grid; gap: 16px;
  }
  .contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 560px) { .contact-form .row2 { grid-template-columns: 1fr; } }
  .contact-form label {
    display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink); margin-bottom: 8px;
  }
  .contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; background: var(--bg-2); color: var(--ink);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 13px 15px; font-family: var(--sans); font-size: 15px; line-height: 1.5;
    transition: border-color 0.25s ease, background 0.25s ease;
  }
  .contact-form textarea { resize: vertical; min-height: 104px; }
  .contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--dim); opacity: 0.7; }
  .contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none; border-color: var(--accent); background: rgba(var(--accent-rgb),0.06);
  }
  .contact-form select {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2384878d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
    color-scheme: dark;
  }
  .contact-form select option { background-color: #101216; color: var(--ink); }
  .contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .contact-form .form-submit {
    justify-self: start; margin-top: 4px; cursor: pointer;
    background: var(--hot); color: var(--hot-ink); border: none; border-radius: 999px;
    height: 52px; padding: 0 11px 0 26px; font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
    display: inline-flex; align-items: center; justify-content: center; gap: 14px; position: relative; overflow: hidden;
    transition: transform 0.3s cubic-bezier(.22,.61,.36,1), opacity 0.25s ease, width 0.6s cubic-bezier(.65,0,.2,1), padding 0.6s cubic-bezier(.65,0,.2,1), background 0.45s ease;
  }
  .contact-form .form-submit:hover:not(.is-ok):not(.is-err) { transform: translateY(-2px); }
  .contact-form .form-submit[disabled] { opacity: 0.55; cursor: default; transform: none; }
  /* submit: centred; sending = spinner, ok/err = pill morphs into a circle and draws the glyph */
  .contact-form .form-submit { justify-self: center; }
  .contact-form .form-submit:active:not(.is-ok):not(.is-err) { transform: scale(0.96); }
  .contact-form .form-submit[disabled].is-sending { opacity: 0.9; }
  .fs-label { white-space: nowrap; transition: opacity 0.25s ease; }
  .fs-icon {
    position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--hot-ink);
    transition: background 0.45s ease, transform 0.6s cubic-bezier(.65,0,.2,1);
  }
  .fs-icon svg {
    position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%,-50%);
    fill: none; stroke: var(--hot); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
    opacity: 0; transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.22,.61,.36,1);
  }
  .fs-icon .fs-arrow { opacity: 1; }
  .fs-icon .fs-ring { width: 15px; height: 15px; }
  .fs-icon .fs-check, .fs-icon .fs-x { width: 22px; height: 22px; stroke-width: 1.6; }
  .fs-check path, .fs-x path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .form-submit:hover:not(.is-sending):not(.is-ok):not(.is-err) .fs-arrow { transform: translate(-50%,-50%) rotate(45deg); }
  /* sending */
  .form-submit.is-sending .fs-arrow { opacity: 0; }
  .form-submit.is-sending .fs-ring { opacity: 1; animation: fsSpin 0.8s linear infinite; }
  /* morph: label collapses, button becomes a 52px circle, icon fills it */
  .form-submit.is-ok, .form-submit.is-err { padding: 0; gap: 0; }
  .form-submit.is-ok .fs-label, .form-submit.is-err .fs-label { opacity: 0; position: absolute; pointer-events: none; }
  .form-submit.is-ok .fs-icon, .form-submit.is-err .fs-icon { background: transparent; transform: scale(1.4); }
  .form-submit.is-ok .fs-arrow, .form-submit.is-err .fs-arrow, .form-submit.is-ok .fs-ring, .form-submit.is-err .fs-ring { opacity: 0; }
  .form-submit.is-ok .fs-check { opacity: 1; stroke: var(--hot-ink); }
  .form-submit.is-ok .fs-check path { animation: fsDraw 0.6s 0.42s cubic-bezier(.65,0,.35,1) forwards; }
  .form-submit.is-err { background: #e5484d; color: #fff; animation: fsShake 0.6s 0.55s cubic-bezier(.36,.07,.19,.97); }
  .form-submit.is-err .fs-x { opacity: 1; stroke: #fff; }
  .form-submit.is-err .fs-x path:nth-child(1) { animation: fsDraw 0.4s 0.42s cubic-bezier(.65,0,.35,1) forwards; }
  .form-submit.is-err .fs-x path:nth-child(2) { animation: fsDraw 0.4s 0.66s cubic-bezier(.65,0,.35,1) forwards; }
  @keyframes fsSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }
  @keyframes fsDraw { to { stroke-dashoffset: 0; } }
  @keyframes fsShake { 10%,90% { transform: translateX(-1px); } 20%,80% { transform: translateX(3px); } 30%,50%,70% { transform: translateX(-4px); } 40%,60% { transform: translateX(4px); } }
  @media (prefers-reduced-motion: reduce) {
    .contact-form .form-submit, .fs-icon, .fs-icon svg { transition: none; }
    .form-submit.is-err { animation: none; }
    .form-submit.is-sending .fs-ring { animation: none; }
    .fs-check path, .fs-x path { stroke-dashoffset: 0; animation: none; }
  }
  .form-status {
    min-height: 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
    color: var(--dim); text-align: center;
  }
  .form-status.ok { color: var(--hot-text); }
  .form-status.err { color: #d9646b; }
  .closing-alt {
    margin-top: clamp(26px,3.5vh,38px); display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 10px 16px;
    font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: 0.04em;
  }
  .closing-alt a, .closing-alt .linklike {
    color: var(--ink); background: none; border: none; padding: 0 0 2px; font: inherit;
    border-bottom: 1px solid var(--line-strong); cursor: pointer; transition: border-color 0.3s ease;
  }
  .closing-alt a:hover, .closing-alt .linklike:hover { border-color: var(--ink); }

  /* ---------- Proof: one big client quote (light) ---------- */
  .proof {
    position: relative; z-index: 3;
    padding: clamp(72px,11vh,140px) max(clamp(22px,4vw,56px), calc((100% - 1500px) / 2 + clamp(22px,4vw,56px)));
    content-visibility: auto; contain-intrinsic-size: 0 600px;
  }
  .proof-inner { max-width: 1500px; margin: 0 auto; }
  .proof-q {
    margin-top: clamp(22px,3vh,34px);
    font-size: clamp(26px,3.6vw,54px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.1; max-width: 24ch;
  }
  .proof-who { margin-top: clamp(26px,4vh,40px); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .proof-av {
    width: 52px; height: 52px; border-radius: 50%; flex: none;
    background: #0c0d0c; color: #f3f3f0; display: grid; place-items: center;
    font-weight: 800; font-size: 14px; letter-spacing: 0.06em;
  }
  .proof-name { font-weight: 700; font-size: 16px; }
  .proof-role { font-size: 13.5px; color: var(--dim); margin-top: 3px; }
  .proof-link {
    margin-left: auto; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink);
    display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
    transition: border-color 0.3s ease;
  }
  .proof-link::after { content: "↗"; color: var(--hot-text); }
  .proof-link:hover { border-color: var(--ink); }
  @media (max-width: 680px) { .proof-link { margin-left: 0; flex-basis: 100%; } }

  /* ---------- About me ---------- */
  .about-p {
    margin-top: 16px; color: var(--dim); font-size: clamp(15px,1.3vw,18px); line-height: 1.65; max-width: 54ch;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.8s ease 0.16s, transform 0.85s cubic-bezier(.16,.84,.34,1) 0.16s;
  }
  .who.in .about-p { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .about-p { opacity: 1 !important; transform: none !important; }
  }

  /* ---------- Contact: talk card + form ---------- */
  .closing-grid {
    margin: clamp(34px,4.5vh,48px) auto 0; max-width: 1100px; text-align: left;
    display: grid; grid-template-columns: minmax(0,0.95fr) minmax(0,1.05fr); gap: clamp(28px,4vw,64px); align-items: start;
  }
  .closing-grid .contact-form { margin: 0; max-width: none; }
  .talk { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 24px; align-items: center; }
  .talk-body { display: flex; flex-direction: column; gap: 20px; }
  .talk-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .talk-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); line-height: 1.35; }
  .talk-list li::before {
    content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid rgba(91,226,122,0.45); background: rgba(91,226,122,0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235be27a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5 5 9l4.5-6'/%3E%3C/svg%3E") center / 10px no-repeat;
  }
  @media (max-width: 960px) { .closing-grid { grid-template-columns: 1fr; } .talk { max-width: 560px; } }
  @media (max-width: 520px) { .talk { grid-template-columns: 1fr; justify-items: start; } }

  /* ---------- Footer ---------- */
  .footer {
    position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line);
    padding: clamp(54px,8vh,90px) clamp(22px,4vw,56px) clamp(28px,4vh,44px);
  }
  .footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px,3vw,56px);
    max-width: 1500px; margin: 0 auto;
  }
  .footer-brand .logo { margin-bottom: 20px; }
  .footer-brand p { color: var(--dim); font-size: 15px; line-height: 1.6; max-width: 32ch; }
  .footer-brand .availability { margin-top: 22px; }
  .foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
  .foot-col nav { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; padding: 0; }
  .foot-col a {
    color: #b6b9bf; font-size: 14.5px; padding: 6px 0; width: fit-content;
    display: inline-flex; align-items: center; gap: 7px; transition: color 0.3s ease;
  }
  .foot-col a:hover { color: var(--ink); }
  .foot-col a .ext { font-family: var(--mono); font-size: 10px; color: var(--dim); }
  .footer-bottom {
    max-width: 1500px; margin: clamp(40px,6vh,68px) auto 0; padding-top: 24px;
    border-top: 1px solid var(--line); display: flex; align-items: center;
    justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
    font-family: var(--sans); font-size: 12.5px; color: var(--dim); letter-spacing: 0.03em;
  }
  .footer-bottom a { color: var(--dim); transition: color 0.3s ease; }
  .footer-bottom a:hover { color: var(--ink); }
  .to-top { display: inline-flex; align-items: center; gap: 8px; }

  /* mobile hero: bigger type, tighter vertical rhythm */
  @media (max-width: 640px) {
    .hero { padding-bottom: 88px; }
    /* Size the font so the longest headline line fills the viewport minus the
       22px side paddings. Measured rendered widths (Archivo 800, Brave):
       EN "business runs on." = 8.13em, HU "a szoftvert, amin" = 7.63em.
       Divisors carry ~3% headroom; the old /7.2 clipped both languages. */
    h1 { font-size: clamp(32px, calc((100vw - 44px) / 8.4), 64px); line-height: 0.98; }
    :lang(hu) h1 { font-size: clamp(34px, calc((100vw - 44px) / 7.9), 64px); }
    .subtext { margin-top: 22px; font-size: 16px; line-height: 1.6; }
    .cta-row { margin-top: 30px; gap: 18px; }
    .btn-solid { padding: 14px 26px; font-size: 15px; }
    .btn-line { font-size: 15px; }
  }
  @media (max-width: 480px) {
    /* let the CTA pair wrap instead of widening the layout viewport */
    .cta-row { flex-wrap: wrap; }
    /* work-card title + case-study link: wrap instead of forcing width */
    .wcard-top { flex-wrap: wrap; row-gap: 8px; }
    /* nav: fit logo + burger + contact pill on narrow phones */
    #nav { padding-left: 18px; padding-right: 18px; }
    .logo { gap: 10px; }
    .wordmark { font-size: 17px; letter-spacing: 0.1em; }
    .nav-right { gap: 10px; }
    .btn-pill { padding: 11px 16px; }
  }
  @media (max-width: 360px) {
    #nav { padding-left: 14px; padding-right: 14px; }
    .wordmark { font-size: 15px; letter-spacing: 0.06em; }
    .nav-right { gap: 8px; }
    .btn-pill { padding: 10px 13px; font-size: 12.5px; }
    /* the web-dashboard mock has a 321px minimum width that would widen
       the layout viewport on narrow phones; shrink its fixed parts */
    .svc-stage { min-width: 0; }
    .m-web .mm-side { width: 40px; padding: 11px 9px; }
    .m-web .mm-tiles { gap: 7px; }
    .m-web .mm-tile { padding: 8px 7px; }
    .m-web .mm-main { padding: 12px; }
  }
  @media (max-width: 340px) {
    .logo { gap: 8px; }
    .mark { width: 34px; height: 34px; }
    .mark span { font-size: 22px; }
    .nav-burger { width: 36px; }
    .btn-pill { padding: 9px 11px; font-size: 12px; }
  }

  /* reveal stagger inside grids */
  .svc-grid .svc:nth-child(2).ru.in, .price-grid .price-card:nth-child(2).ru.in { transition-delay: 0.06s; }
  .svc-grid .svc:nth-child(3).ru.in, .price-grid .price-card:nth-child(3).ru.in { transition-delay: 0.12s; }
  .price-grid .price-card:nth-child(4).ru.in { transition-delay: 0.18s; }
  .svc-grid .svc:nth-child(4).ru.in { transition-delay: 0.04s; }
  .svc-grid .svc:nth-child(5).ru.in { transition-delay: 0.10s; }
  .svc-grid .svc:nth-child(6).ru.in { transition-delay: 0.16s; }

  @media (prefers-reduced-motion: reduce) {
    .ru { opacity: 1 !important; transform: none !important; }
  }

  @media (max-width: 1100px) {
    .svc-grid { grid-template-columns: repeat(2,1fr); }
    .price-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
    .footer-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 680px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc { min-height: 0; }
    .svc h3 { margin-top: 30px; }
    .price-grid { grid-template-columns: 1fr; }
    .price-for { min-height: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
  }

  /* ============================================================
     v2 ADDITIONS — Preloader · Manifesto · Marquee · Stats ·
     Live clock · Magnetic · Word-reveal
     ============================================================ */

  /* ---------- Preloader ---------- */
  html.loading, body.loading { overflow: hidden; }
  .preloader {
    position: fixed; inset: 0; z-index: 100; background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }
  .preloader.done { opacity: 0; visibility: hidden; }
  /* fast loads never see the loader UI: it stays blank during the grace period,
     .show reveals it only when the page is genuinely still loading */
  .preloader .pre-mark, .preloader .pre-count, .preloader .pre-bar { opacity: 0; transition: opacity 0.35s ease; }
  .preloader.show .pre-mark, .preloader.show .pre-count, .preloader.show .pre-bar { opacity: 1; }
  .preloader.fast { transition-duration: 0.25s; }
  .pre-mark {
    width: 54px; height: 54px; border-radius: 12px; background: var(--ink);
    display: grid; place-items: center; overflow: hidden;
    animation: preMark 1.6s ease-in-out infinite;
  }
  .pre-mark span {
    color: var(--bg); font-weight: 900; font-size: 34px; line-height: 1;
    transform: skewX(-12deg); letter-spacing: -0.08em;
  }
  @keyframes preMark { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  .pre-count { font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: 0.12em; display: flex; gap: 1px; }
  .pre-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(243,243,240,0.08); overflow: hidden; }
  .pre-bar > i { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.2s linear; }
  @media (prefers-reduced-motion: reduce) { .pre-mark { animation: none; } }

  /* ---------- Kinetic statements (narrow band, scroll-scrubbed) ---------- */
  .kinetic { position: relative; z-index: 3; background: var(--bg); padding: clamp(56px,9vh,110px) 0; }
  .sec-light .kin-dots i { background: rgba(12,13,12,0.16); }
  .kin-sticky { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .kin-lines { display: grid; place-items: center; width: 100%; min-height: clamp(70px,11vw,150px); }
  .kin-line { grid-area: 1 / 1; overflow: hidden; }
  .kin-stmt {
    display: inline-block; white-space: nowrap; will-change: transform;
    font-size: clamp(24px,6.8vw,112px); font-weight: 800; letter-spacing: -0.038em; line-height: 0.95;
    padding-bottom: 0.14em;
    transform: translateY(118%);
    transition: transform 0.7s cubic-bezier(.16,.84,.34,1);
  }
  .kin-line.is-in .kin-stmt { transform: translateY(0); }
  .kin-line.is-above .kin-stmt { transform: translateY(-118%); }
  .kin-stmt em { font-style: normal; color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
  .kin-line:last-child .kin-stmt { color: var(--ink); }
  .kin-dots { margin-top: clamp(30px,4.5vh,48px); display: flex; gap: 10px; }
  .kin-dots i { width: 26px; height: 2px; border-radius: 2px; background: rgba(243,243,240,0.16); transition: background .35s ease, width .35s ease; }
  .kin-dots i.on { background: var(--ink); width: 44px; }
  /* scroll-scrub mode (JS adds .scrub): band stays in flow, transforms track scroll directly */
  .kinetic.scrub .kin-stmt { transition: none; }
  /* static fallback (reduced motion / no JS) */
  .kinetic.static .kin-lines { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(8px,1.5vh,18px); }
  .kinetic.static .kin-line { overflow: visible; }
  .kinetic.static .kin-stmt { transform: none; }
  .kinetic.static .kin-dots { display: none; }
  @media (prefers-reduced-motion: reduce) {
    .kin-stmt { transform: none; }
  }
  /* Phones/tablets: 6.8vw left the statements ~26px on a 390px screen.
     Sized to the longest line per language (Archivo 800, measured):
     EN "You own it." = 4.65em, HU "Mi üzemeltetjük." = 6.88em,
     so both still fit a 360px screen with a 16px gutter each side. */
  @media (max-width: 860px) {
    .kin-stmt { font-size: clamp(34px, 17vw, 96px); }
    :lang(hu) .kin-stmt { font-size: clamp(30px, 12vw, 84px); }
    .kin-lines { min-height: clamp(52px, 19vw, 112px); }
    :lang(hu) .kin-lines { min-height: clamp(46px, 14vw, 100px); }
  }

  /* ---------- Magnetic buttons ---------- */
  .btn-solid, .btn-pill, .form-submit { will-change: transform; }

  /* ---------- Word-by-word heading reveal ---------- */
  .wr-ready .wr .wr-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
  .wr-ready .wr .wr-w > span {
    display: inline-block; transform: translateY(112%);
    transition: transform 0.85s cubic-bezier(.16,.84,.34,1);
  }
  .wr-ready .wr.in .wr-w > span { transform: none; }
