/**
 * OriginX Digital (OXD) - Multi-Page Architecture Styles (pages.css)
 * Natural vertical scrolling layout system for:
 * - HOME (/)
 * - SERVICES (/services)
 * - PRODUCTS (/products)
 * - CONTACT (/contact)
 * Incorporates design tokens, layout shells, expanding product showcase,
 * kinetic client marquee, and smart enquiry form.
 */

/* ==========================================================================
   1. Master Page Container & Section Layout Primitives
   ========================================================================== */
#page-content {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  padding-top: var(--nav-height);
  overflow-x: hidden;
}

.site-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
  position: relative;
}

.page-section {
  position: relative;
  padding: clamp(56px, 9vh, 120px) 0;
  width: 100%;
}

.page-section-tight {
  padding: clamp(40px, 6vh, 80px) 0;
}

/* Section Header Shared Patterns */
.section-header-block {
  margin-bottom: clamp(28px, 4.5vh, 48px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 780px;
}

.section-title {
  font-size: var(--text-h1);
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--tracking-tighter);
  color: var(--oxd-cream-pure);
  text-transform: uppercase;
  line-height: var(--leading-tight);
}

.section-subtitle {
  font-size: var(--text-lead);
  color: var(--oxd-muted);
  line-height: var(--leading-snug);
  max-width: 58ch;
}

/* ==========================================================================
   2. HOME PAGE (/)
   ========================================================================== */
/* 2.1 Hero Section */
.home-hero-section {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vh, 64px) 0;
  position: relative;
}

.home-hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  width: 100%;
}

.home-hero-left {
  flex: 1 1 56%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 28px);
  z-index: 2;
}

.home-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.home-headline {
  font-size: clamp(2.35rem, 5.2vw, 5.2rem);
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--tracking-tighter);
  line-height: 1.04;
  color: var(--oxd-cream-pure);
  text-transform: uppercase;
}

.headline-line {
  display: block;
  overflow: hidden;
}

.headline-reveal {
  display: block;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.home-headline .accent-gold {
  color: var(--oxd-gold);
}

.home-statement {
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--oxd-muted);
  max-width: 56ch;
}

.home-hero-right {
  flex: 1 1 44%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-brand-stage {
  position: relative;
  width: clamp(260px, 32vw, 480px);
  height: clamp(260px, 32vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  will-change: transform;
}

.hero-brand-aura {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.22) 0%, rgba(37, 99, 235, 0.16) 45%, transparent 72%);
  filter: blur(48px);
  pointer-events: none;
  animation: heroAuraPulse 10s ease-in-out infinite alternate;
}

@keyframes heroAuraPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1; }
}

.hero-brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(201, 168, 76, 0.28));
  border-radius: 12px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 2.2 Services Preview Section (Home) */
.home-services-preview-section {
  position: relative;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-bottom: clamp(32px, 5vh, 48px);
}

.service-preview-card {
  position: relative;
  background: linear-gradient(160deg, rgba(6, 17, 38, 0.7) 0%, rgba(2, 9, 18, 0.85) 100%);
  border: 1px solid var(--oxd-line-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: transform var(--duration-fast) var(--ease-cinematic),
              border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.service-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--oxd-line-active);
  box-shadow: 0 16px 40px -12px rgba(201, 168, 76, 0.18);
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-card-tag {
  font-family: var(--font-mono);
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-wider);
  color: var(--oxd-gold);
}

.preview-card-title {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: var(--font-weight-bold);
  color: var(--oxd-cream-pure);
  letter-spacing: var(--tracking-tight);
}

.preview-card-desc {
  font-size: var(--text-body);
  color: var(--oxd-muted);
  line-height: var(--leading-normal);
}

/* 2.4 Products Preview Section (Home) */
.home-products-preview-section {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 17, 38, 0.4) 50%, transparent 100%);
}

.products-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-bottom: clamp(32px, 5vh, 48px);
}

