:root {
  --primary: #1a6fff;
  --primary-light: #00bfff;
  --primary-dark: #0f4acc;
  --primary-soft: #eaf2ff;
  --secondary: #2255cc;
  --secondary-light: #4080ff;
  --accent-success: #22e07a;
  --accent-purple: #a855f7;
  --neutral: #060d1f;
  --surface: #0c1630;
  --surface-elevated: #0f1e3d;
  --surface-deep: #04091a;
  --surface-alt: #081020;
  --outline: #25314d;
  --outline-soft: #17233d;
  --on-surface: #ffffff;
  --on-surface-muted: #8a9bc0;
  --glass: rgba(255, 255, 255, 0.13);
  --glass-strong: rgba(255, 255, 255, 0.19);
  --shadow-deep: 0 34px 90px rgba(0, 0, 0, 0.42);
  --ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-reveal: cubic-bezier(0.76, 0, 0.24, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body.savis-portfolio-page {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--on-surface);
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 191, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #050b19 0%, var(--neutral) 46%, var(--surface-deep) 100%);
  font-family: "Inter", system-ui, sans-serif;
}

/* Clear fixed navbar + WP admin bar */
body.savis-portfolio-page .savis-portfolio-wrap {
  padding-top: 80px;
}

body.savis-portfolio-page .hero {
  padding-top: clamp(12px, 2vh, 20px);
}

/* Navbar glass effect on portfolio page */
body.savis-portfolio-page .navbar {
  background: rgba(5, 11, 25, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Restore WordPress navbar link styles — portfolio.css globals override them */
body.savis-portfolio-page .navbar .nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
  color: #8a9bc0;
  font-size: 0.9rem;
  font-weight: 500;
}
body.savis-portfolio-page .navbar .nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  transform: none;
  border-color: transparent;
}
body.savis-portfolio-page .navbar li.current-menu-item > a,
body.savis-portfolio-page .navbar li.current_page_item > a {
  color: #00bfff;
  background: rgba(26, 111, 255, 0.12);
  border: 1px solid rgba(26, 111, 255, 0.3) !important;
  border-radius: 8px;
}
/* Restore Get Started button */
body.savis-portfolio-page .navbar .nav-cta {
  background: linear-gradient(135deg, #1a6fff, #0f4acc);
  color: #ffffff;
  border-radius: 50px;
  border-color: transparent;
  padding: 10px 22px;
  font-size: 0.88rem;
}
body.savis-portfolio-page .navbar .nav-cta:hover {
  background: linear-gradient(135deg, #2277ff, #1a5aee);
  transform: translateY(-2px);
  border-color: transparent;
}

/* Fix "Discuss similar work" button — white bg needs dark text */
a.pf-button.button-primary,
.work-actions a.pf-button {
  color: #04091a !important;
}

/* Modal height: account for WordPress fixed navbar (72px) */
body.savis-portfolio-page .work-dialog {
  max-height: calc(100vh - 100px);
}
body.savis-portfolio-page .work-card {
  max-height: calc(100vh - 144px);
}

/* WP admin bar is 32px — shift modal down and shrink card height */
.admin-bar .work-modal {
  padding-top: 54px; /* 22px base + 32px admin bar */
}
.admin-bar body.savis-portfolio-page .work-dialog {
  max-height: calc(100vh - 132px); /* 100px + 32px */
}
.admin-bar body.savis-portfolio-page .work-card {
  max-height: calc(100vh - 178px); /* 144px + 34px */
}

body.savis-portfolio-page a {
  color: inherit;
  text-decoration: none;
}

body.savis-portfolio-page button,
body.savis-portfolio-page a {
  -webkit-tap-highlight-color: transparent;
}

body.savis-portfolio-page button {
  font: inherit;
}

.savis-portfolio-wrap {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 clamp(18px, 4vw, 52px) 64px;
  opacity: 0;
  transition: opacity 360ms ease;
}

/* Footer dark background to match portfolio theme */
body.savis-portfolio-page .footer {
  background: var(--surface-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.savis-portfolio-page .footer-bottom {
  background: rgba(4, 9, 26, 0.6);
}

body.is-ready .savis-portfolio-wrap {
  opacity: 1;
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.12;
}

.ambient-glow {
  position: fixed;
  width: 38vw;
  min-width: 340px;
  aspect-ratio: 1;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(52px);
  opacity: 0.08;
  animation: breathe 8s ease-in-out infinite;
}

.glow-one {
  left: -14vw;
  top: 8vh;
  background: rgba(26, 111, 255, 0.32);
}

.glow-two {
  right: -12vw;
  bottom: 4vh;
  background: rgba(0, 191, 255, 0.24);
  animation-delay: -3s;
}

.site-header,
.hero,
.selected-work,
.capabilities-section,
.innovation-section,
.trust-panel,
.contact-band {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(26, 111, 255, 0.68), rgba(0, 191, 255, 0.18)),
    rgba(15, 30, 61, 0.9);
  color: var(--on-surface);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
}

.brand strong {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.brand em {
  margin-top: 4px;
  color: var(--on-surface-muted);
  font-size: 11px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.nav-links a,
.nav-cta,
.pf-button,
.close-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    transform 180ms var(--ease-premium),
    border-color 180ms var(--ease-premium),
    background 180ms var(--ease-premium),
    color 180ms var(--ease-premium),
    opacity 180ms var(--ease-premium);
}

.nav-links a {
  padding: 0;
  border-color: transparent;
  border-radius: 0;
  color: var(--on-surface-muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--on-surface);
  background: transparent;
}

.nav-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: none;
}

.nav-cta:hover,
.pf-button:hover,
.close-button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 191, 255, 0.44);
}

.hero {
  display: block;
  max-width: 1240px;
  min-height: auto;
  margin: 0 auto;
  padding: clamp(42px, 5.8vh, 64px) 0 clamp(28px, 4vh, 44px);
  overflow: visible;
  background: transparent;
  text-align: center;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.hero-kicker,
.section-intro p,
.innovation-header p {
  margin: 0 0 10px;
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0 auto;
  color: var(--on-surface);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(34px, 3.85vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin: clamp(42px, 4.8vw, 68px) auto 0;
  color: var(--on-surface-muted);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  text-align: center;
}

.pf-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  border-color: rgba(255, 255, 255, 0.72);
  background: #ffffff;
  color: var(--surface-deep);
  box-shadow: none;
}

.button-secondary {
  background: transparent;
  backdrop-filter: none;
}

.portfolio-stage {
  position: relative;
  width: min(100%, 940px);
  min-height: clamp(445px, 39vw, 505px);
  margin: clamp(20px, 3vw, 30px) auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.card-orbit {
  position: relative;
  display: block;
  height: clamp(425px, 38vw, 485px);
  perspective: 1600px;
  opacity: 0;
  transform: translateY(18px);
  transform-origin: center center;
  transition:
    opacity 520ms var(--ease-premium),
    transform 620ms var(--ease-premium);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.card-orbit:active { cursor: grabbing; }

body.is-ready .card-orbit {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card {
  position: absolute;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(320px, 50vw);
  height: 486px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.28), transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, color-mix(in srgb, var(--card-start) 66%, transparent), color-mix(in srgb, var(--card-end) 58%, transparent));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -58px 96px rgba(4, 9, 26, 0.16);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  opacity: var(--opacity);
  transform:
    translateX(calc(-50% + var(--x)))
    translateY(var(--y))
    rotate(var(--rotate))
    scale(var(--scale));
  transform-origin: center center;
  transition:
    transform 980ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 820ms var(--ease-premium),
    filter 820ms var(--ease-premium),
    box-shadow 820ms var(--ease-premium),
    border-color 820ms var(--ease-premium);
  z-index: var(--z);
  filter: saturate(0.95) brightness(var(--brightness));
  will-change: transform;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 50%, rgba(4, 9, 26, 0.22));
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.project-card:not(.is-active) {
  border-color: color-mix(in srgb, var(--card-start) 42%, rgba(255, 255, 255, 0.34));
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, color-mix(in srgb, var(--card-start) 84%, transparent), color-mix(in srgb, var(--card-end) 74%, transparent));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    0 0 42px color-mix(in srgb, var(--card-start) 30%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -70px 110px rgba(4, 9, 26, 0.2);
  backdrop-filter: blur(18px) saturate(1.46);
  -webkit-backdrop-filter: blur(18px) saturate(1.46);
}

.project-card:not(.is-active)::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--card-start) 16%, transparent), transparent 45%, rgba(4, 9, 26, 0.26));
}

