:root {
      --bg: #f7f9fc;
      --surface: #ffffff;
      --surface-2: #f1f5f9;
      --text: #0f172a;
      --muted: #5b6474;
      --border: #dbe3ee;
      --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
      --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);

      --accent: #5b8fd8;
      --accent-2: #9ec5ef;
      --accent-soft: rgba(91, 143, 216, 0.14);
      --accent-readable: #2563eb;
      --accent-text: #0f172a;

      --radius-lg: 28px;
      --radius-md: 20px;
      --radius-sm: 14px;

      --max-width: 1180px;
    }

    html[data-mode="dark"] {
      --bg: #07101f;
      --surface: #0e1729;
      --surface-2: #111d33;
      --text: #f8fafc;
      --muted: #aeb8c8;
      --border: #22314c;
      --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
      --shadow-soft: 0 10px 34px rgba(0, 0, 0, 0.24);
      --accent-readable: var(--accent);
    }

    html[data-accent="ocean"] {
      --accent: #5b8fd8;
      --accent-2: #9ec5ef;
      --accent-soft: rgba(91, 143, 216, 0.14);
      --accent-readable: #2563eb;
    }
    html[data-accent="sage"] {
      --accent: #6f9f82;
      --accent-2: #b7d6c1;
      --accent-soft: rgba(111, 159, 130, 0.14);
      --accent-readable: #2f855a;
    }
    html[data-accent="lavender"] {
      --accent: #9a7fd1;
      --accent-2: #d3c3ef;
      --accent-soft: rgba(154, 127, 209, 0.14);
      --accent-readable: #6d28d9;
    }
    html[data-accent="slate"] {
      --accent: #7d8b9b;
      --accent-2: #c1cad4;
      --accent-soft: rgba(125, 139, 155, 0.15);
      --accent-readable: #475569;
    }
    html[data-accent="sand"] {
      --accent: #b49768;
      --accent-2: #dfc89d;
      --accent-soft: rgba(180, 151, 104, 0.15);
      --accent-readable: #8a5206;
    }
    html[data-accent="rose"] {
      --accent: #c77b8d;
      --accent-2: #e8b4c0;
      --accent-soft: rgba(199, 123, 141, 0.15);
      --accent-readable: #be123c;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at 10% 0%, var(--accent-soft), transparent 34%),
        radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 34%),
        var(--bg);
      color: var(--text);
      line-height: 1.65;
      overflow-x: hidden;
      transition: background-color .25s ease, color .25s ease;
    }

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

    button, input {
      font: inherit;
    }

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

    .container {
      width: min(var(--max-width), calc(100% - 32px));
      margin: 0 auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(18px);
      background: color-mix(in srgb, var(--bg) 84%, transparent);
      border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    }

    .nav {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 13px;
      overflow: hidden;
      background: #fff;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
      flex: 0 0 auto;
    }

    .brand-mark img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .brand-text strong {
      display: block;
      font-size: 1rem;
      letter-spacing: .01em;
    }

    .brand-text span {
      display: block;
      color: var(--muted);
      font-size: .78rem;
      line-height: 1.25;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 26px;
      font-weight: 650;
      color: var(--muted);
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .icon-btn, .menu-btn {
      width: 42px;
      height: 42px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      border-radius: 13px;
      display: inline-grid;
      place-items: center;
      cursor: pointer;
      box-shadow: var(--shadow-soft);
      transition: transform .2s ease, border-color .2s ease;
    }

    .icon-btn:hover, .menu-btn:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }

    .menu-btn {
      display: none;
    }

    .mobile-menu {
      display: none;
      padding: 0 0 18px;
    }

    .mobile-menu.open {
      display: grid;
      gap: 10px;
    }

    .mobile-menu a {
      padding: 12px 14px;
      border-radius: 12px;
      background: var(--surface);
      border: 1px solid var(--border);
      font-weight: 700;
    }

    .hero {
      padding: 70px 0 50px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 54px;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 8px 12px;
      border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 800;
      font-size: .82rem;
      border-radius: 999px;
      letter-spacing: .03em;
      text-transform: uppercase;
    }

    .hero h1 {
      margin: 18px 0 18px;
      font-size: clamp(2.55rem, 5.8vw, 5.6rem);
      line-height: .98;
      letter-spacing: -0.055em;
      max-width: 900px;
    }

    .hero h1 .accent {
      color: var(--accent);
    }

    .hero-sub {
      max-width: 760px;
      color: var(--muted);
      font-size: clamp(1rem, 1.6vw, 1.2rem);
      margin-bottom: 26px;
    }

    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 16px;
    }

    .btn {
      border: 0;
      border-radius: 14px;
      min-height: 48px;
      padding: 0 19px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      cursor: pointer;
      font-weight: 800;
      transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    }

    .btn:hover {
      transform: translateY(-2px);
    }

    .btn-primary {
      background: var(--accent);
      color: var(--accent-text);
      box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 28%, transparent);
    }

    .btn-secondary {
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }

    .btn-studio {
      margin-top: 2px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: var(--accent-text);
    }

    .quick-tags {
      margin-top: 20px;
      color: var(--muted);
      font-size: .80rem;
      font-weight: 700;
      line-height: 1.6;
      letter-spacing: .005em;
    }

    .quick-tags .sep {
      color: color-mix(in srgb, var(--muted) 72%, transparent);
      padding: 0 .42rem;
      font-weight: 500;
    }

    .hero-card {
      position: relative;
      min-height: 500px;
      border-radius: 34px;
      padding: 28px;
      background:
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 95%, transparent));
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      width: 290px;
      height: 290px;
      border-radius: 50%;
      right: -80px;
      top: -80px;
      background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    }

    .logo-stage {
      position: relative;
      min-height: 100%;
      height: 100%;
      display: grid;
      place-items: center;
      isolation: isolate;
    }

    .orbit-ring {
      position: absolute;
      width: min(380px, 92%);
      aspect-ratio: 1;
      border-radius: 50%;
      border: 1px dashed color-mix(in srgb, var(--accent) 28%, transparent);
      animation: orbitSpin 22s linear infinite;
      z-index: 0;
      pointer-events: none;
    }

    .orbit-ring.orbit-2 {
      width: min(305px, 74%);
      animation-duration: 15s;
      animation-direction: reverse;
      border-style: solid;
      border-color: color-mix(in srgb, var(--accent-2) 19%, transparent);
    }

    .orbit-star {
      position: absolute;
      left: 50%;
      top: -13px;
      width: 26px;
      height: 26px;
      margin-left: -13px;
      display: grid;
      place-items: center;
      color: var(--accent);
      font-size: 25px;
      line-height: 1;
      text-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent);
      animation: starCounterSpin 22s linear infinite;
    }

    .orbit-2 .orbit-star {
      color: var(--accent-2);
      font-size: 18px;
      animation-duration: 15s;
      animation-direction: reverse;
    }

    .free-star {
      position: absolute;
      color: var(--accent);
      opacity: .72;
      z-index: 3;
      pointer-events: none;
      animation: twinkle 3.4s ease-in-out infinite;
    }

    .free-star.s1 { left: 4%; top: 15%; font-size: 30px; }
    .free-star.s2 { right: 5%; bottom: 20%; font-size: 20px; animation-delay: -1.2s; }
    .free-star.s3 { right: 10%; top: 14%; font-size: 14px; animation-delay: -2.1s; }

    .logo-wrap {
      width: min(330px, 82%);
      aspect-ratio: 1/1;
      border-radius: 50%;
      overflow: hidden;
      background: white;
      border: 1px solid var(--border);
      box-shadow: 0 28px 60px rgba(15, 23, 42, .18);
      animation: floatLogo 5s ease-in-out infinite;
      position: relative;
      z-index: 2;
    }

    .logo-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

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

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

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

    @keyframes twinkle {
      0%,100% { transform: scale(.82) rotate(0deg); opacity: .35; }
      50% { transform: scale(1.18) rotate(18deg); opacity: .95; }
    }

    .mini-panel {
      position: relative;
      margin-top: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 17px;
      box-shadow: var(--shadow-soft);
    }

    .mini-panel strong {
      display: block;
      margin-bottom: 5px;
    }

    .mini-panel span {
      color: var(--muted);
      font-size: .93rem;
    }

    section {
      padding: 72px 0;
    }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 28px;
    }

    .section-kicker {
      color: var(--accent-readable);
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
      font-size: .78rem;
      margin-bottom: 8px;
    }

    h2 {
      margin: 0;
      font-size: clamp(2rem, 4vw, 3.5rem);
      line-height: 1.05;
      letter-spacing: -0.045em;
    }

    .section-intro {
      max-width: 640px;
      color: var(--muted);
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }

    .service-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 25px;
      box-shadow: var(--shadow-soft);
      transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    }

    .service-card:hover {
      transform: translateY(-5px);
      border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
      box-shadow: var(--shadow);
    }

    .service-icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 15px;
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 1.25rem;
      margin-bottom: 17px;
    }

    .service-card h3 {
      margin: 0 0 10px;
      font-size: 1.25rem;
    }

    .service-card p {
      margin: 0;
      color: var(--muted);
    }

    .studio-shell {
      display: grid;
      grid-template-columns: 1fr .95fr;
      gap: 28px;
      align-items: center;
      border: 1px solid var(--border);
      background: var(--surface);
      border-radius: 30px;
      padding: clamp(22px, 4vw, 42px);
      box-shadow: var(--shadow);
    }

    .studio-preview {
      position: relative;
      border-radius: 24px;
      border: 1px solid #26323a;
      background: #10171c;
      overflow: hidden;
      box-shadow: 0 30px 70px rgba(0,0,0,.28);
      transform: rotate(1.2deg);
      transition: transform .28s ease, box-shadow .28s ease;
    }

    .studio-preview:hover {
      transform: rotate(0deg) translateY(-3px);
      box-shadow: 0 36px 82px rgba(0,0,0,.32);
    }

    .studio-live-frame {
      position: relative;
      height: 425px;
      overflow: hidden;
      background: #f7f7f5;
      border-radius: 23px;
    }

    .studio-live-frame iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 1440px;
      height: 900px;
      border: 0;
      transform: scale(.47);
      transform-origin: top left;
      pointer-events: none;
      background: #f7f7f5;
    }

    .studio-preview-fallback {
      position: absolute;
      inset: 0;
      z-index: 0;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 30px;
      color: #eff4f7;
      background:
        radial-gradient(circle at 75% 20%, rgba(46,109,141,.30), transparent 30%),
        linear-gradient(145deg,#151d22,#0f1519);
    }

    .studio-preview-fallback strong {
      font-size: clamp(1.5rem,3vw,2.3rem);
      line-height: 1.05;
      display: block;
      margin-bottom: 10px;
    }

    .studio-preview-fallback span {
      color: #9eabb2;
      font-size: .88rem;
    }

    .studio-frame-click {
      position: absolute;
      inset: 0;
      z-index: 4;
      cursor: pointer;
    }

    .studio-frame-badge {
      position: absolute;
      z-index: 5;
      right: 14px;
      bottom: 14px;
      padding: 8px 11px;
      border-radius: 999px;
      background: rgba(11,18,32,.88);
      color: #fff;
      border: 1px solid rgba(255,255,255,.16);
      backdrop-filter: blur(12px);
      font-size: .72rem;
      font-weight: 800;
      pointer-events: none;
    }

    .blog-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .blog-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 22px;
      box-shadow: var(--shadow-soft);
      min-height: 250px;
      display: flex;
      flex-direction: column;
    }

    .blog-card .category {
      color: var(--accent-readable);
      font-size: .79rem;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .blog-card h3 {
      margin: 12px 0 10px;
      line-height: 1.2;
      font-size: 1.3rem;
    }

    .blog-card p {
      color: var(--muted);
      margin: 0 0 16px;
    }

    .blog-card .coming {
      margin-top: auto;
      color: var(--muted);
      font-size: .88rem;
      font-weight: 700;
    }

    .work-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      counter-reset: step;
    }

    .work-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 22px;
      box-shadow: var(--shadow-soft);
    }

    .step-no {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      background: var(--accent);
      color: white;
      font-weight: 900;
      margin-bottom: 16px;
    }

    .work-card h3 {
      margin: 0 0 9px;
      font-size: 1.08rem;
    }

    .work-card p {
      margin: 0;
      color: var(--muted);
      font-size: .94rem;
    }

    .final-cta {
      border-radius: 32px;
      padding: clamp(28px, 6vw, 62px);
      background:
        radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 28%),
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #111827), color-mix(in srgb, var(--accent) 62%, #111827));
      color: white;
      box-shadow: var(--shadow);
    }

    .final-cta h2 {
      max-width: 760px;
      color: white;
    }

    .final-cta p {
      max-width: 650px;
      color: rgba(255,255,255,.84);
      font-size: 1.05rem;
    }

    .final-cta .btn {
      background: white;
      color: #111827;
      margin-top: 8px;
    }


    .legal-band {
      margin-top: 8px;
      padding: 22px 0 0;
      border-top: 1px solid var(--border);
    }

    .legal-copy {
      max-width: 980px;
      color: var(--muted);
      font-size: .78rem;
      line-height: 1.65;
    }

    .legal-copy p {
      margin: 0 0 8px;
    }

    .legal-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      margin-top: 12px;
      font-size: .78rem;
      font-weight: 750;
    }

    .legal-links a {
      color: var(--muted);
      text-decoration: underline;
      text-decoration-color: color-mix(in srgb, var(--muted) 30%, transparent);
      text-underline-offset: 3px;
    }

    .legal-links a:hover {
      color: var(--text);
    }


    .legal-modal {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(2, 8, 23, .66);
      backdrop-filter: blur(10px);
    }

    .legal-modal.open {
      display: flex;
    }

    .legal-card {
      width: min(980px, 100%);
      max-height: min(86vh, 920px);
      overflow: hidden;
      display: grid;
      grid-template-rows: auto 1fr;
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 26px;
      box-shadow: var(--shadow);
    }

    .legal-card-head {
      position: sticky;
      top: 0;
      z-index: 2;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      padding: 24px 26px 18px;
      border-bottom: 1px solid var(--border);
      background: color-mix(in srgb, var(--surface) 96%, transparent);
      backdrop-filter: blur(12px);
    }

    .legal-card-head h3 {
      margin: 0 0 5px;
      font-size: clamp(1.45rem, 2.5vw, 2rem);
      line-height: 1.15;
    }

    .legal-card-head p {
      margin: 0;
      color: var(--muted);
      font-size: .9rem;
    }

    .legal-close {
      flex: 0 0 auto;
      width: 40px;
      height: 40px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--surface-2);
      color: var(--text);
      cursor: pointer;
      font-size: 1.2rem;
    }

    .legal-card-body {
      overflow-y: auto;
      padding: 24px 26px 30px;
      scroll-behavior: smooth;
    }

    .legal-section {
      padding: 0 0 24px;
      margin: 0 0 24px;
      border-bottom: 1px solid var(--border);
    }

    .legal-section:last-child {
      border-bottom: 0;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    .legal-section h4 {
      margin: 0 0 10px;
      font-size: 1.05rem;
      color: var(--text);
    }

    .legal-section p {
      margin: 0 0 10px;
      color: var(--muted);
      font-size: .94rem;
      line-height: 1.75;
    }

    .legal-contact {
      display: grid;
      gap: 6px;
      margin-top: 10px;
    }

    .legal-contact a {
      color: var(--accent);
      font-weight: 750;
      overflow-wrap: anywhere;
    }

    footer {
      padding: 36px 0 52px;
      color: var(--muted);
    }

    .footer-grid {
      display: flex;
      justify-content: space-between;
      gap: 22px;
      align-items: center;
      border-top: 1px solid var(--border);
      padding-top: 26px;
      flex-wrap: wrap;
    }

    .footer-links {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
    }

    .theme-panel {
      position: fixed;
      top: 82px;
      right: 18px;
      z-index: 80;
      width: min(330px, calc(100vw - 36px));
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 16px;
      display: none;
    }

    .theme-panel.open {
      display: block;
    }

    .theme-title {
      font-weight: 850;
      margin-bottom: 10px;
    }

    .theme-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }

    .theme-chip {
      border: 1px solid var(--border);
      background: var(--surface-2);
      color: var(--text);
      border-radius: 999px;
      padding: 8px 11px;
      cursor: pointer;
      font-weight: 750;
      font-size: .88rem;
    }

    .theme-chip.active {
      border-color: var(--accent);
      box-shadow: inset 0 0 0 1px var(--accent);
    }

    .contact-modal {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(2, 8, 23, .58);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .contact-modal.open {
      display: flex;
    }

    .contact-card {
      position: relative;
      width: min(540px, 100%);
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 26px;
      padding: 28px;
      box-shadow: var(--shadow);
    }

    .close-modal {
      position: absolute;
      right: 14px;
      top: 14px;
      width: 38px;
      height: 38px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--surface-2);
      color: var(--text);
      cursor: pointer;
      font-size: 1.15rem;
    }

    .contact-card h3 {
      margin: 0 46px 8px 0;
      font-size: 1.6rem;
    }

    .contact-card > p {
      color: var(--muted);
      margin: 0 0 20px;
    }

    .contact-options {
      display: grid;
      gap: 12px;
    }

    .contact-option {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      border: 1px solid var(--border);
      background: var(--surface-2);
      border-radius: 16px;
      padding: 16px;
      transition: transform .2s ease, border-color .2s ease;
    }

    .contact-option:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }

    .contact-option strong {
      display: block;
    }

    .contact-option span {
      display: block;
      color: var(--muted);
      font-size: .9rem;
      margin-top: 2px;
    }

    .contact-arrow {
      color: var(--accent);
      font-size: 1.2rem;
      font-weight: 900;
    }

    .fade-in {
      animation: fadeInUp .55s ease both;
    }

    @keyframes fadeInUp {
      from { opacity: .01; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
      }
    }

    @media (max-width: 980px) {
      .nav-links {
        display: none;
      }
      .menu-btn {
        display: inline-grid;
      }
      .hero-grid,
      .studio-shell {
        grid-template-columns: 1fr;
      }
      .hero-card {
        min-height: 430px;
      }
      .services-grid {
        grid-template-columns: 1fr 1fr;
      }
      .blog-grid {
        grid-template-columns: 1fr;
      }
      .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 680px) {
      .container {
        width: min(100% - 22px, var(--max-width));
      }
      .site-header .brand-text span {
        display: none;
      }
      .hero {
        padding-top: 44px;
      }
      .hero h1 {
        font-size: clamp(2.35rem, 12vw, 4.3rem);
      }
      .hero-cta {
        display: grid;
      }

      .quick-tags {
        font-size: .74rem;
      }
      .hero-cta .btn,
      .btn-studio {
        width: 100%;
      }
      .services-grid,
      .work-grid {
        grid-template-columns: 1fr;
      }
      .section-head {
        align-items: flex-start;
        flex-direction: column;
      }
      .hero-card {
        min-height: auto;
        padding: 20px;
      }
      .logo-stage {
        min-height: 285px;
      }
      .orbit-ring {
        width: min(310px, 94%);
      }
      .orbit-ring.orbit-2 {
        width: min(245px, 74%);
      }
      .studio-live-frame {
        height: 300px;
      }
      .studio-live-frame iframe {
        transform: scale(.34);
      }
      .final-cta {
        border-radius: 24px;
      }
      .nav-actions .icon-btn {
        width: 40px;
        height: 40px;
      }
    }


