@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f6f9ff;
  --cyan: #0ea5e9;
  --blue: #1d4ed8;
  --text: #0f172a;
  --muted: rgba(15,23,42,0.62);
  --border: rgba(29,78,216,0.13);
  --surf: rgba(255,255,255,0.78);
  --card-r: 20px;
}

html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: #f6f9ff;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
a, button { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px clamp(18px,4vw,64px) 96px;
  background:
    radial-gradient(circle at 82% 18%, rgba(14,165,233,0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 56%, #eef6ff 100%);
}
.page-shell::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.075) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 0;
}
.page-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.78), rgba(255,255,255,0.18)),
    radial-gradient(ellipse 60% 70% at 75% 50%, rgba(14,165,233,0.12) 0%, transparent 66%);
  pointer-events: none;
  z-index: 0;
}

.page-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.top-nav {
  position: relative;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 0 clamp(54px,7vw,92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(29,78,216,0.12);
  border-radius: 28px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 18px 48px rgba(30,64,175,0.12);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.2px;
}
.brand-mark {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(29,78,216,0.24);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(28px,5vw,46px);
}
.section-title {
  max-width: 760px;
  margin-top: 0;
  font-size: clamp(36px,6vw,68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.section-title span {
  background: linear-gradient(90deg, #0ea5e9, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 500;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s, background .3s, box-shadow .3s;
}
.btn-primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  box-shadow: 0 16px 34px rgba(29,78,216,0.24);
  font-weight: 900;
}
.btn-primary.top-start {
  min-height: 54px;
  padding: 16px 30px;
  border-radius: 17px;
  font-size: 18px;
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surf);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(30,64,175,0.08);
  font-weight: 900;
}
.btn-primary:hover,
.btn-ghost:hover { transform: translateY(-3px); }
.btn-ghost:hover {
  border-color: rgba(29,78,216,0.24);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(30,64,175,0.12);
}

.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.portfolio-crumb {
  color: rgba(15,23,42,0.56);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.back-btn {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(29,78,216,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  color: var(--text);
  padding: 11px 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.back-btn.is-visible { display: inline-flex; }

.portfolio-grid,
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.portfolio-card,
.design-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--card-r);
  background: var(--surf);
  box-shadow: 0 18px 45px rgba(30,64,175,0.1);
  cursor: pointer;
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s;
}
.portfolio-card:hover,
.design-card:hover {
  transform: translateY(-8px);
  border-color: rgba(29,78,216,0.24);
  box-shadow: 0 24px 60px rgba(30,64,175,0.16);
}
.portfolio-card::before,
.design-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.42), transparent 48%);
  pointer-events: none;
  z-index: 2;
}
.category-visual,
.design-preview,
.detail-preview {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.55), transparent 26%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.2) 0 10px, rgba(255,255,255,0.06) 10px 20px),
    linear-gradient(135deg, var(--accent-a), var(--accent-b));
}
.category-visual {
  height: 210px;
  border-bottom: 1px solid var(--border);
}
.category-visual.has-image {
  height: auto;
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.58), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(226,242,255,0.96), rgba(246,250,255,0.96));
  background-size: 190% 100%, 100% 100%;
}
.category-visual.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(15,23,42,0.08));
  pointer-events: none;
}
.category-banner {
  display: block;
  width: 100%;
  height: auto;
  background: #f7fbff;
}
.visual-browser {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  height: 142px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(29,78,216,0.13);
  box-shadow: 0 18px 35px rgba(30,64,175,0.14);
  backdrop-filter: blur(12px);
}
.visual-browser::before {
  content: '';
  position: absolute;
  top: 14px; left: 16px;
  width: 42px; height: 8px;
  border-radius: 20px;
  background: linear-gradient(90deg, #0ea5e9, #1d4ed8);
  box-shadow: 64px 0 0 rgba(29,78,216,0.12), 106px 0 0 rgba(29,78,216,0.08);
}
.visual-browser::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  height: 76px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(29,78,216,0.16) 0 32%, transparent 32%),
    linear-gradient(135deg, rgba(14,165,233,0.14), rgba(29,78,216,0.1));
  opacity: .7;
}
.portfolio-card-body,
.design-card-body { position: relative; z-index: 3; padding: 18px; }
.portfolio-card h3,
.design-card h3 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.2px;
  margin-bottom: 10px;
}
.portfolio-meta,
.design-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: rgba(15,23,42,0.48);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.explore-link,
.view-link {
  color: #1d4ed8;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.design-preview {
  height: 220px;
  border-bottom: 1px solid var(--border);
}
.design-preview::before {
  content: '';
  position: absolute;
  inset: 22px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(29,78,216,0.13);
  box-shadow: 0 22px 45px rgba(30,64,175,0.14);
}
.design-preview::after {
  content: '';
  position: absolute;
  left: 38px; right: 38px; top: 58px;
  height: 118px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(29,78,216,0.16) 0 36%, transparent 36%),
    repeating-linear-gradient(180deg, rgba(29,78,216,0.12) 0 8px, transparent 8px 18px),
    linear-gradient(135deg, rgba(14,165,233,0.14), rgba(29,78,216,0.1));
  opacity: .86;
}
.design-preview.has-image {
  height: 266px;
  min-height: 0;
  background: #ffffff;
}
.design-preview.has-image::before,
.design-preview.has-image::after {
  content: none;
  display: none;
}
.design-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  background: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 28px;
  align-items: center;
}
.detail-preview {
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(30,64,175,0.16);
}
.detail-preview::before {
  content: '';
  position: absolute;
  inset: 34px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(29,78,216,0.13);
  backdrop-filter: blur(14px);
}
.detail-preview::after {
  content: '';
  position: absolute;
  left: 66px; right: 66px; top: 94px; bottom: 74px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(29,78,216,0.16) 0 33%, transparent 33%),
    repeating-linear-gradient(180deg, rgba(29,78,216,0.12) 0 11px, transparent 11px 28px),
    linear-gradient(135deg, rgba(14,165,233,0.14), rgba(29,78,216,0.1));
  opacity: .84;
}
.detail-preview.has-image {
  height: clamp(497px, 54vw, 647px);
  min-height: 0;
  padding: 0;
  display: block;
  background: #ffffff;
  overflow: hidden;
}
.detail-preview.has-image::before,
.detail-preview.has-image::after {
  content: none;
  display: none;
}
.detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 22px;
  background: #ffffff;
  transform: none;
  margin-bottom: 0;
}

.design-card.category-kids-and-toys .design-preview.has-image {
  height: clamp(245px, 26vw, 320px);
  min-height: 0;
  display: block;
  background: #ffffff;
}

.design-card.category-kids-and-toys .design-banner {
  display: block;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
}

.detail-preview.category-kids-and-toys.has-image {
  height: auto;
  min-height: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.detail-preview.category-kids-and-toys .detail-image {
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
}
.detail-panel,
.info-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,0.8);
  padding: clamp(22px,4vw,34px);
  box-shadow: 0 18px 48px rgba(30,64,175,0.1);
  backdrop-filter: blur(14px);
}
.detail-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 100px;
  background: rgba(29,78,216,0.07);
  border: 1px solid rgba(29,78,216,0.14);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.detail-panel h1,
