/*
Design intent:
- Premium AEC enterprise feel: quiet, precise, grid-based.
- Neutral base, charcoal accents, muted slate highlight.
- Minimal motion, only micro-interactions.
*/

:root {
  /* Neutral Industrial Base */
  --black: #0F0F10;
  --steel-900: #1A1D21;
  --steel-800: #252A30;
  --steel-600: #4A5158;
  --steel-400: #8B949E;
  --steel-200: #D0D5DB;
  --white: #FFFFFF;

  /* Accents */
  --crane-yellow: #F2B705;
  --crane-yellow-hover: #D99E04;
  --scaffold-green: #2FA84F;
  --scaffold-green-hover: #248A40;

  /* Legacy mappings (mapped to new palette) */
  --bg: var(--steel-900);
  --surface: var(--steel-800);
  --surface-2: var(--steel-800);
  --text: var(--white);
  --muted: var(--steel-400);
  --muted-2: var(--steel-400);
  --line: var(--steel-600);
  --line-strong: var(--steel-600);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.30);

  --accent: var(--crane-yellow);
  --accent-2: var(--steel-800);

  --radius: 14px;
  --radius-sm: 10px;

  --container: 1120px;

  --step: 0.25rem;
  --space-2: calc(var(--step) * 2);
  --space-3: calc(var(--step) * 3);
  --space-4: calc(var(--step) * 4);
  --space-6: calc(var(--step) * 6);
  --space-8: calc(var(--step) * 8);
  --space-10: calc(var(--step) * 10);
  --space-12: calc(var(--step) * 12);
  --space-16: calc(var(--step) * 16);
  --space-20: calc(var(--step) * 20);

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: "Bebas Neue", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --focus: 0 0 0 3px rgba(242, 183, 5, 0.30);
  --transition: 150ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--steel-400);
  background: var(--steel-900);
  line-height: 1.75;
  font-feature-settings: "kern" 1, "liga" 1;
}

a {
  color: var(--crane-yellow);
  text-decoration: none;
}

a:hover {
  color: var(--crane-yellow-hover);
}

a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.30);
  border-radius: 8px;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--space-8)));
  margin: 0 auto;
}

@media (max-width: 680px) {
  .container {
    width: min(var(--container), calc(100% - 2 * var(--space-6)));
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-6);
  background: var(--steel-800);
  border: 1px solid var(--steel-600);
  border-radius: 999px;
  padding: var(--space-3) var(--space-4);
  color: var(--white);
  box-shadow: var(--shadow);
  z-index: 999;
}

.skip-link:focus {
  left: var(--space-6);
  outline: none;
  box-shadow: var(--focus), var(--shadow);
}

/* V13 hybrid3 header/footer (main app replacement) */
.v3-header {
  background-color: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.v3-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.v3-header__logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}

.v3-header__logo:hover {
  color: var(--crane-yellow);
  transform: translateY(-2px);
}

.v3-header__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.v3-header__nav a {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  display: inline-block;
  transition: border-color 0.1s, color 0.15s ease, transform 0.15s ease;
}

.v3-header__nav a:hover {
  color: var(--crane-yellow);
  border-bottom-color: var(--white);
  transform: translateY(-2px);
}

.v3-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.v3-header__hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
}

.v3-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.v3-mobile-menu.open {
  transform: translateX(0);
}

.v3-mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 64px);
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  padding-bottom: 4px;
  display: inline-block;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.v3-mobile-menu a:hover {
  color: var(--crane-yellow);
  border-bottom-color: var(--white);
  transform: translateY(-2px);
}

.v3-mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.v3-footer {
  background: var(--black);
  color: var(--white);
  border-top: 3px solid var(--white);
}

.v3-footer__brand-link {
  color: var(--white);
  text-align: left;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}

.v3-footer__brand-link:hover {
  color: var(--crane-yellow);
  transform: translateY(-2px);
}

.v3-footer__link {
  color: rgba(255, 255, 255, 0.65);
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}

.v3-footer__link:hover {
  color: var(--crane-yellow);
  transform: translateY(-2px);
}

.v3-footer__meta-link {
  color: rgba(255, 255, 255, 0.45);
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}

.v3-footer__meta-link:hover {
  color: var(--crane-yellow);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .v3-header__nav {
    display: none;
  }

  .v3-header__hamburger {
    display: flex;
  }

  .v3-footer__brand-link {
    display: block;
    width: 100%;
    text-align: center !important;
  }

  .v3-footer > div > div,
  .v3-footer > div:last-child {
    text-align: center;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 16, 0.97);
  border-bottom: 1px solid var(--steel-800);
  transition: border-color var(--transition) var(--ease), box-shadow var(--transition) var(--ease);
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--steel-600);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--space-3) var(--space-8);
  width: 100%;
  max-width: 100%;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}