.project-card:not(.is-active)::after {
  border-color: color-mix(in srgb, var(--card-start) 34%, rgba(255, 255, 255, 0.14));
}

.project-card.is-active {
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(4, 9, 26, 0.14) 0%, rgba(4, 9, 26, 0.02) 25%, transparent 56%),
    radial-gradient(circle at 28% -8%, rgba(255, 255, 255, 0.4), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(0, 191, 255, 0.2), transparent 31%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.23) 0%, rgba(120, 196, 255, 0.17) 40%, rgba(82, 104, 160, 0.22) 100%),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    0 38px 96px rgba(0, 0, 0, 0.44),
    0 0 78px rgba(173, 216, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -84px 124px rgba(4, 9, 26, 0.24);
  backdrop-filter: blur(34px) saturate(1.58) contrast(1.05);
  -webkit-backdrop-filter: blur(34px) saturate(1.58) contrast(1.05);
}

.project-card.is-active::before {
  opacity: 1;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%, rgba(4, 9, 26, 0.36));
}

.card-shell,
.card-topbar,
.project-identity,
.identity-copy,
.card-description,
.card-footer,
.mockup-frame,
.mockup-frame img,
.card-icon,
.status-chip,
.type-chip {
  position: relative;
  z-index: 1;
}

.card-shell {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.card-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-start) 78%, rgba(255, 255, 255, 0.12)), color-mix(in srgb, var(--card-end) 78%, rgba(255, 255, 255, 0.08)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 34px color-mix(in srgb, var(--card-start) 30%, transparent);
  color: var(--on-surface);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.status-chip,
.type-chip {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.status-chip::before,
.type-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.26);
}

