/* ============================================
   PageFlow — Inner Pages Stylesheet
   Shared styles for services, products, projects,
   terms, privacy, and other secondary pages
   ============================================ */

/* ============================================
   PAGE HEADER
   Dark hero banner for inner pages
   ============================================ */
.page-header {
  position: relative;
  padding: 10rem 0 5rem;
  background: var(--color-dark);
  overflow: hidden;
  text-align: center;
}

.page-header--compact {
  padding: 9rem 0 4rem;
}

.page-header__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.page-header__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -200px;
  right: -100px;
}

.page-header__orb--2 {
  width: 350px;
  height: 350px;
  background: var(--color-secondary);
  bottom: -150px;
  left: -100px;
}

.page-header__content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.page-header__title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.page-header__desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Nav on dark pages — always show scrolled state */
.nav--dark {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0;
}

/* Active nav link */
.nav__link--active {
  color: var(--color-white) !important;
}

.nav__link--active::after {
  width: 100% !important;
}

/* ============================================
   SERVICES PAGE — Detailed grid
   ============================================ */
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-secondary);
}
.service-card__icon--purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.service-card__icon--blue { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.service-card__icon--cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }

.services-page {
  padding: var(--space-5xl) 0;
  background: var(--color-light);
}

.services-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.service-detail-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.15);
}

.service-detail-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.service-detail-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
}

.service-detail-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.service-detail-card__list {
  list-style: none;
}

.service-detail-card__list li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.service-detail-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ============================================
   SERVICES PAGE v2 — Bento + Extended + Process
   ============================================ */

/* Core services bento grid */
.sv-core {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

.sv-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

.sv-bento__card {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.sv-bento__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  border-color: rgba(99, 102, 241, 0.2);
}

.sv-bento__card--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  padding: var(--space-3xl);
  background: var(--gradient-dark);
  border-color: rgba(255, 255, 255, 0.05);
}

.sv-bento__card--large .sv-bento__title,
.sv-bento__card--large .sv-bento__desc,
.sv-bento__card--large .sv-bento__points li {
  color: var(--color-text-on-dark);
}

.sv-bento__card--large .sv-bento__title {
  color: var(--color-white);
}

.sv-bento__card--large .sv-bento__points li::before {
  background: var(--color-accent);
}

.sv-bento__card--large:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-glow);
}

.sv-bento__card--medium {
  grid-column: 2 / 3;
}

.sv-bento__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.sv-bento__card--large .sv-bento__icon {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary-light);
}

.sv-bento__icon--purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.sv-bento__icon--cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.sv-bento__title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.sv-bento__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.sv-bento__points {
  list-style: none;
}

.sv-bento__points li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.sv-bento__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.sv-bento__badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  padding: 0.3rem 0.9rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  letter-spacing: 0.02em;
}

/* Extended services */
.sv-extended {
  padding: var(--space-5xl) 0;
  background: var(--color-light);
}

.sv-extended__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.sv-extended__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

.sv-extended__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.sv-ext-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: left;
  transition: all var(--transition-slow);
  overflow: hidden;
}