.info-panel h1,
.info-panel h2 {
  font-size: clamp(30px,4vw,46px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.detail-panel p,
.info-panel p {
  color: rgba(15,23,42,0.62);
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 22px;
}
.feature-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin-bottom: 26px;
}
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(15,23,42,0.72);
  font-size: 14px;
}
.feature-list li::before {
  content: '';
  flex: 0 0 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0 14px rgba(29,78,216,0.24);
}
.detail-actions,
.service-grid,
.contact-grid {
  display: grid;
  gap: 14px;
}
.detail-actions { grid-template-columns: repeat(2, minmax(0, max-content)); }
.service-grid,
.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surf);
  padding: 22px;
  box-shadow: 0 18px 45px rgba(30,64,175,0.08);
}
.portfolio-card:nth-child(2),
.design-card:nth-child(2),
.mini-card:nth-child(2) { animation-delay: .08s; }
.portfolio-card:nth-child(3),
.design-card:nth-child(3),
.mini-card:nth-child(3) { animation-delay: .16s; }
.portfolio-card:nth-child(4),
.design-card:nth-child(4),
.mini-card:nth-child(4) { animation-delay: .24s; }
.portfolio-card:nth-child(5),
.design-card:nth-child(5),
.mini-card:nth-child(5) { animation-delay: .32s; }
.portfolio-card:nth-child(6),
.design-card:nth-child(6),
.mini-card:nth-child(6) { animation-delay: .4s; }
.mini-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.mini-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.mobile-bottom-nav {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 50;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(29,78,216,0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 20px 48px rgba(30,64,175,0.18);
  backdrop-filter: blur(18px);
  --active-index: 0;
  --from-index: 0;
  --nav-gap: 7px;
}
.mobile-bottom-nav::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 0;
  width: calc((100% - 16px - (var(--nav-gap) * 3)) / 4);
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  box-shadow: 0 12px 26px rgba(29,78,216,0.24);
  transform: translateX(calc(var(--active-index) * (100% + var(--nav-gap))));
  transition: transform .42s cubic-bezier(.16,1,.3,1);
}
.mobile-bottom-nav.nav-animate::before {
  animation: navSlide .54s cubic-bezier(.16,1,.3,1) both;
}
.mobile-nav-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 54px;
  border-radius: 14px;
  color: rgba(15,23,42,0.56);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .28s ease, transform .28s cubic-bezier(.34,1.56,.64,1);
}
.mobile-nav-item svg {
  width: 18px; height: 18px;
  stroke-width: 2.2;
}
.mobile-nav-item.is-active {
  color: var(--text);
  background: rgba(29,78,216,0.08);
}
.mobile-nav-item.is-primary {
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mature navy / white theme pass */
:root {
  --bg: #f8fbff;
  --cyan: #176ee8;
  --blue: #0f3f98;
  --text: #07142d;
  --muted: rgba(7,20,45,0.64);
  --border: rgba(8,30,66,0.12);
  --surf: rgba(255,255,255,0.96);
}
body { background: #f8fbff; }
.page-shell {
  background:
    radial-gradient(circle at 78% 12%, rgba(59,130,246,0.1), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 54%, #f4f8ff 100%);
}
.page-shell::before {
  background-image:
    linear-gradient(rgba(8,30,66,0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,30,66,0.052) 1px, transparent 1px);
}
.page-shell::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.88), rgba(255,255,255,0.34)),
    radial-gradient(ellipse 58% 68% at 78% 48%, rgba(37,99,235,0.075) 0%, transparent 66%);
}
.top-nav {
  border-color: rgba(8,30,66,0.11);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 44px rgba(8,30,66,0.1);
}
.brand-mark,
.btn-primary,
.mobile-bottom-nav::before {
  background: linear-gradient(135deg, #176ee8, #0f3f98);
  box-shadow: 0 14px 30px rgba(15,63,152,0.24);
}
.section-title span,
.explore-link,
.view-link,
.portfolio-crumb {
  color: #1159c7;
}
.section-title span {
  background: linear-gradient(90deg, #176ee8, #0f3f98);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(15,63,152,0.28);
}
.btn-ghost,
.back-btn,
.portfolio-card,
.design-card,
.mini-card,
.detail-panel,
.info-panel {
  border-color: rgba(8,30,66,0.12);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 16px 38px rgba(8,30,66,0.08);
}
.portfolio-card:hover,
.design-card:hover,
.mini-card:hover {
  border-color: rgba(17,89,199,0.22);
  box-shadow: 0 24px 56px rgba(8,30,66,0.13);
}
.category-visual.has-image::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(7,20,45,0.045));
}
.mobile-bottom-nav {
  border-color: rgba(8,30,66,0.12);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 20px 44px rgba(8,30,66,0.14);
}
.mobile-nav-item {
  color: rgba(7,20,45,0.56);
}
.mobile-nav-item.is-active {
  color: #1159c7;
  background: rgba(17,89,199,0.08);
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes floatDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes imageWarmth {
  from { background-position: 190% 0, 0 0; }
  to { background-position: -190% 0, 0 0; }
}
@keyframes navSlide {
  from { transform: translateX(calc(var(--from-index) * (100% + var(--nav-gap)))); }
  to { transform: translateX(calc(var(--active-index) * (100% + var(--nav-gap)))); }
}
.mobile-nav-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  body { padding-bottom: 88px; }
  .page-shell { padding-top: 22px; }
  .mobile-bottom-nav { display: grid; }
  .top-nav {
    width: calc(100vw - 28px);
    border-radius: 22px;
  }
  .section-head,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .portfolio-grid,
  .design-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-preview { min-height: 430px; }
}

@media (max-width: 520px) {
  .top-nav {
    width: calc(100% + 12px);
    padding: 8px 8px 8px 14px;
  }
  .brand {
    gap: 10px;
    font-size: 14px;
  }
  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .btn-primary.top-start {
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 15px;
    font-size: 15px;
  }
  .design-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .category-visual { height: 124px; }
  .category-visual.has-image { height: auto; }
  .design-preview { height: 190px; }
  .portfolio-card-body { padding: 12px; }
  .portfolio-card h3 {
    min-height: 36px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.25;
  }
  .portfolio-card .portfolio-meta {
    display: grid;
    gap: 5px;
    font-size: 10px;
    letter-spacing: .35px;
  }
  .portfolio-card .explore-link {
    white-space: normal;
    line-height: 1.25;
  }
  .portfolio-card .visual-browser {
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 82px;
    border-radius: 12px;
  }
  .portfolio-card .visual-browser::before {
    top: 10px;
    left: 12px;
    width: 28px;
    height: 6px;
    box-shadow: 44px 0 0 rgba(29,78,216,0.12), 76px 0 0 rgba(29,78,216,0.08);
  }
  .portfolio-card .visual-browser::after {
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 42px;
    border-radius: 10px;
  }
  .portfolio-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-preview {
    min-height: 350px;
    border-radius: 20px;
  }
  .detail-preview::before { inset: 22px; border-radius: 18px; }
  .detail-preview::after {
    left: 42px; right: 42px; top: 72px; bottom: 52px;
  }
  .detail-actions {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-nav {
    left: 8px; right: 8px; bottom: 8px;
    border-radius: 18px;
    gap: 5px;
    --nav-gap: 5px;
  }
  .mobile-nav-item {
    height: 52px;
    font-size: 9px;
  }
}

/* Professional refinement layer */
:root {
  --bg: #fbfdff;
  --cyan: #1f6fd7;
  --blue: #123f91;
  --border: rgba(8,30,66,0.105);
  --surf: rgba(255,255,255,0.97);
  --card-r: 16px;
}
body { background: #fbfdff; }
.page-shell {
  background:
    radial-gradient(circle at 78% 12%, rgba(23,110,232,0.06), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 56%, #f7faff 100%);
}
.page-shell::before {
  opacity: .92;
  background-image:
    linear-gradient(rgba(8,30,66,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,30,66,0.035) 1px, transparent 1px);
}
.page-shell::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.46)),
    radial-gradient(ellipse 58% 68% at 78% 48%, rgba(15,63,152,0.045) 0%, transparent 66%);
}
.top-nav {
  border-radius: 20px;
  border-color: rgba(8,30,66,0.105);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 10px 28px rgba(8,30,66,0.075);
}
.brand-mark {
  border-radius: 13px;
}
.btn-primary,
.brand-mark,
.mobile-bottom-nav::before {
  background: linear-gradient(135deg, #1f6fd7, #123f91);
  box-shadow: 0 10px 22px rgba(15,63,152,0.2);
}
.btn-primary.top-start {
  border-radius: 14px;
}
.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(15,63,152,0.24);
}
.btn-ghost,
.back-btn,
.portfolio-card,
.design-card,
.mini-card,
.detail-panel,
.info-panel {
  border-color: rgba(8,30,66,0.105);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 10px 26px rgba(8,30,66,0.065);
}
.portfolio-card:hover,
.design-card:hover,
.mini-card:hover {
  border-color: rgba(18,79,168,0.2);
  box-shadow: 0 16px 36px rgba(8,30,66,0.1);
}
.category-visual.has-image::after {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(7,20,45,0.025));
}
.portfolio-crumb {
  color: rgba(7,20,45,0.58);
  letter-spacing: .35px;
}
.portfolio-meta,
.design-meta {
  color: rgba(7,20,45,0.52);
}
.section-title span {
  background: linear-gradient(90deg, #1f6fd7, #123f91);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.explore-link,
.view-link {
  color: #124fa8;
}
.mobile-bottom-nav {
  border-radius: 16px;
  border-color: rgba(8,30,66,0.105);
  background: rgba(255,255,255,0.965);
  box-shadow: 0 14px 34px rgba(8,30,66,0.12);
}
.mobile-bottom-nav::before {
  border-radius: 11px;
}
.mobile-nav-item.is-active {
  color: #124fa8;
  background: rgba(18,79,168,0.07);
}

@media (max-width: 900px) {
  .top-nav { border-radius: 18px; }
}

@media (max-width: 520px) {
  .top-nav { padding: 8px 8px 8px 12px; }
  .brand-mark { border-radius: 12px; }
  .btn-primary.top-start { border-radius: 12px; }
  .mobile-bottom-nav { border-radius: 16px; }
}

/* Subtle 3D depth */
.page-shell {
  perspective: 1200px;
}
.top-nav {
  transform: translateZ(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 12px 24px rgba(8,30,66,0.07),
    0 30px 70px rgba(18,79,168,0.06);
}
.brand-mark,
.btn-primary,
.mobile-bottom-nav::before {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.34) inset,
    0 10px 20px rgba(15,63,152,0.2),
    0 18px 36px rgba(31,111,215,0.12);
}
.portfolio-grid,
.design-grid,
.service-grid,
.contact-grid,
.detail-layout {
  perspective: 1400px;
}
.portfolio-card,
.design-card,
.mini-card,
.detail-panel,
.info-panel {
  position: relative;
  transform-style: preserve-3d;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 12px 24px rgba(8,30,66,0.06),
    0 32px 70px rgba(18,79,168,0.055);
}
.portfolio-card::before,
.design-card::before,
.mini-card::before,
.detail-panel::before,
.info-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.58), transparent 32%, rgba(18,79,168,0.045) 100%);
}
.portfolio-card > *,
.design-card > *,
.mini-card > *,
.detail-panel > *,
.info-panel > * {
  position: relative;
  z-index: 2;
}
.category-visual,
.design-preview,
.detail-preview {
  transform: translateZ(18px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.88) inset,
    0 16px 32px rgba(8,30,66,0.075);
}
.category-banner {
  filter: drop-shadow(0 12px 18px rgba(8,30,66,0.1));
}
.mobile-bottom-nav {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 16px 32px rgba(8,30,66,0.12),
    0 32px 70px rgba(18,79,168,0.08);
}

@media (hover: hover) and (pointer: fine) {
  .portfolio-card,
  .design-card,
  .mini-card {
    transition: transform .34s cubic-bezier(.2,.8,.2,1), box-shadow .34s ease, border-color .34s ease;
  }
  .portfolio-card:hover,
  .design-card:hover,
  .mini-card:hover {
    transform: translateY(-8px) rotateX(1.2deg) rotateY(-.8deg);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.96) inset,
      0 18px 34px rgba(8,30,66,0.09),
      0 44px 86px rgba(18,79,168,0.12);
  }
}