.status-completed {
  color: rgba(238, 255, 247, 0.78);
}

.status-completed::before {
  background: #22e07a;
  box-shadow: 0 0 14px rgba(34, 224, 122, 0.44);
}

.status-in-progress {
  color: rgba(237, 249, 255, 0.78);
}

.status-in-progress::before {
  background: #00bfff;
  box-shadow: 0 0 14px rgba(0, 191, 255, 0.44);
}

.type-chip {
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.68);
}

.type-chip::before {
  background: color-mix(in srgb, var(--card-start) 72%, rgba(255, 255, 255, 0.72));
  box-shadow: 0 0 14px color-mix(in srgb, var(--card-start) 44%, transparent);
}

.project-identity {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.identity-copy {
  min-width: 0;
}

.project-card h2 {
  max-width: 100%;
  margin: 0;
  color: var(--on-surface);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-copy p {
  max-width: 100%;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 700;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-description {
  max-width: 100%;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 10px;
}
.card-tech-pill {
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mockup-frame {
  display: grid;
  min-height: 0;
  flex: 0 0 auto;
  height: 188px;
  place-items: center;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mockup-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  margin-top: 10px;
}

.card-action {
  min-width: 104px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-surface);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms var(--ease-premium),
    transform 180ms var(--ease-premium),
    background 180ms var(--ease-premium);
}

.project-card.is-active .card-action {
  opacity: 1;
  pointer-events: auto;
}

.project-card .card-action:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.innovation-section {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.innovation-header {
  display: flex;
  justify-content: center;
  margin: 0 0 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  text-align: center;
}

.innovation-header h2 {
  max-width: none;
  margin: 0 auto;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.innovation-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.innovation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.56fr);
  align-items: center;
  gap: clamp(28px, 5.8vw, 72px);
  min-height: 360px;
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.innovation-card.is-reversed {
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
}

.innovation-card.is-reversed .innovation-copy {
  order: 2;
  transform: translateX(clamp(58px, 6vw, 112px));
}

.innovation-card.is-reversed .innovation-media {
  order: 1;
}

.innovation-copy {
  max-width: 500px;
}

.innovation-copy p {
  margin: 0 0 10px;
  color: var(--innovation-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.innovation-copy h3 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(25px, 2.8vw, 38px);
  line-height: 1.06;
  letter-spacing: 0;
}

.innovation-copy > div,
.innovation-copy > p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 1.12vw, 16px);
  font-weight: 600;
  line-height: 1.55;
}

.innovation-media {
  display: grid;
  min-height: 280px;
  place-items: center;
}

.phone-device {
  position: relative;
  width: min(190px, 38vw);
  aspect-ratio: 9 / 19.3;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05)),
    rgba(6, 13, 31, 0.9);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: rotate(1.5deg);
}

.innovation-card.is-reversed .phone-device {
  transform: rotate(-1.5deg);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 18px;
  border-radius: 9999px;
  background: #02040b;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 32% 16%, color-mix(in srgb, var(--innovation-accent) 42%, white 18%), transparent 27%),
    linear-gradient(180deg, rgba(15, 30, 61, 0.4), rgba(4, 9, 26, 0.94));
}

.phone-ui {
  position: absolute;
  inset: 52px 16px 20px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.phone-ui span,
.phone-ui i {
  display: block;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
}

.phone-ui span:nth-child(1) {
  width: 70%;
  height: 62px;
  background: color-mix(in srgb, var(--innovation-accent) 64%, rgba(255, 255, 255, 0.18));
}

.phone-ui span:nth-child(2),
.phone-ui span:nth-child(3) {
  height: 44px;
}

.phone-ui i {
  height: 104px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent),
    rgba(255, 255, 255, 0.05);
}

.phone-screen strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 74%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  background: rgba(4, 9, 26, 0.38);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Video inside phone */
.phone-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* ── Web / Browser device mockup ────────────────────────── */
.web-device {
  position: relative;
  width: min(420px, 58vw);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 13, 31, 0.92);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transform: rotate(-1deg);
}
.innovation-card.is-reversed .web-device { transform: rotate(1deg); }