.product-preview-card {
  position: relative;
  background: linear-gradient(150deg, rgba(6, 17, 38, 0.85) 0%, rgba(2, 9, 18, 0.95) 100%);
  border: 1px solid var(--oxd-line-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-cinematic),
              border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.product-preview-card.card-rekafy {
  border-left: 2px solid var(--oxd-gold);
}

.product-preview-card.card-atmano {
  border-left: 2px solid var(--oxd-blue);
}

.product-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--oxd-line-active);
  box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.16);
}

.product-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-preview-name {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--tracking-tight);
  color: var(--oxd-cream-pure);
}

.product-preview-desc {
  font-size: var(--text-body);
  color: var(--oxd-muted);
  line-height: var(--leading-normal);
}

.product-preview-visual-hint {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.product-preview-visual-hint::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 2px;
}

.card-rekafy .product-preview-visual-hint::after {
  background: linear-gradient(90deg, var(--oxd-gold), transparent);
}

.card-atmano .product-preview-visual-hint::after {
  background: linear-gradient(90deg, var(--oxd-blue), transparent);
}

/* 2.4 Clients Section (Home Kinetic Marquee) */
.home-clients-section {
  position: relative;
  overflow: hidden;
}

.clients-kinetic-container {
  position: relative;
  width: 100%;
  margin-top: clamp(24px, 3.5vh, 44px);
  padding: clamp(12px, 2vh, 24px) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vh, 28px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-kinetic-lane {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.clients-lane-track {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 40px);
  width: max-content;
  will-change: transform;
}

/* Lane 1: moves LEFT */
.lane-1-track {
  animation: kineticScrollLeft 48s linear infinite;
}

/* Lane 2: moves RIGHT */
.lane-2-track {
  animation: kineticScrollRight 42s linear infinite;
}

/* Lane 3: moves LEFT */
.lane-3-track {
  animation: kineticScrollLeft 52s linear infinite;
}

/* Pause ONLY the specific hovered or focused lane */
.clients-kinetic-lane:hover .clients-lane-track,
.clients-kinetic-lane:focus-within .clients-lane-track {
  animation-play-state: paused;
}

@keyframes kineticScrollLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes kineticScrollRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Marquee Item / Card Design */
.client-marquee-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(6, 17, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xs);
  padding: clamp(14px, 1.8vh, 22px) clamp(26px, 2.8vw, 46px);
  min-height: clamp(120px, 15vh, 150px);
  cursor: default;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth),
              background-color var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
}

.client-marquee-item:focus-visible {
  outline: 1px solid var(--oxd-gold);
  outline-offset: 3px;
  border-color: var(--oxd-gold);
}

.client-marquee-surface {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Marquee Logo Images - Optical Sizing (Substantially larger than old tiny marquee) */
.client-marquee-item .client-logo-img {
  width: auto;
  height: clamp(74px, 9.5vh, 96px);
  max-width: clamp(110px, 14vw, 150px);
  max-height: clamp(74px, 9.5vh, 96px);
  object-fit: contain;
  opacity: 0.72;
  filter: grayscale(100%) brightness(0.94) contrast(0.95);
  transition: opacity var(--duration-fast) ease,
              filter var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-smooth);
  user-select: none;
  -webkit-user-select: none;
}

/* Optical Sizing for client-18 (180x180 low resolution) */
.client-marquee-item.is-client-18 .client-logo-img,
.client-marquee-item[data-client-id="client-18"] .client-logo-img,
.client-marquee-item[data-client-id="client-18-dup"] .client-logo-img {
  height: auto;
  max-width: 58px;
  max-height: 58px;
  image-rendering: auto;
}

/* Optical Sizing for client-17 (640x263 wide banner aspect) */
.client-marquee-item.is-client-17 .client-logo-img,
.client-marquee-item[data-client-id="client-17"] .client-logo-img,
.client-marquee-item[data-client-id="client-17-dup"] .client-logo-img {
  height: auto;
  max-width: clamp(120px, 15vw, 160px);
  max-height: clamp(48px, 6vh, 60px);
}

/* Hover & Focus Interactions */
.client-marquee-item:hover,
.client-marquee-item.is-hovered {
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(10, 27, 59, 0.65);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px -6px rgba(2, 9, 18, 0.8), 0 0 18px rgba(201, 168, 76, 0.12);
}

