html {
  --mq-font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mq-max: 1240px;
  --mq-max-wide: 1380px;
  --mq-radius-sm: 18px;
  --mq-radius-md: 24px;
  --mq-radius-lg: 32px;
  --mq-shadow-soft: 0 18px 40px rgba(8, 15, 32, 0.08);
  --mq-shadow-md: 0 26px 64px rgba(8, 15, 32, 0.14);
  --mq-shadow-lg: 0 42px 110px rgba(6, 12, 28, 0.18);
  --mq-ease: cubic-bezier(0.22, 1, 0.36, 1);
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  --mq-bg: #08101e;
  --mq-bg-soft: #0d1526;
  --mq-surface: rgba(15, 24, 42, 0.88);
  --mq-surface-solid: #111a2c;
  --mq-surface-2: #162238;
  --mq-elevated: rgba(18, 28, 48, 0.96);
  --mq-ink: #f5f8ff;
  --mq-ink-2: #d3ddf4;
  --mq-muted: #93a1be;
  --mq-line: rgba(255, 255, 255, 0.1);
  --mq-line-strong: rgba(255, 255, 255, 0.16);
  --mq-blue: #6a8cff;
  --mq-blue-2: #89b3ff;
  --mq-blue-soft: rgba(106, 140, 255, 0.18);
  --mq-invert: #f4f7ff;
  --mq-invert-text: #09101d;
  color-scheme: dark;
}

html[data-theme="light"] {
  --mq-bg: #f4f7fc;
  --mq-bg-soft: #ebf0f8;
  --mq-surface: rgba(255, 255, 255, 0.9);
  --mq-surface-solid: #ffffff;
  --mq-surface-2: #eef3fb;
  --mq-elevated: rgba(255, 255, 255, 0.96);
  --mq-ink: #0c1322;
  --mq-ink-2: #1d2940;
  --mq-muted: #61708f;
  --mq-line: rgba(12, 19, 34, 0.08);
  --mq-line-strong: rgba(12, 19, 34, 0.14);
  --mq-blue: #2f63ff;
  --mq-blue-2: #5da2ff;
  --mq-blue-soft: rgba(47, 99, 255, 0.14);
  --mq-invert: #0c1322;
  --mq-invert-text: #ffffff;
  color-scheme: light;
}

body.portfolio-shell {
  margin: 0;
  min-width: 320px;
  font-family: var(--mq-font);
  color: var(--mq-ink);
  background:
    radial-gradient(circle at top left, rgba(106, 140, 255, 0.18), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(137, 179, 255, 0.14), transparent 22%),
    linear-gradient(180deg, var(--mq-bg) 0%, var(--mq-bg-soft) 100%);
  overflow-x: hidden;
}

body.portfolio-shell,
body.portfolio-shell button,
body.portfolio-shell input,
body.portfolio-shell textarea {
  font-family: var(--mq-font);
}

body.portfolio-shell *,
body.portfolio-shell *::before,
body.portfolio-shell *::after {
  box-sizing: border-box;
}

body.portfolio-shell h1,
body.portfolio-shell h2,
body.portfolio-shell h3,
body.portfolio-shell h4,
body.portfolio-shell p,
body.portfolio-shell a,
body.portfolio-shell button,
body.portfolio-shell span,
body.portfolio-shell strong,
body.portfolio-shell small,
body.portfolio-shell li {
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

body.portfolio-shell h1,
body.portfolio-shell h2,
body.portfolio-shell h3 {
  text-wrap: balance;
}

body.portfolio-shell p {
  text-wrap: pretty;
}

body.portfolio-shell img {
  display: block;
  max-width: 100%;
}

body.portfolio-shell a {
  color: inherit;
}

body.portfolio-shell main {
  display: block;
}

body.portfolio-shell .section-shell,
body.portfolio-shell .hero-shell,
body.portfolio-shell .header-shell,
body.portfolio-shell .contact-shell,
body.portfolio-shell .footer-shell {
  width: min(100% - 40px, var(--mq-max));
  margin-inline: auto;
}

body.portfolio-shell .section-shell,
body.portfolio-shell .contact-shell {
  padding-block: clamp(84px, 9vw, 132px);
}

body.portfolio-shell .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

body.portfolio-shell .section-heading.centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

body.portfolio-shell .section-kicker,
body.portfolio-shell .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--mq-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.portfolio-shell .section-kicker::before,
body.portfolio-shell .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mq-blue);
  box-shadow: 0 0 0 8px rgba(106, 140, 255, 0.09);
}

body.portfolio-shell .section-heading h2,
body.portfolio-shell .about-copy h2,
body.portfolio-shell .contact-copy h2 {
  margin: 0;
  color: var(--mq-ink);
  font-size: clamp(2.35rem, 3.7vw, 4.15rem);
  line-height: 1;
  font-weight: 720;
}

body.portfolio-shell .section-heading p,
body.portfolio-shell .hero-copy p,
body.portfolio-shell .about-copy p,
body.portfolio-shell .contact-copy p {
  margin: 0;
  color: var(--mq-muted);
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.68;
}

body.portfolio-shell .button,
body.portfolio-shell .header-cta,
body.portfolio-shell .chip,
body.portfolio-shell .icon-button,
body.portfolio-shell .nav-links a,
body.portfolio-shell .project-card,
body.portfolio-shell .service-card,
body.portfolio-shell .value-card,
body.portfolio-shell .process-item,
body.portfolio-shell .skill-group,
body.portfolio-shell .timeline-item,
body.portfolio-shell .faq-item {
  transition:
    transform 260ms var(--mq-ease),
    border-color 260ms var(--mq-ease),
    background 260ms var(--mq-ease),
    color 260ms var(--mq-ease),
    box-shadow 260ms var(--mq-ease),
    opacity 260ms var(--mq-ease);
}

body.portfolio-shell .button,
body.portfolio-shell .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--mq-line);
  border-radius: 999px;
  background: var(--mq-surface);
  color: var(--mq-ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.portfolio-shell .button svg,
body.portfolio-shell .header-cta svg {
  width: 16px;
  height: 16px;
}

body.portfolio-shell .button.primary,
body.portfolio-shell .header-cta {
  border-color: transparent;
  background: var(--mq-invert);
  color: var(--mq-invert-text);
  box-shadow: var(--mq-shadow-soft);
}

body.portfolio-shell .button.secondary {
  background: var(--mq-surface);
  color: var(--mq-ink);
}

body.portfolio-shell .button:hover,
body.portfolio-shell .header-cta:hover,
body.portfolio-shell .chip:hover,
body.portfolio-shell .icon-button:hover,
body.portfolio-shell .project-card:hover,
body.portfolio-shell .service-card:hover,
body.portfolio-shell .value-card:hover,
body.portfolio-shell .process-item:hover,
body.portfolio-shell .skill-group:hover,
body.portfolio-shell .timeline-item:hover,
body.portfolio-shell .faq-item:hover {
  transform: translateY(-2px);
}

body.portfolio-shell .button,
body.portfolio-shell .header-cta,
body.portfolio-shell .chip,
body.portfolio-shell .project-card,
body.portfolio-shell .service-card,
body.portfolio-shell .value-card,
body.portfolio-shell .process-item,
body.portfolio-shell .skill-group,
body.portfolio-shell .timeline-item,
body.portfolio-shell .blog-card,
body.portfolio-shell .contact-methods a,
body.portfolio-shell .faq-item {
  position: relative;
}

body.portfolio-shell .button::before,
body.portfolio-shell .header-cta::before,
body.portfolio-shell .chip::before,
body.portfolio-shell .project-card::before,
body.portfolio-shell .service-card::before,
body.portfolio-shell .value-card::before,
body.portfolio-shell .process-item::before,
body.portfolio-shell .skill-group::before,
body.portfolio-shell .timeline-item::before,
body.portfolio-shell .blog-card::before,
body.portfolio-shell .contact-methods a::before,
body.portfolio-shell .faq-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(63, 130, 255, 0.22), transparent 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--mq-ease), transform 320ms var(--mq-ease);
}