.web-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.web-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.web-dot:nth-child(1) { background: #ff5f57; }
.web-dot:nth-child(2) { background: #febc2e; }
.web-dot:nth-child(3) { background: #28c840; }

.web-url {
  flex: 1;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0f20;
}
.web-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* eyebrow label in innovation copy */
.innovation-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--innovation-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-modal,
.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
}

.work-modal {
  z-index: 1100;
  perspective: 1600px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.gallery-modal {
  z-index: 1090;
}

.work-modal.is-open,
.gallery-modal.is-open {
  display: grid;
}

.work-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.work-backdrop,
.gallery-backdrop {
  position: absolute;
  inset: 0;
}

.work-backdrop {
  opacity: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(26, 111, 255, 0.26), transparent 0),
    rgba(4, 9, 26, 0.58);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    opacity 360ms ease,
    backdrop-filter 460ms ease;
}

.work-modal.is-visible .work-backdrop {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(26, 111, 255, 0.26), transparent 38%),
    rgba(4, 9, 26, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.gallery-backdrop {
  background: rgba(4, 9, 26, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.work-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(860px, 94vh);
  perspective: 1600px;
}

.work-card {
  position: relative;
  max-height: min(840px, calc(94vh - 44px));
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  color: var(--on-surface);
  background:
    linear-gradient(180deg, rgba(4, 9, 26, 0.16), rgba(4, 9, 26, 0.28)),
    radial-gradient(circle at 10% 8%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--work-start) 42%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--work-start) 44%, rgba(255, 255, 255, 0.14)), color-mix(in srgb, var(--work-end) 36%, rgba(8, 16, 32, 0.76)));
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -90px 150px rgba(4, 9, 26, 0.34);
  backdrop-filter: blur(30px) saturate(1.42);
  -webkit-backdrop-filter: blur(30px) saturate(1.42);
  opacity: 0;
  transform: translateY(64px) translateX(-18px) scale(0.58) rotateX(8deg) rotateY(-104deg);
  transform-origin: center center;
  transform-style: preserve-3d;
  transition:
    opacity 420ms ease,
    box-shadow 720ms var(--ease-premium),
    filter 720ms var(--ease-premium),
    transform 900ms cubic-bezier(0.05, 0.7, 0.1, 1);
  filter: saturate(0.7) brightness(0.84);
  will-change: transform, opacity;
}

.work-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background: linear-gradient(112deg, transparent 35%, rgba(255, 255, 255, 0.34) 47%, transparent 60%);
  opacity: 0;
  transform: translateX(-42%) rotate(8deg);
  pointer-events: none;
}

.work-modal.is-visible .work-card {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotateX(0deg) rotateY(0deg);
  filter: saturate(1) brightness(1);
  animation: work-card-settle 980ms cubic-bezier(0.05, 0.7, 0.1, 1) both;
}

.work-modal.is-visible .work-card::after {
  animation: work-card-sheen 820ms 180ms ease-out both;
}

.work-modal.is-closing .work-card {
  opacity: 0;
  transform: translateY(26px) scale(0.9) rotateX(5deg);
  transition:
    opacity 240ms ease,
    transform 340ms cubic-bezier(0.3, 0, 1, 1);
}

