/*
Theme Name: Samaroo Solutions
Theme URI: https://samaroosolutions.com
Author: Samaroo Solutions
Description: Custom theme for Samaroo Solutions — digital marketing, web design, AI services, and more.
Version: 1.0
Text Domain: samaroo-solutions
*/

    /* ============================================================
       RESET & ROOT
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:          #07041A;
      --bg2:         #0C0928;
      --bg3:         #120B35;
      --card:        rgba(255,255,255,0.04);
      --card-border: rgba(255,255,255,0.08);
      --purple:      #481BA5;
      --purple-glow: rgba(72,27,165,0.35);
      --purple-mid:  #6B3FC9;
      --orange:      #FFAD3F;
      --orange-dim:  rgba(255,173,63,0.12);
      --pink:        #FFB7E4;
      --pink-dim:    rgba(255,183,228,0.08);
      --white:       #FFFFFF;
      --text:        #EDE9F8;
      --text-dim:    rgba(237,233,248,0.60);
      --text-muted:  rgba(237,233,248,0.35);
      --border:      rgba(255,255,255,0.08);
      --h: 'Space Grotesk', sans-serif;
      --b: 'Inter', sans-serif;
      --r: 16px;
      --t: 0.3s cubic-bezier(0.4,0,0.2,1);
    }

    html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; box-sizing: border-box; }
    *, *::before, *::after { box-sizing: inherit; }
    body {
      font-family: var(--b);
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
      max-width: 100vw;
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

    img   { max-width: 100%; height: auto; display: block; }
    a     { text-decoration: none; color: inherit; }
    button{ cursor: pointer; border: none; background: none; font-family: inherit; }
    ul    { list-style: none; }
    h1,h2,h3,h4,h5 { font-family: var(--h); line-height: 1.15; color: var(--white); }

    /* ============================================================
       UTILITIES
    ============================================================ */
    .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
    .section   { padding: 104px 0; }

    .label {
      display: inline-flex; align-items: center; gap: 10px;
      font-family: var(--h); font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange);
      margin-bottom: 16px;
    }
    .label::before {
      content: ''; display: inline-block;
      width: 22px; height: 2px; background: var(--orange);
    }
    .label-center { justify-content: center; }

    .section-title {
      font-size: clamp(1.9rem, 3.8vw, 3rem);
      font-weight: 700; margin-bottom: 18px;
    }
    .section-title em {
      font-style: normal;
      background: linear-gradient(120deg, var(--orange) 0%, #FF78B0 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .section-sub {
      font-size: 1.05rem; color: var(--text-dim);
      max-width: 580px; line-height: 1.75;
    }

    /* Buttons */
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 13px 26px; border-radius: 50px;
      font-family: var(--h); font-weight: 600; font-size: 0.93rem;
      transition: var(--t); white-space: nowrap; cursor: pointer;
    }
    .btn-primary {
      background: var(--orange); color: #0A0618;
    }
    .btn-primary:hover {
      background: #FFB84D;
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(255,173,63,0.35);
    }
    .btn-ghost {
      border: 1.5px solid rgba(255,255,255,0.18);
      color: var(--text); background: rgba(255,255,255,0.04);
    }
    .btn-ghost:hover {
      border-color: var(--orange); color: var(--orange);
      transform: translateY(-2px);
    }

    /* Arrow svg */
    .arrow { transition: transform 0.25s ease; }
    .btn:hover .arrow { transform: translateX(4px); }
    a:hover .arrow   { transform: translateX(3px); }

    /* Scroll reveal */
    .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
    .reveal.in { opacity: 1; transform: none; }
    .d1 { transition-delay: 0.08s; }
    .d2 { transition-delay: 0.16s; }
    .d3 { transition-delay: 0.24s; }
    .d4 { transition-delay: 0.32s; }
    .d5 { transition-delay: 0.40s; }
    .d6 { transition-delay: 0.48s; }
    .d7 { transition-delay: 0.56s; }
    .d8 { transition-delay: 0.64s; }

    /* ============================================================
       PLEXUS CANVAS (hero background)
    ============================================================ */
    #plexusCanvas {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      display: block; z-index: 0;
    }
    /* Gradient overlay so hero text stays legible */
    #hero::after {
      content: '';
      position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(
        100deg,
        rgba(7,4,26,0.72) 0%,
        rgba(7,4,26,0.42) 45%,
        rgba(7,4,26,0.18) 100%
      );
      pointer-events: none;
    }

    /* ============================================================
       HEADER
    ============================================================ */
    #hdr {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      padding: 20px 0;
      transform: translateY(0);
      transition: background 0.4s, padding 0.35s, box-shadow 0.35s,
                  transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    }
    #hdr.stuck {
      background: rgba(7,4,26,0.92);
      backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
      padding: 13px 0;
      box-shadow: 0 1px 0 var(--border);
    }
    /* Hide header: slides up off screen */
    #hdr.hidden { transform: translateY(-110%); }
    .hdr-inner {
      display: flex; align-items: center;
      justify-content: space-between; gap: 24px;
    }
    /* SVG logo */
    .logo { display: inline-flex; align-items: center; text-decoration: none; }
    .logo img { height: 44px; width: auto; display: block; }

    nav.main-nav { display: flex; align-items: center; gap: 2px; }
    nav.main-nav a {
      padding: 8px 15px; border-radius: 50px;
      font-family: var(--h); font-size: 0.88rem; font-weight: 500;
      color: var(--text-dim); transition: var(--t);
    }
    nav.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

    .hdr-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
    .hdr-phone {
      font-size: 0.83rem; font-weight: 500; color: var(--text-dim);
      transition: var(--t);
    }
    .hdr-phone:hover { color: var(--orange); }

    .burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
    .burger span {
      display: block; width: 23px; height: 2px;
      background: var(--white); border-radius: 2px; transition: var(--t);
    }

    /* Mobile drawer */
    .mob-menu {
      display: none; position: fixed; inset: 0;
      background: rgba(7,4,26,0.97); z-index: 999;
      flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    }
    .mob-menu.open { display: flex; }
    .mob-close {
      position: absolute; top: 22px; right: 22px;
      font-size: 1.8rem; color: var(--text-muted); cursor: pointer;
      transition: var(--t); line-height: 1;
    }
    .mob-close:hover { color: var(--white); }
    .mob-menu a {
      font-family: var(--h); font-size: 1.6rem; font-weight: 600;
      color: var(--text); transition: var(--t);
    }
    .mob-menu a:hover { color: var(--orange); }

    /* ============================================================
       HERO
    ============================================================ */
    #hero {
      min-height: 100vh;
      display: flex; align-items: center;
      padding: 140px 0 90px;
      background: linear-gradient(145deg, var(--bg) 0%, #0D062A 50%, #160C40 100%);
      position: relative; overflow: hidden;
    }

    .hero-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 56px; align-items: center;
      position: relative; z-index: 2;
    }

    .hero-badge {
      display: inline-flex; align-items: center; gap: 9px;
      background: var(--orange-dim);
      border: 1px solid rgba(255,173,63,0.22); border-radius: 50px;
      padding: 7px 16px; margin-bottom: 26px;
      font-family: var(--h); font-size: 0.75rem; font-weight: 600;
      letter-spacing: 0.07em; text-transform: uppercase; color: var(--orange);
    }
    .pulse {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--orange); animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.45;transform:scale(1.4)} }

    .hero-title {
      font-size: clamp(2.3rem, 4.8vw, 3.8rem);
      font-weight: 700; margin-bottom: 26px; line-height: 1.09;
    }
    .hero-title .hl {
      background: linear-gradient(120deg, var(--orange) 10%, #FF73AD 90%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-sub {
      font-size: 1.08rem; color: var(--text-dim);
      line-height: 1.78; margin-bottom: 42px; max-width: 500px;
    }
    .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

    /* Hero visual */
    .hero-vis {
      position: relative;
      display: flex; align-items: center; justify-content: center;
    }
    .ring {
      position: absolute; border-radius: 50%; border: 1px solid;
    }
    .ring-1 {
      width: 360px; height: 360px;
      border-color: rgba(72,27,165,0.28);
      animation: spin 22s linear infinite;
    }
    .ring-2 {
      width: 490px; height: 490px;
      border-color: rgba(255,183,228,0.10);
      animation: spin 34s linear infinite reverse;
    }
    @keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

    .kanga-wrap {
      position: relative; z-index: 2;
      animation: kfloat 4.5s ease-in-out infinite;
    }
    .kanga-wrap img {
      max-height: 420px; width: auto;
      filter: drop-shadow(0 0 50px rgba(72,27,165,0.55))
              drop-shadow(0 0 20px rgba(255,173,63,0.2));
    }
    @keyframes kfloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-22px)} }

    /* Hero scroll cue */
    .scroll-cue {
      position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.12em;
      text-transform: uppercase; font-family: var(--h); z-index: 2;
    }
    .scroll-arrow {
      width: 28px; height: 28px; border: 1px solid rgba(255,255,255,0.15);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      animation: bob 1.8s ease-in-out infinite;
    }
    @keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

    /* ============================================================
       STATS BAR
    ============================================================ */
    #stats {
      background: rgba(255,255,255,0.025);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .stats-row {
      display: grid; grid-template-columns: repeat(4,1fr);
    }
    .stat {
      padding: 38px 24px; text-align: center;
      border-right: 1px solid var(--border);
      transition: var(--t);
    }
    .stat:last-child { border-right: none; }
    .stat:hover { background: rgba(72,27,165,0.07); }
    .stat-n {
      font-family: var(--h); font-size: 2.5rem; font-weight: 700;
      color: var(--orange); line-height: 1; margin-bottom: 7px; display: block;
      white-space: nowrap;
    }
    /* Range stat gets slightly smaller so it fits on one line */
    .stat-n.range { font-size: 1.9rem; }
    .stat-l { font-size: 0.84rem; color: var(--text-dim); font-weight: 500; }

    /* ============================================================
       SERVICES
    ============================================================ */
    #services {
      background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    }
    .svc-header { text-align: center; margin-bottom: 60px; }
    .svc-header .section-sub { margin: 0 auto; }

    .svc-grid {
      display: grid;
      grid-template-columns: repeat(4,1fr);
      gap: 18px;
    }

    /* Funding card spans 2 */
    .svc-card {
      background: var(--card); border: 1px solid var(--card-border);
      border-radius: var(--r); padding: 30px 26px;
      transition: var(--t); position: relative; overflow: hidden;
    }
    .svc-card::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(72,27,165,0.1) 0%, transparent 55%);
      opacity: 0; transition: var(--t);
    }
    .svc-card:hover { border-color: rgba(255,173,63,0.28); transform: translateY(-6px); box-shadow: 0 18px 42px rgba(0,0,0,0.28); }
    .svc-card:hover::after { opacity: 1; }

    .svc-card.funding {
      grid-column: span 2;
      background: linear-gradient(135deg, rgba(72,27,165,0.18) 0%, rgba(255,173,63,0.04) 100%);
      border-color: rgba(72,27,165,0.35);
      display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
    }
    .svc-card.funding:hover { border-color: rgba(255,173,63,0.4); }
    .svc-card.funding::after { display: none; }

    .svc-icon {
      width: 50px; height: 50px; border-radius: 13px;
      background: var(--orange-dim); border: 1px solid rgba(255,173,63,0.18);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem; margin-bottom: 18px; transition: var(--t);
    }
    .svc-card:hover .svc-icon { transform: scale(1.08); background: rgba(255,173,63,0.2); }

    .svc-icon.ai { background: var(--pink-dim); border-color: rgba(255,183,228,0.2); }
    .svc-icon.fund { width: 58px; height: 58px; background: rgba(72,27,165,0.2); border-color: rgba(72,27,165,0.38); font-size: 1.6rem; }

    .svc-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 9px; }
    .svc-card p  { font-size: 0.84rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 18px; }

    .svc-link {
      font-family: var(--h); font-size: 0.83rem; font-weight: 600;
      color: var(--orange); display: inline-flex; align-items: center; gap: 6px;
      transition: var(--t);
    }
    .svc-link:hover { gap: 10px; }

    /* Funding right side */
    .fund-new {
      display: inline-block;
      background: linear-gradient(120deg, var(--orange), #FF7BB0);
      color: #0A0618; font-size: 0.68rem; font-weight: 700;
      font-family: var(--h); letter-spacing: 0.1em; text-transform: uppercase;
      padding: 4px 11px; border-radius: 50px; margin-bottom: 14px;
    }
    .fund-card h3 { font-size: 1.2rem; }

    .fund-stats {
      display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    }
    .fund-stat {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px; padding: 15px; text-align: center;
    }
    .fund-stat strong {
      display: block; font-family: var(--h); font-size: 1.18rem;
      font-weight: 700; color: var(--orange);
    }
    .fund-stat span { font-size: 0.72rem; color: var(--text-muted); }

    .svc-cta { text-align: center; margin-top: 48px; }

    /* ============================================================
       WHY US
    ============================================================ */
    #why {
      background: var(--bg2);
      position: relative;
      overflow: hidden;
    }
    /* Gradient glow — soft purple bloom from top-right, magenta echo bottom-left */
    #why::before {
      content: '';
      position: absolute; inset: 0; z-index: 0;
      background:
        radial-gradient(ellipse 65% 70% at 85% 15%,  rgba(72,27,165,0.38) 0%, transparent 70%),
        radial-gradient(ellipse 50% 55% at 10% 90%,  rgba(215,60,175,0.18) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 50% 50%,  rgba(72,27,165,0.08) 0%, transparent 80%);
      pointer-events: none;
    }
    #why .container { position: relative; z-index: 1; }

    .why-inner {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 72px; align-items: center;
    }

    .why-feats {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 16px; margin-top: 36px;
    }
    .feat {
      background: var(--card); border: 1px solid var(--card-border);
      border-radius: var(--r); padding: 22px 20px; transition: var(--t);
    }
    .feat:hover { border-color: rgba(255,173,63,0.2); transform: translateY(-4px); }
    .feat-ico { font-size: 1.5rem; margin-bottom: 10px; }
    .feat h4  { font-size: 0.92rem; font-weight: 600; margin-bottom: 7px; }
    .feat p   { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; }

    /* Right card */
    .why-card {
      background: var(--card); border: 1px solid var(--card-border);
      border-radius: 22px; padding: 36px; position: relative; overflow: hidden;
    }
    .why-card::before {
      content: ''; position: absolute; top: -50px; right: -50px;
      width: 180px; height: 180px;
      background: radial-gradient(circle, rgba(72,27,165,0.25) 0%, transparent 70%);
    }
    .why-card-title {
      font-size: 0.88rem; font-weight: 600; color: var(--orange);
      font-family: var(--h); margin-bottom: 22px;
    }

    .check-item {
      display: flex; align-items: flex-start; gap: 14px;
      padding: 14px 0; border-bottom: 1px solid var(--border);
    }
    .check-item:last-child { border-bottom: none; }
    .check-ico {
      width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
      background: var(--orange-dim); border: 1px solid rgba(255,173,63,0.18);
      display: flex; align-items: center; justify-content: center; font-size: 1rem;
    }
    .check-text strong {
      display: block; font-family: var(--h); font-weight: 600;
      font-size: 0.9rem; color: var(--white); margin-bottom: 2px;
    }
    .check-text span { font-size: 0.78rem; color: var(--text-muted); }

    /* ============================================================
       PROCESS / BLUEPRINT
    ============================================================ */
    #process {
      background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
    }
    .process-header { text-align: center; margin-bottom: 72px; }
    .process-header .section-sub { margin: 0 auto; }

    .steps {
      display: grid; grid-template-columns: repeat(4,1fr);
      gap: 0; position: relative;
    }
    .steps::before {
      content: ''; position: absolute;
      top: 37px; left: calc(12.5% + 6px); right: calc(12.5% + 6px);
      height: 1px;
      background: linear-gradient(90deg, rgba(255,173,63,0.35), rgba(255,183,228,0.25), rgba(255,173,63,0.35));
    }

    .step { text-align: center; padding: 0 18px; }
    .step-n {
      width: 74px; height: 74px; border-radius: 50%;
      background: linear-gradient(135deg, rgba(72,27,165,0.28), rgba(255,173,63,0.1));
      border: 1.5px solid rgba(255,173,63,0.35);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 24px; position: relative; z-index: 2;
      font-family: var(--h); font-size: 1.3rem; font-weight: 700; color: var(--orange);
      transition: var(--t);
    }
    .step:hover .step-n {
      border-color: var(--orange); background: linear-gradient(135deg, rgba(72,27,165,0.45), rgba(255,173,63,0.18));
      box-shadow: 0 0 28px rgba(255,173,63,0.18);
    }
    .step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
    .step p  { font-size: 0.84rem; color: var(--text-dim); line-height: 1.65; }

    /* ============================================================
       TESTIMONIALS
    ============================================================ */
    #testimonials { background: var(--bg); }
    .test-header { text-align: center; margin-bottom: 52px; }
    .test-header .section-sub { margin: 0 auto; }

    .test-grid {
      display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
    }
    .test-card {
      background: var(--card); border: 1px solid var(--card-border);
      border-radius: var(--r); padding: 30px; transition: var(--t); position: relative;
    }
    .test-card:hover { border-color: rgba(255,173,63,0.2); transform: translateY(-4px); }
    .qmark {
      font-size: 4rem; line-height: 0.9; color: var(--orange);
      opacity: 0.28; font-family: Georgia, serif; display: block; margin-bottom: 4px;
    }
    .stars { color: var(--orange); font-size: 0.82rem; letter-spacing: 2px; margin-bottom: 14px; }
    .test-text {
      font-size: 0.93rem; color: var(--text-dim); line-height: 1.76;
      margin-bottom: 22px; font-style: italic;
    }
    .test-author { display: flex; align-items: center; gap: 12px; }
    .avatar {
      width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
      background: linear-gradient(135deg, var(--purple), var(--orange));
      display: flex; align-items: center; justify-content: center;
      font-family: var(--h); font-weight: 700; font-size: 0.9rem; color: var(--white);
    }
    .auth-name { font-family: var(--h); font-weight: 600; font-size: 0.88rem; color: var(--white); }
    .auth-role { font-size: 0.77rem; color: var(--text-muted); }

    .test-cta { text-align: center; margin-top: 44px; }

    /* ============================================================
       WORK PREVIEW
    ============================================================ */
    #work { background: var(--bg2); }
    .work-top {
      display: flex; align-items: flex-end; justify-content: space-between;
      margin-bottom: 44px;
    }

    .work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

    .work-card {
      background: var(--card); border: 1px solid var(--card-border);
      border-radius: var(--r); overflow: hidden; transition: var(--t);
    }
    .work-card:hover { border-color: rgba(255,173,63,0.22); transform: translateY(-4px); }

    .work-card { cursor: pointer; }
    .work-card .browser-frame a,
    .work-card a { display: block; text-decoration: none; pointer-events: none; }

    /* ── Project Modal ── */
    .proj-modal {
      position: fixed; inset: 0; z-index: 3000;
      background: rgba(5,3,17,0.97);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.35s ease;
      backdrop-filter: blur(8px);
    }
    .proj-modal.open { opacity: 1; pointer-events: all; }

    .proj-modal-inner {
      display: flex; width: 92vw; height: 87vh;
      border-radius: 18px; overflow: hidden;
      border: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 30px 100px rgba(0,0,0,0.7);
      position: relative;
    }
    .proj-modal-close {
      position: absolute; top: 16px; right: 18px; z-index: 10;
      background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
      color: #fff; font-size: 1rem; line-height: 1;
      width: 36px; height: 36px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: background 0.2s; font-family: var(--h);
    }
    .proj-modal-close:hover { background: rgba(255,255,255,0.22); }

    /* Left 60% — scrollable iframe (16:9) */
    .proj-preview {
      width: 60%;
      aspect-ratio: 16/9;
      position: relative; overflow: hidden;
      background: #0a0618;
      border-right: 1px solid rgba(255,255,255,0.07);
      flex-shrink: 0;
    }
    .proj-iframe {
      width: 1440px;
      border: none; display: block;
      transform-origin: top left;
      /* height & transform scale set by JS */
    }

    /* Fallback when iframe blocked */
    .proj-no-iframe {
      position: absolute; inset: 0;
      display: none; align-items: center; justify-content: center;
      font-family: var(--h); font-size: 1.5rem; font-weight: 700;
      color: rgba(255,255,255,0.16); letter-spacing: 0.15em;
      text-align: center; padding: 40px;
    }

    /* Right 40% — project info */
    .proj-info {
      width: 37%; height: 100%;
      background: var(--bg2);
      padding: 50px 32px 36px;
      display: flex; flex-direction: column; gap: 16px;
      overflow-y: auto; flex-shrink: 0;
    }

    /* Scroll hint divider strip */
    .proj-divider {
      width: 3%; flex-shrink: 0;
      background: var(--bg2);
      border-right: 1px solid rgba(255,255,255,0.07);
      display: flex; align-items: center; justify-content: center;
    }
    .proj-divider-inner {
      display: flex; flex-direction: column; align-items: center; gap: 3px;
      animation: bob 1.8s ease-in-out infinite;
      height: 82%;
    }
    .proj-divider-text {
      display: flex; flex-direction: column; align-items: center;
      font-family: var(--h); font-size: 0.85rem; font-weight: 700;
      letter-spacing: 0.04em; text-transform: uppercase;
      color: #e7e7e7; line-height: 1.15; flex-shrink: 0;
    }
    .proj-divider-line {
      width: 1.5px; flex: 1;
      background: #e7e7e7;
    }
    .proj-divider-head {
      width: 12px; height: 14px; flex-shrink: 0;
    }

    /* Mobile: Mac monitor mockup (hidden on desktop) */
    .proj-mac-wrap {
      display: none;
      flex-direction: column; align-items: center;
      padding: 24px 20px 12px;
      background: var(--bg);
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .mac-bezel {
      width: 90%; max-width: 320px;
      background: linear-gradient(160deg, #2d2d2f, #1a1a1c);
      border-radius: 10px 10px 6px 6px;
      padding: 9px 9px 5px;
      box-shadow: 0 0 0 1.5px #000, 0 14px 44px rgba(0,0,0,0.65);
    }
    .mac-cam {
      width: 6px; height: 6px; border-radius: 50%;
      background: #3a3a3c; margin: 0 auto 7px;
    }
    .mac-screen {
      width: 100%; aspect-ratio: 16/9;
      border-radius: 3px; overflow: hidden;
      background: #0a0618;
    }
    .mac-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
    .mac-screen .mac-screen-grad {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--h); font-size: 0.75rem; font-weight: 700;
      color: rgba(255,255,255,0.2); letter-spacing: 0.12em; text-align: center; padding: 12px;
    }
    .mac-neck {
      width: 16%; height: 16px; margin: 0 auto;
      background: linear-gradient(to bottom, #1a1a1c, #2d2d2f);
      clip-path: polygon(18% 0, 82% 0, 96% 100%, 4% 100%);
    }
    .mac-base {
      width: 44%; height: 6px; margin: 0 auto;
      background: linear-gradient(to bottom, #2d2d2f, #1a1a1c);
      border-radius: 0 0 4px 4px;
    }
    .proj-info .tags { flex-wrap: wrap; }
    .proj-info h2 {
      font-size: 1.22rem; font-weight: 700; line-height: 1.32;
      color: #fff; margin: 0;
    }
    .proj-desc {
      font-size: 0.86rem; color: var(--text-dim); line-height: 1.72;
      flex: 1;
    }
    .proj-visit {
      display: inline-flex; align-items: center; gap: 8px;
      background: linear-gradient(120deg, var(--orange), var(--pink));
      color: #fff; font-family: var(--h); font-size: 0.8rem; font-weight: 700;
      letter-spacing: 0.07em; text-transform: uppercase;
      padding: 11px 22px; border-radius: 50px; text-decoration: none;
      transition: opacity 0.2s; align-self: flex-start; margin-top: auto;
      border: none; cursor: pointer;
    }
    .proj-visit:hover { opacity: 0.82; }

    /* Print services section inside modal */
    .proj-print {
      display: none;
      flex-direction: column;
      gap: 10px;
      padding: 16px 0 0;
      border-top: 1px solid rgba(255,255,255,0.08);
      margin-top: 4px;
    }
    .proj-print.has-print { display: flex; }
    .proj-print-label {
      font-family: var(--h);
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--orange);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .proj-print-label svg { opacity: 0.9; flex-shrink: 0; }
    .proj-print-copy {
      font-size: 0.78rem;
      color: rgba(255,255,255,0.5);
      line-height: 1.5;
      margin: 0;
    }
    .proj-print-items {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .proj-print-items span {
      font-family: var(--h);
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      color: rgba(255,255,255,0.75);
      background: rgba(255,173,63,0.1);
      border: 1px solid rgba(255,173,63,0.25);
      border-radius: 50px;
      padding: 4px 11px;
    }

    /* Mobile modal */
    @media (max-width: 680px) {
      .proj-modal-inner {
        flex-direction: column; width: 96vw;
        max-height: 92vh; border-radius: 12px;
        overflow-y: auto;
      }
      .proj-preview { display: none; }         /* hide iframe on mobile */
      .proj-divider { display: none; }         /* hide scroll hint on mobile */
      .proj-mac-wrap { display: flex; }        /* show Mac mockup instead */
      .proj-info {
        width: 100%; height: auto;
        padding: 22px 18px 28px; gap: 11px;
      }
      .proj-info h2 { font-size: 1rem; }
      .proj-visit { align-self: center; }
    }

    /* ── Browser mockup frame ── */
    .browser-frame {
      width: 100%; background: #1a1a2e;
      border-radius: 10px 10px 0 0; overflow: hidden;
    }
    .browser-bar {
      background: #12111f;
      padding: 8px 12px;
      display: flex; align-items: center; gap: 10px;
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .browser-dots { display: flex; gap: 5px; flex-shrink: 0; }
    .browser-dots span {
      width: 10px; height: 10px; border-radius: 50%; display: block;
    }
    .browser-dots span:nth-child(1) { background: #ff5f57; }
    .browser-dots span:nth-child(2) { background: #febc2e; }
    .browser-dots span:nth-child(3) { background: #28c840; }
    .browser-url {
      flex: 1; background: rgba(255,255,255,0.06);
      border-radius: 4px; padding: 3px 10px;
      font-size: 0.7rem; color: rgba(255,255,255,0.35);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .browser-content {
      width: 100%; padding-top: 56%;
      position: relative; overflow: hidden;
    }
    .browser-content img {
      position: absolute; inset: 0;
      width: 100%; height: 100%; object-fit: cover; object-position: top;
      display: block;
    }
    .work-info { padding: 22px 24px; }
    .tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
    .tag {
      background: rgba(255,173,63,0.09); border: 1px solid rgba(255,173,63,0.18);
      color: var(--orange); font-size: 0.68rem; font-weight: 600;
      font-family: var(--h); letter-spacing: 0.09em; text-transform: uppercase;
      padding: 4px 10px; border-radius: 50px;
    }
    .work-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 7px; }
    .work-info p  { font-size: 0.83rem; color: var(--text-dim); line-height: 1.6; }

    /* ============================================================
       BLOG PREVIEW
    ============================================================ */
    #blog { background: var(--bg); }
    .blog-top {
      display: flex; align-items: flex-end; justify-content: space-between;
      margin-bottom: 44px;
    }
    .blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

    .blog-card {
      background: var(--card); border: 1px solid var(--card-border);
      border-radius: var(--r); overflow: hidden; transition: var(--t);
    }
    .blog-card:hover { border-color: rgba(255,173,63,0.2); transform: translateY(-4px); }
    .blog-thumb {
      width: 100%; aspect-ratio: 16/9;
      overflow: hidden; display: block;
    }
    .blog-thumb img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform 0.4s ease;
    }
    .blog-card:hover .blog-thumb img { transform: scale(1.04); }
    .blog-body { padding: 22px; }
    .blog-date { font-size: 0.74rem; color: var(--text-muted); font-family: var(--h); margin-bottom: 9px; }
    .blog-card h3 { font-size: 0.93rem; font-weight: 600; line-height: 1.42; margin-bottom: 9px; }
    .blog-card p  { font-size: 0.81rem; color: var(--text-dim); line-height: 1.65; }

    /* ============================================================
       CTA BAND
    ============================================================ */
    #cta-band {
      padding: 120px 0; text-align: center;
      background: linear-gradient(145deg, rgba(72,27,165,0.25) 0%, var(--bg) 50%, rgba(255,183,228,0.04) 100%);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      position: relative; overflow: hidden;
    }
    #cta-band::before {
      content: ''; position: absolute; top: 50%; left: 50%;
      transform: translate(-50%,-50%);
      width: 560px; height: 560px;
      background: radial-gradient(circle, rgba(72,27,165,0.18) 0%, transparent 68%);
      pointer-events: none;
    }
    .cta-inner { position: relative; z-index: 2; }
    .cta-title {
      font-size: clamp(1.9rem, 3.8vw, 3rem);
      font-weight: 700; margin-bottom: 18px;
    }
    .cta-sub {
      font-size: 1.05rem; color: var(--text-dim);
      margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto;
      line-height: 1.7;
    }
    .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

    /* ============================================================
       FOOTER
    ============================================================ */
    #footer { background: #050311; padding: 64px 0 30px; border-top: 1px solid var(--border); }

    .foot-inner {
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px; margin-bottom: 48px;
    }
    .foot-brand .logo { margin-bottom: 14px; }
    .foot-brand p {
      font-size: 0.86rem; color: var(--text-muted); line-height: 1.72;
      max-width: 270px; margin-bottom: 22px;
    }
    .socials { display: flex; gap: 10px; }
    .soc {
      width: 36px; height: 36px; border-radius: 9px;
      border: 1px solid var(--border); background: var(--card);
      display: flex; align-items: center; justify-content: center;
      font-size: 0.78rem; color: var(--text-muted); font-weight: 700;
      transition: var(--t); font-family: var(--h);
    }
    .soc:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

    .foot-col h4 {
      font-size: 0.82rem; font-weight: 600; color: var(--white);
      letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 18px;
    }
    .foot-col ul li { margin-bottom: 9px; }
    .foot-col ul li a {
      font-size: 0.86rem; color: var(--text-muted); transition: var(--t);
    }
    .foot-col ul li a:hover { color: var(--orange); }

    .contact-item {
      display: flex; align-items: flex-start; gap: 9px; margin-bottom: 11px;
    }
    .contact-item .ico { font-size: 0.85rem; flex-shrink: 0; margin-top: 2px; }
    .contact-item a, .contact-item span:last-child {
      font-size: 0.85rem; color: var(--text-muted); transition: var(--t);
      line-height: 1.5;
    }
    .contact-item a:hover { color: var(--orange); }

    .foot-bottom {
      padding-top: 28px; border-top: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      gap: 14px; flex-wrap: wrap;
    }
    .foot-bottom p, .foot-bottom a {
      font-size: 0.79rem; color: var(--text-muted);
    }
    .foot-links { display: flex; gap: 22px; }
    .foot-links a:hover { color: var(--orange); transition: var(--t); }

    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 1100px) {
      .svc-grid    { grid-template-columns: repeat(3, 1fr); }
      .svc-card.funding { grid-column: span 3; grid-template-columns: 1fr 1fr; }
      .work-grid   { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 900px) {
      .hero-grid   { grid-template-columns: 1fr; }
      .hero-vis    { display: none; }
      .why-inner   { grid-template-columns: 1fr; gap: 44px; }
      .steps       { grid-template-columns: repeat(2,1fr); gap: 40px; }
      .steps::before { display: none; }
      .test-grid   { grid-template-columns: 1fr 1fr; }
      .blog-grid   { grid-template-columns: 1fr 1fr; }
      .foot-inner  { grid-template-columns: 1fr 1fr; gap: 36px; }
      .svc-grid    { grid-template-columns: repeat(2,1fr); }
      .svc-card.funding { grid-column: span 2; }
    }

    @media (max-width: 680px) {
      nav.main-nav { display: none; }
      .hdr-phone   { display: none; }
      .hdr-right .btn { display: none; }
      .burger      { display: flex; }
      .section    { padding: 72px 0; }
      .steps      { grid-template-columns: 1fr; gap: 32px; }
      .test-grid  { grid-template-columns: 1fr; }
      .blog-grid  { grid-template-columns: 1fr; }
      .work-grid  { grid-template-columns: 1fr; }
      .work-top, .blog-top { flex-direction: column; align-items: flex-start; gap: 14px; }
      .foot-inner  { grid-template-columns: 1fr; text-align: center; }
      .foot-brand  { display: flex; flex-direction: column; align-items: center; }
      .foot-brand p { max-width: 100%; }
      .socials     { justify-content: center; }
      .foot-col    { display: flex; flex-direction: column; align-items: center; }
      .foot-col ul { text-align: center; }
      .foot-bottom { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
      .foot-links  { justify-content: center; }
      .why-feats  { grid-template-columns: 1fr; }
      .svc-grid   { grid-template-columns: 1fr; }
      .svc-card.funding { grid-column: span 1; grid-template-columns: 1fr; }
      .stats-row  { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 400px) {
      .hero-btns  { flex-direction: column; }
      .cta-btns   { flex-direction: column; align-items: center; }
    }

    /* Mobile: stack + full-width + centered text */
    @media (max-width: 680px) {
      .hero-btns {
        flex-direction: column;
      }
      .hero-btns .btn {
        width: 100%; justify-content: center; text-align: center;
      }
    }

    /* ── Stats: square cells on mobile ── */
    @media (max-width: 680px) {
      .stats-row {
        grid-template-columns: 1fr 1fr;
      }
      .stat {
        /* aspect-ratio makes each cell square */
        aspect-ratio: 1 / 1;
        padding: 0;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 6px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
      }
      .stat:nth-child(2) { border-right: none; }
      .stat:nth-child(3) { border-bottom: none; border-right: 1px solid var(--border); }
      .stat:nth-child(4) { border-bottom: none; border-right: none; }
      .stat-n       { font-size: 1.6rem; margin-bottom: 0; }
      .stat-n.range { font-size: 1.1rem; }
      .stat-l       { font-size: 0.75rem; white-space: nowrap; }
    }

    /* ── Global mobile containment ── */
    @media (max-width: 680px) {
      .container { padding: 0 15px; }
      /* Prevent any child from punching outside the viewport */
      section, header, footer,
      .hero-grid, .hero-content, .hero-sub,
      .svc-grid, .why-inner, .why-feats,
      .test-grid, .work-grid, .blog-grid, .foot-inner,
      .steps, .process-header {
        max-width: 100%;
        min-width: 0;
      }
      /* Fixed max-widths on text blocks can overflow narrow screens */
      .hero-sub, .section-sub { max-width: 100%; }
    }
  </style>
