:root {
  --surface: #ffffff;
  --ink: #000000;
  --brand: #3a7bff;
  --muted: rgba(0, 0, 0, 0.6);
  --hairline: rgba(0, 0, 0, 0.05);
  --hairline-strong: rgba(0, 0, 0, 0.15);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-05: rgba(255, 255, 255, 0.05);

  /* Existing system tokens mapped for compatibility */
  --bg-primary: var(--surface);
  --text-primary: var(--ink);
  --accent-color: var(--brand);
  --secondary-color: #cfe8ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--brand); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono-label,
.mono-small {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}
.section-dark .mono-label,
.section-dark .mono-small { color: var(--white-40); }
.mono-small { letter-spacing: 0.15em; }

.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: inline; } }

.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; display: block; }
.mb-lg { margin-bottom: 48px; }

/* Grid overlay */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: none;
}
@media (min-width: 768px) { .grid-overlay { display: block; } }
.grid-inner {
  max-width: 1200px; height: 100%; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, 1fr);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}
.grid-inner span { border-right: 1px solid var(--hairline); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 20px;
  text-decoration: none;
  color: inherit;
}
.brand-icon-logo {
  height: 24px;
  width: 24px;
  object-fit: contain;
  display: inline-block;
}
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; }
@media (min-width: 768px) { .nav-links { gap: 24px; } }

/* Hamburger button (mobile only) */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* Mobile nav: hidden by default, shown when .is-open */
@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--hairline);
    z-index: 49;
  }
  .nav-links.is-open { display: flex; }
  .nav-links .nav-link {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-cta {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    height: 44px;
  }
}
.nav-link { display: none; transition: color 0.2s; }
.nav-link:hover { color: var(--brand); }
@media (min-width: 768px) { .nav-link { display: inline; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 100px; /* Round buttons */
  font-weight: 500; font-size: 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: rgba(58, 123, 255, 0.9); }
.btn-dark { background: var(--ink); color: var(--surface); height: 36px; padding: 0 16px; }
.btn-dark:hover { background: var(--brand); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4); }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--hairline); position: relative; z-index: 1; }
@media (min-width: 768px) { .section { padding: 160px 0; } }
.section-dark { background: var(--ink); color: var(--surface); }
.section-dark .btn-outline { color: #fff; box-shadow: inset 0 0 0 1px var(--white-10); }

.hero .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.eyebrow-line { height: 1px; width: 40px; background: var(--brand); }
.eyebrow-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(0,0,0,0.5);
}