body.portfolio-shell .button:hover::before,
body.portfolio-shell .header-cta:hover::before,
body.portfolio-shell .chip:hover::before,
body.portfolio-shell .project-card:hover::before,
body.portfolio-shell .service-card:hover::before,
body.portfolio-shell .value-card:hover::before,
body.portfolio-shell .process-item:hover::before,
body.portfolio-shell .skill-group:hover::before,
body.portfolio-shell .timeline-item:hover::before,
body.portfolio-shell .blog-card:hover::before,
body.portfolio-shell .contact-methods a:hover::before,
body.portfolio-shell .faq-item:hover::before {
  opacity: 1;
}

body.portfolio-shell .button > *,
body.portfolio-shell .header-cta > *,
body.portfolio-shell .chip > *,
body.portfolio-shell .project-card > *,
body.portfolio-shell .service-card > *,
body.portfolio-shell .value-card > *,
body.portfolio-shell .process-item > *,
body.portfolio-shell .skill-group > *,
body.portfolio-shell .timeline-item > *,
body.portfolio-shell .blog-card > *,
body.portfolio-shell .contact-methods a > *,
body.portfolio-shell .faq-item > * {
  position: relative;
  z-index: 1;
}

body.portfolio-shell .site-header {
  position: sticky;
  top: 18px;
  z-index: 40;
  padding-top: 18px;
}

body.portfolio-shell .header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 74px;
  padding: 14px 18px;
  border: 1px solid var(--mq-line);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--mq-shadow-soft);
}

html[data-theme="light"] body.portfolio-shell .header-shell {
  background: rgba(255, 255, 255, 0.8);
}

body.portfolio-shell .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

body.portfolio-shell .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--mq-invert);
  color: var(--mq-invert-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

body.portfolio-shell .brand-copy {
  display: grid;
  gap: 2px;
}

body.portfolio-shell .brand-copy strong {
  color: var(--mq-ink);
  font-size: 0.96rem;
  font-weight: 700;
}

body.portfolio-shell .brand-copy small {
  color: var(--mq-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

body.portfolio-shell .nav-links {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

body.portfolio-shell .nav-links a {
  position: relative;
  color: var(--mq-muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

body.portfolio-shell .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--mq-blue);
  opacity: 0;
  transform: scaleX(0.6);
}

body.portfolio-shell .nav-links a:hover {
  color: var(--mq-ink);
}

body.portfolio-shell .nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

body.portfolio-shell .header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body.portfolio-shell .icon-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--mq-line);
  border-radius: 999px;
  background: var(--mq-surface);
  color: var(--mq-ink);
}

body.portfolio-shell .icon-button svg {
  width: 18px;
  height: 18px;
}

body.portfolio-shell .nav-toggle {
  display: none;
}

body.portfolio-shell .hero {
  padding-top: 18px;
}

body.portfolio-shell .hero-shell {
  display: block;
  width: min(100% - 40px, var(--mq-max-wide));
  padding-block: 8px 40px;
}

body.portfolio-shell .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.portfolio-shell .gateway-avatar {
  display: none;
}

body.portfolio-shell .hero-copy-centered {
  position: relative;
  z-index: 3;
  width: 100%;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: -12px auto 0;
  padding-inline: 16px;
}

body.portfolio-shell .hero h1 {
  max-width: 8.4ch;
  margin: 0;
  color: var(--mq-ink);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.062em;
}

body.portfolio-shell .hero-copy p {
  max-width: 34ch;
  margin-top: 16px;
  font-size: 1.02rem;
}

body.portfolio-shell .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

body.portfolio-shell .stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 980px);
  margin-top: 34px;
}

body.portfolio-shell .stat-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

html[data-theme="light"] body.portfolio-shell .stat-card {
  background: rgba(255, 255, 255, 0.88);
}

body.portfolio-shell .stat-card strong {
  display: block;
  color: var(--mq-ink);
  font-size: 1.02rem;
  font-weight: 720;
}

body.portfolio-shell .stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--mq-ink-2);
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.74;
}

body.portfolio-shell .hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 860px;
  overflow: hidden;
  border: 1px solid var(--mq-line);
  border-radius: calc(var(--mq-radius-lg) + 2px);
  background:
    radial-gradient(circle at 50% 12%, rgba(106, 140, 255, 0.22), transparent 28%),
    radial-gradient(circle at 50% 54%, rgba(137, 179, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--mq-surface);
  box-shadow: var(--mq-shadow-md);
  padding: 42px 24px 34px;
}

body.portfolio-shell .hero-visual {
  position: relative;
  width: min(100%, 1040px);
  height: 320px;
  min-height: 320px;
  margin: 0 auto 20px;
}

body.portfolio-shell .hero-orbit-line {
  position: absolute;
  left: 50%;
  top: 32px;
  width: min(720px, 78%);
  height: 260px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  opacity: 0.44;
  transform: translateX(-50%);
}

body.portfolio-shell .hero-preview-card {
  position: absolute;
  z-index: 2;
  width: 122px;
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  border: 1px solid var(--mq-line-strong);
  border-radius: 24px;
  background: var(--mq-surface-solid);
  box-shadow: var(--mq-shadow-md);
  animation: mqFloat 8.6s var(--mq-ease) infinite;
  animation-delay: var(--float-delay);
}

body.portfolio-shell .hero-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.portfolio-shell .hero-preview-card span {
  display: none;
}

body.portfolio-shell .hero-preview-card-1 { left: 10%; top: 134px; --r: -18deg; transform: rotate(-18deg); }
body.portfolio-shell .hero-preview-card-2 { left: 22%; top: 62px; --r: -10deg; transform: rotate(-10deg); }
body.portfolio-shell .hero-preview-card-3 { left: 38%; top: 18px; --r: -4deg; transform: rotate(-4deg); }
body.portfolio-shell .hero-preview-card-4 { right: 38%; top: 18px; --r: 4deg; transform: rotate(4deg); }
body.portfolio-shell .hero-preview-card-5 { right: 22%; top: 62px; --r: 10deg; transform: rotate(10deg); }
body.portfolio-shell .hero-preview-card-6 { right: 10%; top: 134px; --r: 18deg; transform: rotate(18deg); }
body.portfolio-shell .hero-preview-card-7 { left: 50%; top: 110px; --r: 0deg; transform: translateX(-50%) rotate(0deg); z-index: 1; }

body.portfolio-shell .hero-preview-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(8, 16, 30, 0.48));
}

body.portfolio-shell .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

body.portfolio-shell .chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--mq-line);
  border-radius: 999px;
  background: var(--mq-surface);
  color: var(--mq-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

body.portfolio-shell .chip.is-active,
body.portfolio-shell .chip:hover {
  background: var(--mq-invert);
  border-color: transparent;
  color: var(--mq-invert-text);
}

body.portfolio-shell .project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

body.portfolio-shell .project-card {
  position: relative;
  grid-column: span 4;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius-md);
  background: var(--mq-surface);
  box-shadow: var(--mq-shadow-soft);
}

body.portfolio-shell .project-card.is-featured:nth-child(1) {
  grid-column: span 7;
}

body.portfolio-shell .project-card.is-featured:nth-child(2) {
  grid-column: span 5;
}

body.portfolio-shell .project-image,
body.portfolio-shell .project-image img {
  width: 100%;
  height: 100%;
}

body.portfolio-shell .project-image img {
  object-fit: cover;
  transition: transform 420ms var(--mq-ease);
}

body.portfolio-shell .project-card:hover .project-image img {
  transform: scale(1.04);
}

body.portfolio-shell .project-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--mq-invert);
  color: var(--mq-invert-text);
  box-shadow: var(--mq-shadow-soft);
}