.client-marquee-item:hover .client-logo-img,
.client-marquee-item.is-hovered .client-logo-img,
.client-marquee-item:focus-visible .client-logo-img {
  opacity: 1;
  filter: grayscale(0%) brightness(1) contrast(1.02);
  transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .clients-kinetic-container {
    gap: 16px;
    padding: 16px 0;
  }
  .client-marquee-item {
    min-height: 108px;
    padding: 12px 22px;
  }
  .client-marquee-item .client-logo-img {
    height: 64px;
    max-height: 64px;
    max-width: 120px;
  }
  .client-marquee-item.is-client-18 .client-logo-img,
  .client-marquee-item[data-client-id="client-18"] .client-logo-img,
  .client-marquee-item[data-client-id="client-18-dup"] .client-logo-img {
    max-width: 50px;
    max-height: 50px;
  }
  .client-marquee-item.is-client-17 .client-logo-img,
  .client-marquee-item[data-client-id="client-17"] .client-logo-img,
  .client-marquee-item[data-client-id="client-17-dup"] .client-logo-img {
    max-width: 125px;
    max-height: 46px;
  }
  .clients-lane-track {
    gap: 20px;
  }
}

@media (max-width: 580px) {
  .clients-kinetic-container {
    gap: 14px;
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }
  .client-marquee-item {
    min-height: 94px;
    padding: 10px 18px;
  }
  .client-marquee-item .client-logo-img {
    height: 54px;
    max-height: 54px;
    max-width: 105px;
  }
  .client-marquee-item.is-client-18 .client-logo-img,
  .client-marquee-item[data-client-id="client-18"] .client-logo-img,
  .client-marquee-item[data-client-id="client-18-dup"] .client-logo-img {
    max-width: 44px;
    max-height: 44px;
  }
  .client-marquee-item.is-client-17 .client-logo-img,
  .client-marquee-item[data-client-id="client-17"] .client-logo-img,
  .client-marquee-item[data-client-id="client-17-dup"] .client-logo-img {
    max-width: 110px;
    max-height: 40px;
  }
  .clients-lane-track {
    gap: 16px;
  }
}

.clients-preview-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: clamp(32px, 5vh, 52px);
}

/* 2.6 Closing CTA Section (Home) */
.home-closing-section {
  position: relative;
}

.closing-cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(6, 17, 38, 0.9) 0%, rgba(2, 9, 18, 0.98) 100%);
  border: 1px solid var(--oxd-line);
  border-radius: var(--radius-sm);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8);
}

.closing-cta-left {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.closing-cta-headline {
  font-size: clamp(1.85rem, 3.2vw, 3.0rem);
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--tracking-tighter);
  color: var(--oxd-cream-pure);
  text-transform: uppercase;
  line-height: var(--leading-tight);
}

.closing-cta-copy {
  font-size: var(--text-lead);
  color: var(--oxd-muted);
  line-height: var(--leading-normal);
}

/* ==========================================================================
   3. SERVICES PAGE (/services)
   ========================================================================== */
.services-hero-section {
  padding-top: clamp(40px, 6vh, 80px);
  padding-bottom: clamp(32px, 5vh, 64px);
}

.services-list-section {
  padding-top: 0;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vh, 48px);
}

.service-entry {
  position: relative;
  background: linear-gradient(160deg, rgba(6, 17, 38, 0.88) 0%, rgba(2, 9, 18, 0.96) 100%);
  border: 1px solid var(--oxd-line-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 32px);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.service-entry:hover {
  border-color: var(--oxd-line);
  box-shadow: 0 16px 40px -12px rgba(201, 168, 76, 0.12);
}

.service-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.service-entry-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--tracking-tight);
  color: var(--oxd-cream-pure);
}

.service-entry-tag {
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-wider);
  color: var(--oxd-gold);
  border: 1px solid var(--oxd-line);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
}

.service-entry-rule {
  width: 100%;
  height: 1px;
  background: var(--oxd-line-subtle);
}

.service-entry-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.service-entry-headline {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--oxd-cream-pure);
  margin-bottom: 10px;
}

.service-entry-desc {
  font-size: var(--text-body);
  color: var(--oxd-muted);
  line-height: var(--leading-relaxed);
}