.brand-meta {
  font-size: 10px;
  line-height: 1.2;
  color: var(--steel-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  justify-self: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--steel-400);
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition) var(--ease);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  justify-self: end;
}

.header-contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-size: 12px;
}

.header-contact-info a {
  color: var(--steel-400);
  transition: color var(--transition) var(--ease);
}

.header-contact-info a:hover {
  color: var(--white);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: 0;
  background: var(--black);
  border: 1px solid var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
}

.header-cta-btn svg {
  flex-shrink: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 14px;
  border-radius: 0;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition:
    transform var(--transition) var(--ease),
    border-color var(--transition) var(--ease),
    background var(--transition) var(--ease),
    box-shadow var(--transition) var(--ease);
  will-change: transform;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(47, 168, 79, 0.20);
}

.button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 168, 79, 0.30), 0 4px 12px rgba(0, 0, 0, 0.10);
}

.button-quiet {
  background: transparent;
  border-color: var(--steel-600);
  color: var(--black);
  box-shadow: none;
}

.button-quiet:hover {
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(47, 168, 79, 0.15);
}

.button-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--steel-400);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(37, 42, 48, 0.60);
  border-color: var(--steel-600);
  color: var(--white);
}

.menu-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 1px solid var(--steel-600);
  background: var(--steel-900);
  cursor: pointer;
}

.menu-button:focus {
  outline: none;
  box-shadow: var(--focus);
}

.menu-icon {
  width: 18px;
  height: 2px;
  background: var(--white);
  position: relative;
  border-radius: 999px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.mobile-menu {
  border-top: 1px solid var(--steel-800);
  background: rgba(15, 15, 16, 0.97);
  backdrop-filter: blur(10px);
}

.mobile-menu-inner {
  padding: var(--space-6) 0 var(--space-8);
  display: grid;
  gap: var(--space-3);
}

.mobile-link {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--steel-600);
  background: rgba(37, 42, 48, 0.90);
  color: var(--steel-200);
}

.mobile-menu-actions {
  display: flex;
  gap: var(--space-3);
  padding-top: var(--space-4);
}

@media (max-width: 980px) {
  .nav,
  .header-right {
    display: none;
  }

  .menu-button {
    display: grid;
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 4vw, 56px) 0 clamp(32px, 3vw, 48px);
  overflow: visible;
  background: #F5F5F5;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-top: clamp(8px, 1.5vw, 20px);
}

.hero-model {
  position: absolute;
  top: -10%;
  right: -18%;
  width: 80%;
  height: 120%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

#hero-bim-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--crane-yellow);
  margin: 0 0 var(--space-4);
}

.hero .eyebrow {
  display: inline-block;
  color: var(--steel-600);
  border: 1px solid var(--steel-200);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: 0.01em;
  line-height: 1.02;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.hero .hero-title {
  font-family: var(--font-display);
  font-size: clamp(75px, 10vw, 143px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--black);
  -webkit-text-stroke: 2px var(--black);
  paint-order: stroke fill;
  text-shadow: none;
}

.hero-title-accent {
  color: var(--scaffold-green);
  font-style: normal;
  display: block;
  margin-top: -0.01em;
  transform: skewX(-8deg);
  transform-origin: left bottom;
  -webkit-text-stroke: 2px var(--scaffold-green);
}

.hero-title-muted {
  color: var(--steel-400);
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
}

.hero .hero-title-muted {
  color: var(--steel-600);
}

.hero-subtitle {
  margin: var(--space-6) 0 0;
  max-width: 60ch;
  color: var(--steel-200);
  line-height: 1.7;
  font-size: 15px;
  font-weight: 400;
}

.hero .hero-subtitle {
  color: var(--steel-600);
  margin-top: var(--space-6);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  max-width: 52ch;
}

.hero .button {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.hero .button:hover {
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
}

.hero .button-quiet {
  background: transparent;
  border-color: var(--steel-600);
  color: var(--black);
}

.hero .button-quiet:hover {
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
}

.hero-actions {
  display: inline-flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.hero-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.meta-pill {
  font-size: 12px;
  color: var(--steel-400);
  border: 1px solid var(--steel-600);
  background: var(--steel-800);
  padding: 8px 10px;
  border-radius: 999px;
}

.hero .meta-pill {
  color: var(--steel-600);
  border-color: var(--steel-200);
  background: rgba(0, 0, 0, 0.05);
}


/* Hero standards (inline logo row) */
.hero-standards {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-3);
  max-width: 64ch;
}

.hero-standards-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel-400);
  font-weight: 500;
}

.hero .hero-standards-label {
  color: var(--black);
}

.hero-standards-logos {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
}

.hero-standards-logo {
  height: clamp(34px, 4vw, 48px);
  width: auto;
  opacity: 0.85;
  filter: grayscale(1) saturate(0.12) contrast(1.2) invert(0);
  transition: opacity var(--transition) var(--ease);
}