body.portfolio-shell .project-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(10, 16, 29, 0.72);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] body.portfolio-shell .project-info {
  border-color: rgba(12, 19, 34, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

body.portfolio-shell .project-info .section-kicker {
  margin-bottom: 0;
}

body.portfolio-shell .project-info h3 {
  margin: 0;
  color: var(--mq-ink);
  font-size: clamp(1.26rem, 1.65vw, 1.72rem);
  line-height: 1.08;
  font-weight: 750;
}

body.portfolio-shell .project-info p {
  margin: 0;
  color: var(--mq-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

body.portfolio-shell .project-role {
  display: grid;
  gap: 3px;
}

body.portfolio-shell .project-role span {
  color: var(--mq-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.portfolio-shell .project-role strong {
  color: var(--mq-ink);
  font-size: 0.98rem;
  font-weight: 700;
}

body.portfolio-shell .case-button {
  width: 100%;
}

body.portfolio-shell .project-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

body.portfolio-shell .section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius-md);
  background: var(--mq-surface);
}

body.portfolio-shell .section-cta p {
  margin: 0;
  color: var(--mq-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

body.portfolio-shell .service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body.portfolio-shell .service-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 380px;
  padding: 28px;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius-md);
  background: var(--mq-surface);
  box-shadow: var(--mq-shadow-soft);
}

body.portfolio-shell .service-card.is-featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 245, 255, 0.98));
  color: #0c1322;
  border-color: rgba(47, 99, 255, 0.14);
}

html[data-theme="light"] body.portfolio-shell .service-card.is-featured {
  background: linear-gradient(180deg, #ffffff, #f2f6ff);
}

body.portfolio-shell .service-badge {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mq-blue-soft);
  color: var(--mq-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.portfolio-shell .service-index {
  display: none;
}

body.portfolio-shell .service-main h3 {
  margin: 0 0 12px;
  color: currentColor;
  font-size: 1.42rem;
  line-height: 1.1;
  font-weight: 750;
}

body.portfolio-shell .service-main p {
  margin: 0;
  color: var(--mq-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

body.portfolio-shell .service-card.is-featured .service-main p,
body.portfolio-shell .service-card.is-featured .service-includes li,
body.portfolio-shell .service-card.is-featured .service-price strong em {
  color: #56637d;
}

body.portfolio-shell .service-price strong {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  color: currentColor;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 0.92;
  font-weight: 800;
}

body.portfolio-shell .service-price strong em {
  color: var(--mq-muted);
  font-size: 0.34em;
  font-style: normal;
  font-weight: 650;
}

body.portfolio-shell .service-price > span {
  display: none;
}

body.portfolio-shell .service-includes {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.portfolio-shell .service-includes li {
  position: relative;
  padding-left: 24px;
  color: var(--mq-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

body.portfolio-shell .service-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mq-blue);
}

body.portfolio-shell .service-link {
  width: 100%;
  margin-top: auto;
}

body.portfolio-shell .value-grid,
body.portfolio-shell .skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.portfolio-shell .value-card,
body.portfolio-shell .skill-group {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius-md);
  background: var(--mq-surface);
}

body.portfolio-shell .card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--mq-blue-soft);
  color: var(--mq-blue);
}

body.portfolio-shell .card-number {
  color: var(--mq-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.portfolio-shell .value-card h3,
body.portfolio-shell .skill-group h3,
body.portfolio-shell .process-item h3 {
  margin: 0;
  color: var(--mq-ink);
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 700;
}

body.portfolio-shell .value-card p,
body.portfolio-shell .process-item p {
  margin: 0;
  color: var(--mq-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

body.portfolio-shell .process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

body.portfolio-shell .process-item {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius-md);
  background: var(--mq-surface);
}

body.portfolio-shell .process-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--mq-blue-soft);
  color: var(--mq-blue);
  font-size: 0.86rem;
  font-weight: 800;
}

body.portfolio-shell .resume-section {
  background:
    radial-gradient(circle at top left, rgba(106, 140, 255, 0.12), transparent 24%),
    #0b1221;
  color: #f4f7ff;
}

body.portfolio-shell .resume-section .section-heading h2,
body.portfolio-shell .resume-section .section-heading p,
body.portfolio-shell .resume-section .section-kicker {
  color: inherit;
}

body.portfolio-shell .resume-section .section-heading p,
body.portfolio-shell .resume-section .timeline-item p,
body.portfolio-shell .resume-section .timeline-item span,
body.portfolio-shell .resume-facts span {
  color: rgba(223, 232, 255, 0.72);
}

body.portfolio-shell .resume-layout {
  display: block;
}

body.portfolio-shell .resume-copy {
  display: grid;
  gap: 18px;
}

body.portfolio-shell .resume-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.portfolio-shell .resume-facts span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 650;
}

body.portfolio-shell .timeline {
  display: grid;
  gap: 14px;
}

body.portfolio-shell .timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

body.portfolio-shell .timeline-item h3,
body.portfolio-shell .timeline-item strong {
  margin: 0;
  color: #f4f7ff;
}

body.portfolio-shell .timeline-item strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
  font-weight: 600;
}

body.portfolio-shell .timeline-item p {
  margin: 10px 0 0;
}

body.portfolio-shell .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 24px;
  align-items: stretch;
}

body.portfolio-shell .about-copy,
body.portfolio-shell .about-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius-lg);
  background: var(--mq-surface);
  box-shadow: var(--mq-shadow-soft);
}

body.portfolio-shell .about-copy {
  display: grid;
  gap: 22px;
  align-content: center;
  padding: clamp(28px, 4vw, 44px);
}

body.portfolio-shell .about-media {
  min-height: 540px;
}

body.portfolio-shell .about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

body.portfolio-shell .about-stat {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--mq-line);
  border-radius: 20px;
  background: rgba(10, 16, 29, 0.72);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

body.portfolio-shell .about-stat strong {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

body.portfolio-shell .about-stat span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.74);
}

body.portfolio-shell .skill-group {
  min-height: 0;
}

body.portfolio-shell .skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.portfolio-shell .skill-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--mq-line);
  border-radius: 999px;
  color: var(--mq-ink-2);
  background: var(--mq-bg-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

body.portfolio-shell .faq-list {
  display: grid;
  gap: 14px;
}

body.portfolio-shell .faq-item {
  overflow: hidden;
  border: 1px solid var(--mq-line);
  border-radius: 22px;
  background: var(--mq-surface);
}

body.portfolio-shell .faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--mq-ink);
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
}

body.portfolio-shell .faq-answer {
  max-height: 0;
  overflow: hidden;
}

body.portfolio-shell .faq-answer p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--mq-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

body.portfolio-shell .faq-item.is-open .faq-answer {
  max-height: 240px;
}

body.portfolio-shell .faq-item.is-open button i {
  transform: rotate(45deg);
}

body.portfolio-shell .contact-card {
  display: grid;
  gap: 24px;
  justify-items: center;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--mq-line);
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(106, 140, 255, 0.16), transparent 28%),
    var(--mq-surface-solid);
  box-shadow: var(--mq-shadow-md);
}

body.portfolio-shell .contact-copy p {
  max-width: 56ch;
  margin-top: 18px;
}

body.portfolio-shell .site-footer {
  padding: 0 0 28px;
}

body.portfolio-shell .footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--mq-line);
  color: var(--mq-muted);
  font-size: 0.88rem;
}

body.portfolio-shell .footer-shell a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mq-line);
  border-radius: 999px;
  background: var(--mq-surface);
}

body.portfolio-shell .case-modal[hidden] {
  display: none;
}

body.portfolio-shell .case-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

body.portfolio-shell .case-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 22, 0.64);
  backdrop-filter: blur(12px);
}

body.portfolio-shell .case-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--mq-line);
  border-radius: var(--mq-radius-lg);
  background: var(--mq-surface-solid);
  box-shadow: var(--mq-shadow-lg);
}

body.portfolio-shell .case-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

body.portfolio-shell .case-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: end;
}

body.portfolio-shell .case-cover img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 24px;
}

body.portfolio-shell .case-cover h2 {
  margin: 0;
  color: var(--mq-ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  font-weight: 760;
}

body.portfolio-shell .case-cover p,
body.portfolio-shell .case-content p,
body.portfolio-shell .case-content li {
  color: var(--mq-muted);
}

body.portfolio-shell .case-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

body.portfolio-shell .case-content section {
  padding: 18px;
  border: 1px solid var(--mq-line);
  border-radius: 20px;
  background: var(--mq-surface);
}

body.portfolio-shell .case-content h3 {
  margin: 0 0 12px;
}

body.portfolio-shell .case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

body.portfolio-shell .empty-state {
  color: var(--mq-muted);
}

body.portfolio-shell .reveal {
  opacity: 0;
  transform: translateY(24px);
}

body.portfolio-shell .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms var(--mq-ease), transform 620ms var(--mq-ease);
}