.service-commercial-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: clamp(16px, 2.5vw, 36px);
  border-left: 1px solid var(--oxd-line-subtle);
}

.service-pricing-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing-label {
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-widest);
  color: var(--oxd-subtle);
}

.pricing-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.pricing-value {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: var(--font-weight-bold);
  color: var(--oxd-gold-bright);
  letter-spacing: var(--tracking-wide);
}

.pricing-period {
  font-size: var(--text-badge);
  color: var(--oxd-subtle);
}

.btn-service-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-badge);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--oxd-abyss);
  background: var(--oxd-gold);
  border: 1px solid var(--oxd-gold-bright);
  padding: 12px 24px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-smooth),
              background var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.btn-service-quote:hover {
  transform: translateY(-2px);
  background: var(--oxd-gold-bright);
  box-shadow: 0 8px 24px -4px rgba(201, 168, 76, 0.4);
}

/* ==========================================================================
   4. PRODUCTS PAGE (/products)
   ========================================================================== */
.products-hero-section {
  padding-top: clamp(40px, 6vh, 80px);
  padding-bottom: clamp(24px, 4vh, 48px);
}

.products-stage-section {
  padding-top: 0;
}

.products-stage {
  position: relative;
  width: 100%;
  height: clamp(480px, 58vh, 620px);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(14px, 1.8vw, 24px);
  overflow: hidden;
  border-radius: var(--radius-sm);
  user-select: none;
}

.product-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(6, 17, 38, 0.94) 0%, rgba(2, 9, 18, 0.98) 100%);
  border: 1px solid var(--oxd-line-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  flex: 1 1 0%;
  transition: flex 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.45s ease;
  will-change: flex;
}

.product-panel:focus-visible {
  outline: 2px solid var(--oxd-gold-bright);
  outline-offset: 3px;
}

.product-panel-rekafy {
  border-left: 2px solid rgba(201, 168, 76, 0.45);
}

.product-panel-atmano {
  border-left: 2px solid rgba(37, 99, 235, 0.45);
}

/* State: Initial Clean Balanced State */
.products-stage.is-initial .product-panel {
  flex: 1 1 50%;
}

.product-panel-initial-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3.5vw, 40px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2;
}

.product-panel.is-active .product-panel-initial-content,
.product-panel.is-collapsed .product-panel-initial-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.initial-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-wider);
  color: var(--oxd-subtle);
}

.initial-center-identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.initial-brand-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--tracking-tighter);
  color: var(--oxd-cream-pure);
  line-height: 1;
}

.initial-sub-descriptor {
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-widest);
  color: var(--oxd-gold);
}

.initial-visual-hint {
  width: 48px;
  height: 2px;
  background: var(--oxd-line);
  margin-top: 12px;
}

.hint-rekafy { background: var(--oxd-gold); }
.hint-atmano { background: var(--oxd-blue); }

.initial-bottom-prompt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-badge);
  color: var(--oxd-muted);
}

/* State: Collapsed State */
.product-panel-collapsed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2;
}

.product-panel.is-collapsed .product-panel-collapsed {
  opacity: 1;
  visibility: visible;
}

.collapsed-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--oxd-gold);
  font-size: 0.65rem;
  letter-spacing: var(--tracking-wider);
}

.collapsed-title-wrap {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.collapsed-brand-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--tracking-wider);
  color: var(--oxd-cream);
}

.collapsed-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--oxd-subtle);
  font-size: 0.65rem;
}

/* State: Active / Expanded State */
.product-panel.is-active {
  flex: 8 1 0%;
  cursor: default;
  border-color: var(--oxd-line-active);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.85);
}

.product-panel.is-collapsed {
  flex: 1 1 0%;
}

.product-panel-expanded {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 36px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
  z-index: 3;
}

.product-panel.is-active .product-panel-expanded {
  opacity: 1;
  visibility: visible;
}

.product-expanded-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-wider);
  color: var(--oxd-subtle);
  margin-bottom: 12px;
}