.work-close {
  position: relative;
  z-index: 2;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  background: rgba(4, 9, 26, 0.28);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.work-card-meta,
.work-hero,
.work-info-card,
.work-delivered,
.work-actions {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(14px);
}

.work-modal.is-visible .work-card-meta,
.work-modal.is-visible .work-hero,
.work-modal.is-visible .work-info-card,
.work-modal.is-visible .work-delivered,
.work-modal.is-visible .work-actions {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-modal.is-visible .work-card-meta { transition-delay: 220ms; }
.work-modal.is-visible .work-hero { transition-delay: 300ms; }
.work-modal.is-visible .work-info-card { transition-delay: 380ms; }
.work-modal.is-visible .work-delivered { transition-delay: 460ms; }
.work-modal.is-visible .work-actions { transition-delay: 520ms; }

/* Once fully settled — kill all transitions so scroll is smooth */
.work-modal.is-settled .work-card-meta,
.work-modal.is-settled .work-hero,
.work-modal.is-settled .work-info-card,
.work-modal.is-settled .work-delivered,
.work-modal.is-settled .work-actions {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.work-meta-left {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.work-scroll {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: hidden;
}

.work-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  align-items: center;
  gap: clamp(16px, 3.2vw, 28px);
  margin-top: 20px;
}

.work-identity {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.work-identity .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  font-size: 16px;
}

.work-kicker {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 800;
  letter-spacing: 0;
}

.work-hero h2 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.02;
  letter-spacing: 0;
}

.work-hero-copy > p {
  max-width: 390px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 600;
  line-height: 1.45;
}

.work-hero-visual {
  display: grid;
  min-height: 140px;
  place-items: center;
}

.work-hero-visual img {
  display: block;
  width: min(100%, 220px);
  max-height: 165px;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.34));
}

.work-info-card {
  margin-top: 20px;
  padding: clamp(16px, 2.4vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.work-tech {
  background: rgba(4, 9, 26, 0.18);
}

.work-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.work-section-title span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 21px;
  font-weight: 800;
}

.work-section-title h3 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(16px, 1.8vw, 20px);
}

.work-info-card ul,
.work-info-card ol {
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.2px;
  font-weight: 600;
  line-height: 1.5;
}

.work-delivered {
  margin-top: 24px;
  overflow-x: hidden;
}

.work-delivered-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.work-delivered-head h3 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(18px, 2.1vw, 22px);
}

.work-delivered-head span {
  display: inline-flex;
  transform: rotate(-7deg);
  padding: 4px 9px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.work-delivered-head span.stamp-progress {
  border-color: #f59e0b;
  color: #f59e0b;
}

.work-carousel {
  max-width: 100%;
  overflow: hidden;
  padding: 10px 0 2px;
}

.work-carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.work-delivery-card {
  flex: 0 0 156px;
  min-height: 214px;
  padding: 10px;
  border-radius: 2px;
  background: rgba(4, 9, 26, 0.34);
}

.work-delivery-card img {
  display: block;
  width: 100%;
  height: 146px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28));
}

.work-delivery-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.work-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.work-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    width 220ms var(--ease-premium),
    background 220ms var(--ease-premium);
}

.work-carousel-dots button.is-active {
  width: 24px;
  background: var(--primary-light);
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 32px);
}

.gallery-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, 92vh);
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(26, 111, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(15, 30, 61, 0.94), rgba(4, 9, 26, 0.96));
  box-shadow: var(--shadow-deep);
}

.gallery-header,
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-header h2 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.close-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-surface);
}

.gallery-viewport {
  margin: 22px 0;
  overflow: hidden;
  border-radius: 26px;
}

.gallery-track {
  display: flex;
  transform: translateX(calc(var(--gallery-index, 0) * -100%));
  transition: transform 460ms var(--ease-premium);
}

.gallery-shot {
  min-width: 100%;
  padding: clamp(18px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, var(--shot-start), var(--shot-end));
}

.shot-window {
  min-height: 350px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(4, 9, 26, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shot-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.shot-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.56);
}

.shot-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.shot-panel {
  min-height: 228px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.shot-panel h3 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 24px;
}