.hero-standards-logo:hover {
  opacity: 0.92;
}

@media (max-width: 980px) {
  .hero {
    padding: var(--space-8) 0 var(--space-6);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-model {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 280px;
    aspect-ratio: 1 / 0.75;
  }

  .hero .hero-title {
    font-size: clamp(42px, 10vw, 64px);
  }

  .hero-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Sections */
.section {
  padding: var(--space-10) 0;
}

.section-alt {
  background: var(--steel-800);
}

.section-header {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.section-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}

.section-subtitle {
  margin: 0;
  max-width: 80ch;
  color: var(--steel-200);
  line-height: 1.7;
  font-size: 14px;
  font-weight: 400;
}

.section-stack + .section-stack {
  margin-top: 0;
}

/* Seamless section fades (avoid hard breaks/lines) */
.section,
.cta {
  position: relative;
  overflow: clip;
}

.section::before,
.cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48px;
  background: linear-gradient(180deg, var(--steel-900), transparent);
  pointer-events: none;
  z-index: 2;
}

.section::after,
.cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--steel-900));
  pointer-events: none;
  z-index: 2;
}

/* Reveal animations (section transitions feel fluent) */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 520ms var(--ease),
    transform 520ms var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ══════ GSAP Enhancement Layer ══════ */

/* Ultra-HD rendering */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  image-rendering: -webkit-optimize-contrast;
}

/* Glassmorphism: header on scroll */
.site-header[data-elevated="true"] {
  background: rgba(15, 15, 16, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Glassmorphism: 3D modal container */
.project-expanded-container {
  background: rgba(245, 245, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Glassmorphism: quote form container */
.quote-section .form,
.quote-section .quote-text-col {
  position: relative;
}
.quote-section .form::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: -1;
}

/* Subtle section depth separation */
#services,
.why-section,
.quote-section {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.03) inset;
}

/* Subtle radial gradient on hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(47, 168, 79, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Card will-change hint for GSAP */
.card,
.project-card {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .site-header[data-elevated="true"] {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 15, 16, 0.97);
  }
  .project-expanded-container {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #F5F5F5;
  }
  .card, .project-card {
    will-change: auto;
  }
}

/* Core services (light theme matching hero) */
#services {
  background: #F5F5F5;
}

#services .section-title {
  color: var(--black);
}

#services .section-subtitle {
  color: var(--steel-600);
}

#services .expertise-card-desc {
  color: var(--steel-600);
}

#services .expertise-card-list-desc {
  color: var(--steel-600);
}

#services::before {
  background: linear-gradient(180deg, #F5F5F5, transparent);
}

#services::after {
  background: linear-gradient(180deg, transparent, #F5F5F5);
}

/* Expertise Cards — full-width alternating rows */
.expertise-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.expertise-card {
  border: none;
  border-top: 1px solid var(--steel-200);
  background: transparent;
  border-radius: 0;
  padding: var(--space-7) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-4);
}

.expertise-card:last-child {
  border-bottom: 1px solid var(--steel-200);
}

/* Reversed card: image first, text second */
.expertise-card--reversed {
  direction: rtl;
}
.expertise-card--reversed > * {
  direction: ltr;
}

/* Text content column */
.expertise-card-content {
  padding: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Image column */
.expertise-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  min-height: 180px;
}

.expertise-card-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}

.expertise-card-num {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: var(--space-2);
}

.expertise-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--black);
  margin-bottom: var(--space-3);
}

.expertise-card-desc {
  margin: 0 0 var(--space-4);
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.6;
}

.expertise-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: var(--space-7);
}

.expertise-card-list li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel-600);
  line-height: 1.45;
}

.expertise-card-list li strong {
  display: block;
  color: var(--black);
  margin-bottom: 2px;
}

.expertise-card-list-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--steel-600);
  line-height: 1.55;
}

.expertise-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--crane-yellow);
}

.expertise-card-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
  width: fit-content;
  margin-top: 24px;
}

.expertise-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 168, 79, 0.20);
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
}

@media (max-width: 768px) {
  .expertise-card {
    grid-template-columns: 1fr;
  }
  .expertise-card--reversed {
    direction: ltr;
  }
  .expertise-card-image {
    min-height: 160px;
    order: -1;
  }
  .expertise-card-img {
    max-width: 260px;
  }
}

.card {
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 300ms var(--ease), border-color var(--transition) var(--ease), box-shadow 300ms var(--ease);
}

.card-list {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--steel-600);
  line-height: 1.75;
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.card-list li {
  position: relative;
  padding-left: 16px;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--crane-yellow);
}

.card:hover {
  transform: translateY(-5px);
  border-color: #D0D5DB;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
}

.card-text {
  margin: var(--space-3) 0 0;
  color: var(--steel-600);
  line-height: 1.75;
  font-size: 14px;
}

.card-meta {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.80);
  color: var(--steel-600);
  font-size: 12px;
  line-height: 1;
}