.product-visual-showcase {
  position: relative;
  flex: 1 1 auto;
  max-height: clamp(240px, 34vh, 360px);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #01060d;
  border: 1px solid var(--oxd-line-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual-stage {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s var(--ease-smooth);
}

.product-detail-stage {
  position: absolute;
  bottom: 14px;
  right: 16px;
  width: clamp(220px, 32%, 300px);
  z-index: 4;
  pointer-events: auto;
}

.product-detail-frame {
  background: rgba(4, 12, 28, 0.94);
  border: 1px solid var(--oxd-line);
  border-radius: var(--radius-xs);
  padding: 8px;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.product-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  letter-spacing: var(--tracking-wider);
  color: var(--oxd-gold);
  margin-bottom: 6px;
}

.product-detail-media img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 2px;
}

.product-expanded-lower-area {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
}

.product-expanded-headline {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: var(--font-weight-bold);
  color: var(--oxd-cream-pure);
  margin-bottom: 6px;
  white-space: pre-line;
}

.product-expanded-desc {
  font-size: var(--text-body);
  color: var(--oxd-muted);
  max-width: 52ch;
  line-height: 1.45;
}

.product-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-badge);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--oxd-abyss);
  background: var(--oxd-gold);
  border: 1px solid var(--oxd-gold-bright);
  padding: 12px 24px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-smooth),
              background var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.product-cta-btn:hover {
  transform: translateY(-2px);
  background: var(--oxd-gold-bright);
  box-shadow: 0 8px 24px -4px rgba(201, 168, 76, 0.4);
}

.product-cta-atmano {
  background: var(--oxd-blue);
  border-color: #60a5fa;
  color: #faf7f2;
}

.product-cta-atmano:hover {
  background: #3b82f6;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.5);
}

/* ==========================================================================
   5. CONTACT PAGE (/contact)
   ========================================================================== */
.contact-hero-section {
  padding-top: clamp(40px, 6vh, 80px);
  padding-bottom: clamp(24px, 4vh, 48px);
}

.contact-grid-section {
  padding-top: 0;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: flex-start;
}

.contact-statement-col {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vh, 36px);
}

.contact-direct-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.direct-channel-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-label {
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-widest);
  color: var(--oxd-subtle);
}

.channel-link {
  font-size: 1.15rem;
  font-weight: var(--font-weight-medium);
  color: var(--oxd-cream-pure);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.channel-link:hover {
  color: var(--oxd-gold);
}

.channel-static {
  font-size: 1.05rem;
  color: var(--oxd-muted);
}

/* Smart Enquiry Form */
.contact-form-col {
  background: linear-gradient(160deg, rgba(6, 17, 38, 0.9) 0%, rgba(2, 9, 18, 0.98) 100%);
  border: 1px solid var(--oxd-line-subtle);
  border-radius: var(--radius-sm);
  padding: clamp(28px, 4vw, 48px);
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 24px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-label {
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-wider);
  color: var(--oxd-muted);
}

.required-mark {
  color: var(--oxd-gold);
}

.input-wrap {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--oxd-cream-pure);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--oxd-line);
  border-radius: 0;
  padding: 8px 0 10px 0;
  outline: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.4);
  font-size: 0.95rem;
}

.form-input:focus {
  border-bottom-color: var(--oxd-gold);
}

.form-select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A84C' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.form-select option {
  background-color: #040c1a;
  color: #f1f5f9;
  font-size: 1rem;
  padding: 8px;
}

.form-textarea {
  resize: vertical;
  min-height: 52px;
  line-height: 1.5;
  font-family: var(--font-sans);
}

.form-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.form-error-msg {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #f87171;
  min-height: 16px;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.form-group.has-error .form-input {
  border-bottom-color: #f87171;
}

.form-group.has-error .form-label {
  color: #fca5a5;
}

.form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-whatsapp-dominant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--oxd-gold);
  color: var(--oxd-abyss);
  border: 1px solid var(--oxd-gold-bright);
  font-family: var(--font-mono);
  font-weight: var(--font-weight-heavy);
  font-size: var(--text-body);
  letter-spacing: var(--tracking-wider);
  padding: 14px 28px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: var(--shadow-gold);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-whatsapp-dominant:hover,