@keyframes mqFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(calc(var(--r, 0deg) + 1.4deg));
  }
}

@media (max-width: 1180px) {
  body.portfolio-shell .about-layout {
    grid-template-columns: 1fr;
  }

  body.portfolio-shell .hero-stage {
    min-height: 820px;
  }

  body.portfolio-shell .project-card,
  body.portfolio-shell .project-card.is-featured:nth-child(1),
  body.portfolio-shell .project-card.is-featured:nth-child(2) {
    grid-column: span 6;
  }

  body.portfolio-shell .value-grid,
  body.portfolio-shell .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.portfolio-shell .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 900px) {
  body.portfolio-shell .site-header {
    top: 10px;
    padding-top: 10px;
  }

  body.portfolio-shell .header-shell {
    grid-template-columns: auto auto auto;
    gap: 12px;
  }

  body.portfolio-shell .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--mq-line);
    border-radius: 24px;
    background: var(--mq-elevated);
    box-shadow: var(--mq-shadow-md);
  }

  body.portfolio-shell .site-header.menu-active .nav-links,
  body.portfolio-shell.menu-open .nav-links {
    display: flex;
  }

  body.portfolio-shell .nav-links a {
    padding: 14px 16px;
    border-radius: 16px;
  }

  body.portfolio-shell .nav-links a::after {
    display: none;
  }

  body.portfolio-shell .header-cta {
    display: none;
  }

  body.portfolio-shell .nav-toggle {
    display: inline-grid;
  }

  body.portfolio-shell .hero-shell,
  body.portfolio-shell .section-shell,
  body.portfolio-shell .contact-shell,
  body.portfolio-shell .header-shell,
  body.portfolio-shell .footer-shell {
    width: min(100% - 24px, var(--mq-max));
  }

  body.portfolio-shell .hero-shell {
    padding-block: 34px;
  }

  body.portfolio-shell .hero h1 {
    max-width: 8.6ch;
    font-size: clamp(2.9rem, 9vw, 4.6rem);
  }

  body.portfolio-shell .hero-stage {
    min-height: 760px;
    padding: 34px 18px 28px;
  }

  body.portfolio-shell .hero-visual {
    min-height: 260px;
    height: 260px;
    margin-bottom: 22px;
  }

  body.portfolio-shell .hero-copy-centered {
    max-width: 680px;
  }

  body.portfolio-shell .hero-preview-card {
    width: 96px;
    border-radius: 20px;
  }

  body.portfolio-shell .hero-orbit-line {
    top: 36px;
    width: min(520px, 86%);
    height: 196px;
  }

  body.portfolio-shell .hero-preview-card-1 { left: 2%; top: 108px; }
  body.portfolio-shell .hero-preview-card-2 { left: 14%; top: 48px; }
  body.portfolio-shell .hero-preview-card-3 { left: 32%; top: 8px; }
  body.portfolio-shell .hero-preview-card-4 { right: 32%; top: 8px; left: auto; }
  body.portfolio-shell .hero-preview-card-5 { right: 14%; top: 48px; }
  body.portfolio-shell .hero-preview-card-6 { right: 2%; top: 108px; }
  body.portfolio-shell .hero-preview-card-7 { left: 50%; top: 88px; }

  body.portfolio-shell .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.portfolio-shell .service-grid,
  body.portfolio-shell .project-grid,
  body.portfolio-shell .process-list,
  body.portfolio-shell .value-grid,
  body.portfolio-shell .skills-grid,
  body.portfolio-shell .case-content,
  body.portfolio-shell .case-cover {
    grid-template-columns: 1fr;
  }

  body.portfolio-shell .project-card,
  body.portfolio-shell .project-card.is-featured:nth-child(1),
  body.portfolio-shell .project-card.is-featured:nth-child(2) {
    grid-column: 1;
  }

  body.portfolio-shell .section-cta,
  body.portfolio-shell .case-actions,
  body.portfolio-shell .footer-shell {
    flex-direction: column;
    align-items: stretch;
  }

  body.portfolio-shell .footer-shell a {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  body.portfolio-shell .brand-copy {
    display: none;
  }

  body.portfolio-shell .hero-actions {
    display: grid;
  }

  body.portfolio-shell .stats-strip {
    grid-template-columns: 1fr;
  }

  body.portfolio-shell .hero-actions .button,
  body.portfolio-shell .button,
  body.portfolio-shell .section-cta .button {
    width: 100%;
  }

  body.portfolio-shell .hero h1 {
    max-width: 7.2ch;
    font-size: clamp(2.24rem, 9.9vw, 3.28rem);
  }

  body.portfolio-shell .hero-stage {
    min-height: auto;
    padding: 28px 12px 18px;
  }

  body.portfolio-shell .hero-visual {
    height: 190px;
    min-height: 190px;
    margin-bottom: 16px;
  }

  body.portfolio-shell .hero-orbit-line {
    top: 30px;
    width: 92%;
    height: 132px;
  }

  body.portfolio-shell .hero-preview-card {
    width: 68px;
    border-radius: 18px;
  }

  body.portfolio-shell .hero-preview-card-1 { left: 2%; top: 78px; }
  body.portfolio-shell .hero-preview-card-2 { left: 14%; top: 34px; }
  body.portfolio-shell .hero-preview-card-3 { left: 30%; top: 4px; }
  body.portfolio-shell .hero-preview-card-4 { right: 30%; top: 4px; left: auto; }
  body.portfolio-shell .hero-preview-card-5 { right: 14%; top: 34px; }
  body.portfolio-shell .hero-preview-card-6 { right: 2%; top: 78px; }
  body.portfolio-shell .hero-preview-card-7 { left: 50%; top: 60px; }

  body.portfolio-shell .hero-copy-centered {
    margin-top: 0;
    padding-inline: 8px;
  }

  body.portfolio-shell .hero-copy p {
    max-width: 24ch;
    font-size: 0.94rem;
  }

  body.portfolio-shell .project-card {
    min-height: 360px;
  }

  body.portfolio-shell .project-info,
  body.portfolio-shell .service-card,
  body.portfolio-shell .value-card,
  body.portfolio-shell .skill-group,
  body.portfolio-shell .process-item,
  body.portfolio-shell .timeline-item,
  body.portfolio-shell .contact-card,
  body.portfolio-shell .case-dialog {
    padding: 18px;
  }

  body.portfolio-shell .about-media {
    min-height: 420px;
    height: 420px;
  }
}

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

  body.portfolio-shell .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Base44-inspired refinement pass */
body.portfolio-shell {
  --mq-bg: #0d1117;
  --mq-bg-soft: #15191f;
  --mq-surface: #14181f;
  --mq-surface-solid: #12161d;
  --mq-surface-2: #1a2029;
  --mq-elevated: #171c24;
  --mq-ink: #f7f9ff;
  --mq-ink-2: #d9e0ee;
  --mq-muted: #7f899c;
  --mq-line: rgba(255, 255, 255, 0.08);
  --mq-line-strong: rgba(255, 255, 255, 0.14);
  --mq-blue: #3f82ff;
  --mq-blue-2: #78b7ff;
  --mq-blue-soft: rgba(63, 130, 255, 0.16);
  --mq-invert: #f6f8fc;
  --mq-invert-text: #0c1118;
  background: var(--mq-bg);
}

html[data-theme="light"] body.portfolio-shell {
  --mq-bg: #f5f7fb;
  --mq-bg-soft: #eef2f8;
  --mq-surface: #ffffff;
  --mq-surface-solid: #ffffff;
  --mq-surface-2: #edf2f9;
  --mq-elevated: #ffffff;
  --mq-ink: #0c1118;
  --mq-ink-2: #1c2637;
  --mq-muted: #667386;
  --mq-line: rgba(12, 17, 24, 0.09);
  --mq-line-strong: rgba(12, 17, 24, 0.15);
  --mq-blue-soft: rgba(37, 99, 235, 0.12);
  --mq-invert: #10151d;
  --mq-invert-text: #ffffff;
  background: var(--mq-bg);
}

