:root {
    --bg: #070B14;
    --bg-alt: #0D1526;
    --bg-card: #101A2E;
    --accent: #3B82F6;
    --accent-glow: #5EA0FF;
    --accent-dim: #1E3A5F;
    --line-dim: #1C2536;
    --text-dim: #9AA3B5;
    --text-dimmer: #5C6478;
    --white: #FFFFFF;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  .wrap { max-width: none; margin: 0 auto; padding: 0 48px; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 12px 14px 12px 22px;
    background: rgba(13, 21, 38, 0.65);
    border: 1px solid var(--line-dim);
    border-radius: 40px;
    backdrop-filter: blur(16px);
    width: min(94vw, 900px);
    justify-content: space-between;
  }
  .logo { font-family: 'Fraunces', serif; font-weight: 500; font-size: 19px; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
  .logo-mark { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .logo-mark svg, .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
  .navlinks { display: flex; gap: 30px; font-size: 14px; color: #ccd2df; }
  .navlinks a:hover { color: #fff; }
  .nav-subscribe-btn {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(180deg, #FF0000, #D90000);
    border-radius: 4px;
    padding: 7px 16px 7px 6px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-subscribe-play {
    width: 22px; height: 18px; background: #fff; border-radius: 3px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .nav-subscribe-label { font-size: 13.5px; font-weight: 700; color: #fff; }

  /* ===== HERO ===== */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .beam {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(94,160,255,0.55) 35%, rgba(94,160,255,0.85) 50%, rgba(94,160,255,0.55) 65%, transparent 100%);
    filter: blur(1px);
    z-index: 1;
  }
  .beam-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, rgba(59,130,246,0.06) 45%, transparent 72%);
    z-index: 1;
  }
  .stars {
    position: absolute; inset: 0;
    background-image:
      radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.5), transparent),
      radial-gradient(1.5px 1.5px at 75% 15%, rgba(255,255,255,0.4), transparent),
      radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.35), transparent),
      radial-gradient(1.5px 1.5px at 85% 55%, rgba(255,255,255,0.4), transparent),
      radial-gradient(1px 1px at 10% 65%, rgba(255,255,255,0.3), transparent),
      radial-gradient(1.5px 1.5px at 35% 85%, rgba(255,255,255,0.4), transparent),
      radial-gradient(1px 1px at 92% 80%, rgba(255,255,255,0.3), transparent);
    background-size: 100% 100%;
    z-index: 0;
    opacity: 0.8;
  }
  .sphere-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(1700px, 165vw);
    height: min(1700px, 165vw);
    z-index: 1;
  }
  .ring { transform-origin: 450px 450px; transform-box: view-box; }
  .ring-1 { animation: spin-a 70s linear infinite; }
  .ring-2 { animation: spin-b 55s linear infinite; }
  .ring-3 { animation: spin-a2 85s linear infinite; }
  .ring-4 { animation: spin-b2 46s linear infinite; }
  .ring-5 { animation: spin-a3 100s linear infinite; }
  .ring-6 { animation: spin-b3 62s linear infinite; }
  @keyframes spin-a   { from { transform: rotate(0deg); }    to { transform: rotate(360deg); } }
  @keyframes spin-b   { from { transform: rotate(0deg); }    to { transform: rotate(-360deg); } }
  @keyframes spin-a2  { from { transform: rotate(35deg); }   to { transform: rotate(395deg); } }
  @keyframes spin-b2  { from { transform: rotate(-40deg); }  to { transform: rotate(-400deg); } }
  @keyframes spin-a3  { from { transform: rotate(70deg); }   to { transform: rotate(430deg); } }
  @keyframes spin-b3  { from { transform: rotate(0deg); }    to { transform: rotate(-360deg); } }

  .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 820px;
    padding: 0 20px;
  }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 14px;
    border-radius: 30px;
    background: rgba(13, 21, 38, 0.6);
    border: 1px solid var(--line-dim);
    backdrop-filter: blur(10px);
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 30px;
  }
  .badge svg { width: 14px; height: 14px; }
  h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 76px;
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin-bottom: 26px;
  }
  h1 .accent { color: var(--accent-glow); font-style: italic; }
  .sub {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 38px;
  }
  .hero-ctas { display: flex; gap: 14px; justify-content: center; }
  .btn-primary {
    background: linear-gradient(180deg, var(--accent-glow), var(--accent));
    color: #fff; font-weight: 600; font-size: 14.5px;
    padding: 13px 26px; border-radius: 30px;
    box-shadow: 0 0 24px rgba(59,130,246,0.4);
  }
  .btn-ghost {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line-dim);
    color: #e6e9f0; font-weight: 500; font-size: 14.5px;
    padding: 13px 24px; border-radius: 30px;
  }
  .scroll-hint {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--text-dimmer);
    text-transform: uppercase;
    z-index: 3;
  }

  /* ===== SECTION SHARED ===== */
  section { position: relative; padding: 110px 0; }
  .eyebrow {
    font-size: 12.5px; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--accent-glow); font-weight: 600; margin-bottom: 14px;
  }
  .section-title {
    font-family: 'Fraunces', serif; font-weight: 500;
    font-size: 40px; line-height: 1.18; letter-spacing: -0.01em;
    max-width: 560px;
  }
  .section-title .accent { color: var(--accent-glow); font-style: italic; }
  .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
  .section-desc { color: var(--text-dim); font-size: 15px; max-width: 340px; line-height: 1.6; }

  /* ===== CLIENTS ===== */
  .clients { padding: 90px 0; }
  .clients-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 64px;
    background: var(--bg-card);
    border: 1px solid var(--line-dim);
    border-radius: 26px;
    padding: 64px 60px;
    overflow: hidden;
  }
  .clients-glow {
    position: absolute;
    top: 50%; right: -120px;
    transform: translateY(-50%);
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(59,130,246,0.16) 0%, rgba(59,130,246,0.05) 45%, transparent 72%);
    z-index: 0;
    pointer-events: none;
  }
  .clients-intro { position: relative; z-index: 1; flex: 0 0 290px; }
  .clients-tag { width: 30px; height: 2px; background: linear-gradient(90deg, var(--accent-glow), var(--accent)); margin-bottom: 20px; }
  .clients-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 36px; letter-spacing: -0.01em; margin-bottom: 18px; }
  .clients-desc { color: var(--text-dim); font-size: 14.5px; line-height: 1.75; max-width: 280px; }
  .clients-grid {
    position: relative; z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 40px;
    column-gap: 28px;
  }
  .client-item { display: flex; align-items: center; gap: 12px; }
  .client-item .client-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-glow);
  }
  .client-item .client-icon svg { width: 100%; height: 100%; }
  .client-item span { font-family: 'Fraunces', serif; font-size: 15.5px; letter-spacing: 0.01em; color: #c7cbd6; line-height: 1.25; }
  .client-item .client-sub { display: block; font-family: 'Inter', sans-serif; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dimmer); font-weight: 600; margin-top: 2px; }
  @media (max-width: 900px) {
    .clients-card { flex-direction: column; align-items: flex-start; gap: 40px; padding: 44px 30px; }
    .clients-intro { flex: none; max-width: 100%; }
    .clients-desc { max-width: 100%; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
  }

  /* ===== AUTOMATION ESTIMATOR (interactive configurator) ===== */
  .automation-cta { background: var(--bg-alt); overflow: hidden; padding: 100px 0; }
  .estimator-grid-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
  .estimator-grid-bg svg { width: 100%; height: 100%; }
  .estimator-grid-bg .node-line { stroke: rgba(59,130,246,0.14); stroke-width: 1; fill: none; }
  .estimator-grid-bg .node-dot { fill: rgba(94,160,255,0.5); }
  .estimator-grid-bg .node-label { fill: rgba(154,165,181,0.32); font-family: 'Inter', sans-serif; font-size: 11px; }
  .estimator-grid-bg .node-ping {
    fill: none; stroke: rgba(94,160,255,0.5); stroke-width: 1.4;
    transform-box: fill-box; transform-origin: center;
    animation: ping 3.2s ease-out infinite;
  }
  @keyframes ping {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(4.5); opacity: 0; }
    100% { transform: scale(4.5); opacity: 0; }
  }
  .estimator-grid-bg .packet { fill: #8FC1FF; filter: drop-shadow(0 0 4px rgba(94,160,255,0.9)); }

  .automation-inner { position: relative; z-index: 2; text-align: center; }
  .automation-cta .section-title { margin: 0 auto 16px; text-align: center; }
  .automation-cta .sub { margin-bottom: 46px; }

  .config-panel {
    max-width: 920px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
    background: var(--line-dim);
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line-dim);
    text-align: left;
  }
  .field { background: var(--bg-card); padding: 20px 24px; }
  .field label { display: block; font-size: 12.5px; color: var(--text-dimmer); margin-bottom: 10px; }
  .field select {
    width: 100%; background: transparent; border: none; color: #fff;
    font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px;
    appearance: none; cursor: pointer;
  }
  .field select option { background: var(--bg-card); }
  .field .row-flex { display: flex; align-items: center; justify-content: space-between; }
  .chev { color: var(--text-dimmer); font-size: 13px; }

  .result-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 1px; background: var(--line-dim); }
  .result-field { background: #0B1220; padding: 20px 24px; }
  .result-field label { display: block; font-size: 12.5px; color: var(--text-dimmer); margin-bottom: 8px; }
  .result-number { font-family: 'Fraunces', serif; font-weight: 500; font-size: 25px; color: var(--accent-glow); }
  .result-number .unit { font-size: 13px; font-weight: 400; color: var(--text-dim); }
  .caveat { font-size: 11px; color: var(--text-dimmer); margin-top: 4px; }

  .cta-cell {
    background: linear-gradient(180deg, var(--accent-glow), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
    cursor: pointer; border: none; color: #fff;
  }

  .trust-row {
    display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
    margin-top: 44px; font-size: 13px; color: var(--text-dim);
  }
  .trust-row span { display: flex; align-items: center; gap: 8px; }
  .check { color: var(--accent-glow); font-size: 13px; }

  @media (max-width: 820px) {
    .config-panel, .result-row { grid-template-columns: 1fr; }
  }

  /* ===== SERVICES (tabbed explorer) ===== */
  .services-detail { padding: 130px 0; }
  .services-card {
    position: relative;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background-color: #070B14;
    background-image: url('../images/services-bg.webp');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line-dim);
    border-radius: 26px;
    overflow: hidden;
  }
  .services-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4,7,14,0.5) 0%, rgba(4,7,14,0.35) 55%, rgba(4,7,14,0.6) 100%);
    z-index: 0;
  }
  .services-intro { position: relative; z-index: 1; padding: 64px 48px 64px 56px; border-right: 1px solid rgba(255,255,255,0.1); }
  .services-intro .eyebrow { margin-bottom: 16px; }
  .services-intro h2 {
    font-family: 'Fraunces', serif; font-weight: 500; font-size: 32px;
    line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 18px;
  }
  .services-intro > p { color: #c5cad8; font-size: 14.5px; line-height: 1.75; margin-bottom: 40px; }

  .service-tabs { position: relative; z-index: 1; list-style: none; }
  .service-tabs li { border-top: 1px solid rgba(255,255,255,0.1); }
  .service-tabs li:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .service-tab {
    width: 100%; text-align: left; background: none; border: none;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 15px 2px; cursor: pointer;
    font-family: 'Fraunces', serif; font-size: 16px; color: #9aa2b8;
    transition: color 0.2s ease;
  }
  .service-tab .num { font-family: 'Inter', sans-serif; font-size: 11px; color: #7a819a; font-weight: 600; }
  .service-tab:hover { color: #e6e9f0; }
  .service-tab.active { color: #fff; }
  .service-tab.active .num { color: var(--accent-glow); }

  .services-panel { position: relative; z-index: 1; padding: 56px 56px 56px 48px; display: flex; flex-direction: column; }
  .services-visual {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 300px;
    background: rgba(10, 14, 26, 0.35);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px;
  }
  .services-visual::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 34px 34px;
  }
  .services-visual .service-icon {
    position: relative; z-index: 1;
    width: 96px; height: 96px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 22px;
    backdrop-filter: blur(4px);
  }
  .services-visual .service-icon svg { width: 44px; height: 44px; }
  .services-panel h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 26px; margin-bottom: 16px; }
  .services-panel p.desc { color: #c5cad8; font-size: 15px; line-height: 1.75; margin-bottom: 32px; max-width: 560px; }
  .services-panel-ctas { display: flex; gap: 14px; margin-top: auto; }

  @media (max-width: 900px) {
    .services-card { grid-template-columns: 1fr; }
    .services-intro { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 44px 30px; }
    .services-panel { padding: 44px 30px; }
  }

  /* ===== PRODUCTS (orbit arc layout) ===== */
  .products { position: relative; overflow: hidden; padding: 130px 0 150px; }
  .products-arcs { position: absolute; inset: 0; z-index: 0; }
  .products-arcs svg { width: 100%; height: 100%; }
  .arc-line { fill: none; stroke: var(--line-dim); stroke-width: 1; }
  .products-inner { position: relative; z-index: 2; text-align: center; }
  .products .eyebrow { text-align: center; }
  .products-head h2 {
    font-family: 'Fraunces', serif; font-weight: 500; font-size: 42px;
    letter-spacing: -0.01em; margin-bottom: 14px;
  }
  .products-head p { color: var(--text-dim); font-size: 16px; max-width: 440px; margin: 0 auto 10px; }

  .product-node {
    position: absolute;
    display: flex; align-items: center; gap: 10px;
    text-align: left;
  }
  .product-node:hover .p-name { color: var(--accent-glow); }
  .product-node:hover .node-dot-mark { border-color: var(--accent-glow); background: var(--accent-dim); }
  .node-dot-mark {
    width: 7px; height: 7px; border-radius: 50%;
    border: 1.5px solid var(--accent-dim);
    background: var(--bg-alt);
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .product-node .p-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; color: #fff; transition: color 0.2s ease; }
  .product-node .p-tag { font-size: 12px; color: var(--text-dimmer); margin-top: 2px; }

  @media (max-width: 900px) {
    .products { padding: 90px 0; }
    .product-node { position: static; display: inline-flex; margin: 10px 14px; }
    .products-node-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 20px; }
  }
  .stats-panel {
    background: var(--bg-card);
    border: 1px solid var(--line-dim);
    border-radius: 24px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
  }
  .stats-copy .section-title { font-size: 32px; margin-bottom: 14px; }
  .stats-copy p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; max-width: 380px; }
  .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  .stat-num { font-family: 'Fraunces', serif; font-size: 38px; font-weight: 500; color: var(--accent-glow); }
  .stat-label { font-size: 12.5px; color: var(--text-dimmer); margin-top: 6px; letter-spacing: 0.02em; }

  /* ===== AT A GLANCE ===== */
  .glance { padding: 100px 0 110px; }
  .glance-head { text-align: center; max-width: 560px; margin: 0 auto 10px; }
  .glance-head .eyebrow { justify-content: center; display: flex; }
  .glance-head .section-title { margin: 0 auto; text-align: center; }
  .glance-map-wrap { position: relative; margin: 40px 0 -10px; overflow: hidden; border-radius: 0; }
  .glance-map-wrap::before {
    content: '';
    position: absolute;
    top: -14%;
    left: 50%;
    transform: translateX(-50%);
    width: 62%;
    max-width: 780px;
    aspect-ratio: 1.5 / 1;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, rgba(59,130,246,0.4) 32%, rgba(59,130,246,0.1) 58%, transparent 78%);
    filter: blur(26px);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
  }
  .glance-map-wrap svg { position: relative; z-index: 1; width: 100%; height: auto; display: block; }
  .glance-map-wrap .glance-sky-glow { fill: url(#glanceSkyGlow); }
  .glance-map-wrap .globe-rim-glow { fill: none; stroke: #bfe6ff; stroke-width: 14; opacity: 0.32; filter: blur(6px); }
  .glance-map-wrap .globe-rim-line { fill: none; stroke: #eaf6ff; stroke-width: 1.6; opacity: 0.85; }
  .glance-map-wrap .globe-lines line { stroke: var(--accent-glow); stroke-width: 0.55; }
  .glance-map-wrap .globe-dots ellipse { fill: #7fc4ff; }
  .glance-map-wrap .globe-nodes circle { fill: #eaf6ff; }
  .glance-map-wrap .globe-nodes circle.pulse { fill: #bfe6ff; }

  .glance-stats {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
  }
  .glance-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-alt) 100%);
    border: 1px solid var(--line-dim);
    border-radius: 20px;
    padding: 34px 20px 30px;
    text-align: center;
  }

  /* ---- scroll-reveal ---- */
  .glance-map-wrap, .glance-card {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .glance-map-wrap.in-view, .glance-stats.in-view .glance-card {
    opacity: 1;
    transform: translateY(0);
  }
  .glance-stats.in-view .glance-card:nth-child(1) { transition-delay: 0.05s; }
  .glance-stats.in-view .glance-card:nth-child(2) { transition-delay: 0.14s; }
  .glance-stats.in-view .glance-card:nth-child(3) { transition-delay: 0.23s; }
  .glance-stats.in-view .glance-card:nth-child(4) { transition-delay: 0.32s; }
  .glance-stats.in-view .glance-card:nth-child(5) { transition-delay: 0.41s; }

  /* ---- breathing rim glow ---- */
  .glance-map-wrap .globe-rim-glow { animation: rimBreathe 4.5s ease-in-out infinite; }
  @keyframes rimBreathe {
    0%, 100% { opacity: 0.24; }
    50% { opacity: 0.46; }
  }

  /* ---- node twinkle ---- */
  .glance-map-wrap .globe-nodes circle.pulse { animation: nodeTwinkle 3.2s ease-in-out infinite; }
  .glance-map-wrap .globe-nodes circle.pulse:nth-of-type(3n) { animation-duration: 4s; animation-delay: 0.4s; }
  .glance-map-wrap .globe-nodes circle.pulse:nth-of-type(3n+1) { animation-duration: 2.6s; animation-delay: 0.9s; }
  .glance-map-wrap .globe-nodes circle.pulse:nth-of-type(3n+2) { animation-duration: 3.6s; animation-delay: 1.5s; }
  @keyframes nodeTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.35); }
  }
  .glance-map-wrap .globe-nodes circle { transform-box: fill-box; transform-origin: center; }

  .glance-icon {
    width: 62px; height: 62px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .glance-icon::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 72%);
    opacity: 0.28;
  }
  .glance-icon svg { width: 26px; height: 26px; position: relative; z-index: 1; color: var(--glow-color); }
  .glance-num { font-family: 'Fraunces', serif; font-weight: 600; font-size: 34px; letter-spacing: -0.01em; }
  .glance-label { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.4; }

  @media (max-width: 900px) {
    .glance-stats { grid-template-columns: repeat(2, 1fr); }
    .glance-map-wrap { margin-bottom: 10px; }
  }

  /* ===== WHY CHOOSE US ===== */
  .why-choose { padding: 100px 0 110px; }
  .why-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
  .why-head .eyebrow { justify-content: center; display: flex; }
  .why-head .section-title { margin: 0 auto 16px; text-align: center; }
  .why-head p { color: var(--text-dim); font-size: 15px; line-height: 1.7; }

  .why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .why-card {
    grid-column: span 2;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-alt) 100%);
    border: 1px solid var(--line-dim);
    border-radius: 20px;
    padding: 34px 28px 30px;
  }
  .why-card.why-wide { grid-column: span 3; }
  .why-icon {
    width: 60px; height: 60px;
    margin-bottom: 24px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: rgba(94,160,255,0.06);
    border: 1px solid rgba(94,160,255,0.2);
  }
  .why-icon::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle, var(--glow-color, var(--accent-glow)) 0%, transparent 72%);
    opacity: 0.22;
  }
  .why-icon svg { width: 26px; height: 26px; position: relative; z-index: 1; color: var(--glow-color, var(--accent-glow)); }
  .why-card h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; margin-bottom: 10px; }
  .why-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

  @media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr 1fr; }
    .why-card, .why-card.why-wide { grid-column: span 1; }
  }
  @media (max-width: 560px) {
    .why-grid { grid-template-columns: 1fr; }
  }

  /* ===== VIDEO GALLERY (replaces JOURNAL/BLOG — moved to blog-archive.html; approved design from the Design canvas session) ===== */
  .video-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
  .video-head .eyebrow { text-align: center; }
  .video-head h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 34px; color: #fff; }
  .video-head h2 .accent { color: var(--accent-glow); font-style: italic; }
  .video-section {
    position: relative;
    padding: 130px 0 110px;
    background: var(--bg-alt);
  }
  .video-card-outer {
    position: relative;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--line-dim);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  }
  .video-yt-badge {
    position: absolute;
    top: -14px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border-radius: 20px;
    padding: 6px 14px 6px 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  }
  .video-yt-badge span { font-size: 12.5px; font-weight: 700; color: #0b0b0b; }

  .video-channel-header { display: flex; align-items: center; gap: 16px; padding-top: 12px; margin-bottom: 24px; }
  .video-channel-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--accent-dim);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .video-channel-name-block { flex: 1; }
  .video-channel-name { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 500; color: #fff; margin-bottom: 3px; }
  .video-channel-tagline { font-size: 13px; color: var(--text-dimmer); }

  .video-subscribe-btn {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(180deg, #FF0000, #D90000);
    border-radius: 4px;
    padding: 8px 20px 8px 8px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35);
    flex-shrink: 0;
  }
  .video-subscribe-play {
    width: 28px; height: 22px; background: #fff; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .video-subscribe-label { font-size: 14.5px; font-weight: 700; color: #fff; }
  .video-views { font-size: 13.5px; font-weight: 600; color: var(--text-dim); flex-shrink: 0; }

  .video-tabs { display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line-dim); margin-bottom: 20px; }
  .video-tab {
    background: none; border: none; cursor: pointer;
    font-size: 14.5px; font-weight: 500; color: var(--text-dimmer);
    padding: 0 0 14px; border-bottom: 2px solid transparent;
  }
  .video-tab.is-active { font-weight: 600; color: #fff; border-bottom-color: var(--accent-glow); }

  .video-row { display: flex; align-items: center; gap: 8px; }
  .video-nav-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--line-dim); color: var(--text-dim);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
  }
  .video-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .video-thumb {
    position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg, var(--accent-dim), #101A2E);
    display: block;
  }
  .video-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  .video-thumb-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(7,11,20,0.15); transition: background 0.15s ease;
  }
  .video-thumb:hover .video-thumb-play { background: rgba(7,11,20,0.35); }
  .video-thumb-play span {
    width: 44px; height: 44px; border-radius: 50%; background: rgba(7,11,20,0.65);
    display: flex; align-items: center; justify-content: center;
  }
  .video-duration {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(7,11,20,0.75); color: #fff;
    font-size: 11px; padding: 2px 6px; border-radius: 4px;
  }

  .video-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
  .video-page {
    width: 26px; height: 26px; border-radius: 6px;
    font-size: 12.5px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-dim); color: var(--text-dimmer);
  }
  .video-page.is-current { background: var(--accent-glow); border-color: var(--accent-glow); color: #0b0b0b; font-weight: 700; }

  @media (max-width: 900px) {
    .video-grid { grid-template-columns: 1fr; }
    .video-channel-header { flex-wrap: wrap; }
  }


  /* ===== TESTIMONIALS (marquee) ===== */
  .testimonials { background: var(--bg-alt); overflow: hidden; padding: 120px 0; }
  .testi-head { text-align: center; margin-bottom: 54px; }
  .testi-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px solid var(--line-dim);
    border-radius: 30px; padding: 8px 18px 8px 14px;
    font-size: 13px; color: var(--text-dim);
    margin-bottom: 24px;
  }
  .testi-badge .star-ico {
    width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(180deg, var(--accent-glow), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; flex-shrink: 0;
  }
  .testi-head h2 {
    font-family: 'Fraunces', serif; font-weight: 500; font-size: 34px;
    line-height: 1.25; letter-spacing: -0.01em; max-width: 480px; margin: 0 auto;
  }

  .marquee-row { display: flex; width: max-content; gap: 20px; }
  .marquee-row.row-a { animation: marquee-left 46s linear infinite; margin-bottom: 20px; }
  .marquee-row.row-b { animation: marquee-right 46s linear infinite; }
  .marquee-track:hover .marquee-row { animation-play-state: paused; }
  @keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

  .testi-card {
    background: var(--bg-card);
    border: 1px solid var(--line-dim);
    border-radius: 18px;
    padding: 26px;
    width: 320px;
    flex-shrink: 0;
  }
  .testi-quote-mark { color: var(--accent-glow); font-family: 'Fraunces', serif; font-size: 30px; line-height: 1; margin-bottom: 12px; display: block; }
  .testi-quote { font-size: 14.5px; line-height: 1.6; color: #dde1ea; margin-bottom: 22px; }
  .testi-person { display: flex; align-items: center; gap: 12px; }
  .testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-glow), var(--accent-dim)); flex-shrink: 0; }
  .testi-name { font-size: 13.5px; font-weight: 600; }
  .testi-role { font-size: 12px; color: var(--text-dimmer); }

  /* ---- static video-testimonial row (sits between the two marquees) ---- */
  .testi-static-row {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr 1.05fr 1fr minmax(240px, 300px);
    gap: 20px;
    max-width: none;
    margin: 20px auto;
    padding: 0 48px;
    align-items: stretch;
  }
  .testi-static-row .testi-card { width: auto; }
  .testi-static-card {
    background: var(--bg-card);
    border: 1px solid var(--line-dim);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
  }
  .tsc-person { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
  .tsc-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-glow), var(--accent-dim)); flex-shrink: 0; }
  .tsc-name { font-size: 14.5px; font-weight: 600; color: #fff; }
  .tsc-loc { font-size: 12px; color: var(--text-dimmer); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
  .tsc-loc svg { width: 11px; height: 11px; flex-shrink: 0; }
  .testi-static-card h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; line-height: 1.35; margin-bottom: 12px; color: #fff; }
  .testi-static-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; flex: 1; }
  .tsc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-dim); }
  .tsc-tag {
    font-size: 12px; font-weight: 600; color: var(--accent-glow);
    background: rgba(94,160,255,0.1); border: 1px solid rgba(94,160,255,0.25);
    border-radius: 20px; padding: 5px 12px;
  }
  .tsc-stars { display: flex; gap: 2px; color: var(--accent-glow); font-size: 12px; }

  .testi-video-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 420px;
    background:
      radial-gradient(circle at 30% 20%, rgba(94,160,255,0.35) 0%, transparent 55%),
      radial-gradient(circle at 80% 80%, rgba(139,92,246,0.3) 0%, transparent 55%),
      linear-gradient(160deg, #141b2c 0%, #0a0e18 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
  }
  .testi-video-card::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
  }
  .tvc-quote-mark { position: relative; z-index: 1; font-family: 'Fraunces', serif; font-size: 46px; color: rgba(255,255,255,0.5); line-height: 1; }
  .tvc-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 66px; height: 66px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
  }
  .tvc-play:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(255,255,255,0.2); }
  .tvc-play svg { width: 20px; height: 20px; color: #fff; margin-left: 3px; }
  .tvc-bottom { position: relative; z-index: 1; }
  .tvc-quote-text { font-size: 14.5px; color: #dde1ea; line-height: 1.6; margin-bottom: 16px; max-width: 90%; }
  .tvc-person { display: flex; align-items: center; gap: 10px; }
  .tvc-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-glow), var(--accent-dim)); flex-shrink: 0; }
  .tvc-name { font-size: 14px; font-weight: 600; color: #fff; }
  .tvc-role { font-size: 12px; color: rgba(255,255,255,0.55); }

  @media (max-width: 1500px) {
    .testi-static-row { grid-template-columns: 1fr 1.05fr 1fr; }
    .testi-static-row > .testi-card { display: none; }
  }

  @media (max-width: 900px) {
    .testi-static-row { grid-template-columns: 1fr; padding: 0 20px; }
    .testi-video-card { min-height: 340px; order: -1; }
  }

  @media (max-width: 900px) {
    .testi-head h2 { font-size: 26px; }
    .testi-card { width: 260px; }
  }

  footer {
    position: relative;
    overflow: hidden;
    padding: 90px 0 30px;
    background: linear-gradient(180deg, var(--bg) 0%, #0D1B33 35%, #1B3A6B 70%, #3E6FB8 100%);
  }
  .footer-stars {
    position: absolute; inset: 0; z-index: 0;
    background-image:
      radial-gradient(1.5px 1.5px at 15% 20%, rgba(255,255,255,0.6), transparent),
      radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.4), transparent),
      radial-gradient(1.5px 1.5px at 65% 25%, rgba(255,255,255,0.5), transparent),
      radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.35), transparent),
      radial-gradient(1.5px 1.5px at 25% 35%, rgba(255,255,255,0.4), transparent),
      radial-gradient(1px 1px at 55% 5%, rgba(255,255,255,0.3), transparent),
      radial-gradient(1.5px 1.5px at 92% 30%, rgba(255,255,255,0.4), transparent);
    opacity: 0.9;
  }
  .footer-wordmark-crop {
    position: relative; z-index: 1;
    width: 100%;
    height: 190px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
  }
  .footer-wordmark-big {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(140px, 17vw, 320px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.09);
    white-space: nowrap;
    user-select: none;
  }
  .footer-divider { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.18); margin-bottom: 50px; }
  .footer-cols-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
    margin-bottom: 70px;
  }
  .footer-col-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; color: #fff; margin-bottom: 20px; }
  .footer-col a { display: block; font-size: 15px; color: rgba(255,255,255,0.82); margin-bottom: 14px; }
  .footer-col a:hover { color: #fff; }

  .footer-social-row {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-bottom: 50px;
  }
  .footer-social-card {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    padding: 18px 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .footer-social-card:hover { border-color: var(--accent-glow); background: rgba(59,130,246,0.08); }
  .footer-social-card .fs-icon { color: var(--accent-glow); margin-bottom: 14px; display: block; }
  .footer-social-card .fs-name { font-weight: 700; font-size: 14.5px; color: #fff; margin-bottom: 4px; }
  .footer-social-card .fs-count { font-size: 12px; color: rgba(255,255,255,0.6); }

  .footer-bottom-row {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13.5px; color: rgba(255,255,255,0.75);
  }
  .footer-bottom-row a:hover { color: #fff; }

  @media (max-width: 900px) {
    .footer-cols-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .footer-wordmark-crop { height: 110px; }
    .footer-wordmark-big { font-size: clamp(48px, 22vw, 100px); }
    .footer-social-row { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom-row { flex-direction: column; gap: 10px; align-items: flex-start; }
  }

  @media (max-width: 900px) {
    .wrap { padding: 0 24px; }
    h1 { font-size: 44px; }
    .sphere-wrap { width: 220vw; height: 220vw; }
    .navlinks { display: none; }
    .stats-panel { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; }
    .footer-cols { gap: 40px; flex-wrap: wrap; }
    .section-head { flex-direction: column; align-items: flex-start; }
  }