.card-meta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--card-accent, rgba(242, 183, 5, 0.40));
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Built-for-results — minimal stat ribbon (Prospectus-inspired) */
#built-for-results {
  background: #F5F5F5;
  padding: var(--space-10) 0;
}

#built-for-results::before {
  background: linear-gradient(180deg, #F5F5F5, transparent);
}

#built-for-results::after {
  background: linear-gradient(180deg, transparent, #F5F5F5);
}

#built-for-results .section-header {
  margin-bottom: var(--space-8);
}

#built-for-results .section-title {
  color: var(--black);
}

#built-for-results .section-subtitle {
  color: var(--steel-600);
  font-size: 0.9em;
}

#built-for-results .process-stats {
  margin-bottom: 0;
  gap: 0;
  border-top: 1px solid var(--steel-200);
}

#built-for-results .process-stat {
  text-align: left;
  padding: 36px 0;
  border: none;
  border-right: 1px solid var(--steel-200);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#built-for-results .process-stat:not(:first-child) {
  padding-left: 32px;
}

#built-for-results .process-stat:last-child {
  border-right: none;
}

#built-for-results .process-stat:hover {
  transform: none;
  box-shadow: none;
}

#built-for-results .process-stat-number {
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 8px;
}

#built-for-results .process-stat-number .stat-accent {
  color: var(--scaffold-green);
}

#built-for-results .process-stat-label {
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

#built-for-results .process-stat-desc {
  color: var(--steel-600);
  font-size: 13px;
  margin: 0;
  max-width: none;
  line-height: 1.5;
}

/* ── Industries We Serve (dark section) ── */
#industries {
  background: var(--steel-900);
  overflow: clip;
}

#industries::before {
  background: linear-gradient(180deg, var(--steel-900), transparent);
}

#industries::after {
  background: linear-gradient(180deg, transparent, var(--steel-900));
}

#industries .section-header {
  margin-bottom: var(--space-6);
}

#industries .section-title {
  color: var(--white);
}

.industries-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--scaffold-green);
  margin-bottom: var(--space-3);
}

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

.ind-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.ind-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5) contrast(1.08);
  transition: filter 0.45s ease, transform 0.45s ease;
}

.ind-card:hover img {
  filter: brightness(0.72) contrast(1.05);
  transform: scale(1.05);
}

.ind-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ind-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ind-sub {
  font-size: 10px;
  color: var(--steel-200);
  opacity: 0.8;
}

@media (max-width: 900px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 550px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Process section (homepage) */
#process {
  background: #F5F5F5;
  padding: var(--space-4) 0 var(--space-10);
}

#process::before {
  display: none;
}

#process::after {
  background: linear-gradient(180deg, transparent, #F5F5F5);
}

#process .section-title {
  color: var(--black);
}

#process .section-subtitle {
  color: var(--steel-600);
}

/* ── Deliver Intro (Praxis + Wyomaa) ── */
.deliver-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  margin-bottom: var(--space-12);
  align-items: center;
}

.deliver-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--scaffold-green);
  margin-bottom: var(--space-4);
}

.deliver-heading {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 var(--space-6);
}

.deliver-accent {
  color: var(--scaffold-green);
}

.deliver-desc {
  font-size: 14px;
  color: var(--steel-600);
  line-height: 1.75;
  margin: 0 0 var(--space-4);
}

.deliver-desc strong {
  color: var(--black);
  font-weight: 600;
}

/* Mockup images */
.deliver-mockups {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  overflow: visible;
  min-height: 340px;
}

.deliver-mockups .mockup-laptop {
  height: clamp(260px, 28vw, 400px);
  width: auto;
  margin-left: -60px;
  position: relative;
  z-index: 1;
  transform: translateY(16px);
}

.deliver-mockups .mockup-tab {
  height: clamp(200px, 22vw, 320px);
  width: auto;
  position: relative;
  z-index: 2;
  transform: translateY(-4px);
}

/* ── Workflow Label ── */
.workflow-label {
  margin-bottom: var(--space-6);
}

/* ── Workflow Grid ── */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: var(--space-10);
}

.wf-card {
  background: transparent;
  border: none;
  border-left: 1px solid #E5E7EB;
  border-radius: 0;
  padding: 0 var(--space-6);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}

.wf-card:first-child {
  padding-left: 0;
  border-left: none;
}

.wf-card:last-child {
  padding-right: 0;
}

.wf-card:hover {
  transform: translateY(-4px);
}

.wf-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid #E5E7EB;
  color: var(--crane-yellow);
  margin-bottom: var(--space-4);
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}

.wf-card:hover .wf-icon {
  border-color: var(--scaffold-green);
  color: var(--scaffold-green);
}

.wf-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  color: var(--black);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--space-3);
  letter-spacing: 0.01em;
  transition: color 300ms var(--ease), opacity 300ms var(--ease);
}