/* Premium bright SaaS theme */
:root {
  --bg: #f7fbff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --surf: rgba(255,255,255,0.78);
  --cyan: oklch(0.7 0.18 230);
  --blue: #2563eb;
  --brand: oklch(0.55 0.22 258);
  --brand-deep: oklch(0.38 0.19 262);
  --brand-glow: oklch(0.72 0.18 240);
  --brand-soft: oklch(0.96 0.04 250);
  --mint: oklch(0.72 0.17 165);
  --brand-gradient: linear-gradient(135deg, oklch(0.6 0.22 258) 0%, oklch(0.7 0.18 230) 55%, oklch(0.78 0.16 200) 100%);
}
html,
body {
  background: #f7fbff;
  color: #0f172a;
}
.page-shell {
  background:
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px),
    radial-gradient(circle at 86% 7%, oklch(0.88 0.09 238 / 0.34), transparent 30%),
    radial-gradient(circle at 8% 10%, oklch(0.9 0.07 215 / 0.22), transparent 30%),
    radial-gradient(circle at 50% 46%, oklch(0.94 0.035 240 / 0.18), transparent 36%),
    linear-gradient(180deg, #fbfdff 0%, #f7fbff 34%, #ffffff 68%, #f6f9ff 100%);
  background-size: 70px 70px, 70px 70px, auto, auto, auto, auto;
}
.page-shell::before,
.page-shell::after {
  opacity: 0;
}
.top-nav,
.mobile-bottom-nav,
.btn-ghost,
.back-btn,
.portfolio-card,
.design-card,
.mini-card,
.detail-panel,
.info-panel {
  border: 1px solid rgba(203,213,225,0.72);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(15,23,42,0.07);
}
.top-nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.88);
  border-radius: 26px;
  box-shadow: 0 22px 70px rgba(15,23,42,0.1);
}
.brand,
.section-title,
.portfolio-card h3,
.design-card h3,
.detail-title,
.info-panel h3 {
  color: #0f172a;
}
.section-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-mark,
.btn-primary,
.mobile-bottom-nav::before {
  background: var(--brand-gradient);
  box-shadow: 0 20px 60px -20px oklch(0.55 0.22 258 / 0.45);
}
.btn-primary {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-120%) skewX(-20deg);
  animation: ctaShine 2.4s ease-in-out infinite;
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 70px -20px oklch(0.55 0.22 258 / 0.55);
}
.btn-ghost,
.back-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 16px 42px rgba(15,23,42,0.06);
}
.btn-ghost:hover,
.back-btn:hover {
  border-color: oklch(0.55 0.22 258 / 0.4);
}
.portfolio-card,
.design-card,
.mini-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15,23,42,0.07);
}
.portfolio-card:hover,
.design-card:hover,
.mini-card:hover {
  border-color: oklch(0.55 0.22 258 / 0.35);
  transform: translateY(-7px);
  box-shadow: 0 26px 70px -20px oklch(0.55 0.22 258 / 0.38);
}
.explore-link,
.view-link,
.portfolio-crumb {
  color: #2563eb;
}
.portfolio-meta,
.design-meta,
.lead,
.eyebrow,
.mobile-nav-item {
  color: #64748b;
}
.mobile-bottom-nav {
  background: rgba(255,255,255,0.9);
  border-color: rgba(203,213,225,0.78);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(15,23,42,0.13);
}
.mobile-bottom-nav::before {
  border-radius: 17px;
}
.mobile-nav-item.is-active {
  color: #0f172a;
  background: oklch(0.96 0.04 250 / 0.72);
}

@keyframes ctaShine {
  0%, 42% { transform: translateX(-120%) skewX(-20deg); }
  72%, 100% { transform: translateX(220%) skewX(-20deg); }
}

@media (max-width: 520px) {
  .top-nav {
    border-radius: 24px;
  }
  .btn-primary.top-start {
    border-radius: 16px;
  }
  .mobile-bottom-nav {
    border-radius: 22px;
  }
}

/* Secondary page header alignment */
.top-nav {
  left: auto;
  translate: none;
  transform: none;
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto clamp(42px,6vw,72px);
  padding: 10px 10px 10px 14px;
  isolation: isolate;
  overflow: hidden;
}
.top-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), transparent 48%),
    radial-gradient(circle at 82% 20%, oklch(0.88 0.09 238 / 0.18), transparent 28%);
}
.brand {
  min-width: 0;
  flex: 1 1 auto;
  gap: 12px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.25px;
}
.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 17px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.34) inset,
    0 14px 28px oklch(0.55 0.22 258 / 0.26);
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.top-actions {
  flex: 0 0 auto;
  margin-left: 12px;
}
.btn-primary.top-start {
  min-height: 54px;
  padding: 16px 30px;
  border-radius: 18px;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .page-shell {
    padding-top: 14px;
  }
  .top-nav {
    top: 10px;
    width: calc(100% - 28px);
    min-height: 68px;
    margin-bottom: 34px;
    border-radius: 25px;
  }
}

@media (max-width: 520px) {
  .top-nav {
    width: calc(100% - 24px);
    padding: 8px 8px 8px 12px;
    min-height: 64px;
    border-radius: 24px;
  }
  .brand {
    gap: 10px;
    font-size: 15px;
  }
  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 15px;
  }
  .brand-mark svg {
    width: 20px;
    height: 20px;
  }
  .top-actions {
    margin-left: 8px;
  }
  .btn-primary.top-start {
    min-height: 48px;
    padding: 14px 22px;
    border-radius: 16px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 14px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .btn-primary.top-start {
    padding-inline: 18px;
  }
}

