/* ============================================
   ABI - Advanced Business Imaging
   Premium B2B Website Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #2E3B42;
  --navy-deep: #1a252b;
  --navy-light: #3d4f58;
  --red: #D72126;
  --red-hover: #b91c20;
  --lime: #C2D552;
  --lime-muted: #a8ba3e;
  --white: #ffffff;
  --off-white: #f7f8f6;
  --grey-100: #f0f1ed;
  --grey-200: #e2e4dc;
  --grey-300: #c8cbc0;
  --grey-500: #8a8d82;
  --grey-700: #4a4d44;
  --text-primary: #1a1d17;
  --text-secondary: #4a4d44;
  --text-light: #c8cbc0;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
}

.text-large {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.7;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 max(2rem, env(safe-area-inset-right)) 0 max(2rem, env(safe-area-inset-left));
}

.container--wide {
  max-width: 1440px;
}

.container--narrow {
  max-width: 800px;
}

section {
  padding: 6rem 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--dark p {
  color: var(--text-light);
}

.section--grey {
  background: var(--off-white);
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: 2rem;
}

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

.grid--asymmetric {
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}

.grid--asymmetric-reverse {
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 0;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(215, 33, 38, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--lime {
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
}

.btn--lime:hover {
  background: var(--lime-muted);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(194, 213, 82, 0.3);
}

.btn-arrow {
  transition: transform var(--transition-base);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
}

.header-top {
  background: var(--navy-deep);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--grey-300);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: var(--grey-300);
  transition: color var(--transition-base);
}

.header-top a:hover {
  color: var(--lime);
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-main {
  background: var(--navy);
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.site-header.scrolled .header-main {
  padding: 0.6rem 0;
  box-shadow: var(--shadow-lg);
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -0.03em;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.6rem;
  color: var(--grey-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-main a {
  color: var(--grey-200);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  position: relative;
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--white);
}

.nav-main a:hover::after,
.nav-main a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  margin-left: 1.5rem;
}

/* Mobile Nav */
.nav-backdrop {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 7rem;
}

.hero--sub {
  min-height: 50vh;
  padding-top: 10rem;
  padding-bottom: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,37,43,0.95) 0%, rgba(46,59,66,0.8) 50%, rgba(46,59,66,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--lime);
}