.sv-ext-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--icon-color, #6366f1);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.sv-ext-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
  border-color: color-mix(in srgb, var(--icon-color, #6366f1) 25%, transparent);
}

.sv-ext-card:hover::before {
  opacity: 1;
}

.sv-ext-card--featured {
  border-color: color-mix(in srgb, var(--icon-color, #95bf47) 30%, transparent);
  background: linear-gradient(135deg, var(--color-white) 0%, color-mix(in srgb, var(--icon-color, #95bf47) 4%, white) 100%);
}

.sv-ext-card--featured::before {
  opacity: 1;
}

.sv-ext-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: color-mix(in srgb, var(--icon-color, #95bf47) 12%, transparent);
  color: var(--icon-color, #95bf47);
}

.sv-ext-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  background: color-mix(in srgb, var(--icon-color, #6366f1) 10%, transparent);
  color: var(--icon-color, #6366f1);
  transition: transform var(--transition-base);
}

.sv-ext-card:hover .sv-ext-card__icon-wrap {
  transform: scale(1.08);
}

.sv-ext-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.sv-ext-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.sv-ext-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sv-ext-card__highlights li {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--color-light);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.sv-ext-card:hover .sv-ext-card__highlights li {
  background: color-mix(in srgb, var(--icon-color, #6366f1) 6%, transparent);
  border-color: color-mix(in srgb, var(--icon-color, #6366f1) 15%, transparent);
  color: var(--color-text);
}

/* Process section */
.sv-process {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

.sv-process__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.sv-process__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

.sv-process__steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.sv-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-light);
  transition: all var(--transition-base);
}

.sv-step:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-md);
}

.sv-step__number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.sv-step__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.sv-step__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   PRODUCTS PAGE — Showcase layout
   Alternating image + content rows
   ============================================ */
.products-page {
  padding: var(--space-5xl) 0;
  background: var(--color-light);
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  margin-bottom: var(--space-5xl);
}

.product-showcase:last-child {
  margin-bottom: 0;
}

.product-showcase--reverse {
  direction: rtl;
}

.product-showcase--reverse > * {
  direction: ltr;
}

.product-showcase__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.product-showcase__image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-showcase__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary-subtle);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-showcase__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.product-showcase__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.product-showcase__features {
  list-style: none;
  margin-bottom: var(--space-2xl);
}

.product-showcase__features li {
  position: relative;
  padding-left: var(--space-xl);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.product-showcase__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================
   PROJECTS PAGE — Grid + Filter
   ============================================ */
.projects-page {
  padding: var(--space-5xl) 0;
  background: var(--color-light);
}

.projects-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.projects-filter__btn {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.projects-filter__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.projects-filter__btn--active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.projects-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.project-card {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}

.project-card__tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--tag-color, #6366f1);
}

.project-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.project-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.projects-page__grid .project-card {
  transition: all 0.3s ease;
}

.projects-page__more {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ============================================
   LEGAL CONTENT — Terms & Privacy pages
   ============================================ */
.legal-content {
  padding: var(--space-4xl) 0 var(--space-5xl);
  background: var(--color-white);
}

.legal-content__wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content__intro {
  padding: var(--space-xl);
  background: var(--color-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  margin-bottom: var(--space-2xl);
}

.legal-content__intro p {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content__intro p:last-child {
  margin-bottom: 0;
}

.legal-content__section {
  margin-bottom: var(--space-2xl);
}

.legal-content__section h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
}

.legal-content__section h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content__section p {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content__section p a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-content__section p a:hover {
  color: var(--color-primary-dark);
}

.legal-content__section ul {
  list-style: none;
  margin: var(--space-md) 0;
}

.legal-content__section ul li {
  position: relative;
  padding-left: var(--space-xl);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.legal-content__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.legal-content__cta {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

/* ============================================
   CTA SECTION — Inner pages
   ============================================ */
.cta {
  position: relative;
  padding: var(--space-5xl) 0;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
  overflow: hidden;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.12) 0%, transparent 70%);
}

.cta__content {
  position: relative;
  max-width: 550px;
  margin: 0 auto;
}

.cta__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta__desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

/* ============================================
   PROJECTS PAGE v2 — Featured + Grid
   ============================================ */
.page-header--tall {
  padding: 11rem 0 5rem;
}

/* Featured project — large showcase card */
.pf-featured {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.pf-featured__card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  background: var(--color-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.pf-featured__image {
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.pf-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s;
}

.pf-featured__card:hover .pf-featured__image img {
  transform: scale(1.03);
}

.pf-featured__content {
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) 0;
}

.pf-featured__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text);
  margin: var(--space-md) 0;
  letter-spacing: -0.02em;
}

.pf-featured__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.pf-featured__meta {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pf-featured__meta-label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.pf-featured__meta-value {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* Grid section */
.pf-grid-section {
  padding: var(--space-4xl) 0 var(--space-5xl);
  background: var(--color-light);
}

.pf-grid-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.pf-grid-section__header .section-title {
  margin-bottom: 0;
}

/* Filter pills */
.pf-filter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.pf-filter__btn {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  cursor: pointer;
  transition: all 0.2s;
}

.pf-filter__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pf-filter__btn--active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Card grid */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.pf-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.35s;
}

.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
}

.pf-card__img {
  height: 200px;
  overflow: hidden;
  background: var(--color-light);
}

.pf-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s;
}

.pf-card:hover .pf-card__img img {
  transform: scale(1.05);
}

.pf-card__body {
  padding: var(--space-lg);
}

.pf-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-sm) 0;
}

.pf-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.pf-grid-section__more {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  font-style: italic;
}

/* ============================================
   DECORATIVE DOODLES — Floating SVG ornaments
   ============================================ */
.deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
}

.deco--sm { width: 80px; height: 80px; }
.deco--md { width: 140px; height: 140px; }
.deco--lg { width: 200px; height: 200px; }

.deco--spin {
  animation: decoSpin 30s linear infinite;
}

.deco--float {
  animation: decoFloat 8s ease-in-out infinite;
}

.deco--drift {
  animation: decoDrift 12s ease-in-out infinite;
}

@keyframes decoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes decoDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -10px) rotate(5deg); }
  66% { transform: translate(-5px, 8px) rotate(-3deg); }
}

/* Section-level relative wrapper for deco positioning */
.sv-core,
.sv-extended,
.sv-process,
.pf-featured,
.pf-grid-section,
.products-page,
.legal-content {
  position: relative;
  overflow: hidden;
}

/* ============================================
   RESPONSIVE — Inner pages
   ============================================ */
@media (max-width: 1024px) {
  .services-page__grid {
    grid-template-columns: 1fr;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .product-showcase--reverse {
    direction: ltr;
  }

  .projects-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-featured__card {
    grid-template-columns: 1fr;
  }

  .pf-featured__content {
    padding: var(--space-2xl);
  }

  .pf-featured__image {
    min-height: 280px;
  }

  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-grid-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Services v2 responsive */
  .sv-bento {
    grid-template-columns: 1fr;
  }

  .sv-bento__card--large {
    grid-column: auto;
    grid-row: auto;
  }

  .sv-extended__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 8rem 0 3rem;
  }

  .page-header--compact {
    padding: 7rem 0 2.5rem;
  }

  .page-header__title {
    font-size: var(--font-size-3xl);
  }

  .projects-page__grid {
    grid-template-columns: 1fr;
  }

  .pf-grid {
    grid-template-columns: 1fr;
  }

  .pf-featured__meta {
    flex-direction: column;
    gap: var(--space-md);
  }

  .page-header--tall {
    padding: 8rem 0 3rem;
  }

  .sv-extended__grid {
    grid-template-columns: 1fr;
  }

  .sv-ext-card {
    text-align: left;
  }

  .sv-step {
    flex-direction: column;
    gap: var(--space-md);
  }

  .product-showcase__title {
    font-size: var(--font-size-2xl);
  }
}