.btn-whatsapp-dominant:focus-visible {
  background: var(--oxd-gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -6px rgba(201, 168, 76, 0.5);
}

.form-dispatch-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--oxd-muted);
  max-width: 32ch;
  text-align: right;
  line-height: 1.4;
}

/* ==========================================================================
   6. CLIENTS PAGE (/clients)
   ========================================================================== */
.clients-hero-section {
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(32px, 5vh, 64px);
  border-bottom: 1px solid var(--oxd-line-subtle);
}

.clients-hero-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 24px);
  max-width: 860px;
}

/* 6.1 Marketing Clients Section */
.clients-marketing-section {
  position: relative;
  border-bottom: 1px solid var(--oxd-line-subtle);
}

.clients-marketing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 2vw, 24px);
  width: 100%;
}

@media (max-width: 1200px) {
  .clients-marketing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 880px) {
  .clients-marketing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 580px) {
  .clients-marketing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* 6.2 Web Development Showcase Section */
.clients-web-section {
  position: relative;
  border-bottom: 1px solid var(--oxd-line-subtle);
}

.web-projects-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 88px);
  width: 100%;
}

.web-project-entry {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 24px);
  width: 100%;
}

.web-project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--oxd-line-subtle);
  padding-bottom: clamp(12px, 1.8vh, 18px);
}

.web-project-name {
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: var(--font-weight-heavy);
  letter-spacing: var(--tracking-tight);
  color: var(--oxd-cream-pure);
  text-transform: uppercase;
  line-height: 1.15;
}

.web-project-discipline {
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-wider);
  color: var(--oxd-gold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.web-project-discipline::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oxd-gold);
  display: inline-block;
}

.web-project-stage {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(6, 17, 38, 0.8) 0%, rgba(2, 9, 18, 0.95) 100%);
  box-shadow: 0 20px 50px -10px rgba(1, 6, 13, 0.8), 0 0 30px -10px rgba(20, 50, 109, 0.3);
  transition: transform 0.4s var(--ease-cinematic), border-color 0.4s ease, box-shadow 0.4s ease;
}

.web-project-stage:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 24px 60px -10px rgba(1, 6, 13, 0.9), 0 0 36px -8px rgba(201, 168, 76, 0.2);
}

.web-project-screenshot {
  width: 100%;
  height: auto;
  aspect-ratio: 2940 / 1600;
  object-fit: cover;
  display: block;
  will-change: transform;
  transition: transform 0.6s var(--ease-cinematic);
}

.web-project-stage:hover .web-project-screenshot {
  transform: scale(1.015);
}

/* 6.3 Closing CTA Section (Clients) */
.clients-closing-section {
  position: relative;
}

/* ==========================================================================
   7. GLOBAL SITE FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--oxd-line-subtle);
  background: rgba(2, 9, 18, 0.96);
  padding: clamp(36px, 6vh, 64px) 0 clamp(28px, 4vh, 48px);
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  flex-wrap: wrap;
}

.footer-nav-link {
  font-family: var(--font-mono);
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--oxd-muted);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer-nav-link:hover {
  color: var(--oxd-gold);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: var(--text-small);
  color: var(--oxd-subtle);
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .home-hero-layout {
    flex-direction: column;
    text-align: left;
    gap: 40px;
  }

  .home-hero-left {
    max-width: 100%;
  }

  .hero-brand-stage {
    width: clamp(240px, 45vw, 360px);
    height: clamp(240px, 45vw, 360px);
  }


  .service-entry-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-commercial-block {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--oxd-line-subtle);
    padding-top: 20px;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row-grid {
    grid-template-columns: 1fr;
  }

  .closing-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .services-preview-grid,
  .products-preview-grid {
    grid-template-columns: 1fr;
  }

  .products-stage {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }

  .product-panel {
    min-height: 480px;
    flex: none !important;
  }

  .product-panel-collapsed {
    display: none !important;
  }

  .product-detail-stage {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .product-expanded-lower-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .form-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-whatsapp-dominant {
    width: 100%;
  }

  .form-dispatch-note {
    text-align: center;
    max-width: 100%;
  }

  .footer-top-row,
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
