    :root {
      color-scheme: light;
      --bg: #f8fbff;
      --bg-2: #edf6ff;
      --ink: #07111f;
      --ink-soft: #1a2a3d;
      --muted: #66788f;
      --muted-2: #8fa0b6;
      --line: rgba(9, 38, 70, 0.10);
      --glass: rgba(255, 255, 255, 0.62);
      --glass-2: rgba(255, 255, 255, 0.78);
      --blue: #007aff;
      --blue-2: #42c9ff;
      --electric: #00aaff;
      --accent: #007aff;
      --shadow: rgba(32, 103, 180, 0.15);
      --max: 1180px;
    }

    html[data-theme="dark"] {
      color-scheme: dark;
      --bg: #02040a;
      --bg-2: #050915;
      --ink: #f6f9ff;
      --ink-soft: #d7e4ff;
      --muted: #8998b2;
      --muted-2: #61708a;
      --line: rgba(93, 190, 255, 0.12);
      --glass: rgba(8, 15, 28, 0.58);
      --glass-2: rgba(10, 18, 34, 0.78);
      --blue: #48a8ff;
      --blue-2: #00ddff;
      --electric: #00aaff;
      --accent: #00aaff;
      --shadow: rgba(0, 170, 255, 0.14);
    }

    * {
      box-sizing: border-box;
      min-width: 0;
    }

    html {
      scroll-behavior: auto;
      background: var(--bg);
      overflow-x: hidden;
      min-height: 100%;
      height: auto;
      overflow-anchor: none;
    }

    body {
      margin: 0;
      min-height: 100vh;
      height: auto;
      overflow-x: hidden;
      color: var(--ink);
      font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
      background: var(--bg);
      transition: color 0.35s ease;
      position: relative;
    }

    body::before {
      content: "";
      position: absolute;
      inset: 0;
      min-height: 100%;
      z-index: -1;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% -8%, rgba(66, 201, 255, 0.18), transparent 36vw),
        radial-gradient(circle at 88% 28%, rgba(0, 122, 255, 0.10), transparent 34vw),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg) 100%);
      background-repeat: no-repeat;
      background-size: 100% 1400px, 100% 1400px, 100% 100%;
    }

    html[data-theme="dark"] body {
      background: var(--bg);
    }

    html[data-theme="dark"] body::before {
      background:
        radial-gradient(circle at 50% -8%, rgba(0, 170, 255, 0.20), transparent 34vw),
        radial-gradient(circle at 86% 24%, rgba(0, 70, 255, 0.16), transparent 32vw),
        radial-gradient(circle at 10% 84%, rgba(0, 221, 255, 0.08), transparent 32vw),
        linear-gradient(180deg, #02040a 0%, #050814 42%, #02040a 100%);
      background-repeat: no-repeat;
      background-size: 100% 160vh, 100% 160vh, 100% 160vh, 100% 220vh;
    }

    ::selection {
      background: rgba(0, 122, 255, 0.18);
    }

    .atmosphere,
    #particle-layer {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }

    .atmosphere {
      overflow: hidden;
    }

    .atmosphere::before,
    .atmosphere::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      filter: blur(56px);
      opacity: 0.34;
      animation: auraMove 24s ease-in-out infinite alternate;
      will-change: transform;
    }

    .atmosphere::before {
      width: 44vw;
      height: 44vw;
      left: -18vw;
      top: 10vh;
      background: rgba(66, 201, 255, 0.26);
    }

    .atmosphere::after {
      width: 36vw;
      height: 36vw;
      right: -12vw;
      top: 48vh;
      background: rgba(0, 122, 255, 0.16);
      animation-duration: 22s;
      animation-direction: alternate-reverse;
    }

    #particle-layer {
      width: 100%;
      height: 100%;
      z-index: 4;
    }

    .loader {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      background: var(--bg);
      pointer-events: auto;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .loader.is-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .loader-inner {
      display: grid;
      gap: 18px;
      place-items: center;
      color: var(--muted);
      font-size: 0.75rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .loader-mark {
      width: 74px;
      height: 74px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 36% 28%, #fff 0 14%, transparent 15%),
        conic-gradient(from 0deg, var(--blue-2), var(--blue), var(--electric), var(--blue-2));
      box-shadow: 0 0 54px rgba(66, 201, 255, 0.32);
      animation: spin 1.2s linear infinite;
    }

    .site-header {
      position: fixed;
      top: 18px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 40;
      width: min(var(--max), calc(100% - 28px));
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 14px;
      padding: 8px 10px 8px 14px;
      border-radius: 999px;
      background: transparent;
      border: 1px solid transparent;
      box-shadow: none;
      -webkit-backdrop-filter: blur(0) saturate(1);
      backdrop-filter: blur(0) saturate(1);
      isolation: isolate;
      overflow: visible;
      contain: none;
      transition:
        padding 0.28s ease,
        transform 0.28s ease,
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        backdrop-filter 0.28s ease,
        -webkit-backdrop-filter 0.28s ease;
    }

    .site-header::before,
    .site-header::after {
      content: "";
      position: absolute;
      pointer-events: none;
      z-index: -1;
    }

    .site-header::before {
      inset: 0;
      border-radius: inherit;
      opacity: 0;
      background:
        radial-gradient(circle at 16% 0%, rgba(255,255,255,0.42), transparent 30%),
        radial-gradient(circle at 84% 100%, rgba(66,201,255,0.15), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.035));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.34),
        inset 0 -1px 0 rgba(255,255,255,0.08);
    }

    .site-header::after {
      display: none;
    }

    .site-header.is-scrolled {
      overflow: hidden;
      transform: translateX(-50%) translateY(3px);
      padding: 10px 12px 10px 18px;
      background: rgba(255, 255, 255, 0.16);
      border-color: rgba(255,255,255, 0.24);
      -webkit-backdrop-filter: blur(30px) saturate(1.95) brightness(1.08) contrast(1.08);
      backdrop-filter: blur(30px) saturate(1.95) brightness(1.08) contrast(1.08);
      box-shadow:
        0 18px 42px rgba(28, 84, 145, 0.14),
        inset 0 1px 0 rgba(255,255,255, 0.24);
    }

    .site-header.is-scrolled::before {
      opacity: 0.74;
    }


    html[data-theme="dark"] .site-header {
      background: transparent;
      border-color: transparent;
      box-shadow: none;
      -webkit-backdrop-filter: blur(0) saturate(1);
      backdrop-filter: blur(0) saturate(1);
    }

    html[data-theme="dark"] .site-header::before {
      background:
        radial-gradient(circle at 18% 0%, rgba(255,255,255,0.14), transparent 32%),
        radial-gradient(circle at 82% 100%, rgba(0,170,255,0.22), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        inset 0 -1px 0 rgba(255,255,255,0.05);
    }

    html[data-theme="dark"] .site-header.is-scrolled {
      background: rgba(10, 18, 34, 0.22);
      border-color: rgba(110, 210, 255, 0.14);
      -webkit-backdrop-filter: blur(30px) saturate(2.1) brightness(1.06) contrast(1.06);
      backdrop-filter: blur(30px) saturate(2.1) brightness(1.06) contrast(1.06);
      box-shadow:
        0 18px 46px rgba(0,0,0, 0.28),
        0 0 24px rgba(0,170,255, 0.08),
        inset 0 1px 0 rgba(255,255,255, 0.08);
    }


    .logo,
    .nav a,
    .header-action,
    .theme-toggle,
    .btn {
      position: relative;
      z-index: 1;
      color: inherit;
      text-decoration: none;
      font: inherit;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 680;
      letter-spacing: -0.01em;
      justify-self: start;
    }

    .logo-mark {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 35% 30%, #fff 0 15%, transparent 16%),
        linear-gradient(135deg, var(--blue-2), var(--blue));
      box-shadow: 0 0 24px rgba(0, 122, 255, 0.30);
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 4px;
      justify-self: center;
    }

    .nav a,
    .theme-toggle,
    .header-action {
      border: 0;
      border-radius: 999px;
      padding: 9px 12px;
      background: transparent;
      color: rgba(7, 17, 31, 0.72);
      font-size: 0.86rem;
      cursor: pointer;
      transition:
        color 0.24s ease,
        background 0.24s ease,
        transform 0.24s ease,
        box-shadow 0.24s ease,
        opacity 0.24s ease;
    }

    .site-header:not(.is-scrolled) .nav a,
    .site-header:not(.is-scrolled) .theme-toggle,
    .site-header:not(.is-scrolled) .header-action {
      box-shadow: none;
    }

    html[data-theme="dark"] .site-header:not(.is-scrolled) .nav a,
    html[data-theme="dark"] .site-header:not(.is-scrolled) .theme-toggle {
      background: transparent;
      box-shadow: none;
    }

    html[data-theme="dark"] .site-header:not(.is-scrolled) .header-action {
      color: #02101e;
      background: linear-gradient(135deg, var(--blue-2), var(--electric));
      box-shadow: 0 0 0 1px rgba(0,221,255,0.18), 0 10px 26px rgba(0,170,255,0.18);
    }

    html[data-theme="dark"] .nav a,
    html[data-theme="dark"] .theme-toggle,
    html[data-theme="dark"] .header-action {
      color: rgba(246, 249, 255, 0.76);
    }

    .nav a:hover,
    .theme-toggle:hover {
      color: var(--ink);
      background: rgba(7, 17, 31, 0.07);
    }

    html[data-theme="dark"] .nav a:hover,
    html[data-theme="dark"] .theme-toggle:hover {
      background: rgba(255,255,255,0.07);
    }

    .header-tools {
      display: flex;
      align-items: center;
      gap: 6px;
      justify-self: end;
    }

    .theme-toggle {
      width: 66px;
      height: 36px;
      padding: 0;
      display: grid;
      place-items: center;
      background: transparent;
      flex: 0 0 auto;
    }

    .theme-track {
      position: relative;
      width: 66px;
      height: 36px;
      display: block;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.20);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.07)),
        rgba(7, 17, 31, 0.05);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.34),
        inset 0 -1px 0 rgba(255,255,255,0.08);
      overflow: hidden;
    }

    .theme-icon {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 14px;
      height: 14px;
      display: block;
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      opacity: 0.72;
      z-index: 1;
      pointer-events: none;
    }

    .theme-icon-sun {
      left: 10px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307111f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2.2M12 19.8V22M4.9 4.9l1.6 1.6M17.5 17.5l1.6 1.6M2 12h2.2M19.8 12H22M4.9 19.1l1.6-1.6M17.5 6.5l1.6-1.6'/%3E%3C/svg%3E");
    }

    .theme-icon-moon {
      right: 10px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307111f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 14.6A9 9 0 1 1 9.4 3 7 7 0 0 0 21 14.6Z'/%3E%3C/svg%3E");
    }

    html[data-theme="dark"] .theme-icon-sun {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f9ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2.2M12 19.8V22M4.9 4.9l1.6 1.6M17.5 17.5l1.6 1.6M2 12h2.2M19.8 12H22M4.9 19.1l1.6-1.6M17.5 6.5l1.6-1.6'/%3E%3C/svg%3E");
    }

    html[data-theme="dark"] .theme-icon-moon {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 14.6A9 9 0 1 1 9.4 3 7 7 0 0 0 21 14.6Z'/%3E%3C/svg%3E");
    }

    .theme-thumb {
      position: absolute;
      top: 4px;
      left: 4px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(220,238,255,0.88));
      box-shadow: 0 8px 18px rgba(0, 85, 160, 0.22), inset 0 1px 0 rgba(255,255,255,0.92);
      transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
      z-index: 2;
    }

    html[data-theme="dark"] .theme-thumb {
      transform: translateX(30px);
      background: linear-gradient(180deg, rgba(106, 217, 255, 0.94), rgba(41, 139, 230, 0.92));
      box-shadow: 0 8px 18px rgba(0, 170, 255, 0.26), inset 0 1px 0 rgba(255,255,255,0.24);
    }

    .header-action {
      width: 86px;
      min-width: 86px;
      height: 36px;
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: var(--ink);
      padding: 0 14px;
      white-space: nowrap;
      line-height: 1;
      font-weight: 600;
      font-variation-settings: normal;
    }

    html[data-theme="dark"] .header-action {
      width: 86px;
      min-width: 86px;
      color: #02101e;
      background: linear-gradient(135deg, var(--blue-2), var(--electric));
      box-shadow: 0 0 0 1px rgba(0,221,255,0.18), 0 10px 26px rgba(0,170,255,0.18);
      font-weight: 600;
    }

    .header-action:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 34px var(--shadow);
    }

    main {
      position: relative;
      z-index: 1;
    }

    .scene {
      width: min(var(--max), calc(100% - 34px));
      margin: 0 auto;
      min-height: auto;
      display: grid;
      align-items: center;
      padding: 46px 0 44px;
      position: relative;
      transform: none !important;
      opacity: 1 !important;
      filter: none !important;
      will-change: auto;
    }

    .hero {
      text-align: center;
      place-items: center;
      min-height: auto;
      padding-top: 86px;
      padding-bottom: 220px;
      perspective: 1400px;
    }


    .hero-inner {
      width: min(1080px, 100%);
      display: grid;
      gap: 28px;
      justify-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 9px 16px;
      border-radius: 999px;
      background: var(--glass);
      color: rgba(7, 17, 31, 0.66);
      border: 1px solid rgba(7, 17, 31, 0.07);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      font-size: 0.86rem;
      letter-spacing: 0.01em;
    }

    html[data-theme="dark"] .eyebrow {
      color: rgba(246,249,255,0.72);
      border-color: rgba(255,255,255,0.08);
    }

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
    }

    h1 {
      margin-bottom: 0;
      font-size: clamp(2.35rem, 6.6vw, 6.9rem);
      line-height: 1.02;
      letter-spacing: -0.028em;
      font-weight: 740;
      max-width: 980px;
    }

    h2 {
      margin: 0 0 30px;
      font-size: clamp(1.95rem, 4.1vw, 4.45rem);
      line-height: 1.1;
      letter-spacing: -0.018em;
      font-weight: 730;
      max-width: 920px;
      overflow-wrap: normal;
      word-break: normal;
      hyphens: none;
      text-wrap: balance;
    }

    h3 {
      letter-spacing: -0.01em;
    }

    .gradient-text {
      display: block;
      margin-top: 8px;
      color: transparent;
      background: linear-gradient(100deg, var(--ink) 0%, var(--blue) 42%, var(--blue-2) 68%, var(--electric) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      filter: drop-shadow(0 22px 50px rgba(0, 122, 255, 0.14));
    }

    html[data-theme="dark"] .gradient-text {
      background: linear-gradient(100deg, #fff 0%, #7fdcff 34%, #00aaff 64%, #0066ff 100%);
      -webkit-background-clip: text;
      background-clip: text;
    }

    .hero-copy,
    .lead,
    .service-row p,
    .step p {
      color: var(--muted);
      line-height: 1.78;
      letter-spacing: 0;
    }

    .hero-copy {
      margin: 0;
      width: min(790px, 100%);
      font-size: clamp(1.08rem, 2vw, 1.36rem);
    }

    .lead {
      margin: 0;
      font-size: clamp(1.04rem, 1.8vw, 1.3rem);
      max-width: 700px;
    }

    .section-kicker {
      color: var(--accent);
      font-size: 0.86rem;
      margin-bottom: 22px;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      font-weight: 680;
    }

    .actions {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .portfolio-controls {
      --portfolio-open: 0;
      display: grid;
      gap: 14px;
      margin-top: 30px;
      width: min(560px, 100%);
    }

    .portfolio-projects {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .portfolio-tab {
      appearance: none;
      -webkit-appearance: none;
      min-height: 44px;
      padding: 0 18px;
      border-radius: 999px;
      border: 1px solid transparent;
      outline: 0;
      background: var(--glass);
      color: var(--ink);
      -webkit-backdrop-filter: blur(16px);
      backdrop-filter: blur(16px);
      cursor: pointer;
      font: inherit;
      font-size: 0.94rem;
      box-shadow: inset 0 0 0 1px rgba(7,17,31,0.08);
      background-clip: padding-box;
      transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
    }

    .portfolio-tab.is-active {
      color: #fff;
      border-color: transparent;
      background: var(--blue);
      box-shadow: 0 16px 38px var(--shadow);
    }

    html[data-theme="dark"] .portfolio-tab {
      color: var(--ink);
      border-color: transparent;
      background: var(--glass);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

    html[data-theme="dark"] .portfolio-tab.is-active {
      color: #02101e;
      border-color: transparent;
      background: linear-gradient(135deg, var(--blue-2), var(--electric));
      box-shadow: 0 16px 38px rgba(0,170,255,0.14);
    }

    .portfolio-tab:hover {
      transform: translateY(-1px);
      box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
        0 10px 24px color-mix(in srgb, var(--shadow) 70%, transparent);
    }

    .portfolio-tab.is-active:hover {
      box-shadow: 0 16px 38px var(--shadow);
    }

    .portfolio-tab:focus-visible {
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
    }

    .portfolio-tab:not(.is-active):hover {
      background: color-mix(in srgb, var(--glass) 76%, var(--accent) 8%);
    }

    .portfolio-extra {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      padding: 0 4px;
      margin: 0 -4px;
      transform: translateY(-8px);
      transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), padding 0.28s ease;
    }

    .portfolio-controls.is-expanded .portfolio-extra {
      max-height: 260px;
      opacity: 1;
      overflow: visible;
      padding: 4px 4px 8px;
      transform: translateY(0);
    }

    .portfolio-extra .portfolio-tab {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      isolation: isolate;
      border-radius: 999px;
      transform: translateZ(0);
      -webkit-mask-image: -webkit-radial-gradient(white, black);
    }

    .portfolio-expand {
      appearance: none;
      -webkit-appearance: none;
      width: min(340px, 100%);
      min-height: 42px;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 14px;
      border: 0;
      outline: 0;
      padding: 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font: inherit;
      text-align: left;
    }

    .portfolio-expand-line {
      position: relative;
      height: 1px;
      display: block;
      background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 48%, transparent), transparent);
      opacity: 0.74;
      transition: opacity 0.24s ease, transform 0.24s ease;
    }

    .portfolio-expand-line::after {
      content: "";
      position: absolute;
      right: 0;
      top: 50%;
      width: 9px;
      height: 9px;
      border-top: 1px solid currentColor;
      border-right: 1px solid currentColor;
      color: var(--accent);
      transform: translateY(-50%) rotate(45deg);
      transform-origin: center;
      transition: opacity 0.2s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .portfolio-expand-text {
      position: relative;
      min-width: 106px;
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1;
      letter-spacing: 0.02em;
      border-radius: 999px;
      transition: color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    }

    .portfolio-expand-text::before {
      content: "Показать ещё";
    }

    .portfolio-controls.is-expanded .portfolio-expand {
      width: min(340px, 100%);
      grid-template-columns: 1fr auto;
    }

    .portfolio-controls.is-expanded .portfolio-expand-line {
      background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 48%, transparent), transparent);
    }

    .portfolio-controls.is-expanded .portfolio-expand-line::after {
      width: 10px;
      height: 10px;
      right: -1px;
      border-top: 1px solid currentColor;
      border-right: 0;
      border-left: 1px solid currentColor;
      transform: translateY(-50%) rotate(45deg);
    }

    .portfolio-controls.is-expanded .portfolio-expand-text {
      min-width: 106px;
      justify-content: flex-start;
      padding: 0;
      color: var(--muted);
      background: transparent;
      border: 0;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .portfolio-controls.is-expanded .portfolio-expand-text::before {
      content: "Свернуть";
    }

    .portfolio-expand:hover .portfolio-expand-line {
      opacity: 1;
      transform: translateX(4px);
    }

    .portfolio-expand:hover .portfolio-expand-text {
      color: var(--ink);
    }

    .portfolio-controls.is-expanded .portfolio-expand:hover .portfolio-expand-line {
      transform: translateX(-4px);
    }

    .portfolio-expand:focus-visible .portfolio-expand-line {
      opacity: 1;
    }

    .btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      padding: 0 23px;
      border: 1px solid transparent;
      border-radius: 999px;
      cursor: pointer;
      font-size: 0.96rem;
      overflow: hidden;
      transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    }

    .btn-primary {
      color: #fff;
      background: var(--blue);
      box-shadow: 0 18px 44px var(--shadow);
    }

    html[data-theme="dark"] .btn-primary {
      color: #02101e;
      background: linear-gradient(135deg, var(--blue-2), var(--electric));
      font-weight: 650;
    }

    .btn-secondary {
      background: rgba(255,255,255,0.74);
      color: var(--ink);
      border-color: rgba(7, 17, 31, 0.08);
      box-shadow: inset 0 0 0 1px rgba(7, 17, 31, 0.04);
      -webkit-backdrop-filter: blur(16px);
      backdrop-filter: blur(16px);
    }

    html[data-theme="dark"] .btn-secondary {
      background: rgba(12, 20, 34, 0.72);
      color: #eef7ff;
      border-color: rgba(126, 205, 255, 0.18);
      box-shadow:
        inset 0 0 0 1px rgba(126, 205, 255, 0.08),
        0 10px 28px rgba(0, 170, 255, 0.08);
    }

    .btn:hover {
      transform: translateY(-2px) scale(1.012);
      box-shadow: 0 28px 70px var(--shadow);
    }

    .btn-secondary:hover {
      box-shadow:
        inset 0 0 0 1px rgba(7, 17, 31, 0.08),
        0 18px 40px rgba(32, 103, 180, 0.12);
    }

    html[data-theme="dark"] .btn-secondary:hover {
      box-shadow:
        inset 0 0 0 1px rgba(126, 205, 255, 0.14),
        0 18px 40px rgba(0, 170, 255, 0.12);
    }

    .hero-meta {
      width: min(920px, 100%);
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 30px;
      margin-top: 8px;
      align-items: start;
    }

    .hero-meta div {
      display: grid;
      grid-template-rows: 52px auto;
      justify-items: center;
      align-items: start;
      text-align: center;
      gap: 12px;
    }

    .meta-icon {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      color: var(--accent);
      align-self: start;
    }

    .meta-icon svg {
      width: 42px;
      height: 42px;
      display: block;
      filter: drop-shadow(0 10px 22px rgba(0,122,255,0.18));
    }

    .hero-meta p {
      margin: 0;
      width: 100%;
    }

    .hero-meta b {
      display: block;
      min-height: 2.7em;
      color: var(--ink);
      font-size: clamp(1rem, 1.8vw, 1.22rem);
      line-height: 1.28;
      letter-spacing: -0.006em;
      font-weight: 720;
    }

    .hero-meta span {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.55;
    }

    .split {
      grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
      gap: clamp(42px, 7vw, 96px);
    }

    .split.reverse {
      grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    }

    #portfolio h2 {
      font-size: clamp(2rem, 4.05vw, 4.35rem);
      max-width: 760px;
    }

    .services-list {
      display: grid;
      gap: 0;
      border-top: 1px solid var(--line);
    }

    .service-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 34px;
      align-items: start;
      padding: 36px 0;
      border-bottom: 1px solid var(--line);
    }

    .service-row h3 {
      margin: 0 0 14px;
      font-size: clamp(1.38rem, 2.8vw, 2.45rem);
      line-height: 1.18;
      font-weight: 660;
    }

    .service-row p {
      margin: 0;
      max-width: 600px;
      font-size: 1.02rem;
    }

    .price {
      color: var(--ink);
      font-weight: 680;
      white-space: nowrap;
      padding-top: 8px;
    }

    .visual-stage,
    .portfolio-shot {
      min-height: 500px;
      position: relative;
      display: grid;
      place-items: center;
    }

    .depth-object {
      width: min(560px, 100%);
      aspect-ratio: 1 / 1;
      position: relative;
      isolation: isolate;
    }

    .depth-object::before {
      content: "";
      position: absolute;
      left: 8%;
      right: 2%;
      bottom: 5%;
      height: 32%;
      border-radius: 50%;
      background:
        radial-gradient(ellipse at center,
          rgba(0, 122, 255, 0.18) 0%,
          rgba(66, 201, 255, 0.11) 38%,
          transparent 72%
        );
      filter: blur(28px);
      opacity: 0.78;
      transform: rotate(4deg);
      z-index: -1;
      pointer-events: none;
    }

    html[data-theme="dark"] .depth-object::before {
      background:
        radial-gradient(ellipse at center,
          rgba(0, 170, 255, 0.24) 0%,
          rgba(0, 95, 210, 0.15) 38%,
          transparent 74%
        );
      opacity: 0.9;
    }

    .glass-plane {
      position: absolute;
      inset: 10% 18% 16% 2%;
      border-radius: 38px;
      background:
        linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.34));
      border: 1px solid var(--line);
      -webkit-backdrop-filter: blur(16px) saturate(1.12);
      backdrop-filter: blur(16px) saturate(1.12);
      box-shadow:
        0 26px 64px rgba(32, 103, 180, 0.13),
        0 16px 42px rgba(0, 122, 255, 0.08);
      transform: rotate(-6deg);
      overflow: hidden;
    }

    html[data-theme="dark"] .glass-plane {
      background:
        linear-gradient(145deg, rgba(18, 30, 48, 0.76), rgba(8, 15, 28, 0.46));
      border-color: rgba(126, 205, 255, 0.14);
      box-shadow:
        0 30px 76px rgba(0, 0, 0, 0.34),
        0 18px 54px rgba(0, 170, 255, 0.10);
    }

    .glass-plane::before {
      content: "";
      position: absolute;
      inset: 42px;
      border-radius: 30px;
      background:
        linear-gradient(90deg, rgba(0, 122, 255, 0.045), transparent 58%),
        repeating-linear-gradient(
          to bottom,
          rgba(7,17,31,0.15) 0 10px,
          transparent 10px 26px
        );
      opacity: 0.64;
    }

    html[data-theme="dark"] .glass-plane::before {
      background:
        linear-gradient(90deg, rgba(0, 170, 255, 0.055), transparent 62%),
        repeating-linear-gradient(
          to bottom,
          rgba(222, 242, 255, 0.18) 0 10px,
          transparent 10px 26px
        );
      opacity: 0.78;
    }

    .glass-plane.two {
      inset: 20% 2% 6% 22%;
      transform: rotate(7deg);
      opacity: 0.82;
      box-shadow:
        0 28px 68px rgba(32, 103, 180, 0.12),
        0 14px 38px rgba(0, 122, 255, 0.055);
    }

    .glass-plane.two::before {
      background:
        linear-gradient(90deg, rgba(0, 122, 255, 0.025), transparent 64%),
        repeating-linear-gradient(
          to bottom,
          rgba(7,17,31,0.12) 0 10px,
          transparent 10px 26px
        );
      opacity: 0.56;
    }

    html[data-theme="dark"] .glass-plane.two {
      opacity: 0.88;
      box-shadow:
        0 30px 76px rgba(0, 0, 0, 0.30),
        0 18px 50px rgba(0, 170, 255, 0.07);
    }

    html[data-theme="dark"] .glass-plane.two::before {
      background:
        linear-gradient(90deg, rgba(0, 170, 255, 0.035), transparent 66%),
        repeating-linear-gradient(
          to bottom,
          rgba(226, 244, 255, 0.16) 0 10px,
          transparent 10px 26px
        );
      opacity: 0.72;
    }

    .floating-chip {
      position: absolute;
      padding: 12px 16px;
      border-radius: 999px;
      background: var(--glass-2);
      border: 1px solid var(--line);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      color: var(--ink);
      font-size: 0.9rem;
      box-shadow: 0 18px 46px var(--shadow);
    }

    .floating-chip.one { left: 4%; top: 18%; animation: floatCard 5.4s ease-in-out infinite alternate; }
    .floating-chip.two { right: 4%; top: 28%; animation: floatCard 6.2s ease-in-out infinite alternate-reverse; }
    .floating-chip.three { left: 16%; bottom: 12%; animation: floatCard 4.8s ease-in-out infinite alternate; }

    .portfolio-shot {
      border-radius: 42px;
      background:
        radial-gradient(circle at 20% 18%, rgba(66,201,255,0.12), transparent 34%),
        linear-gradient(145deg, var(--glass-2), rgba(255,255,255,0.26));
      border: 0;
      -webkit-backdrop-filter: blur(18px);
      backdrop-filter: blur(18px);
      box-shadow: 0 34px 88px rgba(32, 103, 180, 0.13);
      overflow: hidden;
    }

    html[data-theme="dark"] .portfolio-shot {
      border-color: transparent;
      background:
        radial-gradient(circle at 78% 12%, rgba(0, 170, 255, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(13, 23, 40, 0.82), rgba(5, 10, 22, 0.66));
      box-shadow: 0 36px 92px rgba(0, 0, 0, 0.30), 0 18px 54px rgba(0, 170, 255, 0.08);
    }

    .portfolio-gallery {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: inherit;
      padding: 24px 24px 64px;
      display: grid;
    }

    .portfolio-slides {
      position: relative;
      min-height: 430px;
      border-radius: 30px;
      overflow: hidden;
      background: #eef2f7;
      box-shadow: inset 0 0 0 1px rgba(7,17,31,0.08);
      cursor: pointer;
      touch-action: pan-y;
      user-select: none;
      -webkit-user-select: none;
    }

    html[data-theme="dark"] .portfolio-slides {
      background: #07111f;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    }

    .portfolio-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transform: scale(1.012);
      transition: opacity 0.45s ease, transform 0.55s ease;
      pointer-events: none;
      background: transparent;
    }

    .portfolio-slide img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      border-radius: inherit;
      background: #f1f4f8;
    }

    html[data-theme="dark"] .portfolio-slide img {
      background: #07111f;
    }

    .portfolio-slide.is-active {
      opacity: 1;
      transform: scale(1);
      pointer-events: auto;
    }

    .portfolio-slide.yagoda-1 {
      background:
        linear-gradient(120deg, rgba(23, 18, 16, 0.88), rgba(54, 37, 33, 0.58)),
        radial-gradient(circle at 18% 18%, rgba(255, 206, 218, 0.26), transparent 32%),
        radial-gradient(circle at 86% 4%, rgba(66,201,255,0.24), transparent 34%);
    }

    .portfolio-slide.yagoda-2 {
      background:
        linear-gradient(130deg, rgba(13, 24, 31, 0.90), rgba(37, 72, 92, 0.58)),
        radial-gradient(circle at 18% 16%, rgba(255,255,255,0.20), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(0,122,255,0.26), transparent 36%);
    }

    .portfolio-slide.yagoda-3 {
      background:
        linear-gradient(130deg, rgba(30, 20, 42, 0.88), rgba(89, 58, 110, 0.52)),
        radial-gradient(circle at 20% 16%, rgba(255, 145, 175, 0.24), transparent 34%),
        radial-gradient(circle at 86% 10%, rgba(255,255,255,0.16), transparent 36%);
    }

    .portfolio-slide.apx-1 {
      background:
        linear-gradient(130deg, rgba(3, 8, 16, 0.94), rgba(8, 22, 40, 0.72)),
        radial-gradient(circle at 84% 12%, rgba(0, 170, 255, 0.42), transparent 34%);
    }

    .portfolio-slide.apx-2 {
      background:
        linear-gradient(130deg, rgba(4, 10, 18, 0.94), rgba(19, 43, 60, 0.68)),
        repeating-linear-gradient(135deg, rgba(0,170,255,0.13) 0 1px, transparent 1px 28px),
        radial-gradient(circle at 18% 8%, rgba(0,221,255,0.28), transparent 32%);
    }

    .portfolio-slide.apx-3 {
      background:
        linear-gradient(130deg, rgba(8, 12, 20, 0.96), rgba(23, 28, 42, 0.70)),
        radial-gradient(circle at 82% 8%, rgba(70, 150, 255, 0.34), transparent 35%),
        radial-gradient(circle at 12% 92%, rgba(0,221,255,0.16), transparent 34%);
    }

    .portfolio-slide.apx-4 {
      background:
        linear-gradient(130deg, rgba(3, 5, 10, 0.94), rgba(11, 26, 45, 0.74)),
        radial-gradient(circle at 50% 0%, rgba(0, 170, 255, 0.32), transparent 38%);
    }

    .portfolio-slide::before {
      content: "";
      position: absolute;
      inset: 42px 48px 88px;
      border-radius: 26px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
        repeating-linear-gradient(to bottom, rgba(255,255,255,0.18) 0 10px, transparent 10px 30px);
      opacity: 0.58;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

    .portfolio-slide::after {
      content: "";
      position: absolute;
      right: 48px;
      top: 48px;
      width: 108px;
      height: 108px;
      border-radius: 28px;
      background: rgba(255,255,255,0.12);
      box-shadow:
        -150px 120px 0 -22px rgba(255,255,255,0.10),
        -70px 178px 0 -28px rgba(255,255,255,0.12),
        -210px 238px 0 -34px rgba(255,255,255,0.10);
    }

    .portfolio-slide-title {
      display: none;
    }

    .portfolio-frame-title {
      position: absolute;
      left: 34px;
      bottom: 18px;
      z-index: 4;
      color: var(--ink-soft);
      font-size: 1rem;
      letter-spacing: 0.01em;
      font-weight: 740;
    }

    .portfolio-slide::before,
    .portfolio-slide::after {
      display: none;
    }

    .portfolio-gallery:focus-visible .portfolio-slides {
      box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.06),
        0 0 0 3px color-mix(in srgb, var(--accent) 38%, transparent);
    }

    .portfolio-dots {
      position: absolute;
      z-index: 4;
      left: 50%;
      bottom: 16px;
      transform: translateX(-50%);
      display: flex;
      justify-content: center;
      gap: 8px;
    }

    .portfolio-dot {
      width: 8px;
      height: 8px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: rgba(80, 95, 120, 0.36);
      cursor: pointer;
      transition: width 0.25s ease, background 0.25s ease;
    }

    .portfolio-dot.is-active {
      width: 26px;
      background: #007aff;
    }

    html[data-theme="dark"] .portfolio-dot {
      background: rgba(214, 230, 255, 0.28);
    }

    html[data-theme="dark"] .portfolio-dot.is-active {
      background: #48a8ff;
    }

    .process-flow {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      margin-top: 38px;
    }

    .step {
      min-height: 230px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding-top: 24px;
      border-top: 1px solid var(--line);
    }

    .step b {
      color: var(--muted-2);
      font-size: 0.9rem;
      font-weight: 680;
    }

    .step p {
      margin: 0;
      color: var(--ink-soft);
      font-size: clamp(1.08rem, 1.8vw, 1.42rem);
      line-height: 1.44;
      max-width: 260px;
    }

    .final-cta {
      text-align: center;
      min-height: auto;
      place-items: center;
    }

    .final-cta .lead {
      margin-inline: auto;
    }

    .modal {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: none;
      place-items: center;
      padding: 18px;
      pointer-events: none;
    }

    .modal.is-open {
      display: grid;
      pointer-events: auto;
    }

    .modal-bg {
      position: absolute;
      inset: 0;
      background: rgba(248,251,255,0.56);
      -webkit-backdrop-filter: blur(20px);
      backdrop-filter: blur(20px);
    }

    html[data-theme="dark"] .modal-bg {
      background: rgba(2,4,10,0.58);
    }

    .modal-dialog {
      position: relative;
      z-index: 1;
      width: min(600px, 100%);
      border-radius: 34px;
      padding: 22px;
      background: var(--glass-2);
      border: 1px solid var(--line);
      -webkit-backdrop-filter: blur(26px) saturate(1.25);
      backdrop-filter: blur(26px) saturate(1.25);
      box-shadow: 0 40px 140px var(--shadow);
    }

    .modal-close {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 0;
      background: rgba(7,17,31,0.07);
      color: var(--ink);
      cursor: pointer;
      font-size: 1.3rem;
    }

    .form {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }

    .form.is-hidden,
    .modal-form-view.is-hidden {
      display: none;
    }

    label {
      display: grid;
      gap: 6px;
      color: var(--muted);
      font-size: 0.78rem;
      line-height: 1.45;
    }

    input,
    textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px;
      background: rgba(7,17,31,0.04);
      color: var(--ink);
      font: inherit;
      outline: none;
    }

    input:focus,
    textarea:focus {
      box-shadow: 0 0 0 3px rgba(0,122,255,0.16);
      border-color: rgba(0,122,255,0.24);
      background: var(--glass-2);
    }

    textarea {
      resize: vertical;
    }

    .form-status {
      min-height: 22px;
      margin: 2px 0 0;
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.45;
    }

    .modal-result {
      display: none;
      min-height: 320px;
      place-items: center;
      text-align: center;
      padding: 16px 8px 0;
    }

    .modal-result.is-visible {
      display: grid;
    }

    .modal-result-content {
      width: min(520px, 100%);
      display: grid;
      gap: 10px;
      place-items: center;
    }

    .modal-result-spinner {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: 3px solid rgba(0,122,255,0.2);
      border-top-color: var(--blue);
      animation: spin 1s linear infinite;
    }

    .modal-result-icon {
      display: none;
      width: 68px;
      height: 68px;
      border-radius: 50%;
      place-items: center;
      font-size: 2rem;
      font-weight: 700;
    }

    .modal-result.is-success .modal-result-icon,
    .modal-result.is-error .modal-result-icon {
      display: grid;
    }

    .modal-result.is-success .modal-result-spinner,
    .modal-result.is-error .modal-result-spinner {
      display: none;
    }

    .modal-result.is-success .modal-result-icon {
      color: #0d8b43;
      background: rgba(13, 139, 67, 0.12);
      border: 1px solid rgba(13, 139, 67, 0.26);
    }

    .modal-result.is-error .modal-result-icon {
      color: #c22525;
      background: rgba(194, 37, 37, 0.12);
      border: 1px solid rgba(194, 37, 37, 0.26);
    }

    .modal-result-title {
      margin: 2px 0 0;
      font-size: 1.1rem;
      font-weight: 680;
    }

    .modal-result-text {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
    }

    .modal-result-link {
      margin-top: 6px;
    }

    .custom-select-trigger {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 14px;
      background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.52));
      color: var(--ink);
      font: inherit;
      text-align: left;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      transition: box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    }

    .custom-select-trigger[aria-expanded="true"] {
      box-shadow: 0 0 0 3px rgba(0,122,255,0.16);
      border-color: rgba(0,122,255,0.24);
      background: var(--glass-2);
    }

    .custom-select-arrow {
      width: 10px;
      height: 10px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
      transition: transform 0.24s ease;
      opacity: 0.72;
      margin-left: 10px;
      flex: 0 0 auto;
    }

    .custom-select-trigger[aria-expanded="true"] .custom-select-arrow {
      transform: rotate(-135deg) translateY(-1px);
    }

    .custom-select-menu {
      margin-top: 8px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--glass-2);
      overflow: hidden;
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
    }

    .custom-select-option {
      width: 100%;
      border: 0;
      border-top: 1px solid var(--line);
      background: rgba(255,255,255,0.66);
      color: var(--ink);
      font: inherit;
      text-align: left;
      padding: 11px 12px;
      cursor: pointer;
    }

    .custom-select-option:first-child {
      border-top: 0;
    }

    .custom-select-option:hover,
    .custom-select-option.is-active {
      background: rgba(0,122,255,0.14);
    }

    html[data-theme="dark"] .custom-select-trigger {
      background: rgba(7,17,31,0.25);
    }

    html[data-theme="dark"] .custom-select-option {
      background: rgba(7,17,31,0.62);
    }

    .site-end {
      position: relative;
      z-index: 1;
      width: min(var(--max), calc(100% - 34px));
      margin: 0 auto 0;
      padding: 0 0 96px;
    }

    .site-end-inner {
      position: relative;
      overflow: hidden;
      border-radius: 42px;
      padding: clamp(32px, 5vw, 52px);
      background: linear-gradient(180deg, var(--glass-2), var(--glass));
      border: 1px solid var(--line);
      -webkit-backdrop-filter: blur(18px) saturate(1.2);
      backdrop-filter: blur(18px) saturate(1.2);
      box-shadow: 0 36px 100px var(--shadow);
    }

    .site-end-glow {
      position: absolute;
      width: 440px;
      height: 440px;
      right: -150px;
      bottom: -190px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(66, 201, 255, 0.22) 0%, transparent 68%);
      filter: blur(30px);
      pointer-events: none;
      animation: footerGlowFloat 6s ease-in-out infinite alternate;
    }

    html[data-theme="dark"] .site-end-inner {
      background:
        radial-gradient(circle at 80% 80%, rgba(0, 170, 255, 0.12), transparent 32%),
        linear-gradient(180deg, var(--glass-2), var(--glass));
    }

    .site-end-center {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 22px;
      justify-items: center;
      text-align: center;
      margin: 0 0 28px;
    }

    .site-end-wordmark {
      max-width: 100%;
      padding: 0 0.08em 0.04em;
      font-size: clamp(3rem, 9.2vw, 7.4rem);
      line-height: 1;
      letter-spacing: -0.035em;
      font-weight: 760;
      color: transparent;
      background: linear-gradient(90deg, var(--ink), var(--blue), var(--blue-2));
      -webkit-background-clip: text;
      background-clip: text;
      opacity: 0.95;
    }

    html[data-theme="dark"] .site-end-wordmark {
      background: linear-gradient(90deg, #ffffff, #67d8ff, #00aaff);
      -webkit-background-clip: text;
      background-clip: text;
      filter: drop-shadow(0 0 34px rgba(0, 170, 255, 0.16));
    }

    .site-end-line {
      width: min(760px, 100%);
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(7,17,31,0.18), transparent);
    }

    html[data-theme="dark"] .site-end-line {
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
    }

    .site-end-bottom {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 18px;
      justify-items: center;
      text-align: center;
    }

    .site-end-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px 18px;
    }

    .site-end-links a {
      color: var(--ink-soft);
      text-decoration: none;
      font-size: 0.95rem;
      transition: color 0.22s ease, transform 0.22s ease;
    }

    .site-end-links a:hover {
      color: var(--accent);
      transform: translateY(-1px);
    }

    .site-end-meta {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 18px;
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.5;
    }

    .site-end-meta span {
      position: relative;
    }

    .site-end-meta span:not(:last-child)::after {
      content: "•";
      margin-left: 18px;
      color: rgba(7,17,31,0.22);
    }

    html[data-theme="dark"] .site-end-meta span:not(:last-child)::after {
      color: rgba(255,255,255,0.20);
    }

    .reveal,
    .site-end.reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .reveal.in-view,
    .site-end.reveal.in-view {
      opacity: 1;
      transform: translateY(0);
    }

    .stagger > * {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .reveal:not(.in-view) .stagger > * {
      opacity: 0;
      transform: translate3d(0, 18px, 0);
    }

    .reveal.in-view .stagger > * {
      opacity: 1;
      transform: translate3d(0, 0, 0);
      transition:
        opacity 0.52s ease,
        transform 0.58s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .split.reveal:not(.in-view) > .stagger:first-child,
    .split.reveal:not(.in-view) > .visual-stage,
    .split.reveal:not(.in-view) > .portfolio-shot {
      opacity: 0;
      transform: translate3d(0, 22px, 0);
    }

    .split.reveal.in-view > .stagger:first-child,
    .split.reveal.in-view > .visual-stage,
    .split.reveal.in-view > .portfolio-shot {
      opacity: 1;
      transform: translate3d(0, 0, 0);
      transition:
        opacity 0.58s ease,
        transform 0.64s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    @media (min-width: 861px) {
      .split.reveal:not(.in-view) > .stagger:first-child {
        transform: translate3d(-24px, 12px, 0);
      }

      .split.reverse.reveal:not(.in-view) > .stagger:first-child,
      .split.reveal:not(.in-view) > .visual-stage,
      .split.reveal:not(.in-view) > .portfolio-shot {
        transform: translate3d(24px, 12px, 0);
      }
    }

    .in-view .stagger > *:nth-child(1) { transition-delay: 0.06s; }
    .in-view .stagger > *:nth-child(2) { transition-delay: 0.14s; }
    .in-view .stagger > *:nth-child(3) { transition-delay: 0.22s; }
    .in-view .stagger > *:nth-child(4) { transition-delay: 0.30s; }
    .in-view .stagger > *:nth-child(5) { transition-delay: 0.38s; }

    .in-view .stagger > * {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @keyframes auraMove {
      from { transform: translate3d(0, 0, 0) scale(1); }
      to { transform: translate3d(4vw, -4vh, 0) scale(1.08); }
    }

    @keyframes floatCard {
      from { transform: translate3d(-7px, 8px, 0); }
      to { transform: translate3d(8px, -8px, 0); }
    }

    @keyframes footerGlowFloat {
      from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
      to { transform: translate3d(-14px, -12px, 0) scale(1.08); opacity: 1; }
    }

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

    @media (max-width: 960px) {
      .split,
      .split.reverse {
        grid-template-columns: 1fr;
      }

      .visual-stage,
      .portfolio-shot {
        min-height: 430px;
      }

      .process-flow {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 740px) {
      .site-header {
        top: 10px;
        width: calc(100% - 16px);
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 8px 8px 8px 12px;
        gap: 8px;
      }

      .nav {
        display: none;
      }

      .logo {
        align-self: center;
        padding-top: 0;
      }

      .header-tools {
        display: flex;
        align-items: center;
        gap: 6px;
        justify-self: end;
      }

      .header-action {
        width: 74px;
        min-width: 74px;
        padding-inline: 9px;
        font-size: 0.8rem;
      }

      html[data-theme="dark"] .header-action {
        width: 74px;
        min-width: 74px;
      }

      .logo { font-size: 0.95rem; }

      .scene {
        width: calc(100% - 24px);
        padding: 70px 0 58px;
        min-height: auto;
      }

      .hero {
        min-height: 100svh;
        padding-top: 92px;
        padding-bottom: 44px;
      }

      .hero-inner {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
      }

      h1 {
        font-size: clamp(2.55rem, 11.5vw, 5rem);
        line-height: 1.04;
      }

      h2 {
        font-size: clamp(2.15rem, 9.6vw, 4.2rem);
      }

      #portfolio h2 {
        font-size: clamp(2rem, 8.8vw, 3.75rem);
        max-width: 100%;
      }

      .hero-meta,
      .process-flow {
        grid-template-columns: 1fr;
      }

      .service-row {
        grid-template-columns: 1fr;
        gap: 14px;
      }

      .visual-stage,
      .portfolio-shot {
        min-height: 320px;
      }

      .portfolio-shot::before {
        inset: 24px;
        border-radius: 24px;
      }

      .portfolio-shot::after {
        left: 44px;
        bottom: 50px;
      }

      .theme-toggle {
        width: 58px;
        height: 32px;
      }

      .theme-track {
        width: 58px;
        height: 32px;
      }

      .theme-icon-sun {
        left: 9px;
      }

      .theme-icon-moon {
        right: 9px;
      }

      .theme-thumb {
        width: 24px;
        height: 24px;
      }

      html[data-theme="dark"] .theme-thumb {
        transform: translateX(26px);
      }

      .hero-meta {
        gap: 24px;
      }

      .hero-meta div {
        grid-template-rows: 48px auto;
        gap: 10px;
      }

      .meta-icon {
        width: 48px;
        height: 48px;
      }

      .meta-icon svg {
        width: 38px;
        height: 38px;
      }

      .hero-meta b {
        min-height: auto;
      }

      .site-end {
        width: calc(100% - 24px);
        padding-bottom: 84px;
      }

      .site-end-inner {
        border-radius: 28px;
        padding: 26px 20px;
      }

      .site-end-center {
        margin-bottom: 24px;
      }

      .site-end-meta {
        display: grid;
        gap: 8px;
      }

      .site-end-meta span:not(:last-child)::after {
        display: none;
      }
    }