.wf-card:hover .wf-num {
  color: var(--scaffold-green);
  opacity: 1;
}

.wf-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 var(--space-2);
  line-height: 1.35;
}

.wf-desc {
  font-size: 13px;
  color: var(--steel-600);
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

/* ── Extra Capabilities Row ── */
.deliver-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.deliver-extra-card {
  background: transparent;
  border: none;
  border-left: 1px solid #E5E7EB;
  border-radius: 0;
  padding: 0 var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: transform 400ms var(--ease);
}

.deliver-extra-card:first-child {
  padding-left: 0;
  border-left: none;
}

.deliver-extra-card:hover {
  transform: translateY(-3px);
}

.deliver-extra-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--crane-yellow);
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}

.deliver-extra-card:hover .deliver-extra-icon {
  border-color: var(--scaffold-green);
  color: var(--scaffold-green);
}

.deliver-extra-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 var(--space-2);
  line-height: 1.35;
}

.deliver-extra-desc {
  font-size: 13px;
  color: var(--steel-600);
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

/* Deliver responsive */
@media (max-width: 980px) {
  .deliver-intro {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) 0;
  }
  .workflow-grid .wf-card:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }
  .deliver-extras {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .deliver-extra-card {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 600px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .deliver-mockups {
    flex-direction: row;
    min-height: 200px;
  }
  .deliver-mockups .mockup-laptop {
    height: 180px;
    margin-left: -30px;
  }
  .deliver-mockups .mockup-tab {
    height: 150px;
  }
}

/* Stats row */
.process-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-14);
}

.process-stat {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  background: #F9FAFB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}

.process-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.process-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--black);
  margin-bottom: var(--space-2);
  font-feature-settings: "tnum" 1;
}

.process-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel-600);
  margin-bottom: var(--space-3);
}

.process-stat-desc {
  display: block;
  font-size: 13px;
  color: var(--steel-600);
  line-height: 1.55;
  max-width: 26ch;
  margin: 0 auto;
}

/* Process step card grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.process-step {
  text-align: left;
  padding: var(--space-6);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  background: #F9FAFB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.process-step-icon {
  width: 56px;
  height: 56px;
  margin: 0 0 var(--space-3);
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid #E5E7EB;
  color: var(--crane-yellow);
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crane-yellow);
  margin-bottom: var(--space-2);
}

.process-step-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
  color: var(--black);
}

.process-step-desc {
  font-size: 13px;
  color: var(--steel-600);
  line-height: 1.55;
  margin: 0;
}

/* Software preview */
.process-software-window {
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.03);
}

.process-software-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
}

.process-software-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #D0D5DB;
}

.process-software-dot:first-child { background: rgba(244, 63, 94, 0.65); }
.process-software-dot:nth-child(2) { background: rgba(242, 183, 5, 0.65); }
.process-software-dot:nth-child(3) { background: rgba(47, 168, 79, 0.65); }

.process-software-toolbar-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--steel-600);
  letter-spacing: 0.01em;
}

.process-software-screen {
  position: relative;
  overflow: hidden;
}

.process-software-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Process responsive */
@media (max-width: 980px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Why teams choose us */
#why {
  background: #F5F5F5;
  position: relative;
  overflow: clip;
}

#why::before {
  display: none;
}

#why::after {
  background: linear-gradient(180deg, transparent, #F5F5F5);
}

#why .section-title {
  color: var(--black);
}

#why .section-subtitle {
  color: var(--steel-600);
}

/* Why section — 3-column structured grid */
.why-section {
  padding: var(--space-20) 0;
}

.why-inner {
  max-width: none;
  margin: 0;
}

.why-header {
  text-align: left;
  margin-bottom: var(--space-12);
}

.why-header .section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.why-col {
  padding: 0 var(--space-8);
  border-left: 1px solid #E5E7EB;
}

.why-col:first-child {
  padding-left: 0;
  border-left: none;
}

.why-col:last-child {
  padding-right: 0;
}

.why-col-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 3.5vw, 56px);
  font-weight: 400;
  color: var(--black);
  opacity: 0.25;
  letter-spacing: 0.01em;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-4);
  transition: color 300ms var(--ease), opacity 300ms var(--ease);
}

.why-col:hover .why-col-num {
  color: var(--scaffold-green);
  opacity: 1;
}

.why-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.why-col-desc {
  font-size: 14px;
  color: var(--steel-600);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .why-col {
    padding: 0;
    border-left: none;
    border-top: 1px solid #E5E7EB;
    padding-top: var(--space-8);
  }

  .why-col:first-child {
    border-top: none;
    padding-top: 0;
  }

  .why-header {
    text-align: left;
  }

  .why-header .section-subtitle {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .why-section {
    padding: var(--space-12) 0;
  }

  .why-header {
    margin-bottom: var(--space-8);
  }
}

@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Portfolio - Futuristic Centered Carousel */
#portfolio.section-alt {
  background: #F5F5F5;
}

