/* Homepage visual based on the supplied Stitch desktop reference. */
:root {
      --bg-base: #06080b;
      --bg-surface: #0a0d12;
      --bg-surface-elevated: #0f131a;
      --bg-card: rgba(14, 18, 25, 0.7);
      --bg-card-hover: rgba(19, 25, 36, 0.85);
      
      --text-main: #f5f7fa;
      --text-muted: #8e98a8;
      --text-subtle: #5f6978;
      
      --gold: #dfb256;
      --gold-light: #f3cf7e;
      --gold-dark: #b88628;
      --gold-glow: rgba(223, 178, 86, 0.16);
      --gold-subtle: rgba(223, 178, 86, 0.08);
      
      --border-subtle: rgba(255, 255, 255, 0.06);
      --border-card: rgba(255, 255, 255, 0.08);
      --border-card-hover: rgba(223, 178, 86, 0.35);
      
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-xl: 26px;
      
      --shell: min(1200px, calc(100% - 48px));
      --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background-color: var(--bg-base);
      color: var(--text-main);
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.6;
      overflow-x: hidden;
      letter-spacing: -0.01em;
      -webkit-font-smoothing: antialiased;
    }

    /* Ambient background lighting */
    .ambient-glow {
      position: fixed;
      pointer-events: none;
      z-index: 0;
      border-radius: 50%;
      filter: blur(140px);
    }
    .ambient-glow-1 {
      width: 700px;
      height: 700px;
      background: radial-gradient(circle, rgba(184, 134, 40, 0.09) 0%, transparent 70%);
      top: -150px;
      right: -100px;
    }
    .ambient-glow-2 {
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(140, 95, 25, 0.06) 0%, transparent 70%);
      top: 900px;
      left: -200px;
    }

    .shell {
      width: var(--shell);
      margin-inline: auto;
      position: relative;
      z-index: 1;
    }

    .section {
      padding: 104px 0;
      position: relative;
    }
    .section-border {
      border-top: 1px solid var(--border-subtle);
    }

    /* TYPOGRAPHY */
    h1, h2, h3, h4 {
      font-family: var(--font-display);
      font-weight: 700;
      color: var(--text-main);
      line-height: 1.15;
    }
    .gold-text {
      background: linear-gradient(135deg, #fce5a3 0%, #dfb256 50%, #b88628 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--font-display);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 16px;
    }
    .eyebrow::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--gold);
      box-shadow: 0 0 10px var(--gold);
    }

    .section-header {
      margin-bottom: 52px;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 32px;
    }
    .section-header h2 {
      font-size: clamp(32px, 3.6vw, 46px);
      letter-spacing: -0.03em;
    }
    .section-header p {
      max-width: 480px;
      color: var(--text-muted);
      font-size: 15px;
      line-height: 1.65;
    }

    /* BUTTONS */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 700;
      padding: 14px 26px;
      border-radius: 12px;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid transparent;
      white-space: nowrap;
    }
    .btn-primary {
      background: linear-gradient(135deg, #d39f37 0%, #f1cb75 50%, #c48e24 100%);
      color: #0b0d10;
      box-shadow: 0 4px 24px rgba(223, 178, 86, 0.28), inset 0 1px 1px rgba(255,255,255,0.4);
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(223, 178, 86, 0.38), inset 0 1px 1px rgba(255,255,255,0.6);
    }
    .btn-secondary {
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(255, 255, 255, 0.12);
      color: var(--text-main);
      backdrop-filter: blur(8px);
    }
    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.07);
      border-color: rgba(255, 255, 255, 0.24);
      transform: translateY(-2px);
    }

    /* HEADER */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(6, 8, 11, 0.82);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.2s ease;
    }
    .header-inner {
      height: 82px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
    }
    .brand-link {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
    }
    .brand-logo-img {
      height: 48px;
      width: auto;
      object-fit: contain;
      filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    }
    .main-nav {
      display: flex;
      align-items: center;
      gap: 32px;
    }
    .main-nav a {
      color: #b5becb;
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      position: relative;
      padding: 8px 0;
      transition: color 0.2s ease;
    }
    .main-nav a:hover, .main-nav a.active {
      color: #fff;
    }
    .main-nav a::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -4px;
      transform: translateX(-50%) scaleX(0);
      width: 18px;
      height: 2px;
      background: var(--gold);
      border-radius: 2px;
      transition: transform 0.22s ease;
    }
    .main-nav a:hover::after, .main-nav a.active::after {
      transform: translateX(-50%) scaleX(1);
    }
    .header-cta-btn {
      padding: 10px 18px;
      font-size: 13px;
      border-radius: 10px;
    }

    /* HERO SECTION */
    .hero-grid {
      display: grid;
      grid-template-columns: 1.08fr 0.92fr;
      gap: 56px;
      align-items: center;
      padding-top: 50px;
      padding-bottom: 30px;
    }
    .hero-h1 {
      font-size: clamp(44px, 5.2vw, 68px);
      letter-spacing: -0.04em;
      line-height: 1.04;
      margin-bottom: 22px;
    }
    .hero-desc {
      font-size: 17px;
      line-height: 1.68;
      color: var(--text-muted);
      max-width: 580px;
      margin-bottom: 32px;
    }
    .hero-actions-group {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }
    .hero-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 20px;
      color: #8c96a5;
      font-size: 12px;
      font-weight: 500;
    }
    .hero-pill-item {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .hero-pill-item svg {
      width: 14px;
      height: 14px;
      color: var(--gold);
    }

    /* HERO STAGE / COMPACT DASHBOARD MOCKUP */
    .hero-stage {
      position: relative;
      perspective: 1200px;
    }
    .dashboard-window {
      background: linear-gradient(165deg, rgba(18, 24, 34, 0.85) 0%, rgba(9, 13, 19, 0.95) 100%);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-lg);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(223, 178, 86, 0.08);
      overflow: hidden;
      backdrop-filter: blur(16px);
      margin-right: 40px;
      transition: transform 0.3s ease;
    }
    .window-header {
      height: 40px;
      background: rgba(10, 14, 20, 0.95);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
      font-size: 11px;
      color: var(--text-subtle);
    }
    .window-dots {
      display: flex;
      gap: 6px;
    }
    .window-dots span {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
    }
    .window-body {
      display: grid;
      grid-template-columns: 105px 1fr;
      min-height: 290px;
    }
    .window-nav {
      background: rgba(6, 9, 13, 0.7);
      border-right: 1px solid rgba(255, 255, 255, 0.05);
      padding: 18px 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .nav-badge-jr {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: linear-gradient(135deg, rgba(223, 178, 86, 0.2), rgba(184, 134, 40, 0.05));
      border: 1px solid rgba(223, 178, 86, 0.3);
      color: var(--gold);
      font-size: 11px;
      font-weight: 800;
      display: grid;
      place-items: center;
      margin-bottom: 12px;
    }
    .nav-item-mock {
      font-size: 11px;
      padding: 7px 10px;
      border-radius: 6px;
      color: var(--text-subtle);
      font-weight: 500;
    }
    .nav-item-mock.active {
      color: var(--gold);
      background: rgba(223, 178, 86, 0.08);
      font-weight: 600;
    }
    .window-content {
      padding: 20px;
    }
    .mock-top-stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 16px;
    }
    .mock-stat-box {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 10px;
      padding: 10px 14px;
    }
    .mock-stat-box small {
      display: block;
      font-size: 10px;
      color: var(--text-subtle);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .mock-stat-box strong {
      font-size: 15px;
      color: var(--text-main);
      display: block;
      margin-top: 2px;
    }
    .mock-project-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      margin-bottom: 8px;
      font-size: 12px;
    }
    .mock-project-row.highlighted {
      background: linear-gradient(90deg, rgba(223, 178, 86, 0.08), rgba(255, 255, 255, 0.02));
      border-color: rgba(223, 178, 86, 0.25);
    }
    .mock-badge {
      font-size: 10px;
      padding: 3px 8px;
      border-radius: 20px;
      background: rgba(223, 178, 86, 0.12);
      color: var(--gold);
      font-weight: 600;
    }

    /* FLOATING COMPACT PHONE OVERLAY */
    .floating-phone-card {
      position: absolute;
      right: 0;
      bottom: -15px;
      width: 175px;
      background: #090c11;
      border: 4px solid #1c222c;
      border-radius: 28px;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
      padding: 24px 12px 14px;
      transform: rotate(3deg);
    }
    .phone-notch {
      position: absolute;
      top: 8px;
      left: 50%;
      transform: translateX(-50%);
      width: 44px;
      height: 7px;
      background: #1c222c;
      border-radius: 10px;
    }
    .phone-content-head {
      font-size: 10px;
      color: var(--gold);
      font-weight: 700;
      margin-bottom: 6px;
    }
    .phone-content-title {
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 12px;
      line-height: 1.2;
    }
    .phone-item {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 8px;
      padding: 8px;
      margin-bottom: 7px;
      font-size: 10px;
    }
    .phone-item.active {
      border-color: rgba(223, 178, 86, 0.3);
      background: rgba(223, 178, 86, 0.06);
    }
    .phone-btn {
      background: var(--gold);
      color: #000;
      font-size: 9px;
      font-weight: 800;
      text-align: center;
      padding: 8px;
      border-radius: 6px;
      margin-top: 10px;
    }

    /* TRUST ROW */
    .trust-strip {
      margin-top: 60px;
      padding: 28px 0;
      border-top: 1px solid var(--border-subtle);
      border-bottom: 1px solid var(--border-subtle);
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 28px;
    }
    .trust-card {
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }
    .trust-icon-wrap {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: rgba(223, 178, 86, 0.08);
      border: 1px solid rgba(223, 178, 86, 0.18);
      display: grid;
      place-items: center;
      color: var(--gold);
      flex-shrink: 0;
    }
    .trust-icon-wrap svg {
      width: 18px;
      height: 18px;
    }
    .trust-card h4 {
      font-size: 14px;
      margin-bottom: 4px;
      color: var(--text-main);
      font-weight: 600;
    }
    .trust-card p {
      font-size: 12.5px;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* SERVICES SECTION */
    .services-grid-new {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .service-box {
      background: linear-gradient(170deg, rgba(16, 21, 29, 0.7) 0%, rgba(10, 13, 18, 0.85) 100%);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      padding: 32px 28px;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .service-box::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(223, 178, 86, 0.4), transparent);
      opacity: 0;
      transition: opacity 0.28s ease;
    }
    .service-box:hover {
      transform: translateY(-5px);
      border-color: var(--border-card-hover);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(223, 178, 86, 0.08);
      background: linear-gradient(170deg, rgba(20, 26, 36, 0.8) 0%, rgba(11, 15, 21, 0.95) 100%);
    }
    .service-box:hover::before {
      opacity: 1;
    }
    .service-top-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
    }
    .service-icon-box {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(223, 178, 86, 0.12), rgba(184, 134, 40, 0.03));
      border: 1px solid rgba(223, 178, 86, 0.22);
      display: grid;
      place-items: center;
      color: var(--gold);
    }
    .service-icon-box svg {
      width: 22px;
      height: 22px;
    }
    .service-cat-tag {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-subtle);
    }
    .service-box h3 {
      font-size: 20px;
      margin-bottom: 12px;
      letter-spacing: -0.02em;
    }
    .service-box p {
      color: var(--text-muted);
      font-size: 13.5px;
      line-height: 1.65;
      margin-bottom: 24px;
      flex-grow: 1;
    }
    .service-tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .service-pill {
      font-size: 11px;
      padding: 4px 9px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      color: #9aa5b5;
    }

    /* PROJECTS SHOWCASE */
    .featured-project-card {
      background: linear-gradient(160deg, rgba(16, 21, 29, 0.9) 0%, rgba(9, 12, 17, 0.96) 100%);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-xl);
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      overflow: hidden;
      margin-bottom: 24px;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      text-decoration: none;
      color: inherit;
    }
    .featured-project-card:hover {
      transform: translateY(-4px);
      border-color: rgba(223, 178, 86, 0.4);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(223, 178, 86, 0.08);
    }
    .project-visual-pane {
      position: relative;
      background: #080a0e;
      min-height: 420px;
      overflow: hidden;
      border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    .project-map-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      opacity: 0.88;
      transition: transform 0.4s ease;
    }
    .featured-project-card:hover .project-map-img {
      transform: scale(1.02);
    }
    .project-glass-card {
      position: absolute;
      top: 24px;
      right: 24px;
      width: 210px;
      background: rgba(10, 14, 20, 0.88);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    }
    .project-glass-card small {
      font-size: 10px;
      color: var(--gold);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      display: block;
      margin-bottom: 4px;
    }
    .project-glass-card strong {
      font-size: 13px;
      color: #fff;
      display: block;
      margin-bottom: 8px;
    }
    .project-glass-row {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: var(--text-muted);
      padding: 4px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .project-glass-row b {
      color: var(--gold);
    }
    .project-phone-snippet {
      position: absolute;
      bottom: -25px;
      left: 28px;
      width: 150px;
      background: #080b0f;
      border: 4px solid #1a2029;
      border-radius: 24px;
      padding: 22px 10px 10px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
      transform: rotate(-3deg);
    }

    .project-copy-pane {
      padding: 42px 36px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .project-copy-pane h3 {
      font-size: 30px;
      margin-bottom: 14px;
      letter-spacing: -0.03em;
    }
    .project-copy-pane p {
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1.7;
      margin-bottom: 24px;
    }
    .project-action-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      color: var(--gold);
      font-weight: 700;
      font-size: 13px;
    }

    .secondary-projects-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }
    .secondary-project-card {
      background: linear-gradient(160deg, rgba(16, 21, 29, 0.8) 0%, rgba(9, 12, 17, 0.95) 100%);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-xl);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      transition: all 0.28s ease;
    }
    .secondary-project-card:hover {
      transform: translateY(-4px);
      border-color: rgba(223, 178, 86, 0.35);
      box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    }
    .secondary-visual {
      height: 230px;
      position: relative;
      background: #090c10;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      overflow: hidden;
    }
    .secondary-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    .secondary-content {
      padding: 30px 28px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .secondary-content h3 {
      font-size: 22px;
      margin-bottom: 10px;
    }
    .secondary-content p {
      font-size: 13.5px;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 20px;
    }

    /* PROCESS TIMELINE */
    .process-timeline {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      position: relative;
    }
    .process-line {
      position: absolute;
      top: 24px;
      left: 12%;
      right: 12%;
      height: 1px;
      background: linear-gradient(90deg, rgba(223, 178, 86, 0.2), rgba(223, 178, 86, 0.6) 50%, rgba(223, 178, 86, 0.2));
      z-index: 0;
    }
    .process-node {
      position: relative;
      z-index: 1;
    }
    .process-badge-num {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #090c10;
      border: 1px solid var(--gold);
      box-shadow: 0 0 0 6px var(--bg-base), 0 0 16px rgba(223, 178, 86, 0.25);
      color: var(--gold);
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 14px;
      display: grid;
      place-items: center;
      margin-bottom: 26px;
    }
    .process-card {
      background: linear-gradient(165deg, rgba(16, 21, 29, 0.65) 0%, rgba(10, 13, 18, 0.85) 100%);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      padding: 26px 22px;
      min-height: 250px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.24s ease;
    }
    .process-node:hover .process-card {
      border-color: rgba(223, 178, 86, 0.3);
      transform: translateY(-4px);
    }
    .process-card small {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      color: var(--gold);
      text-transform: uppercase;
      display: block;
      margin-bottom: 10px;
    }
    .process-card h3 {
      font-size: 18px;
      margin-bottom: 10px;
      line-height: 1.25;
    }
    .process-card p {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
    }
    .process-tags {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 18px;
      padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .process-tag-item {
      font-size: 10px;
      color: var(--text-subtle);
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.05);
      padding: 3px 7px;
      border-radius: 4px;
    }

    /* ABOUT ME SECTION */
    .about-layout {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 24px;
    }
    .about-lead-card {
      background: linear-gradient(165deg, rgba(16, 22, 31, 0.75) 0%, rgba(9, 13, 18, 0.9) 100%);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-xl);
      padding: 44px 40px;
    }
    .about-lead-card h3 {
      font-size: clamp(26px, 2.8vw, 34px);
      letter-spacing: -0.03em;
      margin-bottom: 20px;
      line-height: 1.2;
    }
    .about-lead-card p {
      font-size: 15px;
      color: var(--text-muted);
      line-height: 1.75;
      margin-bottom: 18px;
    }
    .about-focus-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 28px;
      padding-top: 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .focus-pill {
      font-size: 12px;
      font-weight: 500;
      color: #b1bccd;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.07);
      padding: 6px 12px;
      border-radius: 8px;
    }

    .about-pillars-stack {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .pillar-card {
      background: rgba(14, 18, 25, 0.6);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      padding: 22px 24px;
      transition: all 0.24s ease;
    }
    .pillar-card:hover {
      background: rgba(18, 24, 34, 0.75);
      border-color: rgba(223, 178, 86, 0.25);
      transform: translateX(4px);
    }
    .pillar-card small {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      color: var(--gold);
      text-transform: uppercase;
      display: block;
      margin-bottom: 4px;
    }
    .pillar-card h4 {
      font-size: 16px;
      margin-bottom: 6px;
    }
    .pillar-card p {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* CONTACT SECTION */
    .contact-banner {
      background: radial-gradient(circle at 90% 10%, rgba(223, 178, 86, 0.12) 0%, transparent 40%),
                  linear-gradient(150deg, #111620 0%, #090c10 100%);
      border: 1px solid rgba(223, 178, 86, 0.28);
      border-radius: var(--radius-xl);
      padding: 56px 52px;
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      gap: 48px;
      align-items: center;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    }
    .contact-left h2 {
      font-size: clamp(34px, 4vw, 50px);
      letter-spacing: -0.03em;
      margin-bottom: 18px;
    }
    .contact-left p {
      font-size: 16px;
      color: var(--text-muted);
      line-height: 1.68;
      max-width: 540px;
      margin-bottom: 34px;
    }
    .contact-cta-row {
      display: flex;
      align-items: center;
      gap: 28px;
      flex-wrap: wrap;
    }
    .contact-email-link {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
    }
    .contact-email-link small {
      font-size: 11px;
      font-weight: 700;
      color: var(--gold);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 2px;
    }
    .contact-email-link b {
      font-size: 16px;
      color: #fff;
      transition: color 0.2s ease;
    }
    .contact-email-link:hover b {
      color: var(--gold);
    }

    .contact-points-list {
      display: flex;
      flex-direction: column;
      gap: 18px;
      padding-left: 32px;
      border-left: 1px solid rgba(255, 255, 255, 0.08);
    }
    .contact-point-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }
    .point-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(223, 178, 86, 0.08);
      border: 1px solid rgba(223, 178, 86, 0.18);
      color: var(--gold);
      display: grid;
      place-items: center;
      flex-shrink: 0;
    }
    .point-icon svg {
      width: 16px;
      height: 16px;
    }
    .point-text b {
      font-size: 13.5px;
      color: #fff;
      display: block;
      margin-bottom: 2px;
    }
    .point-text p {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.45;
    }

    /* FOOTER */
    .site-footer {
      padding: 60px 0 36px;
      border-top: 1px solid var(--border-subtle);
      background: #040608;
    }
    .footer-content-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr auto;
      gap: 40px;
      align-items: flex-start;
      margin-bottom: 44px;
    }
    .footer-desc {
      font-size: 12.5px;
      color: var(--text-subtle);
      margin-top: 14px;
      max-width: 320px;
      line-height: 1.6;
    }
    .footer-col h5 {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 14px;
    }
    .footer-links-list {
      display: flex;
      flex-direction: column;
      gap: 9px;
    }
    .footer-links-list a {
      color: #949fae;
      text-decoration: none;
      font-size: 13px;
      transition: color 0.2s ease;
    }
    .footer-links-list a:hover {
      color: var(--gold);
    }
    .scroll-top-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--gold);
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .scroll-top-btn:hover {
      border-color: var(--gold);
      background: rgba(223, 178, 86, 0.1);
      transform: translateY(-2px);
    }
    .footer-bottom-bar {
      padding-top: 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.04);
      display: flex;
      justify-content: space-between;
      color: var(--text-subtle);
      font-size: 12px;
    }