/* App-like mobile navigation transitions */
.mobile-bottom-nav {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  contain: layout paint;
}
.mobile-bottom-nav::before {
  transform: translate3d(calc((var(--active-index) * (100% + var(--nav-gap))) + var(--nav-drag, 0px)), 0, 0) !important;
  transition: transform .34s cubic-bezier(.22,1,.36,1), box-shadow .16s ease, width .16s ease;
  will-change: transform;
}
.mobile-bottom-nav.nav-dragging::before {
  transition: none !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.38) inset,
    0 18px 42px -16px oklch(0.55 0.22 258 / 0.58);
}
.mobile-bottom-nav.nav-transitioning {
  pointer-events: none;
}
.mobile-nav-item {
  transition: color .24s ease, transform .28s cubic-bezier(.22,1,.36,1), opacity .24s ease;
}
.mobile-nav-item.is-primary {
  transform: translateY(-1px) scale(1.01);
}
body.nav-leaving .page-shell {
  pointer-events: none;
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
body.nav-page-enter .page-shell {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

@keyframes navPageExit {
  to {
    opacity: .18;
    filter: blur(2px);
    transform: translateX(calc(var(--nav-direction, 1) * -18px)) scale(.992);
  }
}
@keyframes navPageEnter {
  from {
    opacity: .25;
    filter: blur(2px);
    transform: translateX(calc(var(--nav-direction, 1) * 18px)) scale(.992);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 900px) {
  html {
    scroll-behavior: auto;
  }

  .page-shell {
    background-size: 88px 88px, 88px 88px, auto, auto, auto, auto;
  }

  .top-nav,
  .mobile-bottom-nav,
  .portfolio-card,
  .category-card,
  .design-card,
  .detail-panel,
  .info-panel,
  .mini-card,
  .quick-pill,
  .service-card,
  .contact-card,
  .contact-form {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 12px 28px rgba(15,23,42,0.08) !important;
  }

  .page-shell,
  .portfolio-card,
  .category-card,
  .design-card,
  .mini-card,
  .service-card {
    animation-duration: .32s !important;
    animation-iteration-count: 1 !important;
  }

  .category-visual.has-image {
    animation: none !important;
  }

  .mobile-bottom-nav::before {
    transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .14s ease !important;
  }

  .portfolio-card:hover,
  .category-card:hover,
  .design-card:hover,
  .mini-card:hover,
  .service-card:hover {
    transform: none;
  }

  .category-banner,
  .design-preview {
    filter: none !important;
  }

  .design-preview.has-image,
  .detail-preview.has-image {
    transform: none;
  }
}

@media (max-width: 520px) {
  .design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .design-card {
    border-radius: 20px;
  }

  .design-preview {
    height: 126px !important;
  }

  .design-preview.has-image {
    height: 206px !important;
    min-height: 0;
  }

  .design-preview::before {
    inset: 16px 12px;
    border-radius: 13px;
  }

  .design-preview::after {
    left: 24px;
    right: 24px;
    top: 44px;
    bottom: 24px;
    border-radius: 10px;
  }

  .design-preview.has-image::before,
  .design-preview.has-image::after {
    content: none;
    display: none;
  }

  .detail-preview.has-image {
    height: clamp(416px, 90vw, 497px);
    min-height: 0;
    padding: 0;
  }

  .detail-image {
    border-radius: 20px;
    object-position: center 45%;
  }

  .design-card-body {
    padding: 12px;
  }

  .design-card h3 {
    min-height: 36px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -0.1px;
  }

  .design-card .design-meta {
    display: grid;
    gap: 5px;
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: .32px;
  }

  .design-card .view-link {
    white-space: normal;
    line-height: 1.25;
  }
}

@media (max-width: 360px) {
  .design-grid {
    gap: 10px;
  }

  .design-preview {
    height: 112px !important;
  }

  .design-preview.has-image {
    height: 183px !important;
  }

  .detail-preview.has-image {
    height: clamp(381px, 97vw, 439px);
  }

  .design-card-body {
    padding: 11px;
  }

  .design-card h3 {
    font-size: 13px;
  }
}

/* Solid mobile bottom navigation */
.mobile-bottom-nav {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-color: rgba(203,213,225,0.95) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 16px 36px rgba(15,23,42,0.16) !important;
}

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

/* Skip entrance animations after the first page visit in the same tab. */
html.kg-no-entry-motion .page-shell,
html.kg-no-entry-motion .top-nav,
html.kg-no-entry-motion .section-head,
html.kg-no-entry-motion .offer-intro,
html.kg-no-entry-motion .offer-step,
html.kg-no-entry-motion .offer-cta,
html.kg-no-entry-motion .portfolio-card,
html.kg-no-entry-motion .design-card,
html.kg-no-entry-motion .mini-card,
html.kg-no-entry-motion .detail-layout,
html.kg-no-entry-motion .detail-preview,
html.kg-no-entry-motion .detail-panel,
html.kg-no-entry-motion .info-panel {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Services premium offer timeline */
.services-page {
  background: #f4f9ff;
}

.services-page .page-shell {
  padding-bottom: 118px;
  background:
    radial-gradient(circle at 16% 16%, rgba(20, 184, 255, 0.2), transparent 28%),
    radial-gradient(circle at 86% 28%, rgba(124, 92, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 46%, #edf7ff 100%);
}

.services-page .page-shell::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.22)),
    radial-gradient(ellipse 68% 72% at 72% 38%, rgba(110, 104, 255, 0.1), transparent 68%),
    radial-gradient(ellipse 62% 70% at 20% 72%, rgba(14, 165, 233, 0.12), transparent 70%);
}

.services-offer-wrap {
  width: min(860px, 100%);
}

.services-offer {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
}

.services-offer::before,
.services-offer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.72;
  z-index: -1;
}

.services-offer::before {
  width: 210px;
  height: 210px;
  top: 90px;
  right: -84px;
  background: radial-gradient(circle, rgba(111, 96, 255, 0.16), transparent 70%);
}

.services-offer::after {
  width: 240px;
  height: 240px;
  left: -96px;
  bottom: 120px;
  background: radial-gradient(circle, rgba(13, 199, 236, 0.15), transparent 72%);
}

.offer-intro {
  max-width: 690px;
  margin-bottom: 22px;
}

.offer-intro .portfolio-eyebrow {
  width: max-content;
  min-height: 29px;
  margin-bottom: 14px;
  padding: 0 14px;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.76);
  color: #1777ee;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.offer-intro h1 {
  max-width: 680px;
  margin: 0;
  color: #071026;
  font-size: clamp(34px, 6.8vw, 58px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.offer-intro h1 span {
  background: linear-gradient(95deg, #0ea5ff 0%, #266dff 48%, #a43cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.offer-intro p {
  max-width: 500px;
  margin-top: 9px;
  color: #64748b;
  font-size: clamp(14px, 2.6vw, 17px);
  font-weight: 650;
  line-height: 1.42;
}

.offer-timeline {
  display: grid;
  gap: 10px;
  position: relative;
  margin-top: 20px;
}

.offer-step {
  --delay: calc(var(--i) * 1.35s);
  --step-a: #138cff;
  --step-b: #7c4dff;
  --icon-bg-a: rgba(14, 149, 255, 0.14);
  --icon-bg-b: rgba(14, 149, 255, 0.06);
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  isolation: isolate;
}

.offer-step:nth-child(1) {
  --step-a: #1196ff;
  --step-b: #176ee8;
  --icon-bg-a: rgba(17, 150, 255, 0.16);
  --icon-bg-b: rgba(17, 150, 255, 0.06);
}

.offer-step:nth-child(2) {
  --step-a: #8b5cf6;
  --step-b: #c044ff;
  --icon-bg-a: rgba(139, 92, 246, 0.16);
  --icon-bg-b: rgba(192, 68, 255, 0.07);
}

.offer-step:nth-child(3) {
  --step-a: #ff2f92;
  --step-b: #e11d8f;
  --icon-bg-a: rgba(255, 47, 146, 0.16);
  --icon-bg-b: rgba(225, 29, 143, 0.07);
}

.offer-step:nth-child(4) {
  --step-a: #ff8a1f;
  --step-b: #f97316;
  --icon-bg-a: rgba(255, 138, 31, 0.17);
  --icon-bg-b: rgba(249, 115, 22, 0.08);
}

.offer-step:nth-child(5) {
  --step-a: #18d6a4;
  --step-b: #10b981;
  --icon-bg-a: rgba(24, 214, 164, 0.18);
  --icon-bg-b: rgba(16, 185, 129, 0.08);
}

.offer-step:nth-child(6) {
  --step-a: #168bff;
  --step-b: #2563eb;
  --icon-bg-a: rgba(22, 139, 255, 0.16);
  --icon-bg-b: rgba(37, 99, 235, 0.07);
}

.offer-step:nth-child(7) {
  --step-a: #8b5cf6;
  --step-b: #7c3aed;
  --icon-bg-a: rgba(139, 92, 246, 0.17);
  --icon-bg-b: rgba(124, 58, 237, 0.07);
}

.offer-step.is-premium {
  --step-a: #ff2fb5;
  --step-b: #d946ef;
  --icon-bg-a: rgba(255, 47, 181, 0.18);
  --icon-bg-b: rgba(217, 70, 239, 0.08);
}

.offer-step:not(:last-child)::before,
.offer-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: -13px;
  width: 2px;
  border-radius: 99px;
}

.offer-step:not(:last-child)::before {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.18), rgba(124, 58, 237, 0.16));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.offer-step:not(:last-child)::after {
  display: none;
  height: 48px;
  bottom: auto;
  opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--step-a), var(--step-b), rgba(255, 255, 255, 0));
  box-shadow: 0 0 15px color-mix(in srgb, var(--step-b) 46%, transparent);
  transform-origin: top;
}

.offer-number {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.62), transparent 31%),
    linear-gradient(145deg, var(--step-a), var(--step-b));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 12px 28px color-mix(in srgb, var(--step-b) 28%, transparent);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  isolation: isolate;
  animation: offerNumberGlow 10.8s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-delay: var(--delay);
}

.offer-number::before,
.offer-number::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.offer-number::before {
  inset: -8px;
  z-index: -2;
  background: radial-gradient(circle, color-mix(in srgb, var(--step-b) 44%, transparent), transparent 68%);
  filter: blur(5px);
  opacity: 0;
  animation: offerNumberAura 10.8s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-delay: var(--delay);
}

.offer-number::after {
  inset: 1px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 48%);
  opacity: 0.56;
}

.offer-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  padding: 13px 12px 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(242, 248, 255, 0.75)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 15px 36px rgba(15, 23, 42, 0.075);
  backdrop-filter: blur(18px);
}

.offer-step.is-premium .offer-card {
  border-color: rgba(217, 70, 239, 0.26);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 47, 181, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 255, 0.82));
}

.offer-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  color: var(--step-a);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(145deg, var(--icon-bg-a), var(--icon-bg-b));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 11px 22px color-mix(in srgb, var(--step-a) 18%, transparent);
}

.offer-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.offer-copy h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 4px;
  color: #0f172a;
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: 0;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(217, 70, 239, 0.18);
  border-radius: 999px;
  color: #d11aa4;
  background: rgba(255, 239, 251, 0.92);
  box-shadow: 0 8px 18px rgba(217, 70, 239, 0.12);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.25px;
  line-height: 1;
  text-transform: uppercase;
}

.offer-copy p {
  max-width: 560px;
  color: #64748b;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 600;
  line-height: 1.35;
}

.offer-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: var(--step-a);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.96), transparent 38%),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 12px 26px rgba(15, 23, 42, 0.07);
  text-decoration: none;
  transition: transform .24s ease;
}

.offer-arrow svg,
.offer-cta-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer-arrow:hover,
.offer-cta-button:hover {
  transform: translateY(-2px);
}

.offer-cta {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 24px auto 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(20, 184, 255, 0.11), transparent 35%),
    radial-gradient(circle at 86% 18%, rgba(139, 92, 246, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.offer-cta p {
  color: #0f172a;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
}

.offer-cta-button {
  width: min(360px, 100%);
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #11c2f2 0%, #176ee8 54%, #a63df3 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34) inset,
    0 18px 38px rgba(23, 110, 232, 0.25),
    0 0 34px rgba(166, 61, 243, 0.14);
}

@keyframes offerNumberGlow {
  0% {
    filter: brightness(1) saturate(1);
    transform: translateY(0) scale(1);
  }

  4%, 8% {
    filter: brightness(1.11) saturate(1.1);
    transform: translateY(-1px) scale(1.025);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.62) inset,
      0 0 18px color-mix(in srgb, var(--step-b) 34%, transparent),
      0 13px 30px color-mix(in srgb, var(--step-b) 26%, transparent);
  }

  16%, 100% {
    filter: brightness(1);
    transform: translateY(0) scale(1);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.42) inset,
      0 12px 28px color-mix(in srgb, var(--step-b) 28%, transparent);
  }
}

@keyframes offerNumberAura {
  0%, 100% {
    opacity: 0;
    transform: scale(0.92);
  }

  4%, 8% {
    opacity: 0.58;
    transform: scale(1);
  }

  16% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes offerCardGlow {
  0%, 10% {
    border-color: color-mix(in srgb, var(--step-b) 32%, rgba(148, 163, 184, 0.2));
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.94) inset,
      0 17px 42px rgba(15, 23, 42, 0.08),
      0 0 0 1px color-mix(in srgb, var(--step-a) 9%, transparent),
      0 0 34px color-mix(in srgb, var(--step-b) 14%, transparent);
    transform: translateX(2px);
  }

  18%, 100% {
    transform: translateX(0);
  }
}

@keyframes offerArrowGlow {
  0%, 10% {
    color: #ffffff;
    border-color: transparent;
    background:
      radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.42), transparent 35%),
      linear-gradient(145deg, var(--step-a), var(--step-b));
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.44) inset,
      0 0 24px color-mix(in srgb, var(--step-b) 34%, transparent),
      0 13px 24px color-mix(in srgb, var(--step-a) 22%, transparent);
    transform: translateX(2px);
  }

  18%, 100% {
    transform: translateX(0);
  }
}