/* ===========================
   Polaris Insights blog
   =========================== */

.blog-hero {
  padding: 64px 0 34px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: end;
}

.blog-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.blog-tools {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.blog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.blog-search input::placeholder {
  color: var(--muted);
}

.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-filter {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 760;
  cursor: pointer;
}

.blog-filter.active,
.blog-filter:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--accent-soft);
}

.blog-library {
  padding: 30px 0 78px;
}

.blog-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 720;
}

.article-category {
  color: var(--accent-readable);
}

.article-card h2 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.article-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .95rem;
}

.article-card .article-link {
  margin-top: auto;
  color: var(--accent-readable);
  font-weight: 820;
}

.blog-empty {
  grid-column: 1 / -1;
  padding: 46px 26px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.blog-empty h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.blog-empty p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
}

.article-shell {
  padding: 54px 0 86px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 240px;
  gap: 54px;
  align-items: start;
  justify-content: center;
}

.article-header {
  margin-bottom: 30px;
}

.article-header h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.article-deck {
  color: var(--muted);
  font-size: 1.1rem;
}

.article-body {
  font-size: 1.02rem;
}

.article-body h2 {
  margin: 34px 0 12px;
  font-size: 1.7rem;
  letter-spacing: -.03em;
}

.article-body h3 {
  margin: 26px 0 10px;
  font-size: 1.25rem;
}

.article-body p,
.article-body li {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: .94rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.article-body th {
  background: var(--surface-2);
}

.article-body pre,
.article-formula {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.article-sidebar {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.article-sidebar strong {
  display: block;
  margin-bottom: 10px;
}

.article-sidebar a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: .9rem;
}

.article-sidebar a:hover {
  color: var(--accent);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 760;
  margin-bottom: 20px;
}

.article-back:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .blog-hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .blog-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  .blog-library-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding-top: 42px;
  }

  .blog-hero h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }
}


.services-contact {
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-soft) 76%, var(--surface)),
    var(--surface)
  );
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.services-contact h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.services-contact p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: .95rem;
}

.services-contact .btn {
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .services-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .services-contact .btn {
    width: 100%;
  }
}


/* Final hero positioning */
.hero-card {
  display: grid;
  place-items: center;
}

.logo-stage {
  width: 100%;
}


@media (max-width: 680px) {
  .hero-card {
    min-height: 390px;
    display: grid;
    place-items: center;
  }

  .logo-stage {
    min-height: 100%;
    height: 100%;
    align-self: stretch;
  }
}


/* Phase 4 accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-readable);
  outline-offset: 3px;
}

.btn-primary,
.btn-studio {
  color: var(--accent-text);
}