#portfolio::before {
  display: none;
}

#portfolio::after {
  display: none;
}

#portfolio .section-title {
  color: var(--black);
}

#portfolio .section-subtitle {
  color: var(--steel-600);
}

#portfolio {
  position: relative;
  overflow: clip;
  padding: var(--space-8) 0 var(--space-10);
  max-height: 100vh;
}

#portfolio .container {
  position: relative;
  z-index: 1;
}

/* Carousel Wrapper */
.portfolio-carousel-wrapper {
  position: relative;
  margin-top: var(--space-6);
}

.portfolio-carousel {
  position: relative;
  overflow: hidden;
  padding: var(--space-4) 0;
  border-radius: 0;
}

.portfolio-carousel-track {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

/* Modern Portfolio Card */
.portfolio-card-modern {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  width: calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  background: transparent;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.portfolio-card-modern:hover {
  transform: translateY(-4px);
}

/* Card Image */
.portfolio-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel-200);
  margin-bottom: 12px;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.3);
  transition: filter 400ms ease, transform 400ms ease;
}

.portfolio-card-modern:hover .portfolio-card-image img {
  filter: grayscale(0);
  transform: scale(1.02);
}

/* Card Body */
.portfolio-card-body {
  padding: 0;
}

.portfolio-card-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.portfolio-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.portfolio-card-category {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--scaffold-green);
  font-weight: 700;
}

.portfolio-card-date {
  font-size: 11px;
  color: var(--steel-400);
  margin-left: auto;
}

.portfolio-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 300ms ease, transform 300ms ease, color 300ms ease;
}

.portfolio-card-modern:hover .portfolio-view-btn {
  background: var(--scaffold-green);
  color: var(--white);
  transform: translateY(-1px);
}

.portfolio-explore-btn:active {
  transform: translateY(0px);
}

.portfolio-explore-btn svg {
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-explore-btn:hover svg {
  transform: translateX(3px);
}

/* Navigation Dots */
.portfolio-nav-dots {
  display: none;
}

.portfolio-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--steel-200);
  border: 1px solid var(--steel-200);
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-nav-dot.active {
  width: 28px;
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  box-shadow: 0 2px 8px rgba(47, 168, 79, 0.30);
}

.portfolio-nav-dot:hover {
  background: var(--steel-600);
  transform: scale(1.2);
}

/* Portfolio carousel navigation arrows */
.portfolio-nav-arrows {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.portfolio-nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 1px solid var(--steel-200);
  background: var(--white);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--steel-600);
}

.portfolio-nav-arrow:hover {
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
  transform: scale(1.08);
}

.portfolio-nav-arrow:active {
  transform: scale(0.96);
}

.portfolio-nav-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

/* Portfolio card responsive - handled by main breakpoints */

/* Expanded Project View */
.project-expanded-view {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.project-expanded-view:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.project-expanded-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 16, 0.60);
  backdrop-filter: blur(16px) saturate(180%);
}

.project-expanded-container {
  position: relative;
  width: 92vw;
  max-width: 1400px;
  max-height: 90vh;
  background: #F5F5F5;
  border-radius: 32px;
  border: 1px solid #E0E0E0;
  box-shadow: 
    0 32px 128px rgba(0, 0, 0, 0.18),
    0 12px 48px rgba(0, 0, 0, 0.10);
  padding: var(--space-12);
  overflow-y: auto;
  transform: scale(0.92);
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.project-expanded-view:not([hidden]) .project-expanded-container {
  transform: scale(1);
}

.project-expanded-close {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: 14px;
  cursor: pointer;
  color: var(--steel-600);
  transition: all 200ms cubic-bezier(0.23, 1, 0.32, 1);
  padding: 0;
  z-index: 10;
}

.project-expanded-close:hover {
  background: #EBEBEB;
  border-color: var(--steel-400);
  color: var(--black);
  transform: scale(1.08);
}

.project-expanded-close:active {
  transform: scale(0.95);
}

.project-expanded-header {
  margin-bottom: var(--space-8);
  padding-right: var(--space-16);
}

.project-expanded-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--black);
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  background: none;
}

.project-expanded-meta {
  margin: var(--space-3) 0 0;
  font-size: 16px;
  color: var(--steel-600);
  letter-spacing: -0.01em;
}

/* Action Buttons */
.project-expanded-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: 0;
  color: var(--steel-600);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.project-action-btn:hover {
  transform: translateY(-2px);
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(47, 168, 79, 0.20);
}

.project-action-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.project-action-btn.active:hover {
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(47, 168, 79, 0.20);
}

/* Tab Content */
.project-expanded-content {
  position: relative;
  min-height: 500px;
}