.shot-panel p {
  max-width: 460px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.shot-lines {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.shot-lines i {
  display: block;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
}

.shot-lines i:nth-child(1) { width: 86%; }
.shot-lines i:nth-child(2) { width: 62%; }
.shot-lines i:nth-child(3) { width: 74%; }

.shot-metrics {
  display: grid;
  gap: 10px;
}

.shot-metrics span {
  min-height: 70px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.gallery-dots {
  display: flex;
  gap: 8px;
}

.gallery-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.gallery-dots button.is-active {
  width: 28px;
  background: var(--primary-light);
}

.pf-entry-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transition: visibility 1ms linear 1050ms;
}

.pf-entry-loader::before,
.pf-entry-loader::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: calc(50% + 24px);
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--neutral) 48%, var(--surface-deep) 100%);
  transition: transform 1050ms var(--ease-reveal);
  will-change: transform;
}

.pf-entry-loader::before {
  left: 0;
  transform-origin: left center;
}

.pf-entry-loader::after {
  right: 0;
  transform-origin: right center;
}

.pf-entry-loader.is-opening::before {
  transform: translateX(-100%);
}

.pf-entry-loader.is-opening::after {
  transform: translateX(100%);
}

.pf-entry-loader.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.loader-stage {
  position: relative;
  z-index: 2;
  width: min(360px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.pf-entry-loader.is-opening .loader-stage {
  opacity: 0;
  transform: scale(0.92);
}

.lottie-container {
  width: min(360px, 72vw);
  height: min(360px, 72vw);
  overflow: hidden;
  position: relative;
}
.lottie-container svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.22; }
  50% { transform: scale(1.12); opacity: 0.34; }
}

@keyframes work-card-settle {
  0% {
    box-shadow:
      0 18px 46px rgba(0,0,0,0.38),
      inset 0 1px 0 rgba(255,255,255,0.22),
      inset 0 -90px 150px rgba(4,9,26,0.34);
  }
  58% {
    box-shadow:
      0 58px 150px rgba(0,0,0,0.62),
      0 0 110px color-mix(in srgb, var(--work-start) 26%, transparent),
      inset 0 1px 0 rgba(255,255,255,0.42),
      inset 0 -90px 150px rgba(4,9,26,0.34);
  }
  100% {
    box-shadow:
      0 44px 120px rgba(0,0,0,0.56),
      inset 0 1px 0 rgba(255,255,255,0.34),
      inset 0 -90px 150px rgba(4,9,26,0.34);
  }
}

@keyframes work-card-sheen {
  0% { opacity: 0; transform: translateX(-46%) rotate(8deg); }
  32% { opacity: 0.56; }
  100% { opacity: 0; transform: translateX(46%) rotate(8deg); }
}