body.portfolio-shell .section-shell,
body.portfolio-shell .header-shell,
body.portfolio-shell .contact-shell,
body.portfolio-shell .footer-shell {
  width: min(100% - 48px, 1120px);
}

body.portfolio-shell .hero-shell {
  width: 100%;
  padding: 0;
}

body.portfolio-shell .site-header {
  top: 0;
  padding-top: 0;
  border-bottom: 1px solid var(--mq-line);
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] body.portfolio-shell .site-header {
  background: rgba(245, 247, 251, 0.76);
}

body.portfolio-shell .header-shell {
  min-height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.portfolio-shell .hero-stage.reveal {
  opacity: 1;
  transform: none;
}

body.portfolio-shell .brand-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--mq-ink);
  font-size: 1.18rem;
}

body.portfolio-shell .brand-copy {
  display: none;
}

body.portfolio-shell .nav-links {
  gap: 34px;
}

body.portfolio-shell .nav-links a {
  font-size: 0.86rem;
  color: var(--mq-muted);
}

body.portfolio-shell .header-cta {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.84rem;
}

body.portfolio-shell .icon-button {
  width: 40px;
  height: 40px;
}

body.portfolio-shell .hero {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: start;
  padding-top: 64px;
  border-bottom: 1px solid var(--mq-line);
  background:
    radial-gradient(circle at 50% 38%, rgba(31, 60, 124, 0.34), transparent 32%),
    linear-gradient(180deg, #080c12 0%, #0d1117 74%, #11161d 100%);
  background-size: 122% 122%, 100% 100%;
  animation: mqHeroGlow 14s ease-in-out infinite alternate;
}

html[data-theme="light"] body.portfolio-shell .hero {
  background:
    radial-gradient(circle at 50% 35%, rgba(63, 130, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
}

body.portfolio-shell .hero-stage {
  min-height: calc(100vh - 64px);
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  padding: 48px 24px 0;
  background: transparent;
  box-shadow: none;
}

body.portfolio-shell .hero-visual {
  width: min(1280px, 96vw);
  height: clamp(300px, 36vh, 430px);
  min-height: 260px;
  margin: 0 auto 10px;
  transform:
    translate3d(calc(var(--mx, 0) * -5px), calc(var(--my, 0) * -4px), 0);
  transition: transform 520ms var(--mq-ease);
}

body.portfolio-shell .hero-orbit-line {
  left: 50%;
  top: 38px;
  width: min(1020px, 86vw);
  height: 360px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

html[data-theme="light"] body.portfolio-shell .hero-orbit-line {
  border-top-color: rgba(12, 17, 24, 0.1);
}

body.portfolio-shell .hero-preview-card {
  width: clamp(102px, 8.7vw, 154px);
  aspect-ratio: 1 / 0.92;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  transform-origin: center;
  will-change: transform;
  transition: filter 360ms var(--mq-ease), box-shadow 360ms var(--mq-ease), opacity 360ms var(--mq-ease);
}

body.portfolio-shell .hero-preview-card:hover {
  filter: brightness(1.12) saturate(1.05);
  box-shadow: 0 26px 66px rgba(63, 130, 255, 0.24), 0 20px 48px rgba(0, 0, 0, 0.38);
  z-index: 8;
}

body.portfolio-shell .hero-preview-card-1 { left: 4%; top: 226px; --r: -11deg; }
body.portfolio-shell .hero-preview-card-2 { left: 12%; top: 150px; --r: -9deg; }
body.portfolio-shell .hero-preview-card-3 { left: 21%; top: 86px; --r: -7deg; }
body.portfolio-shell .hero-preview-card-4 { left: 32%; top: 38px; --r: -4deg; right: auto; }
body.portfolio-shell .hero-preview-card-5 { left: 44%; top: 18px; --r: -1deg; right: auto; }
body.portfolio-shell .hero-preview-card-6 { right: 32%; top: 38px; --r: 4deg; }
body.portfolio-shell .hero-preview-card-7 { right: 21%; top: 86px; left: auto; --r: 7deg; z-index: 2; }
body.portfolio-shell .hero-preview-card-8 { right: 12%; top: 150px; --r: 9deg; }
body.portfolio-shell .hero-preview-card-9 { right: 4%; top: 226px; --r: 11deg; }
body.portfolio-shell .hero-preview-card-10 { left: 45.5%; top: 70px; --r: 0deg; opacity: 0.72; }

body.portfolio-shell .hero-copy-centered {
  max-width: 620px;
  margin: -8px auto 0;
}

body.portfolio-shell .hero-copy-centered .eyebrow {
  justify-content: center;
  margin-bottom: 18px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
}

body.portfolio-shell .hero h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 4.2vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

body.portfolio-shell .hero-copy p {
  max-width: 42ch;
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--mq-muted);
}

body.portfolio-shell .hero-actions {
  margin-top: 26px;
}

body.portfolio-shell .button,
body.portfolio-shell .header-cta {
  min-height: 46px;
  border-radius: 999px;
}

body.portfolio-shell .stats-strip {
  width: 100vw;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(48px, 7vh, 90px);
  border-top: 1px solid var(--mq-line);
  border-bottom: 1px solid var(--mq-line);
}

body.portfolio-shell .stat-card {
  min-height: 116px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 20px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--mq-line);
  background: transparent;
  text-align: center;
  backdrop-filter: none;
}

body.portfolio-shell .stat-card:last-child {
  border-right: 0;
}

body.portfolio-shell .stat-card strong {
  font-size: clamp(1.65rem, 2vw, 2.35rem);
  line-height: 1;
  color: var(--mq-ink);
}

body.portfolio-shell .stat-card span {
  margin-top: 0;
  font-size: 0.78rem;
  color: var(--mq-muted);
  max-width: 16ch;
}

body.portfolio-shell .section {
  background: var(--mq-bg-soft);
  border-bottom: 1px solid var(--mq-line);
}

body.portfolio-shell .work-section,
body.portfolio-shell .services,
body.portfolio-shell .value-section,
body.portfolio-shell .resume-section,
body.portfolio-shell .testimonials-section,
body.portfolio-shell .blog-section,
body.portfolio-shell .faq-section,
body.portfolio-shell .contact-section {
  background: var(--mq-bg-soft);
}

body.portfolio-shell .section-shell,
body.portfolio-shell .contact-shell {
  padding-block: clamp(74px, 8vw, 118px);
}

body.portfolio-shell .section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  margin-bottom: 34px;
}

body.portfolio-shell .section-heading h2,
body.portfolio-shell .about-copy h2,
body.portfolio-shell .contact-copy h2 {
  font-size: clamp(2rem, 3.05vw, 3.15rem);
  letter-spacing: -0.045em;
}

body.portfolio-shell .section-kicker,
body.portfolio-shell .eyebrow {
  margin-bottom: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

body.portfolio-shell .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

body.portfolio-shell .project-card,
body.portfolio-shell .project-card.is-featured:nth-child(1),
body.portfolio-shell .project-card.is-featured:nth-child(2) {
  grid-column: auto;
  min-height: 0;
  border-radius: 22px;
  background: #151a21;
  box-shadow: none;
}

html[data-theme="light"] body.portfolio-shell .project-card,
html[data-theme="light"] body.portfolio-shell .project-card.is-featured:nth-child(1),
html[data-theme="light"] body.portfolio-shell .project-card.is-featured:nth-child(2) {
  background: #ffffff;
}

body.portfolio-shell .project-image {
  display: block;
  height: auto;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
}

body.portfolio-shell .project-image,
body.portfolio-shell .project-image img {
  height: auto;
}

body.portfolio-shell .project-image img {
  height: 100%;
  object-fit: cover;
}

body.portfolio-shell .project-info {
  position: static;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 18px 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
}

body.portfolio-shell .project-info .section-kicker,
body.portfolio-shell .project-info p,
body.portfolio-shell .project-role {
  display: none;
}

body.portfolio-shell .project-info h3 {
  font-size: 1rem;
  line-height: 1.25;
  grid-row: span 2;
}

body.portfolio-shell .case-button {
  width: auto;
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.78rem;
}

body.portfolio-shell .project-arrow {
  width: 38px;
  height: 38px;
  top: 14px;
  right: 14px;
}

body.portfolio-shell .service-grid {
  gap: 22px;
}

body.portfolio-shell .service-card {
  min-height: 370px;
  padding: 32px;
  border-radius: 22px;
  background: #11151b;
  box-shadow: none;
}

body.portfolio-shell .service-card.is-featured {
  border-color: rgba(63, 130, 255, 0.64);
  background: #080c13;
  color: var(--mq-ink);
  box-shadow: 0 0 0 1px rgba(63, 130, 255, 0.18);
}

html[data-theme="light"] body.portfolio-shell .service-card,
html[data-theme="light"] body.portfolio-shell .service-card.is-featured {
  background: #ffffff;
  color: var(--mq-ink);
}

body.portfolio-shell .service-badge {
  align-self: flex-end;
  background: #286dff;
  color: #ffffff;
  letter-spacing: 0.08em;
}

body.portfolio-shell .service-main h3 {
  font-size: 1.12rem;
}

body.portfolio-shell .service-price strong {
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
}

body.portfolio-shell .value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--mq-line);
  border-radius: 22px;
  background: var(--mq-surface-solid);
}