.project-tab-content {
  opacity: 1;
  transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.project-tab-content[hidden] {
  display: none;
}

/* 3D Viewer */
.project-3d-viewer {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid #E0E0E0;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08);
}

.project-3d-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

.project-3d-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.placeholder-icon {
  color: var(--crane-yellow);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.placeholder-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.placeholder-desc {
  margin: 0;
  font-size: 15px;
  color: var(--steel-600);
}

/* Media Gallery */
.project-media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.media-item {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid #E0E0E0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.media-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--steel-400);
}

.media-item.media-video {
  grid-column: span 2;
  aspect-ratio: 21 / 9;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--steel-400);
  font-size: 14px;
  font-weight: 500;
}

.media-placeholder svg {
  opacity: 0.4;
}

/* Responsive */
@media (max-width: 1200px) {
  .portfolio-card-modern {
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
  }
}

@media (max-width: 980px) {
  .portfolio-card-modern {
    flex: 0 0 calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
  
  .project-expanded-container {
    width: 96vw;
    padding: var(--space-8);
  }
  
  .project-action-btn {
    flex: 1;
    justify-content: center;
  }
  
  .media-item.media-video {
    grid-column: span 1;
  }
  
  .project-media-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .portfolio-card-modern {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  
  .project-expanded-actions {
    flex-direction: column;
  }
}

/* Motion Safe */
@media (prefers-reduced-motion: reduce) {
  .portfolio-carousel-track,
  .portfolio-card-modern,
  .portfolio-view-btn,
  .project-expanded-view,
  .project-expanded-container,
  .project-tab-content,
  .media-item {
    transition: none;
    animation: none;
  }
  
  .placeholder-icon {
    animation: none;
  }
}

/* Quote / Contact Section */
.quote-section {
  position: relative;
  padding: var(--space-16) 0 var(--space-10);
  overflow: clip;
}

.quote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.05);
  z-index: 0;
}

.quote-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(26, 29, 33, 0.82) 0%,
      rgba(26, 29, 33, 0.72) 30%,
      rgba(26, 29, 33, 0.68) 60%,
      rgba(26, 29, 33, 0.85) 100%);
  backdrop-filter: blur(1.5px) saturate(0);
  -webkit-backdrop-filter: blur(1.5px) saturate(0);
}

.quote-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.quote-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 var(--space-4);
}

.quote-desc {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 var(--space-8);
  max-width: 48ch;
}

.quote-contact-details {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
}

.quote-contact-details a {
  color: var(--crane-yellow);
  transition: color var(--transition) var(--ease);
}

.quote-contact-details a:hover {
  color: var(--crane-yellow-hover);
}

.quote-contact-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--steel-600);
}

/* Quote form */
.quote-form-wrapper {
  max-width: 420px;
  justify-self: end;
  width: 100%;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quote-input,
.quote-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.30);
  background: transparent;
  padding: 14px 0;
  font: inherit;
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition) var(--ease);
}

.quote-input::placeholder,
.quote-textarea::placeholder {
  color: var(--white);
}

.quote-input:focus,
.quote-textarea:focus {
  border-bottom-color: var(--crane-yellow);
}

.quote-textarea {
  resize: vertical;
  min-height: 60px;
}

.quote-file-upload {
  padding: var(--space-4) 0;
}

.quote-file-upload input[type="file"] {
  font: inherit;
  font-size: 14px;
  color: var(--white);
}

.quote-privacy {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--white);
  padding: var(--space-4) 0;
  cursor: pointer;
}

.quote-privacy input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--scaffold-green);
  cursor: pointer;
  flex-shrink: 0;
}

.quote-buttons {
  display: flex;
  gap: var(--space-4);
  padding-top: var(--space-4);
}

.quote-btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 0;
  border: none;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition) var(--ease), transform var(--transition) var(--ease), color var(--transition) var(--ease);
}

.quote-btn-send:hover {
  background: var(--scaffold-green);
  color: var(--white);
  transform: translateY(-1px);
}

.quote-btn-calendly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 0;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition) var(--ease), color var(--transition) var(--ease), transform var(--transition) var(--ease), border-color var(--transition) var(--ease);
}

.quote-btn-calendly:hover {
  background: var(--scaffold-green);
  border-color: var(--scaffold-green);
  color: var(--white);
  transform: translateY(-1px);
}

/* Social bar */
.quote-social-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  padding-top: var(--space-16);
  padding-bottom: var(--space-6);
}

.quote-social-link {
  font-size: 14px;
  color: var(--steel-400);
  transition: color var(--transition) var(--ease);
  letter-spacing: 0.01em;
}

.quote-social-link:hover {
  color: var(--scaffold-green);
}

@media (max-width: 768px) {
  .quote-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .quote-form-wrapper {
    max-width: 100%;
    justify-self: stretch;
  }

  .quote-buttons {
    flex-direction: column;
  }

  .quote-btn-send,
  .quote-btn-calendly {
    width: 100%;
  }
}