@media (max-width: 1040px) {
  .portfolio-stage { min-height: 490px; }
  .card-orbit { display: block; height: 470px; }
  .innovation-card, .innovation-card.is-reversed {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .innovation-card.is-reversed .innovation-copy,
  .innovation-card.is-reversed .innovation-media { order: initial; }
  .innovation-card.is-reversed .innovation-copy { transform: none; }
  .innovation-media { min-height: 240px; justify-items: start; }
  .phone-device { width: min(176px, 32vw); }
}

@media (max-width: 760px) {
  .savis-portfolio-wrap { padding: 0 14px 40px; }
  .hero { padding: 34px 0 42px; }
  .hero h1 { font-size: clamp(30px, 8.8vw, 42px); }
  .hero-lede { font-size: 14px; margin-top: 34px; }
  .portfolio-stage {
    width: 100%;
    min-height: clamp(404px, 113vw, 480px);
  }
  .card-orbit {
    display: block;
    height: clamp(392px, 109vw, 462px);
    overflow: visible;
  }
  .project-card {
    top: clamp(12px, 3.4vw, 18px);
    width: clamp(248px, 76vw, 292px);
    height: clamp(390px, 110vw, 455px);
    padding: clamp(16px, 4.6vw, 20px);
  }
  .project-card.is-active {
    height: clamp(390px, 110vw, 455px);
  }
  .card-icon { width: 50px; height: 50px; border-radius: 15px; font-size: 15px; }
  .mockup-frame { height: clamp(150px, 43vw, 188px); }
  .innovation-section { padding: 52px 0 0; border-radius: 0; }
  .innovation-header { text-align: left; }
  .innovation-header h2 { white-space: normal; }
  .innovation-card, .innovation-card.is-reversed {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding: 26px 0;
  }
  .innovation-copy h3 { font-size: clamp(21px, 6vw, 28px); }
  .innovation-media { min-height: 230px; justify-items: center; }
  .phone-device { width: min(172px, 55vw); border-radius: 30px; }
  .work-modal { padding: 12px; }
  .work-dialog { max-height: 94vh; }
  .work-card {
    max-height: calc(94vh - 24px);
    padding: 20px;
    border-radius: 28px;
    transform: translateY(44px) translateX(-10px) scale(0.68) rotateX(7deg) rotateY(-84deg);
  }
  .work-hero { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .work-identity { gap: 12px; grid-template-columns: 52px minmax(0,1fr); }
  .work-hero-visual { min-height: 132px; order: -1; }
  .work-hero-visual img { max-height: 150px; }
  .work-delivered-head { align-items: flex-start; flex-direction: column; }
  .work-delivery-card { flex-basis: min(210px, 68vw); min-height: 234px; }
  .work-delivery-card img { height: 158px; }
  .work-actions { flex-direction: column; margin-top: 22px; }
  .pf-button { width: 100%; }
  .gallery-modal { padding: 10px; }
  .gallery-dialog { border-radius: 24px; }
  .shot-grid { grid-template-columns: 1fr; }
  .shot-window { min-height: 420px; }
  .gallery-header, .gallery-footer { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ===================================================
   PORTFOLIO PAGE — NEW SECTIONS
   =================================================== */

/* Hero enhancements */
.pf-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00bfff;
  background: rgba(0,191,255,0.1);
  border: 1px solid rgba(0,191,255,0.22);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Section base */
.pf-section {
  position: relative;
  padding: 88px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pf-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.pf-section-head {
  text-align: center;
  margin-bottom: 56px;
}
.pf-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00bfff;
  background: rgba(0,191,255,0.1);
  border: 1px solid rgba(0,191,255,0.2);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.pf-section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}
.pf-section-head p {
  font-size: 1rem;
  color: #8a9bc0;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── What We Build ── */
.pf-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pf-service-card {
  background: rgba(12,22,48,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.pf-service-card:hover {
  border-color: rgba(26,111,255,0.35);
  transform: translateY(-4px);
}
.pf-service-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.pf-service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.pf-service-card p {
  font-size: 0.85rem;
  color: #8a9bc0;
  line-height: 1.65;
}

/* ── Innovation section header — override flex layout from original ── */
.innovation-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  margin-bottom: 56px;
  padding: 34px 24px 0;
  gap: 10px;
}
.innovation-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  white-space: normal !important;
  max-width: 640px;
  line-height: 1.15 !important;
  margin: 0 !important;
}
.innovation-header p {
  font-size: 1rem;
  color: #8a9bc0;
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

/* ── Tech Stack ── */
.pf-tech-section { background: rgba(4,9,26,0.4); }
.pf-tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pf-tech-cat {
  background: rgba(12,22,48,0.6);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 22px 20px;
}
.pf-tech-cat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #00bfff;
  margin-bottom: 14px;
}
.pf-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pf-tech-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b0bdd6;
  background: rgba(26,111,255,0.1);
  border: 1px solid rgba(26,111,255,0.2);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ── Process ── */
.pf-process-section { background: transparent; }
.pf-process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.pf-process-steps::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(26,111,255,0.5) 0%, rgba(0,191,255,0.1) 100%);
}
.pf-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  position: relative;
}
.pf-step + .pf-step { border-top: 1px solid rgba(255,255,255,0.05); }
.pf-step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,111,255,0.25), rgba(0,191,255,0.12));
  border: 1px solid rgba(26,111,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #00bfff;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.pf-step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.pf-step-body p {
  font-size: 0.88rem;
  color: #8a9bc0;
  line-height: 1.7;
}

/* ── CTA ── */
.pf-cta-section {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.pf-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.pf-cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(26,111,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.pf-cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 14px 0 12px;
  line-height: 1.1;
}
.pf-cta-inner p {
  font-size: 1rem;
  color: #8a9bc0;
  line-height: 1.7;
  margin-bottom: 36px;
}
.pf-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pf-services-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-tech-categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pf-services-grid { grid-template-columns: 1fr; }
  .pf-tech-categories { grid-template-columns: 1fr; }
  .pf-process-steps::before { display: none; }
  .pf-step { gap: 16px; }
}