.h1 {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 1000px;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.h3 {
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 500; line-height: 1.25;
  max-width: 44ch; margin: 0 auto;
  text-wrap: balance;
}
.lede {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--muted); max-width: 52ch; margin-bottom: 48px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.row-between { display: flex; align-items: baseline; justify-content: space-between; }
.services-grid {
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service { padding: 32px 0; }
.service:not(:last-child) { border-bottom: 1px solid var(--white-10); }
@media (min-width: 768px) {
  .service { padding: 0 32px; border-bottom: 0; }
  .service:first-child { padding-left: 0; }
  .service:last-child { padding-right: 0; }
  .service:not(:last-child) { border-right: 1px solid var(--white-10); border-bottom: 0; }
}
.service .mono-label { margin-bottom: 24px; display: block; }
.service ul li { font-size: 18px; font-weight: 500; margin-bottom: 12px; }

.showcase {
  padding: 128px 0;
  background: #f4f4f5;
  text-align: center;
}

.positioning { max-width: 42ch; }
.brand-accent { color: var(--brand); }
.quiet { font-size: clamp(18px, 2vw, 24px); color: rgba(0,0,0,0.4); }

/* === Metrics Section === */
.metrics-section { overflow: hidden; }
.metrics-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 768px) {
  .metrics-layout { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.chip {
  display: inline-block; padding: 4px 12px;
  border: 1px solid var(--white-10);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 32px;
}
.metrics-text-block { display: flex; flex-direction: column; gap: 32px; max-width: 36ch; }
.reveal-line {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500; line-height: 1.3;
  color: rgba(255,255,255,0.2);
  transform: translateY(8px);
  transition: color 0.7s ease, transform 0.7s ease, opacity 0.7s ease;
  opacity: 0.6;
}
.reveal-line.in { color: #fff; opacity: 1; transform: translateY(0); }
.metrics-stat { margin-top: 80px; }
.stat-number {
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 600; letter-spacing: -0.04em;
  color: var(--brand); line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.metrics-stat .mono-label { max-width: 32ch; display: block; }

.scorecard-wrap { display: flex; justify-content: center; align-items: center; }
.scorecard {
  width: 100%; max-width: 420px;
  min-height: 360px;
  aspect-ratio: 3/4;
  background: #18181b;
  box-shadow: inset 0 0 0 1px var(--white-10);
  border-radius: 2px;
  padding: 32px;
  display: flex; flex-direction: column;
}
@media (max-width: 480px) {
  .scorecard { padding: 24px; aspect-ratio: auto; min-height: auto; }
}
.scorecard-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--white-10);
  padding-bottom: 24px; margin-bottom: 24px;
}
.scorecard-title { font-size: 18px; font-weight: 500; color: #fff; margin-top: 4px; }
.scorecard-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 36px; color: var(--brand);
  font-variant-numeric: tabular-nums;
  animation: scorePulse 3s ease-in-out infinite;
}
@keyframes scorePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.scorecard-body { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.bar-label {
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em; margin-bottom: 8px;
}
.bar-track {
  height: 4px; background: var(--white-05); position: relative; overflow: hidden;
  border-radius: 2px;
}
.bar-fill {
  position: absolute; inset: 0; right: auto;
  width: 0%; background: var(--brand);
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}
/* Stagger each bar's transition delay */
.bar:nth-child(1) .bar-fill { transition-delay: 0.1s; }
.bar:nth-child(2) .bar-fill { transition-delay: 0.35s; }
.bar:nth-child(3) .bar-fill { transition-delay: 0.6s; }

/* Shimmer glow on bar fill after it's revealed */
@keyframes barShimmer {
  0% { box-shadow: 0 0 0px 0px rgba(58,123,255,0); }
  50% { box-shadow: 0 0 8px 2px rgba(58,123,255,0.5); }
  100% { box-shadow: 0 0 0px 0px rgba(58,123,255,0); }
}
.bar-fill.animated {
  animation: barShimmer 2.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

.critical { padding-top: 32px; }
.stub { height: 16px; background: var(--white-05); width: 100%; margin-bottom: 12px; border-radius: 2px; }
.stub.w80 { width: 80%; }
.stub.w90 { width: 90%; }
.scorecard-cta {
  height: 48px; display: grid; place-items: center;
  background: #fff; color: var(--ink);
  font-weight: 500; margin-top: 32px; border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.scorecard-cta:hover { background: var(--brand); color: #fff; }

/* Vision */
.vision { background: var(--surface); }
.center { text-align: center; }

/* Contact */
.contact { padding: 96px 0; border-top: 1px solid var(--hairline); border-bottom: 0; }
@media (min-width: 768px) { .contact { padding: 128px 0; } }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}
.contact-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 48px;
}
.email {
  display: inline-block; margin-top: 24px;
  font-size: clamp(20px, 3vw, 36px);
  color: var(--brand);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px;
  word-break: break-all;
}
.email:hover { text-decoration-thickness: 3px; }
.footer-meta {
  display: flex; flex-direction: column; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: rgba(0,0,0,0.4);
}

/* Contact Form */
.contact-form-wrap {
  width: 100%;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  width: 100%;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(58, 123, 255, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 96px;
}


/* =========================================================================
   PRESERVED PROJECTS & MODAL STYLES FOR DYNAMIC LOADING
   ========================================================================= */

/* --- Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Project Showcase Section --- */
.projects-section {
    padding: 96px 0;
    border-bottom: 1px solid var(--hairline);
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .projects-section {
        padding: 160px 0;
    }
}

.projects-header .accent-text {
    color: var(--accent-color);
}

.projects-subtext {
    max-width: 400px;
    font-size: 18px;
    color: var(--text-primary);
    opacity: 0.7;
    text-align: right;
    line-height: 1.4;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.2s;
}

.project-card:nth-child(2) {
    animation-delay: 0.4s;
}

.project-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f0f4f8;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.project-card:hover .project-image-container {
    transform: scale(1.02);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    display: block;
}

.project-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8faff 0%, #eef2f7 100%);
}

/* Fictional Mockup Styles */
.mock-ui {
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.mock-ui-header {
    height: 12px;
    width: 40%;
    background: #eee;
    border-radius: 6px;
}

.mock-ui-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-grow: 1;
}

.mock-ui-box {
    background: #f8faff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.project-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border: 1px solid var(--secondary-color);
    border-radius: 100px;
    color: var(--text-primary);
    opacity: 0.8;
}

.project-description {
    font-size: 16px;
    color: var(--text-primary);
    opacity: 0.6;
    line-height: 1.6;
    max-width: 90%;
}

@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .projects-subtext {
        text-align: left;
        font-size: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-title {
        font-size: 24px;
    }
}

/* Portfolio Modal Styles */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2001;
}

.modal-dialog {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 94vh;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.25s ease-out;
    z-index: 2002;
}

.portfolio-modal.active .modal-dialog {
    transform: scale(1);
}

.modal-header-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 2010;
}

.modal-close-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-close-btn:hover {
    background: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.modal-help-text {
    font-size: 11px;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-top: 8px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 12px;
}

.modal-content-area {
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

.modal-content-area::-webkit-scrollbar {
    width: 8px;
}
.modal-content-area::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    padding: 24px 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--secondary-color);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.modal-nav-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.2s;
}
.modal-nav-btn:hover {
    color: var(--accent-color);
}
.modal-nav-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

/* Case Study Inner Styles */
.project-case-study {
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    background-color: var(--bg-primary);
}

.project-hero {
    padding: 80px 0 40px;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.project-hero-container {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.project-hero-content {
    flex: 1;
    animation: fadeInUp 0.8s ease forwards;
}

.project-hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-hero-metric {
    display: inline-block;
    background-color: #f0f4ff;
    color: var(--accent-color);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 24px;
}

.project-hero-image-wrapper {
    flex: 1.5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    background-color: #f8faff;
}

.project-hero-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.project-section {
    padding: 40px 0;
}

.project-section-title {
    font-size: 32px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.project-problem-text {
    font-size: 18px;
    line-height: 1.6;
    max-width: 900px;
    opacity: 0.8;
}

.section-divider {
    height: 1px;
    background-color: var(--secondary-color);
    width: 100%;
    margin-top: 40px;
}

.project-strategy {
    background-color: transparent;
    border: none;
}

.project-strategy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-strategy-points {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.project-strategy-points li {
    font-size: 18px;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
    opacity: 0.8;
}

.project-strategy-points li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: -4px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
}

.project-product-images {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 24px;
}

.product-image-large,
.product-image-secondary {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: #f8faff;
}

.product-image-large img,
.product-image-secondary img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.4s ease;
}

.product-image-large:hover img,
.product-image-secondary:hover img {
    transform: scale(1.02);
}

.product-image-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.product-column-primary {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-description-box {
    background: #f8faff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent-color);
}

.product-description-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.product-description-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    opacity: 0.8;
}

.project-results {
    background-color: transparent;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.result-item {
    background: transparent;
    padding: 0;
    text-align: center;
    box-shadow: none;
    border-radius: 0;
}

.result-value {
    font-size: 56px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.result-label {
    font-size: 16px;
    opacity: 0.7;
    font-weight: 500;
}

.client-quote-block {
    background-color: #cfe8ff;
    padding: 40px;
    border-radius: 8px;
    border: none;
    text-align: left;
    max-width: 100%;
    margin: 0;
}

.client-quote {
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

.client-author {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.client-role {
    opacity: 0.6;
    font-size: 14px;
}

.project-cta-section {
    text-align: center;
    padding: 80px 0;
    background: var(--bg-primary);
}

.project-cta-section .cta-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.project-cta-section h2 {
    font-size: 40px;
    font-weight: 700;
}

.project-cta-section .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(58, 123, 255, 0.15);
}

.project-cta-section .cta-button:hover {
  background: rgba(58, 123, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(58, 123, 255, 0.25);
}

.project-cta-section .cta-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(58, 123, 255, 0.15);
}

@media (max-width: 768px) {
    .project-hero-container {
        flex-direction: column-reverse;
        gap: 32px;
        text-align: center;
    }

    .project-hero-title,
    .project-section-title,
    .project-cta-section h2 {
        font-size: 32px;
    }
    
    .modal-dialog {
        height: 100vh;
        width: 100vw;
        max-width: none;
        border-radius: 0;
    }
    
    .modal-header-actions {
        top: 16px;
        right: 16px;
    }
    
    .modal-close-btn {
        width: 40px;
        height: 40px;
    }

    .product-image-row,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-nav {
        padding: 16px 20px;
    }
    .modal-nav-btn {
        font-size: 14px;
    }
}

/* Site Footer Styling */
.site-footer {
  padding: 60px 0;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  margin-top: 60px;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .brand {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 20px;
  color: var(--ink);
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

@media (min-width: 768px) {
  .footer-nav {
    gap: 28px;
  }
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.7;
}

.footer-nav a:hover {
  color: var(--brand);
  opacity: 1;
}

.footer-copy {
  width: 100%;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 20px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

@media (min-width: 768px) {
  .footer-copy {
    margin-top: 32px;
  }
}

/* Category Filters */
.category-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-btn:hover {
  border-color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.filter-btn.active:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}