body.portfolio-shell .value-card {
  border: 0;
  border-right: 1px solid var(--mq-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 210px;
}

body.portfolio-shell .value-card:last-child {
  border-right: 0;
}

body.portfolio-shell .card-icon {
  display: none;
}

body.portfolio-shell .card-number {
  font-size: 2rem;
  color: rgba(63, 130, 255, 0.14);
  letter-spacing: -0.04em;
}

body.portfolio-shell .process-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--mq-line);
  border-radius: 22px;
}

body.portfolio-shell .process-item {
  border: 0;
  border-right: 1px solid var(--mq-line);
  border-radius: 0;
  background: var(--mq-surface-solid);
  box-shadow: none;
}

body.portfolio-shell .process-item:last-child {
  border-right: 0;
}

body.portfolio-shell .resume-section {
  background: #0b0f15;
}

html[data-theme="light"] body.portfolio-shell .resume-section {
  background: #eef2f8;
}

body.portfolio-shell .resume-layout,
body.portfolio-shell .resume-copy,
body.portfolio-shell .timeline {
  display: block;
}

body.portfolio-shell .resume-facts {
  display: none;
}

body.portfolio-shell .timeline-item {
  grid-template-columns: 150px 1fr minmax(260px, 0.95fr);
  align-items: center;
  gap: 34px;
  min-height: 86px;
  padding: 20px 28px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

body.portfolio-shell .timeline-item div {
  display: contents;
}

body.portfolio-shell .timeline-item h3 {
  grid-column: 2;
  font-size: 0.96rem;
}

body.portfolio-shell .timeline-item strong {
  grid-column: 2;
  font-size: 0.84rem;
  color: var(--mq-muted);
}

body.portfolio-shell .timeline-item p {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

body.portfolio-shell .testimonials-section {
  background: #10141a;
}

html[data-theme="light"] body.portfolio-shell .testimonials-section {
  background: #f5f7fb;
}

body.portfolio-shell .testimonial-shell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 18px;
  align-items: center;
}

body.portfolio-shell .testimonial-card {
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--mq-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 14%, rgba(63, 130, 255, 0.18), transparent 24%),
    var(--mq-surface-solid);
}

body.portfolio-shell .quote-mark {
  color: var(--mq-blue);
  font-size: 4rem;
  line-height: 0.5;
  font-weight: 800;
}

body.portfolio-shell .testimonial-card blockquote {
  max-width: 850px;
  margin: 0;
  color: var(--mq-ink);
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.035em;
}

body.portfolio-shell .testimonial-author {
  display: flex;
  gap: 14px;
  align-items: center;
}

body.portfolio-shell .testimonial-author > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--mq-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

body.portfolio-shell .testimonial-author strong,
body.portfolio-shell .testimonial-author small {
  display: block;
}

body.portfolio-shell .testimonial-author small {
  margin-top: 4px;
  color: var(--mq-muted);
}

body.portfolio-shell .testimonial-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--mq-line);
  border-radius: 999px;
  background: var(--mq-surface);
  color: var(--mq-ink);
}

body.portfolio-shell .testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

body.portfolio-shell .testimonial-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] body.portfolio-shell .testimonial-dots button {
  background: rgba(12, 17, 24, 0.16);
}

body.portfolio-shell .testimonial-dots button.is-active {
  width: 28px;
  background: var(--mq-blue);
}

body.portfolio-shell .about-section {
  background: #171b21;
}

html[data-theme="light"] body.portfolio-shell .about-section {
  background: #f5f7fb;
}

body.portfolio-shell .about-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  align-items: center;
}

body.portfolio-shell .about-copy,
body.portfolio-shell .about-media {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.portfolio-shell .about-media {
  min-height: 500px;
  border-radius: 22px;
}

body.portfolio-shell .about-media img {
  border-radius: 22px;
}

body.portfolio-shell .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.portfolio-shell .blog-section .section-shell {
  position: relative;
}

body.portfolio-shell .blog-section .section-heading,
body.portfolio-shell .blog-section .section-cta {
  position: relative;
  z-index: 2;
}

body.portfolio-shell .blog-grid {
  position: relative;
  z-index: 2;
  padding: 22px;
  border: 1px solid var(--mq-line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
    var(--mq-surface-solid);
  animation: mqPanelGlow 10s ease-in-out infinite alternate;
}

body.portfolio-shell .blog-grid::before {
  content: "matchanov_blog";
  position: absolute;
  left: 22px;
  top: -42px;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--mq-line);
  border-radius: 999px;
  background: var(--mq-surface-solid);
  color: var(--mq-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.portfolio-shell .blog-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--mq-line);
  border-radius: 22px;
  background: var(--mq-surface-solid);
  color: inherit;
  text-decoration: none;
  transition: transform 260ms var(--mq-ease), border-color 260ms var(--mq-ease);
}

body.portfolio-shell .blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 130, 255, 0.38);
}

body.portfolio-shell .blog-card img {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 6px;
}

body.portfolio-shell .blog-card span {
  color: var(--mq-blue-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.portfolio-shell .blog-card h3 {
  margin: 0;
  color: var(--mq-ink);
  font-size: 1.05rem;
  line-height: 1.28;
}

body.portfolio-shell .blog-card p {
  margin: 0;
  color: var(--mq-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

body.portfolio-shell .blog-card strong {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  color: var(--mq-ink);
  font-size: 0.86rem;
}

body.portfolio-shell .faq-section {
  background: #171b21;
}

html[data-theme="light"] body.portfolio-shell .faq-section {
  background: #f0f4fa;
}

body.portfolio-shell .faq-section .section-heading {
  justify-items: center;
  text-align: center;
  grid-template-columns: 1fr;
}

body.portfolio-shell .faq-list {
  max-width: 680px;
  margin: 0 auto;
}

body.portfolio-shell .faq-item {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

body.portfolio-shell .contact-section {
  background: #171b21;
}

html[data-theme="light"] body.portfolio-shell .contact-section {
  background: #f0f4fa;
}

body.portfolio-shell .contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1fr);
  gap: 60px;
  align-items: start;
}

body.portfolio-shell .contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

body.portfolio-shell .contact-methods a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 3px 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--mq-line);
  border-radius: 18px;
  background: var(--mq-surface-solid);
  text-decoration: none;
}

body.portfolio-shell .contact-methods span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--mq-blue-soft);
  color: var(--mq-blue);
}

body.portfolio-shell .contact-methods small {
  color: var(--mq-muted);
}

body.portfolio-shell .contact-form {
  display: grid;
  gap: 18px;
}