/* ── Site Footer ────────────────────────────────── */
#site-footer {
  display: block;
  width: 100vw;
  border-top: 1px solid var(--steel-200);
  background: var(--white);
  position: relative;
  z-index: 50;
}

#site-footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 16px 40px;
  box-sizing: border-box;
}

#site-footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#site-footer-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--black);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

#site-footer-tag {
  font-size: 9px;
  font-weight: 400;
  color: var(--steel-600);
  letter-spacing: 0.06em;
}

#site-footer-nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}

#site-footer-nav a {
  font-size: 14px;
  color: var(--steel-600);
  text-decoration: none;
  transition: color 200ms ease;
}

#site-footer-nav a:hover {
  color: var(--black);
}

#site-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
  font-size: 12px;
}

#site-footer-right a {
  color: var(--steel-600);
  text-decoration: none;
  transition: color 200ms ease;
}

#site-footer-right a:hover {
  color: var(--black);
}

#site-footer-copy {
  color: var(--steel-600);
  font-size: 11px;
  padding-left: 16px;
  border-left: 1px solid var(--steel-200);
}

@media (max-width: 768px) {
  #site-footer-bar {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 24px;
    text-align: center;
  }

  #site-footer-left,
  #site-footer-nav,
  #site-footer-right {
    justify-self: center;
  }

  #site-footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  #site-footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  #site-footer-copy {
    padding-left: 0;
    border-left: none;
  }
}

/* Parallax-ready section backgrounds */
[data-parallax-bg] {
  will-change: transform;
  transition: transform 80ms linear;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .card,
  .site-header {
    transition: none;
  }

  [data-parallax-bg] {
    transform: none !important;
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════
   AWWWARDS REFINEMENT LAYER — v2
   Typography · Depth · Texture · Images · Breathing Room
   ══════════════════════════════════════════════════════ */

/* ── Typography — tabular numbers for stats ── */
#built-for-results .process-stat-number {
  font-feature-settings: "tnum" 1;
}

.expertise-card-title {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-weight: 400;
}

.quote-title {
  font-weight: 400;
  letter-spacing: 0.01em;
}

.projects-hero-title {
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Body text — strong readable contrast */
.hero .hero-subtitle,
.expertise-card-desc,
.process-step-desc,
.why-col-desc {
  color: var(--steel-600);
  line-height: 1.7;
  font-weight: 400;
}

.quote-desc {
  font-weight: 500;
}

/* ── Depth — radial gradient overlays + atmospheric layering ── */
.section::after {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, transparent, var(--steel-900));
}

#process::after {
  background:
    radial-gradient(ellipse 60% 35% at 50% 0%, rgba(47, 168, 79, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, transparent, #F5F5F5);
}

#why::after {
  background:
    radial-gradient(ellipse 60% 35% at 50% 0%, rgba(242, 183, 5, 0.025) 0%, transparent 70%),
    linear-gradient(180deg, transparent, #F5F5F5);
}

/* Light section atmospheric radials (Part 5 — max 5% opacity) */
#process::before {
  background:
    radial-gradient(ellipse 50% 50% at 30% 20%, rgba(47, 168, 79, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #F5F5F5, transparent);
}

#why::before {
  background:
    radial-gradient(ellipse 50% 50% at 70% 20%, rgba(242, 183, 5, 0.035) 0%, transparent 60%),
    linear-gradient(180deg, #F5F5F5, transparent);
}

/* Section separation — subtle z-depth */
.section + .section {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ── PART 5: Global subtle noise overlay ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── PART 6: Image treatment ── */
.expertise-card-img,
.portfolio-card-image img,
.project-card-thumb img,
.projects-hero-img-slot img,
.process-software-img {
  transition: filter 400ms ease, transform 400ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 400ms ease;
}

/* Soft bottom gradient fade on images */
.portfolio-card-image,
.project-card-thumb,
.projects-hero-img-slot {
  position: relative;
}

.portfolio-card-image::after,
.project-card-thumb::after,
.projects-hero-img-slot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Shadow depth increase on hover */
.portfolio-card-modern:hover .portfolio-card-image,
.project-card:hover .project-card-thumb {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ── PART 7: Breathing room — 10-15% more section padding ── */
.section {
  padding: calc(var(--space-10) * 1.12) 0;
}

#process {
  padding: var(--space-4) 0 calc(var(--space-10) * 1.12);
}

#built-for-results {
  padding: var(--space-10) 0;
}

.quote-section {
  padding: calc(var(--space-16) * 1.12) 0 calc(var(--space-10) * 1.12);
}

#portfolio {
  padding: calc(var(--space-8) * 1.12) 0 calc(var(--space-10) * 1.12);
}

/* ── Reduced-motion safety for all refinements ── */
@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
  .portfolio-card-image::after,
  .project-card-thumb::after,
  .projects-hero-img-slot::after {
    display: none;
  }
}