.hero-content p {
  color: var(--grey-300);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-grid {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-accent {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--white);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

.hero--sub .hero-accent {
  display: none;
}

/* Stats strip */
.stats-strip {
  position: relative;
  z-index: 4;
  margin-top: -3rem;
}

.stats-strip .container {
  background: var(--white);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 2rem 2.5rem;
  text-align: center;
  border-right: 1px solid var(--grey-200);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-number span {
  color: var(--red);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Scroll Animation Section --- */
.scroll-animation-section {
  position: relative;
  background: #e1e1df;
}

.scroll-animation-runway {
  height: 500vh;
  position: relative;
}

.scroll-animation-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Canvas wrapper for edge feathering */
.scroll-animation-sticky {
  /* anchor for the feather overlay */
}

#frame-canvas {
  display: block;
  max-height: 85vh;
  max-width: 90vw;
  position: relative;
  z-index: 1;
}

/* Feathered edge overlay — dissolves canvas edges into section bg */
.scroll-animation-sticky::after {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 2;
  pointer-events: none;
  background:
    /* Top */
    linear-gradient(to bottom, #e1e1df 0%, #e1e1df 5%, transparent 28%),
    /* Bottom */
    linear-gradient(to top, #e1e1df 0%, #e1e1df 5%, transparent 28%),
    /* Left — frame edge is darker here */
    linear-gradient(to right, #e1e1df 0%, #e1e1df 12%, transparent 45%),
    /* Right */
    linear-gradient(to left, #e1e1df 0%, #e1e1df 8%, transparent 40%);
}

/* Loader */
.scroll-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #e1e1df;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.scroll-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-loader-inner {
  text-align: center;
}

.scroll-loader-inner .text-overline {
  margin-bottom: 1.5rem;
}

.scroll-loader-bar {
  width: 200px;
  height: 2px;
  background: var(--grey-200);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.scroll-loader-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.15s linear;
}

.scroll-loader-pct {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  font-variant-numeric: tabular-nums;
}

/* Scroll overlay cards */
.scroll-overlay {
  position: absolute;
  max-width: 320px;
  z-index: 3;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.scroll-overlay.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-overlay--left {
  left: 6%;
}

.scroll-overlay--right {
  right: 6%;
}

#phase-1 { top: 28%; }
#phase-2 { top: 38%; }
#phase-3 { bottom: 22%; }

.scroll-overlay__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.scroll-overlay__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.scroll-overlay__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Progress track */
.scroll-progress-track {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 200px;
  background: var(--grey-300);
  z-index: 5;
}

.scroll-progress-fill {
  width: 100%;
  height: 0%;
  background: var(--red);
  transition: height 0.1s linear;
}

/* --- Service Cards --- */
.service-card {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  transition: all var(--transition-base);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-link:hover {
  color: var(--red-hover);
}

.service-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* --- Feature Row --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-image {
  aspect-ratio: 4/3;
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.feature-image-label {
  font-size: 0.8rem;
  color: var(--grey-500);
  letter-spacing: 0.08em;
}

.feature-content h2 {
  margin-bottom: 1rem;
}

.feature-content p {
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-bottom: 2rem;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 2px;
  background: var(--lime);
}

/* --- Partners / Brands --- */
.partners-section {
  padding: 4rem 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}

.partners-track {
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partners-slide {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: marquee 25s linear infinite;
}

.partners-slide img {
  margin: 0 2.5rem;
}

.partner-logo {
  flex-shrink: 0;
  height: 32px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.partner-logo:hover {
  opacity: 1;
}

.partner-logo--wide {
  height: 28px;
}

.partner-logo--small {
  height: 36px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- Testimonial --- */
.testimonial-card {
  background: var(--white);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 6rem;
  color: var(--lime);
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--navy);
  font-style: normal;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--grey-500);
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 6rem 0;
  background: var(--navy);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 213, 82, 0.08) 0%, transparent 70%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--grey-300);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  color: var(--grey-300);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--grey-500);
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--grey-500);
  padding: 0.35rem 0;
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--grey-500);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--lime);
  fill: none;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--grey-500);
}

.footer-bottom a {
  color: var(--grey-500);
  transition: color var(--transition-base);
}

.footer-bottom a:hover {
  color: var(--lime);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(n+7) { transition-delay: 0.35s; }

.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page-Specific: About --- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grey-200);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-year {
  font-size: 3rem;
  font-weight: 700;
  color: var(--grey-200);
  text-align: right;
  padding-right: 2rem;
}

.timeline-content {
  padding-left: 2rem;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}

/* --- Page-Specific: Products --- */

/* Filter bar */
.product-filters {
  margin-bottom: 2rem;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
  min-width: 72px;
  padding-top: 0.5rem;
  flex-shrink: 0;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-pill.active {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
  font-weight: 700;
}

/* Product count */
.product-count {
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Product card */
.product-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  transition: all var(--transition-base), opacity 0.4s ease, transform 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  z-index: 2;
}

.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card.hidden {
  display: none;
}

.product-card__image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  color: var(--white);
  z-index: 1;
}

.product-card__badge--ricoh  { background: #E4002B; }
.product-card__badge--lexmark { background: #D0202E; }
.product-card__badge--sharp  { background: #E3001B; }
.product-card__badge--hp     { background: #0096D6; }
.product-card__badge--toshiba { background: #FF0000; }
.product-card__badge--kyocera { background: #E4002B; }
.product-card__badge--fp     { background: #333333; }

.product-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.product-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
}

.product-card__specs li {
  font-size: 0.75rem;
  color: var(--grey-500);
  font-weight: 500;
  width: 100%;
  padding-left: 0.85rem;
  position: relative;
  line-height: 1.6;
}

.product-card__specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 1.5px;
  background: var(--lime);
}

.product-card__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.product-card__body .service-link {
  margin-top: auto;
}

/* No results */
.product-no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.product-no-results p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Brand tiles in dark section */
.brand-tile {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-base);
}

.brand-tile:hover {
  border-color: rgba(194, 213, 82, 0.25);
  background: rgba(255,255,255,0.03);
}

.brand-tile__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.brand-tile p {
  font-size: 0.85rem;
}

/* Process steps */
.process-step {
  text-align: center;
  padding: 1.5rem;
}

.process-step__number {
  width: 48px;
  height: 48px;
  border: 2px solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  color: var(--lime);
  font-size: 1.1rem;
  transition: all var(--transition-base);
}

.process-step:hover .process-step__number {
  background: var(--lime);
  color: var(--navy);
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
}

/* --- Spinning Logos Ring --- */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.spinning-ring {
  --ring-size: 420px;
  --logo-size: 64px;
  --radius: 180px;
  --logo-count: 7;
  position: relative;
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 60px rgba(0,0,0,0.2);
}

.spinning-ring__orbit {
  position: absolute;
  inset: 0;
  animation: spin-slow 30s linear infinite;
}

.spinning-ring__logo {
  --angle: calc(360deg / var(--logo-count) * var(--i));
  position: absolute;
  width: var(--logo-size);
  height: var(--logo-size);
  top: calc(50% - var(--logo-size) / 2 + var(--radius) * sin(var(--angle)));
  left: calc(50% - var(--logo-size) / 2 + var(--radius) * cos(var(--angle)));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: spin-reverse 30s linear infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spinning-ring__logo:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
  z-index: 10;
}

.spinning-ring__logo span {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  text-align: center;
  line-height: 1.1;
}

/* Brand colors */
.spinning-ring__logo--ricoh    { background: #E4002B; }
.spinning-ring__logo--lexmark  { background: #D0202E; }
.spinning-ring__logo--sharp    { background: #E3001B; }
.spinning-ring__logo--hp       { background: #0096D6; }
.spinning-ring__logo--toshiba  { background: #FF0000; }
.spinning-ring__logo--kyocera  { background: #E4002B; }
.spinning-ring__logo--fp       { background: #333333; }

/* Center hub */
.spinning-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.spinning-ring__center-inner {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 2px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .spinning-ring {
    --ring-size: 320px;
    --logo-size: 52px;
    --radius: 135px;
  }

  .spinning-ring__logo span {
    font-size: 0.45rem;
  }

  .spinning-ring__center-inner .logo-mark {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .spinning-ring {
    --ring-size: 280px;
    --logo-size: 44px;
    --radius: 115px;
  }

  .spinning-ring__logo span {
    font-size: 0.4rem;
  }
}

/* Legacy product-category kept for compatibility */
.product-category {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  transition: all var(--transition-base);
}

.product-category:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-image {
  aspect-ratio: 3/2;
  background: var(--grey-100);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-category h3 {
  margin-bottom: 0.5rem;
}

.product-category p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* --- Page-Specific: Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-card {
  padding: 2rem;
  background: var(--off-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-card svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-card h4 {
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--grey-200);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Interest pill buttons */
.interest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interest-pill {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-primary);
  font-weight: 500;
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.interest-pill:hover {
  border-color: var(--grey-300);
  color: var(--text-primary);
}

.interest-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* --- Page-Specific: Support --- */
.support-card {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  text-align: center;
  transition: all var(--transition-base);
}

.support-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.support-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: 50%;
}

.support-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
}

.support-card h3 {
  margin-bottom: 0.75rem;
}

.support-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--grey-200);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--red);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  stroke: var(--grey-500);
  fill: none;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* --- Map placeholder --- */
.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-500);
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { gap: 2rem; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .spinning-ring { --ring-size: 380px !important; --radius: 165px !important; --logo-size: 60px !important; }

  /* Scroll animation tablet */
  .scroll-overlay {
    max-width: 260px;
  }

  .scroll-overlay__title {
    font-size: 1.15rem;
  }

  /* Contact grid */
  .contact-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .container { padding: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left)); }

  .header-top { display: none; }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* Mobile nav overlay backdrop */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }

  .nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
  }

  .nav-main {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    align-items: flex-start;
    gap: 0;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-main.open {
    transform: translateX(0);
  }

  .nav-main a {
    padding: 0.875rem 0;
    font-size: 1.05rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-main a::after { display: none; }

  .nav-cta {
    margin-left: 0;
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Typography scaling for mobile */
  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  h3 { font-size: clamp(1.125rem, 3vw, 1.25rem); }

  .text-overline {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  /* Hero sections */
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 5rem;
  }
  .hero--sub {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

  .hero-actions .btn {
    justify-content: center;
    min-height: 48px;
  }

  .hero-accent {
    height: 40px;
  }

  /* Stats strip - remove overlap on mobile */
  .stats-strip {
    margin-top: 0;
    z-index: auto;
  }

  .stats-strip .container {
    box-shadow: var(--shadow-md);
  }

  /* Grids */
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  /* Product grid — 2 columns on mobile for compact browsing */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Product cards compact on mobile */
  .product-card__image {
    padding: 0.75rem;
    aspect-ratio: 1 / 1;
  }

  .product-card__body {
    padding: 0.75rem 1rem 1rem;
  }

  .product-card__name {
    font-size: 0.85rem;
  }

  .product-card__specs {
    margin-bottom: 0.5rem;
  }

  .product-card__specs li {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .product-card__desc {
    display: none;
  }

  .product-card__badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.45rem;
    top: 0.5rem;
    left: 0.5rem;
  }

  /* Filter pills */
  .filter-row { flex-direction: column; gap: 0.5rem; }
  .filter-label { min-width: auto; padding-top: 0; }
  .filter-pill {
    padding: 0.4rem 0.75rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
  }

  /* Spinning ring section - inline style grid override */
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 2rem !important;
  }

  .spinning-ring {
    --ring-size: 300px !important;
    --logo-size: 50px !important;
    --radius: 128px !important;
    margin: 2rem auto 0;
  }

  .grid--asymmetric,
  .grid--asymmetric-reverse { grid-template-columns: 1fr; }

  /* Feature rows */
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }
  .feature-row--reverse { direction: ltr; }

  /* Stats strip */
  .stats-strip .container { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 1.25rem 1rem; }
  .stat-number { font-size: 2rem; }

  /* Scroll animation section */
  .printer-wireframe {
    width: 220px;
    height: 160px;
  }

  .printer-body {
    width: 190px;
    height: 80px;
  }

  .printer-top {
    width: 160px;
    height: 48px;
    bottom: 72px;
  }

  .printer-tray {
    width: 140px;
  }

  .scroll-progress-track {
    right: 0.75rem;
    height: 120px;
  }

  /* Partners marquee */
  .partner-logo { height: 24px; }
  .partner-logo--wide { height: 22px; }
  .partner-logo--small { height: 28px; }
  .partners-slide img { margin: 0 1.5rem; }

  /* Service cards */
  .service-card {
    padding: 2rem 1.5rem;
  }

  /* Testimonial */
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
  }
  .footer-col a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
  }

  /* Contact page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row { grid-template-columns: 1fr; }

  /* Contact form container — override inline padding */
  .contact-grid > div > [style*="padding:2.5rem"],
  .contact-grid > div > [style*="padding: 2.5rem"] {
    padding: 1.5rem !important;
  }

  /* Interest pills mobile */
  .interest-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Map iframe */
  section > iframe {
    height: 280px !important;
  }

  /* Map placeholder */
  .map-placeholder {
    height: 280px;
  }

  /* Timeline */
  .timeline::before { left: 0; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }
  .timeline-item::before { left: 0; }
  .timeline-year {
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
    font-size: 2rem;
  }
  .timeline-content { padding-left: 2rem; }

  /* Support cards */
  .support-card {
    padding: 2rem 1.5rem;
  }

  /* Support page — inline stat boxes in service commitment */
  .section--dark .feature-row > div > [style*="padding:2rem"] {
    padding: 1.25rem !important;
  }

  .section--dark .feature-row > div > [style*="padding:2rem"] > [style*="font-size:2.5rem"] {
    font-size: 2rem !important;
  }

  /* Solutions page — ROI large numbers */
  .section--dark .grid > [style*="padding:2rem"] {
    padding: 1.25rem 1rem !important;
  }

  .section--dark [style*="font-size:3rem"] {
    font-size: 2rem !important;
  }

  /* Service plans — inline styled cards */
  section > .container > .grid > [style*="padding:2.5rem"] {
    padding: 1.5rem !important;
  }

  /* About page values — inline padding in dark section */
  .section--dark .grid--4 > [style*="padding: 1.5rem"],
  .section--dark .grid--4 > [style*="padding:1.5rem"] {
    padding: 1rem 0.5rem !important;
  }

  /* FAQ touch targets */
  .faq-question {
    padding: 1.25rem 0;
    min-height: 48px;
    gap: 1rem;
  }

  .faq-question svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  /* CTA sections */
  .cta-section {
    padding: 4rem 0;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-actions .btn {
    justify-content: center;
    min-height: 48px;
  }

  /* Brand tiles */
  .brand-tile {
    padding: 1.5rem;
  }

  /* Process steps — 2 columns on mobile */
  .grid--4.stagger-children {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }

  .process-step {
    padding: 1rem 0.5rem;
  }

  /* General button touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }

  /* ---- Scroll animation mobile — full rework ---- */
  .scroll-animation-section {
    max-width: 100%;
  }

  .scroll-animation-runway {
    height: 300vh;
  }

  /* Sticky container — center the printer, fill the viewport */
  .scroll-animation-sticky {
    height: 100vh;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Canvas — blow up past viewport width so the printer
     fills vertically. Parent overflow:hidden crops the sides.
     190vw on a 390px phone → ~496px tall (~59% of screen). */
  #frame-canvas {
    max-height: none;
    max-width: none;
    width: 190vw;
    height: auto;
  }

  /* Feather overlay — heavy dissolve on ALL sides to hide cropped edges */
  .scroll-animation-sticky::after {
    inset: -4px;
    background:
      linear-gradient(to bottom, #e1e1df 0%, #e1e1df 2%, transparent 22%),
      linear-gradient(to top,    #e1e1df 0%, #e1e1df 6%, transparent 30%),
      linear-gradient(to right,  #e1e1df 0%, #e1e1df 4%, transparent 28%),
      linear-gradient(to left,   #e1e1df 0%, #e1e1df 4%, transparent 28%);
  }

  /* Overlays — floating cards over the image, centered */
  .scroll-overlay {
    max-width: none;
    width: auto;
    left: 1.25rem !important;
    right: 1.25rem !important;
    text-align: center;
    background: rgba(225, 225, 223, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  }

  /* Position overlays in the lower portion, over the faded bottom edge */
  #phase-1,
  #phase-2,
  #phase-3 {
    top: auto !important;
    bottom: 4vh !important;
  }

  .scroll-overlay__label {
    font-size: 0.6rem;
    margin-bottom: 0.3rem;
  }

  .scroll-overlay__title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
  }

  .scroll-overlay__desc {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  /* Progress track — hide on mobile, clutters the view */
  .scroll-progress-track {
    display: none;
  }

  /* Prevent any section overlap issues */
  section {
    position: relative;
    z-index: 1;
  }

  /* CTA section mobile fix */
  .cta-section::before {
    display: none;
  }

  /* Feature list mobile */
  .feature-list li {
    font-size: 0.9rem;
  }

  /* Feature list in dark sections with inline colour */
  .feature-list li[style*="color:var(--grey-300)"] {
    font-size: 0.85rem !important;
  }

  /* Testimonial mobile */
  .testimonial-card::before {
    font-size: 4rem;
    top: 0;
    left: 1rem;
  }

  /* Product count */
  .product-count {
    margin-bottom: 1rem;
  }

  /* Solutions page white CTA override */
  .cta-section[style*="background:var(--white)"] .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left)); }
  section { padding: 3rem 0; }

  /* Typography further scaling */
  h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  h2 { font-size: clamp(1.35rem, 6vw, 1.75rem); }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
  .hero--sub {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero-accent {
    height: 30px;
  }

  /* Stats strip */
  .stats-strip {
    margin-top: 0;
  }
  .stats-strip .container { grid-template-columns: 1fr 1fr; }
  .stat-item {
    padding: 1rem 0.75rem;
  }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.65rem; }

  /* Spinning ring */
  .spinning-ring {
    --ring-size: 260px !important;
    --logo-size: 42px !important;
    --radius: 108px !important;
  }

  .spinning-ring__logo span {
    font-size: 0.38rem;
  }

  .spinning-ring__center-inner .logo-mark {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem !important;
  }

  .spinning-ring__center-inner span {
    font-size: 0.55rem !important;
  }

  /* Printer wireframe */
  .printer-wireframe {
    width: 180px;
    height: 130px;
  }

  .printer-body {
    width: 150px;
    height: 66px;
  }

  .printer-top {
    width: 130px;
    height: 40px;
    bottom: 58px;
  }

  .printer-tray {
    width: 110px;
  }

  .printer-paper {
    width: 66px;
    height: 40px;
  }

  /* Partners */
  .partner-logo { height: 20px; }
  .partner-logo--wide { height: 18px; }
  .partner-logo--small { height: 24px; }
  .partners-slide img { margin: 0 1.25rem; }
  .partners-section { padding: 2.5rem 0; }

  /* Footer */
  .site-footer { padding-top: 3rem; }
  .footer-grid { gap: 1.5rem; padding-bottom: 2rem; }
  .footer-legal {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  /* CTA */
  .cta-section { padding: 3rem 0; }

  /* Contact form padding — further reduction */
  .contact-grid > div > [style*="padding:2.5rem"],
  .contact-grid > div > [style*="padding: 2.5rem"] {
    padding: 1.25rem !important;
  }

  .contact-info-card {
    padding: 1rem;
  }

  /* Feature row spacing */
  .feature-row {
    padding: 1.5rem 0;
    gap: 1.5rem;
  }

  /* Testimonial */
  .testimonial-card {
    padding: 1.5rem 1.25rem;
  }
  .testimonial-text {
    font-size: 1rem;
  }
  .testimonial-card::before {
    font-size: 4rem;
  }

  /* Service cards */
  .service-card {
    padding: 1.5rem 1.25rem;
  }

  /* Support */
  .support-card {
    padding: 1.5rem 1.25rem;
  }

  /* Support inline stat boxes */
  .section--dark .feature-row > div > [style*="padding:2rem"] {
    padding: 1rem !important;
  }

  .section--dark .feature-row > div > [style*="padding:2rem"] > [style*="font-size:2.5rem"] {
    font-size: 1.5rem !important;
  }

  /* Solutions ROI numbers */
  .section--dark [style*="font-size:3rem"] {
    font-size: 1.75rem !important;
  }

  /* Map */
  .map-placeholder {
    height: 220px;
  }

  section > iframe {
    height: 240px !important;
  }

  /* Product grid — keep 2 columns but tighter */
  .product-grid { gap: 0.5rem; }

  .product-card__image {
    padding: 0.5rem;
  }

  .product-card__body {
    padding: 0.6rem 0.75rem 0.75rem;
  }

  .product-card__name {
    font-size: 0.78rem;
  }

  .product-card__specs li {
    font-size: 0.65rem;
    padding-left: 0.7rem;
  }

  .product-card__specs li::before {
    width: 4px;
  }

  .product-card__badge {
    font-size: 0.5rem;
    padding: 0.1rem 0.35rem;
    top: 0.35rem;
    left: 0.35rem;
  }

  .product-card .service-link {
    font-size: 0.7rem;
  }

  .product-card .service-link svg {
    width: 12px;
    height: 12px;
  }

  /* Filter pills even more compact */
  .filter-pill {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    min-height: 36px;
  }

  /* Process steps grid */
  .grid--4.stagger-children {
    gap: 0.5rem;
  }

  .process-step {
    padding: 0.75rem 0.25rem;
  }

  .process-step__number {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .process-step h4 {
    font-size: 0.95rem;
  }

  .process-step p {
    font-size: 0.8rem;
  }

  /* Service plans inline padding */
  section > .container > .grid > [style*="padding:2.5rem"] {
    padding: 1.25rem !important;
  }

  /* Scroll animation small phones — even bigger canvas */
  .scroll-animation-runway {
    height: 280vh;
  }

  #frame-canvas {
    width: 210vw;
  }

  .scroll-overlay {
    padding: 0.75rem 1rem;
  }

  #phase-1,
  #phase-2,
  #phase-3 {
    bottom: 3vh !important;
  }

  .scroll-overlay__title {
    font-size: 0.95rem;
  }

  .scroll-overlay__desc {
    font-size: 0.75rem;
  }

  /* Buttons slightly smaller */
  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.82rem;
  }

  /* Section headings inline max-width */
  [style*="max-width:600px"],
  [style*="max-width: 600px"],
  [style*="max-width:560px"],
  [style*="max-width: 560px"] {
    max-width: 100% !important;
  }

  /* Brand section dark - inline gap override */
  .section--dark [style*="gap:4rem"] {
    gap: 2rem !important;
  }
}

/* ============================================
   Mobile Landscape (short + wide viewport)
   Phones in landscape are ~844x390 — wide but very short.
   The 768px portrait breakpoint doesn't fire, so we need
   to force mobile-like behavior based on height.
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {

  /* Sections — drastically reduce vertical padding */
  section { padding: 2rem 0; }

  /* Header — hide top bar, compact main bar */
  .header-top { display: none; }
  .header-main { padding: 0.4rem 0; }
  .site-header.scrolled .header-main { padding: 0.3rem 0; }
  .logo-mark { width: 32px; height: 32px; font-size: 0.85rem; }
  .logo-name { font-size: 1rem; }
  .logo-tagline { font-size: 0.5rem; }

  /* Navigation — force hamburger menu in landscape */
  .nav-main {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 4rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    align-items: flex-start;
    gap: 0;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-main.open {
    transform: translateX(0);
  }

  .nav-main a {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .nav-main a::after { display: none; }

  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }

  .nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
  }

  /* Typography — scale down for short viewport */
  h1 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }
  h2 { font-size: clamp(1.15rem, 3vw, 1.5rem); }
  h3 { font-size: clamp(1rem, 2vw, 1.15rem); }

  /* Hero — compact, everything visible without scrolling */
  .hero {
    min-height: auto;
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
  }

  .hero--sub {
    min-height: auto;
    padding-top: 3.5rem;
    padding-bottom: 1rem;
  }

  .hero-content {
    max-width: 65%;
  }

  .hero-content h1 {
    margin-bottom: 0.5rem;
  }

  .hero-content p {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    min-height: 36px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  .hero-accent { height: 15px; }
  .hero-grid { opacity: 0.03; }

  /* Stats strip — tight horizontal row */
  .stats-strip { margin-top: -1rem; }
  .stats-strip .container {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item {
    padding: 0.6rem 0.5rem;
    border-right: 1px solid var(--grey-200);
    border-bottom: none;
  }

  .stat-item:last-child { border-right: none; }
  .stat-number { font-size: 1.15rem; }
  .stat-label { font-size: 0.55rem; }

  /* Grids — multi-column */
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .grid--4.stagger-children {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Product grid — 3 columns */
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

  /* Feature rows — side by side, compact */
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .feature-row--reverse { direction: rtl; }
  .feature-row--reverse > * { direction: ltr; }

  .feature-image { aspect-ratio: 16 / 10; }

  .feature-content h2 { margin-bottom: 0.5rem; }
  .feature-content p { font-size: 0.85rem; margin-bottom: 0.75rem; }
  .feature-list { margin-bottom: 1rem; }
  .feature-list li { font-size: 0.8rem; padding: 0.3rem 0; padding-left: 1.25rem; }

  /* Service / support cards */
  .service-card { padding: 1rem 0.75rem; }
  .service-card p { font-size: 0.8rem; margin-bottom: 1rem; }
  .support-card { padding: 1rem 0.75rem; }

  /* Contact grid — side by side */
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
  }

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

  .contact-grid > div > [style*="padding:2.5rem"],
  .contact-grid > div > [style*="padding: 2.5rem"] {
    padding: 1.25rem !important;
  }

  .contact-info-card { padding: 1rem; margin-bottom: 0.75rem; }

  /* Footer — 4 columns, compact */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 1rem;
  }

  .footer-bottom { flex-direction: row; }
  .footer-legal { flex-direction: row; }
  .site-footer { padding-top: 2rem; }
  .footer-grid { padding-bottom: 1.5rem; }
  .footer-brand p { font-size: 0.8rem; }
  .footer-col a { padding: 0.25rem 0; min-height: 32px; font-size: 0.8rem; }

  /* CTA sections */
  .cta-section { padding: 2rem 0; }
  .cta-content p { font-size: 0.9rem; }
  .cta-actions {
    flex-direction: row;
    align-items: center;
  }
  .cta-actions .btn {
    min-height: 36px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  /* Testimonial */
  .testimonial-card { padding: 1.25rem; }
  .testimonial-text { font-size: 0.85rem; line-height: 1.6; }
  .testimonial-card::before { font-size: 3rem; }

  /* Partners */
  .partners-section { padding: 1.5rem 0; }

  /* Timeline — side by side */
  .timeline::before { left: 50%; }
  .timeline-item {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .timeline-item::before { left: 50%; }
  .timeline-year {
    text-align: right;
    padding-right: 1.5rem;
    padding-left: 0;
    font-size: 1.5rem;
  }
  .timeline-content { padding-left: 1.5rem; }
  .timeline-content h3 { font-size: 1rem; }
  .timeline-content p { font-size: 0.8rem; }

  /* Scroll animation — landscape: let desktop styles apply.
     The canvas is natively landscape so it fits naturally.
     Only minor tweaks for the shorter viewport. */
  .scroll-overlay__label { font-size: 0.55rem; }
  .scroll-overlay__title { font-size: 0.9rem; }
  .scroll-overlay__desc { font-size: 0.75rem; line-height: 1.45; }
  .scroll-progress-track { display: none; }

  /* Spinning ring — smaller */
  .spinning-ring {
    --ring-size: 220px !important;
    --logo-size: 38px !important;
    --radius: 92px !important;
  }

  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr 1fr !important;
    text-align: left;
    gap: 1.5rem !important;
  }

  /* Inline padding/font overrides */
  .section--dark [style*="font-size:3rem"] {
    font-size: 1.5rem !important;
  }

  .section--dark [style*="font-size:2.5rem"] {
    font-size: 1.25rem !important;
  }

  .section--dark .grid > [style*="padding:2rem"] {
    padding: 0.75rem !important;
  }

  section > .container > .grid > [style*="padding:2.5rem"] {
    padding: 1rem !important;
  }

  /* About values section */
  .section--dark .grid--4 > div {
    padding: 0.75rem 0.5rem !important;
  }

  .section--dark .grid--4 > div > [style*="font-size:2rem"] {
    font-size: 1.5rem !important;
  }

  /* FAQ */
  .faq-question { padding: 0.6rem 0; min-height: 36px; font-size: 0.9rem; }
  .faq-answer p { font-size: 0.85rem; padding-bottom: 0.75rem; }

  /* Support page service plan cards */
  .support-card h3 { font-size: 1rem; }
  .support-card p { font-size: 0.8rem; margin-bottom: 1rem; }
  .support-icon { width: 48px; height: 48px; margin-bottom: 1rem; }
  .support-icon svg { width: 22px; height: 22px; }

  /* Map */
  section > iframe { height: 200px !important; }

  /* Buttons */
  .btn { min-height: 36px; padding: 0.4rem 1rem; font-size: 0.8rem; }

  /* Section headings — no max-width constraint */
  [style*="max-width:600px"],
  [style*="max-width: 600px"],
  [style*="max-width:560px"],
  [style*="max-width: 560px"] {
    max-width: 100% !important;
  }

  [style*="margin:0 auto 3.5rem"],
  [style*="margin: 0 auto 3.5rem"] {
    margin-bottom: 1.5rem !important;
  }

  /* Service link */
  .service-link { font-size: 0.7rem; }

  /* Product cards compact */
  .product-card__image { padding: 0.75rem; }
  .product-card__body { padding: 0.75rem 1rem; }
  .product-card__name { font-size: 0.85rem; }
  .product-card__desc { font-size: 0.78rem; }

  /* Filter pills */
  .filter-pill { padding: 0.35rem 0.75rem; font-size: 0.72rem; min-height: 32px; }

  /* Process steps */
  .process-step { padding: 0.75rem 0.5rem; }
  .process-step__number { width: 36px; height: 36px; font-size: 0.9rem; }
  .process-step h4 { font-size: 0.9rem; }
  .process-step p { font-size: 0.75rem; }
}