body.portfolio-shell .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.portfolio-shell .contact-form label,
body.portfolio-shell .contact-form fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.portfolio-shell .contact-form label > span,
body.portfolio-shell .contact-form legend {
  color: var(--mq-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.portfolio-shell .contact-form input[type="text"],
body.portfolio-shell .contact-form input[type="tel"],
body.portfolio-shell .contact-form textarea {
  width: 100%;
  border: 1px solid var(--mq-line);
  border-radius: 14px;
  background: var(--mq-surface-solid);
  color: var(--mq-ink);
  font-size: 0.94rem;
  outline: none;
}

body.portfolio-shell .contact-form input[type="text"] {
  height: 48px;
  padding: 0 16px;
}

body.portfolio-shell .contact-form input[type="tel"] {
  height: 48px;
  padding: 0 16px;
}

body.portfolio-shell .contact-form textarea {
  min-height: 132px;
  resize: vertical;
  padding: 16px;
}

body.portfolio-shell .contact-form input:focus,
body.portfolio-shell .contact-form textarea:focus {
  border-color: rgba(63, 130, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(63, 130, 255, 0.1);
}

body.portfolio-shell .option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.portfolio-shell .option-row label {
  display: inline-flex;
}

body.portfolio-shell .option-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.portfolio-shell .option-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid var(--mq-line);
  border-radius: 999px;
  color: var(--mq-muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
}

body.portfolio-shell .option-row input:checked + span {
  border-color: rgba(63, 130, 255, 0.55);
  background: var(--mq-blue-soft);
  color: var(--mq-ink);
}

body.portfolio-shell .contact-form button[type="submit"] {
  width: 100%;
}

body.portfolio-shell .contact-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

body.portfolio-shell .project-card:nth-child(2n),
body.portfolio-shell .service-card:nth-child(2n),
body.portfolio-shell .value-card:nth-child(2n),
body.portfolio-shell .process-item:nth-child(2n),
body.portfolio-shell .blog-card:nth-child(2n) {
  transition-delay: 45ms;
}

body.portfolio-shell .project-card:nth-child(3n),
body.portfolio-shell .service-card:nth-child(3n),
body.portfolio-shell .value-card:nth-child(3n),
body.portfolio-shell .process-item:nth-child(3n),
body.portfolio-shell .blog-card:nth-child(3n) {
  transition-delay: 90ms;
}

@keyframes mqHeroGlow {
  0% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 50% 100%;
  }
}

@keyframes mqPanelGlow {
  0% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 rgba(63, 130, 255, 0);
  }
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 70px rgba(63, 130, 255, 0.06);
  }
}

body.portfolio-shell .form-status {
  min-height: 22px;
  margin: 0;
  color: var(--mq-muted);
  font-size: 0.88rem;
}

body.portfolio-shell .form-status.is-success {
  color: #72d48c;
}

body.portfolio-shell .form-status.is-error {
  color: #ff8181;
}

body.portfolio-shell .site-footer {
  background: #171b21;
}

html[data-theme="light"] body.portfolio-shell .site-footer {
  background: #f0f4fa;
}

@keyframes mqFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translate3d(0, -13px, 0) rotate(calc(var(--r, 0deg) + 1.2deg));
  }
}

@media (max-width: 1120px) {
  body.portfolio-shell .process-list,
  body.portfolio-shell .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.portfolio-shell .process-item:nth-child(2n),
  body.portfolio-shell .value-card:nth-child(2n) {
    border-right: 0;
  }

  body.portfolio-shell .timeline-item {
    grid-template-columns: 130px 1fr;
  }

  body.portfolio-shell .timeline-item p {
    grid-column: 2;
    grid-row: auto;
    margin-top: 10px;
  }

  body.portfolio-shell .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.portfolio-shell .site-header {
    top: 0;
  }

  body.portfolio-shell .header-shell {
    display: flex;
    justify-content: space-between;
    min-height: 62px;
  }

  body.portfolio-shell .header-actions {
    margin-left: auto;
  }

  body.portfolio-shell .hero {
    min-height: auto;
    padding-top: 62px;
  }

  body.portfolio-shell .hero-stage {
    min-height: auto;
    padding-top: 34px;
  }

  body.portfolio-shell .hero-visual {
    height: 270px;
    min-height: 270px;
  }

  body.portfolio-shell .hero h1 {
    font-size: clamp(2.35rem, 9.4vw, 4.1rem);
  }

  body.portfolio-shell .hero-copy-centered {
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    padding-inline: 0;
  }

  body.portfolio-shell .hero-preview-card {
    width: clamp(72px, 13vw, 104px);
    border-radius: 14px;
  }

  body.portfolio-shell .hero-preview-card-1 { left: 0%; top: 152px; }
  body.portfolio-shell .hero-preview-card-2 { left: 9%; top: 92px; }
  body.portfolio-shell .hero-preview-card-3 { left: 22%; top: 46px; }
  body.portfolio-shell .hero-preview-card-4 { left: 37%; top: 18px; }
  body.portfolio-shell .hero-preview-card-5 { left: 52%; top: 18px; }
  body.portfolio-shell .hero-preview-card-6 { right: 22%; top: 46px; }
  body.portfolio-shell .hero-preview-card-7 { right: 9%; top: 92px; }
  body.portfolio-shell .hero-preview-card-8 { right: 0%; top: 152px; }
  body.portfolio-shell .hero-preview-card-9 { right: -9%; top: 198px; }
  body.portfolio-shell .hero-preview-card-10 { left: -9%; top: 198px; }

  body.portfolio-shell .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 42px;
  }

  body.portfolio-shell .stat-card:nth-child(2) {
    border-right: 0;
  }

  body.portfolio-shell .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--mq-line);
  }

  body.portfolio-shell .section-heading,
  body.portfolio-shell .service-grid,
  body.portfolio-shell .project-grid,
  body.portfolio-shell .about-layout,
  body.portfolio-shell .contact-layout,
  body.portfolio-shell .form-grid {
    grid-template-columns: 1fr;
  }

  body.portfolio-shell .section-heading {
    align-items: start;
  }

  body.portfolio-shell .testimonial-shell {
    grid-template-columns: 1fr;
  }

  body.portfolio-shell .testimonial-arrow {
    display: none;
  }

  body.portfolio-shell .blog-grid {
    grid-template-columns: 1fr;
  }

  body.portfolio-shell .process-list,
  body.portfolio-shell .value-grid {
    grid-template-columns: 1fr;
  }

  body.portfolio-shell .process-item,
  body.portfolio-shell .value-card {
    border-right: 0;
    border-bottom: 1px solid var(--mq-line);
  }

  body.portfolio-shell .process-item:last-child,
  body.portfolio-shell .value-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  body.portfolio-shell .site-header {
    left: 0;
    right: 0;
  }

  body.portfolio-shell .header-shell {
    position: relative;
    width: 100%;
    padding-inline: 14px;
    padding-block: 10px;
    flex-wrap: wrap;
  }

  body.portfolio-shell .header-actions {
    display: none;
  }

  body.portfolio-shell .nav-links {
    position: static;
    order: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
  }

  body.portfolio-shell .nav-links::-webkit-scrollbar {
    display: none;
  }

  body.portfolio-shell .nav-links a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--mq-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    font-size: 0.76rem;
  }

  body.portfolio-shell,
  body.portfolio-shell main,
  body.portfolio-shell .hero,
  body.portfolio-shell .hero-stage {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.portfolio-shell .section-shell,
  body.portfolio-shell .header-shell,
  body.portfolio-shell .contact-shell,
  body.portfolio-shell .footer-shell {
    width: min(100% - 28px, 1120px);
  }

  body.portfolio-shell .hero-visual {
    height: 214px;
    min-height: 214px;
    width: calc(100vw - 28px);
  }

  body.portfolio-shell .hero-orbit-line {
    top: 28px;
    height: 150px;
  }

  body.portfolio-shell .hero-preview-card {
    width: 66px;
    border-radius: 12px;
  }

  body.portfolio-shell .hero-preview-card-1 { left: 1%; top: 102px; }
  body.portfolio-shell .hero-preview-card-2 { left: 10%; top: 62px; }
  body.portfolio-shell .hero-preview-card-3 { left: 24%; top: 26px; }
  body.portfolio-shell .hero-preview-card-4 { left: 39%; top: 10px; }
  body.portfolio-shell .hero-preview-card-5 { right: 39%; top: 10px; }
  body.portfolio-shell .hero-preview-card-6 { right: 24%; top: 26px; }
  body.portfolio-shell .hero-preview-card-7 { right: 10%; top: 62px; }
  body.portfolio-shell .hero-preview-card-8 { right: 1%; top: 102px; }

  body.portfolio-shell .hero-copy-centered .eyebrow {
    max-width: 30ch;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    line-height: 1.6;
  }

  body.portfolio-shell .hero h1 {
    max-width: 9.6ch;
    font-size: clamp(2.1rem, 8.6vw, 3rem);
  }

  body.portfolio-shell .hero-copy p {
    max-width: 31ch;
  }

  body.portfolio-shell .stats-strip {
    grid-template-columns: 1fr;
  }

  body.portfolio-shell .stat-card {
    min-height: 84px;
    border-right: 0;
    border-bottom: 1px solid var(--mq-line);
  }

  body.portfolio-shell .stat-card:last-child {
    border-bottom: 0;
  }

  body.portfolio-shell .project-info {
    grid-template-columns: 1fr;
  }

  body.portfolio-shell .case-button {
    width: 100%;
  }

  body.portfolio-shell .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.portfolio-shell .timeline-item h3,
  body.portfolio-shell .timeline-item strong,
  body.portfolio-shell .timeline-item p {
    grid-column: 1;
  }

  body.portfolio-shell .about-media {
    min-height: 360px;
  }
}