/* Production integration, responsive layout and the existing contact flow. */
:root { color-scheme: dark; --text-subtle: #8692a3; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 1000; padding: 12px 18px; background: var(--gold); color: #080a0e; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
main > section { scroll-margin-top: 82px; }
.hero-section { padding-top: 40px; padding-bottom: 60px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-inner > .brand-link { flex-shrink: 0; }
.brand-logo-img { width: 146px; height: 48px; }
.nav-toggle { display: none; height: 44px; width: 44px; padding: 12px 10px; border: 1px solid var(--border-card); border-radius: 10px; background: #10141b; color: var(--gold); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; margin: 4px auto; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-project-summary { display: none; }
.hero-grid > *, .section-header > *, .services-grid-new > *, .secondary-projects-grid > *, .contact-banner > * { min-width: 0; }
.hero-pill-item { white-space: nowrap; }
.mock-stat-box strong { font-size: 13px; }
.window-content { min-width: 0; }
.window-header { gap: 10px; }
.window-header > div { white-space: nowrap; }
.mock-project-row { gap: 8px; }
.mock-badge { flex-shrink: 0; }
.service-box p { margin-bottom: 22px; }
.featured-project-card .service-tag-list { border: 0; padding: 0; margin-bottom: 24px; }
.project-map-img { position: absolute; inset: 0; }
.project-visual-pane { min-height: 400px; }
.trainer-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s; }
.trainer-project:hover .trainer-preview { transform: scale(1.025); }
.trainer-visual { background: #f8f9f6; }
.live-project-label { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(223,178,86,.32); border-radius: 8px; background: rgba(7,10,14,.92); color: #f3cf7e; font-size: 10px; letter-spacing: .1em; font-weight: 700; }
.live-project-label > span { width: 6px; height: 6px; background: #b7dc9e; border-radius: 50%; }
.backie-project { margin-top: 24px; margin-bottom: 0; }
.backie-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.project-action-link span:last-child { font-size: 18px; }
.project-action-link { gap: 16px; }
.featured-project-card:focus-visible, .secondary-project-card:focus-visible { outline-offset: 4px; }
/* Four columns with 20px gaps: connect the centers of the 48px end badges. */
.process-line { left: 24px; right: calc(25% - 39px); }
.process-card { height: calc(100% - 74px); }
.contact-cta-row { flex-wrap: wrap; }
.contact-email-link { overflow-wrap: anywhere; }
.footer-links-list a { width: fit-content; }
.footer-bottom-bar { gap: 20px; }
.footer-brand .brand-logo-img { width: 146px; }

/* The dialog submits to the website's existing PHP endpoint. */
.contact-dialog { position: fixed; inset: 0; margin: auto; padding: 0; width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 40px); background: #0d1118; color: var(--text-main); border: 1px solid rgba(223,178,86,.28); border-radius: 22px; box-shadow: 0 28px 100px #0009; overflow: hidden; }
.contact-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(8px); }
.dialog-content { padding: 38px; max-height: calc(100dvh - 42px); overflow-y: auto; }
.dialog-close { position: absolute; z-index: 1; right: 14px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-card); background: #161d27; color: #cbd3df; font-size: 26px; border-radius: 50%; cursor: pointer; }
.contact-dialog h2 { font-size: clamp(25px, 5vw, 32px); max-width: 440px; margin-bottom: 12px; }
#contact-description { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
#contactForm { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#contactForm label { display: grid; gap: 7px; font-size: 12px; color: #d1d7e0; font-weight: 600; }
#contactForm .optional { color: var(--text-muted); font-weight: 400; }
#contactForm input, #contactForm select, #contactForm textarea { width: 100%; min-width: 0; background: #080c12; border: 1px solid #29303b; color: #f5f7fa; border-radius: 10px; padding: 12px 13px; font-size: 14px; font-weight: 400; }
#contactForm input, #contactForm select { min-height: 46px; }
#contactForm textarea { min-height: 125px; resize: vertical; }
#contactForm input:focus, #contactForm select:focus, #contactForm textarea:focus { border-color: var(--gold); outline: 2px solid rgba(223,178,86,.16); outline-offset: 1px; }
#contactForm ::placeholder { color: #778394; }
.hp-field { display: none; }
.form-submit { width: 100%; white-space: normal; }
.form-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.form-status { font-size: 13px; line-height: 1.55; color: #aeb9c7; overflow-wrap: anywhere; }
.form-status:empty { display: none; }
.form-status.success { color: #b1dba1; }
.form-status.error { color: #ffb1a1; }
.dialog-direct { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 12px; text-align: center; }
.dialog-direct a { color: var(--gold-light); text-underline-offset: 3px; }
body.dialog-open { overflow: hidden; }

@media (max-width: 1120px) {
  .main-nav { gap: 22px; }
  .header-inner { gap: 20px; }
  .hero-grid { gap: 30px; grid-template-columns: 1fr 1fr; }
  .hero-h1 { font-size: clamp(42px, 5.1vw, 58px); }
  .hero-desc { font-size: 16px; }
  .window-nav { display: none; }
  .window-body { grid-template-columns: 1fr; }
  .dashboard-window { margin-right: 28px; }
  .section-header p { max-width: 390px; }
  .trust-strip { gap: 22px; }
  .trust-card { gap: 10px; }
  .trust-card h4 { font-size: 13px; }
  .trust-card p { font-size: 12px; }
  .project-copy-pane { padding: 32px 28px; }
  .service-box { padding: 28px 22px; }
  .service-cat-tag { font-size: 9px; letter-spacing: .08em; }
}
@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: calc(100% - 1px); left: 0; right: 0; padding: 18px 22px; background: #0d121a; border: 1px solid #29303b; border-radius: 0 0 16px 16px; box-shadow: 0 16px 40px #0008; }
  .main-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 13px 4px; }
  .main-nav a::after { left: 4px; bottom: 6px; transform-origin: left; }
  .nav-toggle { display: block; }
  .header-inner { height: 74px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .hero-text-col { max-width: 660px; }
  .hero-h1 { font-size: 56px; }
  .hero-stage { width: min(600px,100%); justify-self: center; margin: 12px 0 32px; }
  .dashboard-window { margin-right: 50px; }
  .window-nav { display: flex; }
  .window-body { grid-template-columns: 105px 1fr; }
  .trust-strip { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .services-grid-new { grid-template-columns: repeat(2,1fr); }
  .section { padding: 76px 0; }
  .hero-section { padding-top: 32px; padding-bottom: 44px; }
  .section-header { gap: 24px; }
  .section-header h2 { font-size: 34px; }
  .section-header p { max-width: 320px; font-size: 14px; }
  .featured-project-card { grid-template-columns: 1.1fr 1fr; }
  .project-visual-pane { min-height: 380px; }
  .project-copy-pane { padding: 28px 24px; }
  .project-copy-pane h3 { font-size: 27px; }
  .project-glass-card { right: 15px; top: 15px; width: 185px; }
  .project-phone-snippet { left: 15px; width: 130px; }
  .process-timeline { grid-template-columns: repeat(2,1fr); gap: 30px 22px; }
  .process-line { display: none; }
  .process-card { min-height: 230px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-pillars-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-banner { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .contact-points-list { border-left: 0; border-top: 1px solid var(--border-subtle); padding: 28px 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
  .contact-point-item { gap: 10px; }
  .footer-content-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; position: relative; }
  .footer-content-grid > div:last-child { position: absolute; right: 0; bottom: -24px; }
  main > section { scroll-margin-top: 74px; }
}
@media (max-width: 640px) {
  :root { --shell: calc(100% - 36px); }
  body { font-size: 14px; }
  .site-header { background: rgba(6,8,11,.96); }
  .header-inner { height: 68px; gap: 10px; }
  .brand-logo-img { width: 130px; height: 40px; }
  .header-actions { gap: 8px; }
  .header-cta-btn { padding: 10px 12px; font-size: 11px; min-height: 40px; border-radius: 9px; }
  .header-cta-btn span { display: none; }
  .nav-toggle { width: 40px; height: 40px; padding: 9px; }
  .section { padding: 50px 0; }
  .hero-section { padding-top: 28px; padding-bottom: 38px; }
  .hero-grid { display: block; padding: 0; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 12px; }
  .hero-h1 { font-size: clamp(30px,8.4vw,42px); letter-spacing: -.045em; line-height: 1.08; margin-bottom: 18px; }
  .hero-desc { font-size: 14px; line-height: 1.65; margin-bottom: 22px; }
  .hero-actions-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
  .hero-actions-group .btn { width: 100%; padding: 13px 8px; font-size: 12px; gap: 5px; border-radius: 10px; }
  .hero-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #0b0f15; border: 1px solid var(--border-card); border-radius: 13px; padding: 14px; font-size: 10.5px; }
  .hero-pill-item { gap: 6px; }
  .hero-pill-item svg { width: 12px; height: 12px; }
  .hero-stage { display: none; }
  .mobile-project-summary { display: grid; gap: 9px; margin-top: 18px; padding: 18px 14px; border: 1px solid rgba(223,178,86,.25); border-radius: 19px; background: linear-gradient(150deg,#12171e,#090d12); }
  .summary-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 12px; }
  .summary-heading > span { font-size: 8px; letter-spacing: .08em; color: var(--gold); }
  .mobile-project-summary > a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 42px; border: 1px solid var(--border-card); border-radius: 7px; background: #ffffff03; padding: 9px; color: #d7dce4; font-size: 10px; text-decoration: none; }
  .mobile-project-summary > a:first-of-type { border-color: #dfb25640; background: #dfb25609; }
  .mobile-project-summary b { color: var(--gold-light); font-size: 9px; white-space: nowrap; }
  .trust-strip { grid-template-columns: 1fr; margin-top: 32px; padding-top: 26px; padding-bottom: 0; gap: 22px; }
  .trust-card { gap: 12px; }
  .trust-icon-wrap { width: 30px; height: 30px; border-radius: 7px; }
  .trust-icon-wrap svg { width: 15px; height: 15px; }
  .trust-card h4 { font-size: 13px; }
  .trust-card p { font-size: 12px; }
  .section-header { display: block; margin-bottom: 24px; }
  .section-header h2 { font-size: clamp(25px,6.4vw,32px); letter-spacing: -.035em; line-height: 1.16; }
  .section-header > p { margin-top: 14px; max-width: none; font-size: 13px; }
  .services-grid-new { grid-template-columns: 1fr; gap: 12px; }
  .service-box { padding: 22px 20px; border-radius: 15px; }
  .service-top-row { margin-bottom: 16px; }
  .service-icon-box { width: 34px; height: 34px; border-radius: 9px; }
  .service-icon-box svg { width: 18px; height: 18px; }
  .service-cat-tag { color: var(--gold); font-size: 8px; }
  .service-box h3 { font-size: 19px; margin-bottom: 9px; }
  .service-box p { font-size: 13px; margin-bottom: 15px; }
  .service-tag-list { padding-top: 12px; }
  .service-pill { font-size: 10px; padding: 3px 7px; }
  .featured-project-card { grid-template-columns: 1fr; border-radius: 17px; margin-bottom: 18px; }
  .project-visual-pane { min-height: 0; height: 216px; border-right: 0; border-bottom: 1px solid var(--border-card); }
  .project-copy-pane { padding: 22px 20px; gap: 0; }
  .project-copy-pane h3 { font-size: 24px; margin-bottom: 10px; }
  .project-copy-pane p { font-size: 13px; line-height: 1.65; margin-bottom: 16px; }
  .project-copy-pane .eyebrow { font-size: 8px; margin-bottom: 10px; }
  .featured-project-card .service-tag-list { margin-bottom: 18px; }
  .project-action-link { padding-top: 16px; font-size: 12px; }
  .project-glass-card, .project-phone-snippet { display: none; }
  .project-map-img { opacity: 1; }
  .trainer-preview { object-position: center top; }
  .live-project-label { left: 12px; bottom: 12px; font-size: 8px; padding: 7px 9px; }
  .secondary-projects-grid { grid-template-columns: 1fr; gap: 18px; }
  .secondary-project-card { border-radius: 17px; }
  .secondary-visual { height: 200px; }
  .secondary-content { padding: 22px 20px; }
  .secondary-content h3 { font-size: 22px; }
  .secondary-content p { font-size: 13px; }
  .backie-project { margin-top: 18px; margin-bottom: 0; }
  .process-timeline { grid-template-columns: 1fr; gap: 14px; }
  .process-node { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 18px; border: 1px solid var(--border-card); border-radius: 15px; background: #0d1219; }
  .process-badge-num { width: 34px; height: 34px; font-size: 11px; box-shadow: none; margin: 0; }
  .process-card { padding: 0; min-height: 0; height: auto; border: 0; background: none; }
  .process-card small { font-size: 8px; margin-bottom: 5px; }
  .process-card h3 { font-size: 15px; margin-bottom: 6px; }
  .process-card p { font-size: 12px; }
  .process-tags { margin-top: 12px; padding-top: 10px; }
  .process-node:hover .process-card { transform: none; }
  .about-lead-card { padding: 26px 22px; border-radius: 17px; }
  .about-lead-card h3 { font-size: 25px; }
  .about-lead-card p { font-size: 13px; line-height: 1.7; }
  .about-focus-pills { gap: 6px; margin-top: 20px; padding-top: 18px; }
  .focus-pill { font-size: 10px; padding: 5px 8px; }
  .about-pillars-stack { grid-template-columns: 1fr; }
  .pillar-card { padding: 20px; border-radius: 14px; }
  .pillar-card h4 { font-size: 15px; }
  .pillar-card p { font-size: 12px; }
  .contact-banner { display: block; padding: 27px 22px; border-radius: 20px; }
  .contact-left h2 { font-size: 29px; }
  .contact-left > p { font-size: 13px; margin-bottom: 24px; }
  .contact-cta-row { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .contact-cta-row .btn { width: 100%; padding: 14px 10px; font-size: 13px; }
  .contact-email-link { text-align: center; font-size: 13px; }
  .contact-points-list { display: flex; padding-top: 24px; margin-top: 28px; gap: 18px; }
  .point-text b { font-size: 12px; }
  .point-text p { font-size: 11px; }
  .site-footer { padding: 34px 0 24px; }
  .footer-content-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; margin-bottom: 28px; }
  .footer-content-grid > div:first-child { grid-column: 1 / -1; }
  .footer-content-grid > div:last-child { top: 0; bottom: auto; }
  .footer-desc { max-width: 260px; font-size: 12px; }
  .footer-col h5 { font-size: 10px; }
  .footer-links-list { gap: 10px; }
  .footer-links-list a { font-size: 12px; overflow-wrap: anywhere; }
  .footer-bottom-bar { flex-direction: column; gap: 6px; text-align: center; font-size: 10px; }
  .dialog-content { padding: 32px 22px 24px; max-height: calc(100dvh - 26px); }
  .contact-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .contact-dialog .eyebrow { margin-top: 8px; padding-right: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  #contactForm input, #contactForm select, #contactForm textarea { font-size: 16px; }
  main > section { scroll-margin-top: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Portfolio: two cards, a wide middle card, then two cards. */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  background: linear-gradient(145deg, #10151d, #090c11);
  color: inherit;
  text-decoration: none;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.portfolio-card[href]:hover {
  transform: translateY(-4px);
  border-color: rgba(223,178,86,.4);
  box-shadow: 0 20px 48px #0005;
}
.portfolio-card[href]:focus-visible { outline-offset: 5px; }
.backie-project { scroll-margin-top: 110px; }
.portfolio-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  isolation: isolate;
  background: #0b0e12;
  border-bottom: 1px solid rgba(223,178,86,.12);
}
.portfolio-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}
.portfolio-card[href]:hover .portfolio-image { transform: scale(1.025); }
/* The original map contains its own dark border. Crop it without distorting the map. */
.portfolio-image.taxi-image { transform: scale(1.09); }
.portfolio-card[href]:hover .taxi-image { transform: scale(1.115); }
.portfolio-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 30px;
}
.portfolio-content .eyebrow { font-size: 10px; margin-bottom: 12px; }
.portfolio-content h3 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}
.portfolio-content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.portfolio-content .service-tag-list { border: 0; margin: 0; padding: 0; gap: 7px; }
.portfolio-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-card);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.portfolio-action span:last-child { font-size: 20px; }
.portfolio-product-status {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-top: 20px;
  border-top: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.portfolio-product-status strong {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}
.product-status-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.portfolio-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
}
.portfolio-card-wide .portfolio-visual {
  aspect-ratio: auto;
  min-height: 360px;
  height: 100%;
  border-bottom: 0;
  border-right: 1px solid var(--border-card);
}
.portfolio-card-wide .portfolio-content { padding: 38px; }
.portfolio-card-wide h3 { font-size: 32px; }
.portfolio-card-wide .portfolio-image { object-position: center; }
.portfolio-visual.monitoring-visual > div { flex: 1; }
@media (max-width: 980px) {
  .portfolio-grid { gap: 20px; }
  .portfolio-card { border-radius: 19px; }
  .portfolio-content { padding: 24px; gap: 20px; }
  .portfolio-content h3 { font-size: 25px; }
  .portfolio-content p { font-size: 13px; }
  .portfolio-card-wide { grid-template-columns: 1fr 1fr; }
  .portfolio-card-wide .portfolio-content { padding: 28px; }
  .portfolio-card-wide .portfolio-visual { min-height: 340px; }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .portfolio-card-wide { display: flex; grid-column: auto; }
  .portfolio-card-wide .portfolio-visual {
    aspect-ratio: 8 / 5;
    min-height: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(223,178,86,.12);
  }
  .portfolio-content, .portfolio-card-wide .portfolio-content { padding: 23px 21px; gap: 20px; }
  .portfolio-content h3, .portfolio-card-wide h3 { font-size: 24px; margin-bottom: 11px; }
  .portfolio-content .eyebrow { font-size: 8px; }
  .portfolio-content p { margin-bottom: 17px; }
  .portfolio-action { font-size: 12px; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-card, .portfolio-image { transition: none; }
}
