  /* ============================================================
     DESIGN TOKENS
     ============================================================ */
  :root {
    --navy: #2d3a7d;
    --navy-dark: #232e66;
    --navy-deeper: #1a2452;
    --navy-50: #eef0f8;
    --pink: #e91e85;
    --pink-soft: #ffb3d9;
    --pink-50: #fdeaf3;
    --orange: #f58024;
    --orange-soft: #fcb549;
    --orange-50: #fff2e6;
    --red: #e64644;
    --magenta: #d823cd;

    --grad: linear-gradient(90deg, #fcb549 0%, #e64644 50%, #d823cd 100%);
    --grad-tilt: linear-gradient(135deg, #fcb549 0%, #e64644 50%, #d823cd 100%);
    --grad-soft: linear-gradient(135deg, #fff2e6 0%, #fdeaf3 100%);

    --bg: #ffffff;
    --surface: #f7f8fc;
    --surface-2: #f2f4f8;
    --border: #e8eaef;
    --text: #151515;
    --text-muted: #6b7280;

    --font: 'Figtree', system-ui, -apple-system, sans-serif;

    --sh-md: 0 4px 8px rgba(35, 46, 102, 0.06), 0 8px 24px rgba(35, 46, 102, 0.08);
    --sh-lg: 0 12px 24px -8px rgba(35, 46, 102, 0.12), 0 24px 64px -12px rgba(35, 46, 102, 0.18);
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }
  img, video, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }
  ::selection { background: var(--pink); color: #fff; }

  .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ============================================================
     HERO
     ============================================================ */
  .hero-filter-band {
    background: linear-gradient(160deg, #edf0fb 0%, #f5f7fd 55%, var(--bg) 85%);
    position: relative;
  }
  .hero-filter-band::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 0;
  }
  .hero-ref {
    padding: 140px 0 20px;
    background: none;
    position: relative;
    /* Contain the oversized decorative glows within their own section. */
    overflow: clip;
  }
  .hero-ref::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(233, 30, 133, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-ref::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(45, 58, 125, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-ref-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-bottom: 0;
  }
  .hero-ref-text {}
  .hero-ref .kicker {
    color: var(--pink);
    margin-bottom: 16px;
    display: block;
  }
  .hero-ref h1 {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: var(--navy-deeper);
  }
  .hero-ref h1 .gr {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-ref .hero-hook {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 440px;
  }
  .hero-ref-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 24px -6px rgba(230, 70, 68, 0.45);
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -6px rgba(230, 70, 68, 0.6);
  }
  .hero-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy-dark);
    transition: color 0.2s, gap 0.2s;
  }
  .hero-cta-ghost:hover {
    color: var(--pink);
    gap: 10px;
  }
  .hero-ref-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-device-img {
    width: 120%;
    max-width: 720px;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 48px rgba(35, 46, 102, 0.15));
    margin-left: -10%;
  }

  /* ============================================================
     FILTER TABS
     ============================================================ */
  .filter-bar {
    background: transparent;
    padding: 56px 0 44px;
    position: relative;
    z-index: 2;
  }
  .filter-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(35,46,102,0.07), 0 1px 4px rgba(35,46,102,0.04);
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filter-bar-inner::-webkit-scrollbar { display: none; }
  .filter-sep {
    width: 1px;
    height: 24px;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 4px;
  }
  .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s, background 0.18s;
    border: none;
    background: transparent;
    flex: 1;
    justify-content: center;
  }
  .filter-btn:hover {
    color: var(--navy-dark);
    background: var(--navy-50);
  }
  .filter-btn.active {
    color: #fff;
    background: var(--navy-deeper);
    box-shadow: 0 4px 14px -4px rgba(35, 46, 102, 0.35);
  }
  /* Kategoriateksti suodattimen alla: yksi lause siitä, miksi nämä kortit ovat mukana. */
  .filter-intro {
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 560px;
    line-height: 1.5;
  }

  /* ============================================================
     SECTION UTILITIES
     ============================================================ */
  .block { padding: 96px 0; }
  .block.alt { background: var(--surface); }
  .section-head {
    margin-bottom: 56px;
    max-width: 880px;
  }
  .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
  .kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
  }
  .kicker.orange { color: var(--orange); }
  .kicker.pink { color: var(--pink); }
  .kicker.navy { color: var(--navy); }
  .section-title {
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.015em;
  }
  .section-title .gr {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .section-lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.7;
  }
  .section-head.center .section-lead { margin-left: auto; margin-right: auto; }

  /* ============================================================
     PORTFOLIO GRID
     ============================================================ */
  .portfolio-section {
    padding: 40px 0 100px;
  }
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
    grid-auto-flow: dense;
  }

  /* Project cards */
  .proj-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
    will-change: transform;
  }
  .proj-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--sh-lg);
  }
  .proj-card.tall { min-height: 420px; }
  .proj-card.featured {
    grid-column: span 2;
    min-height: 360px;
  }
  .proj-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .proj-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .proj-card:hover .proj-card-bg img { transform: scale(1.06); }
  .proj-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(26, 36, 82, 0.0) 30%, rgba(26, 36, 82, 0.88) 100%);
    transition: opacity 0.35s;
  }
  .proj-card:hover .proj-card-overlay {
    background: linear-gradient(180deg, rgba(26, 36, 82, 0.10) 0%, rgba(26, 36, 82, 0.94) 100%);
  }
  .proj-card-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .proj-card-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 4px;
  }
  .proj-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
  }
  .proj-tag.type {
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.20);
  }
  .proj-tag.industry {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.12);
  }
  .proj-card-name {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
  .proj-card.tall .proj-card-name,
  .proj-card.featured .proj-card-name { font-size: 28px; }
  .proj-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s, color 0.2s;
  }
  .proj-card:hover .proj-card-link {
    opacity: 1;
    transform: translateY(0);
    color: rgba(255,255,255,0.90);
  }
  .proj-card-link svg { flex-shrink: 0; }

  /* Gradient-only cards (no real image) */
  .proj-card .grad-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* Gradient palette for cards */
  .gb-1  { background: linear-gradient(135deg, #2d3a7d 0%, #e91e85 100%); }
  .gb-2  { background: linear-gradient(135deg, #1a2452 0%, #f58024 100%); }
  .gb-3  { background: linear-gradient(135deg, #232e66 0%, #d823cd 80%); }
  .gb-4  { background: linear-gradient(145deg, #fcb549 0%, #e64644 60%, #2d3a7d 130%); }
  .gb-5  { background: linear-gradient(135deg, #0f1a40 0%, #e91e85 60%, #fcb549 100%); }
  .gb-6  { background: linear-gradient(120deg, #2d3a7d 0%, #6030b0 50%, #e91e85 100%); }
  .gb-7  { background: linear-gradient(155deg, #1a2452 0%, #f58024 70%, #fcb549 100%); }
  .gb-8  { background: linear-gradient(130deg, #232e66 0%, #e64644 55%, #d823cd 100%); }
  .gb-9  { background: linear-gradient(135deg, #0d1836 0%, #2d3a7d 40%, #e91e85 100%); }
  .gb-10 { background: linear-gradient(140deg, #fcb549 0%, #f58024 40%, #e91e85 100%); }
  .gb-11 { background: linear-gradient(135deg, #1a2452 0%, #3b5bdb 50%, #e91e85 100%); }
  .gb-12 { background: linear-gradient(150deg, #232e66 0%, #e64644 70%); }

  /* Noise texture overlay for visual depth */
  .proj-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 150px;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.5;
  }

  /* Hidden card state (for filter) */
  .proj-card.hidden {
    display: none !important;
  }

  /* ============================================================
     LIGHT CARD (uusi tyyli)
     ============================================================ */
  .proj-card.light {
    background: var(--bg);
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 8px rgba(35,46,102,0.05), 0 4px 16px rgba(35,46,102,0.06);
    min-height: 320px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }
  .proj-card.light:hover {
    box-shadow: 0 8px 24px rgba(35,46,102,0.10), 0 16px 48px rgba(35,46,102,0.12);
  }
  .proj-card.light .proj-card-overlay { display: none; }
  .proj-card.light::after { display: none; }
  .proj-card.light .proj-card-body {
    margin-top: 0;
    padding: 24px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* Kortin yläosa: kategoriamerkki + nuolipainike */
  .proj-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .proj-card-cat {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--pink);
  }
  .proj-card-go {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy-dark);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  }
  .proj-card.light:hover .proj-card-go {
    background: var(--navy-deeper);
    border-color: var(--navy-deeper);
    color: #fff;
    transform: translateX(2px) translateY(-2px);
  }

  .proj-card.light .proj-card-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--navy-deeper);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .proj-card.light .proj-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
  }

  /* Kuva-alue */
  .proj-card.light .proj-card-thumb {
    overflow: hidden;
    border-radius: 0 0 18px 18px;
    flex-shrink: 0;
    height: 190px;
  }
  .proj-card.light .proj-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
  }
  .proj-card.light:hover .proj-card-thumb img {
    transform: scale(1.04);
  }

  /* Leveä kortti: span 2 saraketta */
  .proj-card.light.wide {
    grid-column: span 2;
    min-height: 360px;
  }
  .proj-card.light.wide .proj-card-name {
    font-size: 28px;
  }
  .proj-card.light.wide .proj-card-thumb {
    height: 250px;
  }

  /* CTA promo card */
  .proj-card.light.cta-promo {
    background: var(--navy-deeper);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
  }
  .proj-card.light.cta-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 700px 400px at 80% 20%, rgba(252, 181, 73, 0.15) 0%, transparent 55%),
      radial-gradient(ellipse 500px 400px at 20% 90%, rgba(216, 35, 205, 0.18) 0%, transparent 55%),
      radial-gradient(ellipse 600px 300px at 50% 50%, rgba(230, 70, 68, 0.10) 0%, transparent 60%);
    pointer-events: none;
  }
  .proj-card.light.cta-promo:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 56px rgba(26,36,82,0.5), 0 4px 16px rgba(26,36,82,0.3);
  }
  .cta-promo-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }
  .cta-promo-kicker {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
  }
  .cta-promo-headline {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
  }
  .cta-promo-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 340px;
    position: relative;
    z-index: 1;
  }
  .cta-promo-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: var(--grad);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px -6px rgba(230, 70, 68, 0.5);
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    font-family: var(--font);
  }
  .cta-promo-btn:hover {
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 12px 32px -6px rgba(230, 70, 68, 0.65);
  }
  .cta-promo-dots {
    position: absolute;
    bottom: 20px; right: 24px;
    display: flex; gap: 5px;
    opacity: 0.12;
    z-index: 0;
  }
  .cta-promo-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
  }

  /* ============================================================
     STATS ROW
     ============================================================ */
  .stats-row {
    background: linear-gradient(to bottom, var(--bg) 50%, var(--navy-deeper) 50%);
    padding: 72px 0;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(26,36,82,0.22), 0 4px 16px rgba(26,36,82,0.10);
  }
  .stat-item {
    background: var(--bg);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
  }
  .stat-item::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
  }
  .stat-item:nth-child(1)::before { background: radial-gradient(circle, rgba(233, 30, 133, 0.10) 0%, transparent 70%); }
  .stat-item:nth-child(2)::before { background: radial-gradient(circle, rgba(252, 181, 73, 0.12) 0%, transparent 70%); }
  .stat-item:nth-child(3)::before { background: radial-gradient(circle, rgba(45, 58, 125, 0.10) 0%, transparent 70%); }
  .stat-number {
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .stat-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy-dark);
    line-height: 1.4;
  }
  .stat-sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 200px;
  }

  /* ============================================================
     CLOSING CTA
     ============================================================ */
  .mono { font-family: var(--font); }
  .closing {
    background: var(--navy-deeper);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: clamp(110px, 15vh, 180px) 0;
  }
  .closing-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 800px 500px at 25% 20%, rgba(252, 181, 73, 0.14), transparent 60%),
      radial-gradient(ellipse 700px 500px at 80% 80%, rgba(216, 35, 205, 0.16), transparent 60%),
      radial-gradient(ellipse 900px 500px at 50% 50%, rgba(230, 70, 68, 0.08), transparent 60%);
  }
  .closing .container { position: relative; z-index: 1; }
  .closing-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
  }
  .closing-inner .kicker { margin-bottom: 28px; }
  .closing-headline {
    font-size: clamp(44px, 7vw, 104px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.02;
    color: #fff;
    margin-bottom: 28px;
  }
  .closing-headline .gr {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .closing-lead {
    font-size: clamp(17px, 1.4vw, 20px);
    color: rgba(255,255,255,0.72);
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
  }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 30px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 12px 32px -8px rgba(230, 70, 68, 0.55);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: var(--font);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(230, 70, 68, 0.65); }
  .btn-primary .arr { transition: transform 0.3s; }
  .btn-primary:hover .arr { transform: translateX(4px); }
  .btn-xl { padding: 22px 40px; font-size: 18px; border-radius: 14px; box-shadow: 0 24px 56px -12px rgba(230, 70, 68, 0.6); }
  .closing-timeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin-top: 88px;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
  }
  .closing-timeline-label {
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 28px;
  }
  .tl-step {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 16px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    min-width: 180px;
    transition: border-color 0.3s, background 0.3s;
  }
  .tl-step:hover { border-color: rgba(255,179,217,0.3); background: rgba(255,255,255,0.06); }
  .tl-step--clickable { cursor: pointer; }
  .tl-step--clickable:hover { border-color: rgba(255,179,217,0.5); background: rgba(255,179,217,0.06); }
  .tl-num { font-size: 24px; font-weight: 900; color: var(--pink-soft); letter-spacing: -0.03em; line-height: 1; }
  .tl-body { display: flex; flex-direction: column; gap: 2px; }
  .tl-title { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
  .tl-sub { font-size: 12px; color: rgba(255,255,255,0.55); }
  .tl-arrow { display: flex; align-items: center; color: rgba(255,255,255,0.22); font-size: 20px; font-weight: 300; }
  .closing-contact { margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.08); }
  .cc-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .cc-lab { font-size: 11px; color: rgba(255,255,255,0.48); letter-spacing: 0.16em; text-transform: uppercase; flex: 1 0 0; min-width: 0; text-align: right; }
  .cc-phone { font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; color: #fff; letter-spacing: -0.025em; transition: color 0.2s; }
  .cc-phone:hover { color: var(--pink-soft); }
  .cc-hours { font-size: 11px; color: rgba(255,255,255,0.48); letter-spacing: 0.12em; text-transform: uppercase; flex: 1 0 0; min-width: 0; text-align: left; }
  .cc-support { text-align: center; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.55); }
  .cc-support-link { color: var(--pink-soft); font-weight: 600; text-decoration: none; margin-left: 6px; border-bottom: 1px dashed rgba(255,179,217,0.4); transition: color 0.2s, border-color 0.2s; }
  .cc-support-link:hover { color: #fff; border-bottom-color: #fff; }

  /* ============================================================
     AI-HI FORM
     ============================================================ */
  .ai-hi {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 16px 28px;
    background: #fff;
    color: var(--navy-dark);
    border: 1px solid var(--border);
    font-weight: 800;
    font-size: 15px;
    border-radius: 999px;
    font-family: var(--font);
    transition: all 0.2s;
  }
  .ai-hi:hover, .ai-hi:focus-within {
    border-color: var(--navy);
    color: var(--navy);
    transform: translateY(-2px);
  }
  .ai-hi-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    user-select: none;
    cursor: default;
  }
  .ai-hi-wave {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    transform-origin: 70% 70%;
    animation: aiWave 3.4s ease-in-out 2s infinite;
  }
  @keyframes aiWave {
    0%, 78%, 100% { transform: rotate(0deg); }
    82%  { transform: rotate(14deg); }
    86%  { transform: rotate(-8deg); }
    90%  { transform: rotate(14deg); }
    94%  { transform: rotate(-4deg); }
    98%  { transform: rotate(10deg); }
  }
  .ai-hi-input {
    width: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--navy-dark);
    font: 500 14px/1 var(--font);
    opacity: 0;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease 0.05s, padding 0.3s ease, margin 0.3s ease;
  }
  .ai-hi-input::placeholder { color: var(--text-muted); font-weight: 400; }
  .ai-hi:hover .ai-hi-input,
  .ai-hi:focus-within .ai-hi-input {
    width: 220px;
    opacity: 1;
    padding: 0 12px;
    margin-left: 10px;
    border-left: 1px solid var(--border);
  }
  .ai-hi-send {
    width: 0;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--navy-dark);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.65);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease 0.1s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  }
  .ai-hi-send svg { width: 14px; height: 14px; stroke-width: 2.6; }
  .ai-hi:hover .ai-hi-send,
  .ai-hi:focus-within .ai-hi-send { width: 32px; opacity: 1; transform: scale(1); }
  .ai-hi-send:hover, .ai-hi-send:focus-visible { color: var(--pink); }

  /* ============================================================
     REVEAL
     ============================================================ */
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  [data-reveal].in { opacity: 1; transform: translateY(0); }
  [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  [data-reveal-stagger].in > * { opacity: 1; transform: translateY(0); }
  [data-reveal-stagger].in > *:nth-child(1)  { transition-delay: 0.04s; }
  [data-reveal-stagger].in > *:nth-child(2)  { transition-delay: 0.08s; }
  [data-reveal-stagger].in > *:nth-child(3)  { transition-delay: 0.12s; }
  [data-reveal-stagger].in > *:nth-child(4)  { transition-delay: 0.16s; }
  [data-reveal-stagger].in > *:nth-child(5)  { transition-delay: 0.20s; }
  [data-reveal-stagger].in > *:nth-child(6)  { transition-delay: 0.24s; }
  [data-reveal-stagger].in > *:nth-child(7)  { transition-delay: 0.28s; }
  [data-reveal-stagger].in > *:nth-child(8)  { transition-delay: 0.32s; }
  [data-reveal-stagger].in > *:nth-child(9)  { transition-delay: 0.36s; }
  [data-reveal-stagger].in > *:nth-child(10) { transition-delay: 0.40s; }
  [data-reveal-stagger].in > *:nth-child(11) { transition-delay: 0.44s; }
  [data-reveal-stagger].in > *:nth-child(12) { transition-delay: 0.48s; }
  [data-reveal-stagger].in > *:nth-child(13) { transition-delay: 0.52s; }

  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 1100px) {
    .hero-ref-inner { gap: 40px; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: 1fr; gap: 1px; }
    .stat-item { padding: 36px 32px; }
  }
  @media (max-width: 900px) {
    .hero-ref-inner { grid-template-columns: 1fr; padding-bottom: 0; }
    .hero-ref-visual { display: none; }
    .hero-ref { padding: 120px 0 0; }
    .hero-ref .hero-hook { max-width: 100%; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .proj-card.light.wide { grid-column: span 2; }
  }
  @media (max-width: 760px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .proj-card.light.wide { grid-column: span 2; }
    .proj-card.tall, .proj-card.featured { grid-column: span 1; min-height: 280px; }
    .filter-bar-inner { border-radius: 14px; justify-content: flex-start; }
    .filter-btn { flex: 0 0 auto; padding: 11px 16px; font-size: 13px; gap: 6px; }
    .filter-sep { height: 18px; }
    .stats-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 540px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .proj-card.light.wide { grid-column: span 1; min-height: 0; }
    .proj-card.light.wide .proj-card-thumb { height: 200px; }
    .proj-card.light .proj-card-thumb { height: 160px; }
  }
  @media (max-width: 600px) {
    .container { padding: 0 20px; }
    .hero-ref { padding: 100px 0 0; }
    .hero-ref-inner { padding-bottom: 40px; }
    .portfolio-section { padding: 56px 0 72px; }
    .stats-row { padding: 56px 0; }
    .closing { padding: 80px 0; }
    .hero-ref-ctas { gap: 16px; }
    .ai-hi:hover .ai-hi-input,
    .ai-hi:focus-within .ai-hi-input { width: 140px; }
  }
  /* Direct links from homepage selections must clear the fixed header. */
  .proj-card-body[id] { scroll-margin-top: 110px; }