/* Motion polish: stable hero arc + softer interaction glow */
body.portfolio-shell .hero-visual {
  transform: none !important;
}

body.portfolio-shell .hero-preview-card {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r));
  animation: mqHeroCardFloat 9.6s ease-in-out infinite !important;
  animation-delay: var(--float-delay, 0s) !important;
  transition:
    filter 420ms var(--mq-ease),
    box-shadow 420ms var(--mq-ease),
    opacity 420ms var(--mq-ease) !important;
}

body.portfolio-shell .hero-preview-card:hover {
  filter: brightness(1.08) saturate(1.03);
  box-shadow:
    0 22px 64px rgba(63, 130, 255, 0.1),
    0 20px 48px rgba(0, 0, 0, 0.34);
}

body.portfolio-shell .hero-preview-card-1 { left: 2%; top: 222px; --r: -10deg; }
body.portfolio-shell .hero-preview-card-2 { left: 11%; top: 142px; --r: -8deg; }
body.portfolio-shell .hero-preview-card-3 { left: 21%; top: 78px; --r: -6deg; }
body.portfolio-shell .hero-preview-card-4 { left: 33%; top: 34px; --r: -3deg; right: auto; }
body.portfolio-shell .hero-preview-card-5 { left: 46%; top: 16px; --r: 0deg; right: auto; }
body.portfolio-shell .hero-preview-card-6 { right: 33%; top: 34px; --r: 3deg; }
body.portfolio-shell .hero-preview-card-7 { right: 21%; top: 78px; left: auto; --r: 6deg; }
body.portfolio-shell .hero-preview-card-8 { right: 11%; top: 142px; --r: 8deg; }
body.portfolio-shell .hero-preview-card-9 { right: 2%; top: 222px; --r: 10deg; }
body.portfolio-shell .hero-preview-card-10 {
  display: none;
}

body.portfolio-shell .button::before,
body.portfolio-shell .header-cta::before,
body.portfolio-shell .chip::before,
body.portfolio-shell .project-card::before,
body.portfolio-shell .service-card::before,
body.portfolio-shell .value-card::before,
body.portfolio-shell .process-item::before,
body.portfolio-shell .skill-group::before,
body.portfolio-shell .timeline-item::before,
body.portfolio-shell .blog-card::before,
body.portfolio-shell .contact-methods a::before,
body.portfolio-shell .faq-item::before {
  inset: -18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(89, 148, 255, 0.13), rgba(89, 148, 255, 0.045) 30%, transparent 68%);
  filter: blur(10px);
  transform: scale(0.96) translateY(6px);
  transition:
    opacity 520ms var(--mq-ease),
    transform 520ms var(--mq-ease),
    filter 520ms var(--mq-ease);
}

body.portfolio-shell .button:hover::before,
body.portfolio-shell .header-cta:hover::before,
body.portfolio-shell .chip:hover::before,
body.portfolio-shell .project-card:hover::before,
body.portfolio-shell .service-card:hover::before,
body.portfolio-shell .value-card:hover::before,
body.portfolio-shell .process-item:hover::before,
body.portfolio-shell .skill-group:hover::before,
body.portfolio-shell .timeline-item:hover::before,
body.portfolio-shell .blog-card:hover::before,
body.portfolio-shell .contact-methods a:hover::before,
body.portfolio-shell .faq-item:hover::before {
  opacity: 0.72;
  transform: scale(1) translateY(0);
  filter: blur(14px);
}

body.portfolio-shell .button:hover,
body.portfolio-shell .header-cta:hover,
body.portfolio-shell .chip:hover,
body.portfolio-shell .icon-button:hover,
body.portfolio-shell .project-card:hover,
body.portfolio-shell .service-card:hover,
body.portfolio-shell .value-card:hover,
body.portfolio-shell .process-item:hover,
body.portfolio-shell .skill-group:hover,
body.portfolio-shell .timeline-item:hover,
body.portfolio-shell .faq-item:hover,
body.portfolio-shell .blog-card:hover,
body.portfolio-shell .contact-methods a:hover {
  box-shadow: 0 18px 52px rgba(63, 130, 255, 0.04);
}

@keyframes mqHeroCardFloat {
  0%,
  100% {
    transform: translate3d(var(--x), var(--y), 0) rotate(var(--r));
  }
  50% {
    transform: translate3d(var(--x), calc(var(--y) - 8px), 0) rotate(var(--r));
  }
}

@media (max-width: 900px) {
  body.portfolio-shell .hero-preview-card-1 { left: 0%; top: 154px; --r: -9deg; }
  body.portfolio-shell .hero-preview-card-2 { left: 10%; top: 94px; --r: -7deg; }
  body.portfolio-shell .hero-preview-card-3 { left: 24%; top: 48px; --r: -5deg; }
  body.portfolio-shell .hero-preview-card-4 { left: 40%; top: 20px; --r: -2deg; }
  body.portfolio-shell .hero-preview-card-5 { left: auto; right: 40%; top: 20px; --r: 2deg; }
  body.portfolio-shell .hero-preview-card-6 { right: 24%; top: 48px; --r: 5deg; }
  body.portfolio-shell .hero-preview-card-7 { right: 10%; top: 94px; --r: 7deg; }
  body.portfolio-shell .hero-preview-card-8 { right: 0%; top: 154px; --r: 9deg; }
  body.portfolio-shell .hero-preview-card-9,
  body.portfolio-shell .hero-preview-card-10 {
    display: none;
  }
}

@media (max-width: 640px) {
  body.portfolio-shell .hero-preview-card {
    width: 58px;
  }

  body.portfolio-shell .hero-preview-card-1 { left: 4%; top: 112px; --r: -9deg; }
  body.portfolio-shell .hero-preview-card-2 { left: 21%; top: 76px; --r: -6deg; }
  body.portfolio-shell .hero-preview-card-3 { left: 50%; top: 54px; --x: -50%; --r: 0deg; }
  body.portfolio-shell .hero-preview-card-4 { left: auto; right: 21%; top: 76px; --r: 6deg; }
  body.portfolio-shell .hero-preview-card-5 { left: auto; right: 4%; top: 112px; --r: 9deg; }
  body.portfolio-shell .hero-preview-card-6,
  body.portfolio-shell .hero-preview-card-7,
  body.portfolio-shell .hero-preview-card-8,
  body.portfolio-shell .hero-preview-card-9,
  body.portfolio-shell .hero-preview-card-10 {
    display: none;
  }
}