@keyframes offerIconGlow {
  0%, 10% {
    color: #ffffff;
    background:
      radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.56), transparent 35%),
      linear-gradient(145deg, var(--step-a), var(--step-b));
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.48) inset,
      0 0 25px color-mix(in srgb, var(--step-b) 38%, transparent),
      0 14px 26px color-mix(in srgb, var(--step-a) 24%, transparent);
    transform: translateY(-1px) scale(1.03);
  }

  18%, 100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes offerLinePulse {
  0% {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.14);
  }

  7% {
    opacity: 0.92;
    transform: translateY(10px) scaleY(0.82);
  }

  13% {
    opacity: 0;
    transform: translateY(46px) scaleY(0.18);
  }

  100% {
    opacity: 0;
    transform: translateY(46px) scaleY(0.18);
  }
}

@keyframes offerStepLift {
  0%, 10% {
    transform: translateY(-1px);
  }

  18%, 100% {
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .services-offer-wrap {
    width: min(920px, 100%);
  }

  .services-offer {
    max-width: 900px;
  }

  .offer-intro {
    margin-bottom: 28px;
  }

  .offer-timeline {
    gap: 12px;
  }

  .offer-step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
  }

  .offer-number {
    width: 56px;
    height: 56px;
    font-size: 16px;
  }

  .offer-step:not(:last-child)::before,
  .offer-step:not(:last-child)::after {
    left: 27px;
    top: 60px;
    bottom: -15px;
  }

  .offer-card {
    min-height: 94px;
    grid-template-columns: 52px minmax(0, 1fr) 48px;
    padding: 16px 16px 16px 18px;
    border-radius: 24px;
  }

  .offer-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .offer-icon svg {
    width: 25px;
    height: 25px;
  }

  .offer-arrow {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 520px) {
  .services-page .page-shell {
    padding-inline: 14px;
    padding-bottom: 100px;
  }

  .services-offer-wrap {
    width: 100%;
  }

  .offer-intro .portfolio-eyebrow {
    min-height: 26px;
    margin-bottom: 10px;
    padding: 0 11px;
    font-size: 9px;
  }

  .offer-intro {
    margin-bottom: 16px;
  }

  .offer-intro h1 {
    max-width: 390px;
    font-size: clamp(30px, 8.25vw, 34px);
    line-height: 1.06;
  }

  .offer-intro p {
    max-width: 360px;
    margin-top: 8px;
    font-size: clamp(13px, 3.55vw, 15px);
    line-height: 1.38;
  }

  .offer-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .offer-number {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .offer-step:not(:last-child)::before,
  .offer-step:not(:last-child)::after {
    left: 21px;
    top: 48px;
    bottom: -11px;
  }

  .offer-card {
    min-height: 76px;
    grid-template-columns: 37px minmax(0, 1fr) 34px;
    gap: 8px;
    padding: 11px 9px 11px 10px;
    border-radius: 18px;
  }

  .offer-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .offer-icon svg {
    width: 19px;
    height: 19px;
  }

  .offer-copy h2 {
    margin-bottom: 3px;
    font-size: clamp(13px, 3.75vw, 15px);
  }

  .risk-badge {
    min-height: 18px;
    padding-inline: 7px;
    font-size: 8px;
  }

  .offer-copy p {
    font-size: clamp(11.2px, 3.05vw, 12.5px);
    line-height: 1.28;
  }

  .offer-arrow {
    width: 34px;
    height: 34px;
  }

  .offer-arrow svg {
    width: 15px;
    height: 15px;
  }

  .offer-cta {
    margin-top: 20px;
    padding: 15px;
    border-radius: 20px;
  }

  .offer-cta-button {
    min-height: 54px;
    border-radius: 16px;
  }
}

@media (max-width: 370px) {
  .offer-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 7px;
  }

  .offer-number {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .offer-step:not(:last-child)::before,
  .offer-step:not(:last-child)::after {
    left: 19px;
    top: 44px;
  }

  .offer-card {
    grid-template-columns: 33px minmax(0, 1fr) 31px;
    padding: 12px 8px 12px 12px;
  }

  .offer-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .offer-icon svg {
    width: 17px;
    height: 17px;
  }

  .offer-arrow {
    width: 31px;
    height: 31px;
  }
}

/* Services timeline: keep continuous motion only on the numbered timeline dots. */
.services-page .offer-step,
.services-page .offer-card,
.services-page .offer-icon,
.services-page .offer-arrow {
  animation: none !important;
  transform: none !important;
}

.services-page .offer-step:not(:last-child)::after {
  display: none !important;
  animation: none !important;
}

.services-page .offer-number {
  animation: offerNumberGlow 10.8s cubic-bezier(.4, 0, .2, 1) infinite !important;
  animation-delay: var(--delay) !important;
}

/* Kids & Toys listing images are tall website previews; crop from the bottom only. */
.design-card.category-kids-and-toys .design-preview.has-image {
  height: clamp(245px, 26vw, 320px) !important;
  min-height: 0 !important;
  display: block !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.design-card.category-kids-and-toys .design-banner {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
}

.detail-preview.category-kids-and-toys.has-image {
  height: auto !important;
  min-height: 0 !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
}

.detail-preview.category-kids-and-toys .detail-image {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 18px !important;
}

@media (max-width: 520px) {
  .design-card.category-kids-and-toys .design-preview.has-image {
    height: clamp(220px, 46vw, 245px) !important;
  }

  .detail-preview.category-kids-and-toys.has-image {
    padding: 8px !important;
  }

  .detail-preview.category-kids-and-toys .detail-image {
    border-radius: 16px !important;
  }
}

@media (max-width: 360px) {
  .design-card.category-kids-and-toys .design-preview.has-image {
    height: clamp(205px, 54vw, 225px) !important;
  }
}

/* Women's and Men's Fashion screenshots keep the top visible and crop only from the bottom. */
.design-card.category-women-s-fashion-and-essentials .design-preview.has-image,
.design-card.category-men-s-fashion .design-preview.has-image {
  height: 285px !important;
  display: block !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.design-card.category-women-s-fashion-and-essentials .design-banner,
.design-card.category-men-s-fashion .design-banner {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
}

.detail-preview.category-women-s-fashion-and-essentials.has-image,
.detail-preview.category-men-s-fashion.has-image {
  overflow: hidden !important;
  background: #ffffff !important;
}

.detail-preview.category-women-s-fashion-and-essentials .detail-image,
.detail-preview.category-men-s-fashion .detail-image {
  object-position: top center !important;
}

@media (max-width: 520px) {
  .design-card.category-women-s-fashion-and-essentials .design-preview.has-image,
  .design-card.category-men-s-fashion .design-preview.has-image {
    height: 220px !important;
  }
}

@media (max-width: 360px) {
  .design-card.category-women-s-fashion-and-essentials .design-preview.has-image,
  .design-card.category-men-s-fashion .design-preview.has-image {
    height: 196px !important;
  }
}

/* Premium portfolio category home */
.portfolio-page .page-shell {
  background:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 6% 14%, rgba(14, 165, 233, 0.16), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.12), transparent 30%),
    linear-gradient(180deg, #edf8ff 0%, #f7fbff 42%, #eef7ff 100%);
  background-size: 138px 138px, 138px 138px, auto, auto, auto;
}

.portfolio-page .top-nav {
  width: min(1120px, calc(100% - 44px));
  min-height: 96px;
  margin: 0 auto 52px;
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.94));
  box-shadow:
    0 26px 58px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.portfolio-page .brand {
  gap: 18px;
  letter-spacing: 0;
}

.portfolio-page .brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 23px;
  background: linear-gradient(135deg, #0fd0f2 0%, #1478f2 58%, #5b4bf6 100%);
  color: #ffffff;
  box-shadow:
    0 16px 28px rgba(20, 120, 242, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.42) inset;
}

.portfolio-page .brand-copy {
  display: grid;
  gap: 8px;
  line-height: 1;
}

.portfolio-page .brand-name {
  font-size: 29px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: 0;
}

.portfolio-page .brand-tagline {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0;
  white-space: nowrap;
}

.portfolio-page .top-actions {
  gap: 14px;
}

.portfolio-page .btn-primary.top-start {
  min-height: 68px;
  padding: 0 42px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0dc7ec 0%, #1677f2 54%, #c13ff2 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow:
    0 18px 34px rgba(37, 99, 235, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.portfolio-page .menu-toggle {
  width: 60px;
  height: 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.portfolio-page .menu-toggle span {
  width: 23px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.portfolio-page .portfolio-hero {
  display: none;
}

.portfolio-page.is-portfolio-home .page-inner {
  width: min(1120px, 100%);
}

.portfolio-page.is-portfolio-home .portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 34px;
  margin: 0 auto 34px;
}

.portfolio-page.is-portfolio-home .portfolio-toolbar {
  display: none;
}

.portfolio-eyebrow {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1681e8;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.portfolio-eyebrow span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2585f8;
  box-shadow: 0 0 0 5px rgba(37, 133, 248, 0.1);
}

.portfolio-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #070b1f;
  font-size: clamp(52px, 7vw, 82px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

.portfolio-hero h1 span {
  color: #2458f5;
  background: linear-gradient(135deg, #008cff 0%, #2458f5 48%, #9c27ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-hero p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #596985;
  font-size: 21px;
  line-height: 1.45;
}

.portfolio-hero-aside {
  display: grid;
  gap: 20px;
  justify-items: end;
}

.portfolio-script-note {
  color: #1478f2;
  font-family: "Segoe Script", "Comic Sans MS", cursive;
  font-size: 30px;
  font-weight: 700;
  line-height: 0.98;
  text-align: right;
  transform: rotate(-6deg);
}

.portfolio-hero-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 88px;
  padding: 16px 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.94));
  box-shadow:
    0 22px 42px rgba(15, 23, 42, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

.portfolio-hero-card svg {
  width: 46px;
  height: 46px;
  color: #1478f2;
}

.portfolio-hero-card strong,
.portfolio-hero-card small {
  display: block;
  letter-spacing: 0;
}

.portfolio-hero-card strong {
  color: #0f172a;
  font-size: 19px;
}

.portfolio-hero-card small {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-hero-card b {
  color: #1478f2;
  font-size: 24px;
}

.portfolio-page.is-portfolio-home .portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-page.is-portfolio-home .portfolio-card {
  min-height: 454px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.93));
  box-shadow:
    0 26px 58px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.98) inset;
}

.portfolio-page.is-portfolio-home .portfolio-card:nth-child(1) { --accent-a: #ff7a18 !important; --accent-b: #ff4d00 !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(2) { --accent-a: #18a5ff !important; --accent-b: #075df0 !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(3) { --accent-a: #ff5c9d !important; --accent-b: #ec2f80 !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(4) { --accent-a: #d9932d !important; --accent-b: #9a5b09 !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(5) { --accent-a: #12cbb2 !important; --accent-b: #008b7c !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(6) { --accent-a: #8b5cf6 !important; --accent-b: #6419d8 !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(7) { --accent-a: #fbbf24 !important; --accent-b: #b7791f !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(8) { --accent-a: #f472b6 !important; --accent-b: #7c3aed !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(9) { --accent-a: #22c55e !important; --accent-b: #ea580c !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(10) { --accent-a: #fb923c !important; --accent-b: #ef4444 !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(11) { --accent-a: #38bdf8 !important; --accent-b: #0f5bd5 !important; }
.portfolio-page.is-portfolio-home .portfolio-card:nth-child(12) { --accent-a: #22d3ee !important; --accent-b: #6d28d9 !important; }

.portfolio-page.is-portfolio-home .category-visual.has-image {
  height: 270px !important;
  background: #ffffff !important;
  border-bottom: 0;
}

.portfolio-page.is-portfolio-home .category-visual.has-image::after {
  background: linear-gradient(180deg, transparent 62%, rgba(15, 23, 42, 0.08));
}

.portfolio-page.is-portfolio-home .category-banner {
  width: 100%;
  height: 100% !important;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.portfolio-page.is-portfolio-home .portfolio-card-body {
  min-height: 184px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 18px;
  padding: 24px 26px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 251, 255, 0.98));
}

.portfolio-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #ffffff;
  box-shadow:
    0 16px 28px color-mix(in srgb, var(--accent-b) 30%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.portfolio-card-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.25;
}

.portfolio-page.is-portfolio-home .portfolio-card h3 {
  min-height: 0;
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
}

.portfolio-page.is-portfolio-home .portfolio-meta {
  display: grid;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0;
}

.portfolio-page.is-portfolio-home .explore-link {
  color: var(--accent-b);
  font-size: 16px;
  text-transform: none;
}

.portfolio-card-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent-b) 22%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-b);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.portfolio-page .mobile-bottom-nav {
  background: #ffffff !important;
}

.portfolio-page .mobile-nav-item.is-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0dc7ec 0%, #1777f2 52%, #ba3ff2 100%);
  box-shadow:
    0 18px 30px rgba(37, 99, 235, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
}

@media (max-width: 900px) {
  .portfolio-page .top-nav {
    min-height: 86px;
    margin-bottom: 40px;
    border-radius: 30px;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-hero-aside {
    grid-template-columns: 1fr;
    justify-items: end;
    margin-top: -8px;
  }

  .portfolio-script-note {
    font-size: 26px;
  }

  .portfolio-hero-card {
    width: min(360px, 100%);
  }
}

@media (max-width: 520px) {
  .portfolio-page .page-shell {
    padding: 22px 16px 126px;
  }

  .portfolio-page .top-nav {
    width: calc(100% - 6px);
    min-height: 74px;
    margin-bottom: 36px;
    padding: 10px;
    border-radius: 27px;
  }

  .portfolio-page .brand {
    gap: 12px;
    min-width: 0;
  }

  .portfolio-page .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .portfolio-page .brand-name {
    font-size: 20px;
  }

  .portfolio-page .brand-tagline {
    font-size: 7px;
  }

  .portfolio-page .btn-primary.top-start {
    min-height: 56px;
    padding: 0 24px;
    border-radius: 19px;
    font-size: 19px;
  }

  .portfolio-page .menu-toggle {
    width: 48px;
    height: 48px;
    gap: 5px;
  }

  .portfolio-page .menu-toggle span {
    width: 19px;
    height: 2px;
  }

  .portfolio-eyebrow {
    min-height: 31px;
    margin-bottom: 18px;
    padding: 0 15px;
    font-size: 11px;
  }

  .portfolio-eyebrow span {
    width: 9px;
    height: 9px;
  }

  .portfolio-hero h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .portfolio-hero p {
    margin-top: 16px;
    font-size: 17px;
  }

  .portfolio-script-note {
    font-size: 21px;
  }

  .portfolio-hero-card {
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    min-height: 74px;
    width: min(290px, 100%);
    padding: 13px 15px;
    border-radius: 20px;
  }

  .portfolio-hero-card svg {
    width: 38px;
    height: 38px;
  }

  .portfolio-hero-card strong {
    font-size: 15px;
  }

  .portfolio-hero-card small {
    margin-top: 4px;
    font-size: 9px;
  }

  .portfolio-page.is-portfolio-home .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card {
    min-height: 0;
    border-radius: 25px;
  }

  .portfolio-page.is-portfolio-home .category-visual.has-image {
    height: 158px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-body {
    min-height: 132px;
    grid-template-columns: 46px minmax(0, 1fr) 36px;
    gap: 8px;
    padding: 13px;
  }

  .portfolio-card-icon {
    width: 44px;
    height: 44px;
    border-width: 3px;
    border-radius: 16px;
  }

  .portfolio-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card h3 {
    margin-bottom: 7px;
    font-size: 16px;
    line-height: 1.16;
  }

  .portfolio-page.is-portfolio-home .portfolio-meta {
    gap: 5px;
    font-size: 10px;
  }

  .portfolio-page.is-portfolio-home .explore-link {
    font-size: 12px;
  }

  .portfolio-card-arrow {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .portfolio-page .brand-tagline {
    display: none;
  }

  .portfolio-page .btn-primary.top-start {
    padding: 0 18px;
    font-size: 17px;
  }

  .portfolio-page .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .portfolio-page.is-portfolio-home .portfolio-grid {
    gap: 12px;
  }

  .portfolio-page.is-portfolio-home .category-visual.has-image {
    height: 142px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-body {
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    padding: 12px;
  }

  .portfolio-card-icon {
    width: 39px;
    height: 39px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card h3 {
    font-size: 15px;
  }

  .portfolio-page.is-portfolio-home .portfolio-meta {
    font-size: 9px;
  }

  .portfolio-page.is-portfolio-home .explore-link {
    font-size: 11px;
  }

  .portfolio-card-arrow {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}

/* Minimal portfolio hero section */
.portfolio-page.is-portfolio-home .portfolio-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto 30px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 252, 255, 0.52)),
    radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.08), transparent 34%);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.portfolio-page.is-portfolio-home .portfolio-eyebrow {
  min-height: 30px;
  gap: 9px;
  margin-bottom: 14px;
  padding: 0 14px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  box-shadow: none;
}

.portfolio-page.is-portfolio-home .portfolio-eyebrow span {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 4px rgba(37, 133, 248, 0.08);
}

.portfolio-page.is-portfolio-home .portfolio-hero h1 {
  max-width: 640px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
}

.portfolio-page.is-portfolio-home .portfolio-hero p {
  max-width: 540px;
  margin-top: 12px;
  color: #66758f;
  font-size: 17px;
}

.portfolio-page.is-portfolio-home .portfolio-script-note {
  display: none !important;
}

.portfolio-page.is-portfolio-home .portfolio-hero-aside {
  gap: 0;
  justify-items: end;
}

.portfolio-page.is-portfolio-home .portfolio-hero-card {
  width: 304px;
  min-height: 68px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 16px;
  border-color: rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.portfolio-page.is-portfolio-home .portfolio-hero-card svg {
  width: 34px;
  height: 34px;
  color: #1d7ff2;
}

.portfolio-page.is-portfolio-home .portfolio-hero-card strong {
  font-size: 16px;
}

.portfolio-page.is-portfolio-home .portfolio-hero-card small {
  margin-top: 3px;
  font-size: 10px;
}

.portfolio-page.is-portfolio-home .portfolio-hero-card b {
  font-size: 18px;
}

@media (max-width: 900px) {
  .portfolio-page.is-portfolio-home .portfolio-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero-aside {
    justify-items: start;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero-card {
    width: min(304px, 100%);
  }
}

@media (max-width: 520px) {
  .portfolio-page.is-portfolio-home .portfolio-hero {
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 22px;
  }

  .portfolio-page.is-portfolio-home .portfolio-eyebrow {
    min-height: 27px;
    margin-bottom: 12px;
    padding: 0 12px;
    font-size: 10px;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .portfolio-page.is-portfolio-home .portfolio-hero p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.42;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero-card {
    min-height: 58px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 17px;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero-card svg {
    width: 28px;
    height: 28px;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero-card strong {
    font-size: 14px;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero-card small {
    font-size: 8px;
  }
}

/* Final portfolio home polish: subtle hero and consistent card captions */
.portfolio-page.is-portfolio-home .portfolio-hero {
  display: block;
  margin: 0 auto 24px;
  padding: 18px 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(248, 252, 255, 0.44)),
    radial-gradient(circle at 8% 0%, rgba(37, 133, 248, 0.055), transparent 36%);
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.portfolio-page.is-portfolio-home .portfolio-hero-aside,
.portfolio-page.is-portfolio-home .portfolio-hero-card,
.portfolio-page.is-portfolio-home .portfolio-script-note {
  display: none !important;
}

.portfolio-page.is-portfolio-home .portfolio-eyebrow {
  min-height: 28px;
  gap: 8px;
  margin-bottom: 11px;
  padding: 0 12px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #1d75e8;
  font-size: 10px;
  box-shadow: none;
}

.portfolio-page.is-portfolio-home .portfolio-eyebrow span {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px rgba(37, 133, 248, 0.08);
}

.portfolio-page.is-portfolio-home .portfolio-hero h1 {
  max-width: 560px;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.05;
}

.portfolio-page.is-portfolio-home .portfolio-hero p {
  max-width: 520px;
  margin-top: 9px;
  color: #66758f;
  font-size: 15px;
  line-height: 1.45;
}

.portfolio-page.is-portfolio-home .portfolio-card {
  border-radius: 26px;
}

.portfolio-page.is-portfolio-home .category-visual.has-image {
  height: auto !important;
  aspect-ratio: 1.52 / 1;
  background: #ffffff !important;
}

.portfolio-page.is-portfolio-home .category-banner {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.portfolio-page.is-portfolio-home .portfolio-card-body {
  min-height: 130px;
  grid-template-columns: 58px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  padding: 17px 18px 18px;
}

.portfolio-page.is-portfolio-home .portfolio-card-icon {
  width: 52px;
  height: 52px;
  border-width: 4px;
  border-radius: 18px;
  flex-shrink: 0;
}

.portfolio-page.is-portfolio-home .portfolio-card-icon svg {
  width: 25px;
  height: 25px;
}

.portfolio-page.is-portfolio-home .portfolio-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.12;
}

.portfolio-page.is-portfolio-home .portfolio-meta {
  gap: 5px;
  color: #738198;
  font-size: 11px;
}

.portfolio-page.is-portfolio-home .explore-link {
  color: var(--accent-b);
  font-size: 13px;
  font-weight: 900;
}

.portfolio-page.is-portfolio-home .portfolio-card-arrow {
  width: 38px;
  height: 38px;
  border-color: color-mix(in srgb, var(--accent-b) 18%, rgba(148, 163, 184, 0.16));
  color: var(--accent-b);
  font-size: 18px;
}

@media (max-width: 520px) {
  .portfolio-page.is-portfolio-home .portfolio-hero {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 20px;
  }

  .portfolio-page.is-portfolio-home .portfolio-eyebrow {
    min-height: 24px;
    margin-bottom: 9px;
    padding: 0 10px;
    font-size: 9px;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero h1 {
    max-width: 310px;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.04;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero p {
    max-width: 330px;
    margin-top: 8px;
    font-size: 13px;
  }

  .portfolio-page.is-portfolio-home .category-visual.has-image {
    aspect-ratio: 1.46 / 1;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-body {
    min-height: 88px;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    gap: 8px;
    padding: 10px 9px 12px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon {
    width: 34px;
    height: 34px;
    border-width: 3px;
    border-radius: 12px;
    box-shadow:
      0 10px 20px color-mix(in srgb, var(--accent-b) 24%, transparent),
      0 1px 0 rgba(255, 255, 255, 0.5) inset;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon svg {
    width: 17px;
    height: 17px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card h3 {
    margin-bottom: 4px;
    font-size: 12.5px;
    line-height: 1.12;
  }

  .portfolio-page.is-portfolio-home .portfolio-meta {
    gap: 3px;
    font-size: 8.5px;
    line-height: 1.15;
  }

  .portfolio-page.is-portfolio-home .explore-link {
    font-size: 9.5px;
    line-height: 1.15;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow {
    width: 27px;
    height: 27px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .portfolio-page.is-portfolio-home .portfolio-card-body {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 6px;
    padding: 9px 8px 10px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon {
    width: 31px;
    height: 31px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card h3 {
    font-size: 11.5px;
  }

  .portfolio-page.is-portfolio-home .explore-link {
    font-size: 9px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow {
    width: 25px;
    height: 25px;
  }
}

/* Home-style global header and portfolio title refinement */
.top-nav,
.portfolio-page .top-nav {
  width: min(1060px, calc(100% - 40px)) !important;
  min-height: 64px !important;
  margin: 18px auto 44px !important;
  padding: 8px 9px 8px 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.92)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 -8px 24px rgba(255, 255, 255, 0.7) inset,
    0 12px 28px rgba(15, 23, 42, 0.06),
    0 24px 54px rgba(29, 78, 216, 0.07) !important;
  backdrop-filter: none !important;
}

.brand,
.portfolio-page .brand {
  gap: 11px !important;
  color: #0f172a;
  font-size: 17px !important;
  letter-spacing: 0 !important;
}

.brand-mark,
.portfolio-page .brand-mark {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #10c4f7 0%, #176ee8 78%, #4f46e5 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.36) inset,
    0 10px 20px rgba(23, 110, 232, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset !important;
}

.brand-copy,
.portfolio-page .brand-copy {
  display: grid;
  gap: 5px;
  line-height: 1;
}

.brand-name,
.portfolio-page .brand-name {
  color: #0f172a;
  font-size: 17px !important;
  font-weight: 950;
  letter-spacing: 0 !important;
}

.brand-tagline,
.portfolio-page .brand-tagline {
  color: rgba(71, 85, 105, 0.74);
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-primary.top-start,
.portfolio-page .btn-primary.top-start {
  min-height: 46px !important;
  padding: 0 22px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #10bdf2 0%, #176ee8 66%, #5b57f4 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 950;
  letter-spacing: 0 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34) inset,
    0 12px 24px rgba(23, 110, 232, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset !important;
}

.btn-primary.top-start svg,
.portfolio-page .btn-primary.top-start svg {
  width: 15px;
  height: 15px;
}

.menu-toggle,
.portfolio-page .menu-toggle {
  display: none !important;
}

.portfolio-page.is-portfolio-home .portfolio-hero {
  display: block;
  margin: 0 auto 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-page.is-portfolio-home .portfolio-eyebrow {
  min-height: 30px;
  gap: 9px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: #1777ee;
  font-size: 11px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
}

.portfolio-page.is-portfolio-home .portfolio-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

.portfolio-page.is-portfolio-home .portfolio-hero p {
  max-width: 620px;
  margin-top: 8px;
  color: #66758f;
  font-size: 17px;
  line-height: 1.45;
}

.portfolio-page.is-portfolio-home .category-visual.has-image {
  aspect-ratio: 4 / 3;
}

.portfolio-page.is-portfolio-home .category-banner {
  object-fit: cover !important;
  object-position: center top !important;
}

.portfolio-page.is-portfolio-home .explore-link {
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .top-nav,
  .portfolio-page .top-nav {
    width: calc(100% - 28px) !important;
    min-height: 60px !important;
    margin-top: 10px !important;
    padding: 7px 8px 7px 11px !important;
    border-radius: 20px !important;
  }

  .brand,
  .portfolio-page .brand {
    font-size: 16px !important;
  }

  .brand-mark,
  .portfolio-page .brand-mark {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    border-radius: 13px !important;
  }

  .btn-primary.top-start,
  .portfolio-page .btn-primary.top-start {
    min-height: 42px !important;
    padding-inline: 19px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 520px) {
  .top-nav,
  .portfolio-page .top-nav {
    margin-bottom: 28px !important;
  }

  .brand-tagline,
  .portfolio-page .brand-tagline {
    font-size: 8px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero {
    margin-bottom: 18px;
  }

  .portfolio-page.is-portfolio-home .portfolio-eyebrow {
    min-height: 25px;
    margin-bottom: 9px;
    padding: 0 11px;
    font-size: 9px;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero h1 {
    max-width: 380px;
    font-size: clamp(35px, 10.8vw, 46px);
    line-height: 1.02;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero p {
    margin-top: 7px;
    font-size: 14px;
  }

  .portfolio-page.is-portfolio-home .category-visual.has-image {
    aspect-ratio: 4 / 3;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-body {
    min-height: 94px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card h3 {
    font-size: 12px;
  }

  .portfolio-page.is-portfolio-home .explore-link {
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .brand-tagline,
  .portfolio-page .brand-tagline {
    display: none;
  }
}

/* Portfolio category final polish */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 4px;
  pointer-events: none;
  background: rgba(226, 242, 255, 0.56);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #10c4f7 0%, #176ee8 50%, #9c27ef 100%);
  box-shadow: 0 0 16px rgba(23, 110, 232, 0.42);
}

.portfolio-page.is-portfolio-home .portfolio-hero {
  width: 100%;
}

.portfolio-page.is-portfolio-home .portfolio-hero h1 {
  max-width: none !important;
  white-space: nowrap;
  font-size: clamp(34px, 7.9vw, 58px) !important;
  line-height: 1.02;
}

.portfolio-page.is-portfolio-home .portfolio-grid {
  align-items: stretch;
}

.portfolio-page.is-portfolio-home .portfolio-card {
  position: relative;
  border: 1.5px solid color-mix(in srgb, var(--accent-b) 34%, rgba(255, 255, 255, 0.9)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 34px rgba(15, 23, 42, 0.075),
    0 22px 54px color-mix(in srgb, var(--accent-b) 14%, transparent) !important;
}

.portfolio-page.is-portfolio-home .portfolio-card:hover {
  border-color: color-mix(in srgb, var(--accent-b) 52%, rgba(255, 255, 255, 0.65)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 42px rgba(15, 23, 42, 0.09),
    0 28px 64px color-mix(in srgb, var(--accent-b) 19%, transparent) !important;
}

.portfolio-page.is-portfolio-home .category-visual.has-image {
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at 24% 18%, color-mix(in srgb, var(--accent-a) 15%, transparent), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.portfolio-page.is-portfolio-home .category-banner {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
}

.portfolio-page.is-portfolio-home .portfolio-card-body {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.portfolio-page.is-portfolio-home .portfolio-card-icon {
  position: relative;
  isolation: isolate;
  transform-style: preserve-3d;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(145deg, var(--accent-a) 0%, var(--accent-b) 100%) !important;
  border-color: rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.48) inset,
    0 11px 22px color-mix(in srgb, var(--accent-b) 35%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset !important;
  animation: portfolioIconFloat 5.2s ease-in-out infinite;
}

.portfolio-page.is-portfolio-home .portfolio-card-icon::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  right: 9px;
  height: 30%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  filter: blur(1px);
  opacity: 0.72;
  transform: translateZ(10px);
}

.portfolio-page.is-portfolio-home .portfolio-card-icon svg {
  position: relative;
  z-index: 1;
  stroke-width: 2.35;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.2));
  transform: translateZ(14px);
}

.portfolio-page.is-portfolio-home .portfolio-card:nth-child(2n) .portfolio-card-icon {
  animation-delay: -1.1s;
}

.portfolio-page.is-portfolio-home .portfolio-card:nth-child(3n) .portfolio-card-icon {
  animation-delay: -2.2s;
}

.portfolio-page.is-portfolio-home .explore-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  white-space: nowrap !important;
}

.portfolio-page.is-portfolio-home .explore-link svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  stroke-width: 2.8;
}

.portfolio-page.is-portfolio-home .portfolio-card-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent-b);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 20px color-mix(in srgb, var(--accent-b) 12%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent-b) 22%, rgba(148, 163, 184, 0.12)) inset !important;
}

.portfolio-page.is-portfolio-home .portfolio-card-arrow svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.8;
}

@keyframes portfolioIconFloat {
  0%,
  100% {
    transform: perspective(560px) rotateX(0deg) rotateY(0deg) translateY(0);
  }
  50% {
    transform: perspective(560px) rotateX(7deg) rotateY(-8deg) translateY(-3px);
  }
}

@media (max-width: 520px) {
  .scroll-progress {
    height: 3px;
  }

  .portfolio-page.is-portfolio-home .portfolio-hero h1 {
    font-size: clamp(27px, 8.1vw, 35px) !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-body {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon::before {
    top: 5px;
    left: 7px;
    right: 7px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon svg {
    width: 17px;
    height: 17px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow {
    width: 28px !important;
    height: 28px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 380px) {
  .portfolio-page.is-portfolio-home .portfolio-hero h1 {
    font-size: clamp(25px, 7.7vw, 30px) !important;
  }

  .portfolio-page.is-portfolio-home .explore-link svg {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow {
    width: 25px !important;
    height: 25px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-page.is-portfolio-home .portfolio-card-icon {
    animation: none !important;
  }
}

/* Extend the premium category treatment across every card */
.portfolio-page.is-portfolio-home .portfolio-card {
  background:
    radial-gradient(circle at 18% 72%, color-mix(in srgb, var(--accent-a) 10%, transparent), transparent 38%),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--accent-b) 9%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.95)) !important;
}

.portfolio-page.is-portfolio-home .portfolio-card-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--accent-a) 5%, #ffffff 95%)),
    radial-gradient(circle at 14% 48%, color-mix(in srgb, var(--accent-a) 9%, transparent), transparent 34%) !important;
}

.portfolio-page.is-portfolio-home .category-visual.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-a) 13%, transparent), transparent 42%),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent-b) 12%, transparent), transparent 40%);
  opacity: 0.84;
}

.portfolio-page.is-portfolio-home .category-banner {
  position: relative;
  z-index: 1;
}

.portfolio-page.is-portfolio-home .category-visual.has-image::after {
  z-index: 2;
}

.portfolio-page.is-portfolio-home .portfolio-card-icon {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.62), transparent 25%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent-a) 96%, #ffffff 4%) 0%, var(--accent-b) 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.58) inset,
    0 13px 25px color-mix(in srgb, var(--accent-b) 36%, transparent),
    0 5px 13px color-mix(in srgb, var(--accent-a) 22%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset !important;
}

.portfolio-page.is-portfolio-home .portfolio-card-icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-page.is-portfolio-home .portfolio-card-arrow {
  border-color: color-mix(in srgb, var(--accent-b) 28%, rgba(255, 255, 255, 0.7)) !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.96), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--accent-a) 7%, #ffffff 93%)) !important;
}

/* Category card copy: keep paired names together and remove secondary CTA text */
.portfolio-page.is-portfolio-home .portfolio-card-copy {
  min-width: 0;
}

.portfolio-page.is-portfolio-home .portfolio-card h3 {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}

.portfolio-page.is-portfolio-home .portfolio-meta {
  gap: 0 !important;
}

.portfolio-page.is-portfolio-home .explore-link {
  display: none !important;
}

@media (max-width: 520px) {
  .portfolio-page.is-portfolio-home .portfolio-card-body {
    position: relative;
    min-height: 60px !important;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
    padding: 8px 39px 9px 9px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon {
    width: 30px;
    height: 30px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card h3 {
    max-width: 100%;
    margin-bottom: 3px;
    font-size: clamp(10.8px, 2.95vw, 12.5px) !important;
    line-height: 1.06;
  }

  .portfolio-page.is-portfolio-home .portfolio-meta {
    font-size: 8px;
    line-height: 1;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 26px !important;
    height: 26px !important;
    transform: translateY(-50%);
  }
}

@media (max-width: 380px) {
  .portfolio-page.is-portfolio-home .portfolio-card-body {
    min-height: 56px !important;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 6px;
    padding: 7px 34px 8px 8px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon {
    width: 28px;
    height: 28px;
  }

  .portfolio-page.is-portfolio-home .portfolio-card h3 {
    font-size: clamp(10.3px, 2.95vw, 11.4px) !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow {
    right: 7px;
    width: 24px !important;
    height: 24px !important;
  }
}

/* Portfolio home responsive grid: laptop 4 columns, tablet 3 columns */
@media (min-width: 1024px) {
  .portfolio-page.is-portfolio-home .page-inner {
    width: min(1180px, calc(100% - 44px)) !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card {
    min-height: 0 !important;
    border-radius: 24px !important;
  }

  .portfolio-page.is-portfolio-home .category-visual.has-image {
    aspect-ratio: 1.38 / 1 !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-body {
    min-height: 104px !important;
    grid-template-columns: 42px minmax(0, 1fr) 34px !important;
    gap: 10px !important;
    padding: 14px 14px 16px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon {
    width: 40px !important;
    height: 40px !important;
    border-width: 3px !important;
    border-radius: 14px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card h3 {
    margin-bottom: 5px !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-meta {
    font-size: 9px !important;
    letter-spacing: 0.45px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow {
    width: 32px !important;
    height: 32px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow svg {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .portfolio-page.is-portfolio-home .page-inner {
    width: min(920px, calc(100% - 36px)) !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card {
    min-height: 0 !important;
    border-radius: 23px !important;
  }

  .portfolio-page.is-portfolio-home .category-visual.has-image {
    aspect-ratio: 1.36 / 1 !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-body {
    min-height: 98px !important;
    grid-template-columns: 39px minmax(0, 1fr) 31px !important;
    gap: 9px !important;
    padding: 13px 12px 15px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon {
    width: 37px !important;
    height: 37px !important;
    border-width: 3px !important;
    border-radius: 13px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card h3 {
    margin-bottom: 5px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-meta {
    font-size: 8.5px !important;
    letter-spacing: 0.42px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow {
    width: 30px !important;
    height: 30px !important;
  }

  .portfolio-page.is-portfolio-home .portfolio-card-arrow svg {
    width: 13px !important;
    height: 13px !important;
  }
}

/* Global mobile bottom navigation lock */
.mobile-bottom-nav {
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  z-index: 80 !important;
  display: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
  --nav-gap: 5px !important;
  padding: 7px !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 36px rgba(15, 23, 42, 0.16) !important;
  contain: layout paint;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-bottom-nav::before {
  content: "" !important;
  position: absolute !important;
  top: 7px !important;
  bottom: 7px !important;
  left: 7px !important;
  z-index: 0 !important;
  width: calc((100% - 14px - (var(--nav-gap) * 3)) / 4) !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #14c8ff 0%, #176ee8 52%, #6d5dfc 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 14px 34px rgba(23, 110, 232, 0.26),
    0 0 34px rgba(20, 200, 255, 0.18) !important;
  transform: translate3d(calc((var(--active-index) * (100% + var(--nav-gap))) + var(--nav-drag, 0px)), 0, 0) !important;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .12s ease, width .12s ease !important;
  will-change: transform;
}

.mobile-bottom-nav.nav-animate::before {
  animation: none !important;
}

.mobile-nav-item {
  min-width: 0 !important;
  height: 52px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  border-radius: 13px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(15, 23, 42, 0.56) !important;
  text-decoration: none !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  transition: color .16s ease, transform .18s cubic-bezier(.22, 1, .36, 1), opacity .16s ease !important;
}

.mobile-nav-item svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav-label {
  white-space: nowrap;
}

.mobile-nav-item.is-active {
  color: #0f172a !important;
  background: transparent !important;
}

.mobile-nav-item.is-primary {
  color: #ffffff !important;
  background: transparent !important;
  transform: translateY(-1px) scale(1.01) !important;
}

@media (max-width: 900px) {
  .mobile-bottom-nav {
    display: grid !important;
  }
}

@media (max-width: 380px) {
  .mobile-bottom-nav {
    left: 6px !important;
    right: 6px !important;
    bottom: 7px !important;
    gap: 4px !important;
    --nav-gap: 4px !important;
    padding: 6px !important;
    border-radius: 16px !important;
  }

  .mobile-bottom-nav::before {
    top: 6px !important;
    bottom: 6px !important;
    left: 6px !important;
    width: calc((100% - 12px - (var(--nav-gap) * 3)) / 4) !important;
    border-radius: 11px !important;
  }

  .mobile-nav-item {
    height: 50px !important;
    border-radius: 12px !important;
    font-size: 9px !important;
  }

  .mobile-nav-item svg {
    width: 17px !important;
    height: 17px !important;
  }
}
