/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --dark: #0d0b09;
  --dark-gray: #1a1816;
  --mid-gray: #333;
  --cream: #f5f2ed;
  --cream-dark: #e8e4de;
  --off-white: #faf8f5;
  --white: #ffffff;
  --accent: #d4520a;
  --accent-light: #e8742e;
  --text-muted: #888;
  --text-light: #bbb;
  --border-color: rgba(255,255,255,0.12);
  --border-dark: rgba(0,0,0,0.1);
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html, html body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== CUSTOM CURSOR ========== */
/* Native cursor hidden only when JS adds .has-custom-cursor to html */
html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
html.has-custom-cursor a, html.has-custom-cursor button,
html.has-custom-cursor [role="button"], html.has-custom-cursor input,
html.has-custom-cursor textarea, html.has-custom-cursor select { cursor: none !important; }
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s var(--ease);
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(212,82,10,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

/* Hover state on links/buttons */
.cursor-dot.is-hover {
  width: 10px; height: 10px;
  background: var(--accent-light);
}
.cursor-ring.is-hover {
  width: 50px; height: 50px;
  border-color: var(--accent);
  background: rgba(212,82,10,0.06);
}

/* Hide custom cursor on touch devices only */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* cursor: none is now controlled by .has-custom-cursor on <html> */

/* ========== FILM GRAIN OVERLAY ========== */
body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* ========== DOT GRID PATTERN (section decoration) ========== */
.dot-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(rgba(212,82,10,0.15) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ========== SECTION DIVIDER LINES ========== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,82,10,0.3), transparent);
  margin: 0;
  border: none;
  position: relative;
  z-index: 2;
}

/* ========== GLOW ACCENT ========== */
.glow-accent {
  position: relative;
}
.glow-accent::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,82,10,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ========== TYPOGRAPHY ========== */
.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--cream);
}

h2 em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream);
}

p { font-size: 1.05rem; line-height: 1.75; color: rgba(245,242,237,0.6); }

/* ========== LAYOUT ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

section {
  padding: clamp(4rem, 7vw, 7rem) 0;
  position: relative;
  overflow-x: clip;
  z-index: 2;
  background: var(--black);
}

/* ========== LINE REVEAL (for h1/h2 split text) ========== */
.line {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
  transform: translateY(110%);
}

/* ========== LOADER ========== */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-build {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-layers {
  width: 100px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  position: relative;
}

.loader-layer {
  display: block;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: layerPrint 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes layerPrint {
  0% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 1; }
  100% { opacity: 1; transform: scaleX(1); }
}


/* Text fades in after layers are built */
.loader-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  animation: loaderTextIn 0.5s ease-out 1.4s forwards;
}

.loader-text span {
  color: var(--accent);
}

@keyframes loaderTextIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, padding 0.5s ease;
}

.nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  padding: 1rem clamp(1.5rem, 4vw, 3rem);
}

.nav-logo-text {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-logo-accent {
  font-weight: 400;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  transition: opacity 0.3s;
  cursor: pointer;
}

.nav-links a:hover { opacity: 1; }

.btn-nav {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black) !important;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  opacity: 1 !important;
  transition: all 0.3s;
}

.btn-nav:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--cream);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--black);
  overflow: hidden;
}

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 70%;
  background: linear-gradient(transparent, rgba(10,10,10,0.95));
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.15);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 4vw, 4rem) clamp(4rem, 8vw, 8rem);
  max-width: 900px;
}

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

.hero-sub {
  color: rgba(245,242,237,0.5);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  max-width: 550px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(245,242,237,0.15);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid var(--accent);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  transition: all 0.4s var(--ease);
  margin-top: 2rem;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--black);
}

.btn-primary svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

/* ========== RTS INTRO ========== */
.rts-intro {
  background: var(--dark);
  padding: clamp(6rem, 12vw, 14rem) 0;
}

.rts-intro .container {
  max-width: 850px;
  text-align: center;
}

.rts-intro p {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* ========== COMPARISON ========== */
.comparison { background: var(--black); }

.comparison-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.comparison-header .label { margin-bottom: 1rem; }

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.comparison-card {
  border-radius: 16px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
}

.comparison-card--conventional {
  background: linear-gradient(180deg, #1e1c1a 0%, #141210 100%);
  border: 1px solid rgba(255,255,255,0.06);
}

.comparison-card--conventional h3 { color: var(--cream); }
.comparison-card--conventional p { color: rgba(245,242,237,0.45); }

.comparison-card--rts {
  background: linear-gradient(180deg, #2a1a0e 0%, #1a0e04 100%);
  border: 1.5px solid rgba(212,82,10,0.45);
  color: var(--cream);
  box-shadow: 0 0 40px rgba(212,82,10,0.1), 0 0 80px rgba(212,82,10,0.05);
}

.comparison-card--rts h3 { color: var(--accent); }
.comparison-card--rts p { color: rgba(245,242,237,0.7); }

.comparison-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  border: none;
  box-shadow: 0 2px 12px rgba(212,82,10,0.4);
}

.comparison-card__visual {
  flex: 1;
  overflow: hidden;
  min-height: 280px;
}

.comparison-card__text {
  padding: 2rem 2.5rem 2.5rem;
}

.fiber-svg { width: 180px; height: 180px; opacity: 0.5; }

.comparison-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}

.comparison-card--conventional .comparison-card__img {
  opacity: 0.5;
  filter: grayscale(0.3);
}

.comparison-card--rts .comparison-card__img {
  opacity: 0.9;
}

.comparison-card:hover .comparison-card__img {
  transform: scale(1.04);
  opacity: 0.9;
}

.comparison-card__text h3 { margin-bottom: 0.5rem; }
.comparison-card__text p { font-size: 0.92rem; }

/* ========== FEATURES ========== */
.features { background: var(--dark); }

.features-header {
  margin-bottom: 3rem;
}

.features-header h2 { max-width: 600px; }

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

.feature-card {
  background: var(--dark-gray);
  border-radius: 14px;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,82,10,0.3);
}

.feature-card__icon {
  width: 48px; height: 48px;
  background: rgba(212,82,10,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 0.8rem; }
.feature-card p { font-size: 0.92rem; }

/* ========== SERVICES ========== */
.operate { background: var(--black); }

.operate-content {
  margin-bottom: 3.5rem;
}

.operate-text p { font-size: 1.1rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--dark-gray);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 2rem;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,82,10,0.3);
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.service-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.85rem; }

/* ========== INSPECTION SERVICE — FEATURED ========== */
.inspection-section {
  padding: 2rem 0 6rem;
  position: relative;
  z-index: 2;
  background: var(--black);
}
.inspection-card {
  background: var(--dark-gray);
  border: 1px solid rgba(212,82,10,0.15);
  border-radius: 16px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}
.inspection-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle at top right, rgba(212,82,10,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.inspection-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--black);
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.inspection-card h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.inspection-card h2 em {
  color: var(--accent);
  font-style: italic;
}
.inspection-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}
.inspection-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.inspection-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.inspection-stat__value {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.inspection-stat__value span {
  font-size: 1rem;
  color: var(--text-muted);
}
.inspection-stat__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.inspection-list {
  list-style: none;
  margin-bottom: 2rem;
}
.inspection-list li {
  font-size: 0.88rem;
  color: var(--cream);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(245,242,237,0.06);
  padding-left: 1.4rem;
  position: relative;
}
.inspection-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.inspection-cta {
  display: inline-flex;
  width: auto;
}
.inspection-card__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.inspection-graphic {
  width: 100%;
  max-width: 280px;
}
.inspection-graphic svg {
  width: 100%;
  height: auto;
}
.inspection-graphic__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
}

@media (min-width: 768px) {
  .inspection-card {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 4rem;
  }
}
@media (min-width: 1024px) {
  .inspection-card {
    padding: 4.5rem 5rem;
  }
}

/* ========== PORTFOLIO / ADVANTAGES ========== */
.advantages {
  background: var(--dark);
  color: var(--cream);
}

.advantages .label { color: var(--accent); }
.advantages h2 { color: var(--cream); }

.advantages-desc {
  color: rgba(245,242,237,0.5);
  max-width: 650px;
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.advantage-item {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.advantage-item h3 { color: var(--cream); margin-bottom: 0.7rem; }
.advantage-item p { color: rgba(245,242,237,0.45); font-size: 0.92rem; }

/* Portfolio grid with images */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  background: var(--dark-gray);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.portfolio-item:hover {
  transform: translateY(-6px);
  border-color: rgba(212,82,10,0.3);
}

.portfolio-item__img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.portfolio-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.portfolio-item:hover .portfolio-item__img img {
  transform: scale(1.05);
}

.portfolio-item .portfolio-tag,
.portfolio-item h3,
.portfolio-item p {
  padding: 0 1.5rem;
}

.portfolio-item .portfolio-tag { padding-top: 1.5rem; }
.portfolio-item h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.portfolio-item p { padding-bottom: 1.5rem; font-size: 0.85rem; }

.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}

/* ========== LEGAL LINKS ========== */
.legal-link {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: color 0.3s;
}
.legal-link:hover { color: var(--accent-light); }

.form-legal {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  line-height: 1.6;
}

/* ========== LEGAL MODAL ========== */
.legal-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.legal-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.legal-modal__backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}
.legal-modal__content {
  position: relative;
  background: var(--dark-gray);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 3rem;
  max-width: 620px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: transform 0.4s var(--ease);
}
.legal-modal.is-open .legal-modal__content {
  transform: translateY(0);
}
.legal-modal__close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,242,237,0.5);
  transition: color 0.3s;
  background: none; border: none;
}
.legal-modal__close:hover { color: var(--accent); }
.legal-modal__close svg { width: 20px; height: 20px; }
.legal-modal__content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--cream);
}
.legal-modal__content h3 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legal-modal__content p {
  font-size: 0.85rem;
  color: rgba(245,242,237,0.65);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.legal-modal__content .modal-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ========== COOKIE BAR ========== */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: var(--dark-gray);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 10002;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.cookie-bar.is-visible {
  transform: translateY(0);
}
.cookie-bar p {
  font-size: 0.78rem;
  color: rgba(245,242,237,0.6);
  margin: 0;
  line-height: 1.5;
}
.cookie-bar__accept {
  background: var(--accent);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  border: none;
  white-space: nowrap;
  transition: background 0.3s;
}
.cookie-bar__accept:hover { background: var(--accent-light); }

@media (max-width: 600px) {
  .cookie-bar { flex-direction: column; text-align: center; padding: 1.2rem 1rem; }
}

/* ========== SERVICE CARD HINT ========== */
.service-card__more {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0;
  display: block;
  margin-top: 1rem;
  transition: opacity 0.3s var(--ease);
}
.service-card:hover .service-card__more {
  opacity: 1;
}

/* ========== SERVICE MODAL ========== */
.service-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.service-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.service-modal__backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.service-modal__content {
  position: relative;
  background: var(--dark-gray);
  border: 1px solid rgba(212,82,10,0.2);
  border-radius: 16px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s var(--ease);
}
.service-modal.is-open .service-modal__content {
  transform: translateY(0) scale(1);
}
.service-modal__close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,242,237,0.5);
  transition: color 0.3s;
  background: none; border: none;
}
.service-modal__close:hover { color: var(--accent); }
.service-modal__close svg { width: 20px; height: 20px; }
.service-modal__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}
.service-modal__content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--cream);
}
.service-modal__body {
  color: rgba(245,242,237,0.7);
  font-size: 0.92rem;
  line-height: 1.7;
}
.service-modal__body ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}
.service-modal__body ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.service-modal__body ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.service-modal__body p { margin-bottom: 1rem; }
.service-modal__cta {
  margin-top: 1.5rem;
  display: inline-flex;
}

/* ========== PROCESS STEPS ========== */
.process-section { background: var(--black); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.process-step {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
}

.process-step__number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.process-step__line {
  position: absolute;
  top: 4.2rem;
  right: 0;
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,0.06);
}

.process-step:last-child .process-step__line { display: none; }

.process-step__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(212,82,10,0.08);
  border: 1px solid rgba(212,82,10,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--accent);
  transition: background 0.3s ease, transform 0.3s ease;
}

.process-step__icon svg { width: 24px; height: 24px; }

.process-step:hover .process-step__icon {
  background: rgba(212,82,10,0.15);
  transform: translateY(-2px);
}

.process-step__content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.process-step__content p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ========== STL CALCULATOR ========== */
.calculator-section { background: var(--dark); }

.calculator-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.calculator-header p { margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; }

/* Dropzone */
.cot-dropzone {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  background: var(--black); border: 1px dashed rgba(212,82,10,0.3); border-radius: 6px;
  padding: 1.5rem 2rem; cursor: pointer; transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1.25rem;
}
.cot-dropzone:hover, .cot-dropzone.dragover { border-color: var(--accent); background: rgba(212,82,10,0.06); }
.cot-dropzone span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.cot-dropzone strong { color: rgba(212,82,10,0.85); }
.cot-status { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; text-align: center; }
.cot-error { font-family: var(--font-mono); font-size: 0.8rem; color: #e05050; margin-bottom: 0.75rem; }

/* 3D Viewer */
.cot-viewer { margin-bottom: 1.5rem; }
.cot-viewer__inner { position: relative; background: var(--black); border: 0.5px solid rgba(212,82,10,0.2); border-radius: 6px; overflow: hidden; }
.cot-viewer canvas { display: block; width: 100%; height: 420px; touch-action: none; }
.cot-viewer__hint { position: absolute; bottom: 0.75rem; right: 1rem; font-family: var(--font-mono); font-size: 0.65rem; color: rgba(138,126,114,0.45); pointer-events: none; }
.cot-viewer__dims { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.4rem; }
.cot-dim { background: rgba(10,10,10,0.85); border: 0.5px solid rgba(212,82,10,0.25); border-radius: 4px; padding: 0.35rem 0.65rem; text-align: center; display: flex; flex-direction: column; gap: 0.15rem; }
.cot-dim span:first-child { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); }
.cot-dim span:last-child { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cream); }

/* Controls 3-col */
.cot-controls { display: grid; grid-template-columns: 1fr 1.8fr 1.1fr; gap: 2rem; align-items: start; }
.cot-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.cot-group { margin-bottom: 1.75rem; }
.cot-group:last-child { margin-bottom: 0; }

/* Infill buttons */
.cot-infill-btns { display: flex; flex-direction: column; gap: 0.4rem; }
.cot-btn { font-family: var(--font-mono); font-size: 0.82rem; padding: 0.6rem 1rem; border-radius: 3px; border: 0.5px solid rgba(255,255,255,0.1); background: transparent; color: var(--text-muted); cursor: pointer; text-align: left; display: flex; justify-content: space-between; transition: all 0.2s; }
.cot-btn span { color: var(--text-muted); }
.cot-btn.active { border-color: var(--accent); background: rgba(212,82,10,0.15); color: var(--cream); }
.cot-btn.active span { color: var(--accent); }

/* Quantity */
.cot-qty-wrap { display: flex; align-items: center; }
.cot-qty-btn { font-family: var(--font-mono); font-size: 1.1rem; width: 2.6rem; height: 2.6rem; border: 0.5px solid rgba(255,255,255,0.1); background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.cot-qty-btn:first-child { border-radius: 3px 0 0 3px; border-right: none; }
.cot-qty-btn:nth-of-type(2) { border-radius: 0 3px 3px 0; border-left: none; }
.cot-qty-btn:hover { border-color: var(--accent); color: var(--accent); }
#cotQty { font-family: var(--font-mono); font-size: 1rem; width: 3.8rem; height: 2.6rem; border: 0.5px solid rgba(255,255,255,0.1); border-radius: 0; background: var(--black); color: var(--cream); text-align: center; outline: none; -moz-appearance: textfield; appearance: textfield; }
.cot-qty-ud { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-left: 0.6rem; }

/* Discount tiers */
.cot-tiers { display: flex; gap: 0.35rem; margin-top: 0.6rem; flex-wrap: wrap; }
.cot-tier { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(90,80,71,1); border: 0.5px solid rgba(255,255,255,0.05); border-radius: 3px; padding: 0.25rem 0.5rem; transition: all 0.25s; }
.cot-tier span { color: var(--text-muted); }
.cot-tier.active { border-color: var(--accent); color: var(--cream); background: rgba(212,82,10,0.1); }
.cot-tier.active span { color: var(--accent); }

/* Material grid */
.cot-mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.cot-mat-btn { font-family: var(--font-mono); border-radius: 4px; border: 0.5px solid rgba(255,255,255,0.08); background: transparent; cursor: pointer; text-align: left; padding: 0.65rem 0.8rem; transition: all 0.2s; }
.cot-mat-name { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.2rem; }
.cot-mat-mult { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.cot-mat-desc { font-size: 0.65rem; color: rgba(90,80,71,1); line-height: 1.4; }
.cot-mat-btn.active { border-color: var(--accent); background: rgba(212,82,10,0.1); }
.cot-mat-btn.active .cot-mat-name { color: var(--cream); }
.cot-mat-btn.active .cot-mat-mult { color: var(--accent); }
.cot-mat-btn.active .cot-mat-desc { color: var(--text-muted); }

/* Result column */
.cot-result-col { background: var(--black); border: 0.5px solid rgba(212,82,10,0.2); border-radius: 6px; padding: 1.75rem; position: sticky; top: 5.5rem; }
.cot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cot-stat { background: rgba(255,255,255,0.02); border: 0.5px solid rgba(255,255,255,0.05); border-radius: 4px; padding: 0.65rem 0.8rem; }
.cot-stat__label { display: block; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.cot-stat__value { display: block; font-family: var(--font-mono); font-size: 0.95rem; color: var(--cream); }
.cot-divider { height: 0.5px; background: rgba(255,255,255,0.05); margin: 1.25rem 0; }
.cot-price-block { margin-bottom: 1rem; }
.cot-price-label { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.cot-price-unit { display: block; font-family: var(--font-heading); font-size: 3rem; color: var(--accent); line-height: 1; }
.cot-price-total { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: var(--cream); line-height: 1; }
.cot-discount { background: rgba(212,82,10,0.07); border: 0.5px solid rgba(212,82,10,0.2); border-radius: 4px; padding: 0.55rem 0.75rem; margin-bottom: 1rem; }
.cot-discount span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); line-height: 1.5; }
.cot-note { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(90,80,71,1); line-height: 1.6; margin-bottom: 1.25rem; }
.cot-cta { display: inline-flex; justify-content: center; width: 100%; }

/* ========== TESTIMONIALS ========== */
.testimonials { background: var(--dark); }

.testimonials-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.testimonials-header h2 { max-width: 600px; margin: 0 auto; }

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

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(212,82,10,0.25);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.testimonial-card__quote {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(245,242,237,0.65);
  font-style: italic;
  flex: 1;
}

.testimonial-card__author {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.testimonial-card__name {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cream);
}

.testimonial-card__role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ========== MATERIALS ========== */
.materials-section { background: var(--black); }

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.material-card {
  background: var(--dark-gray);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  min-height: 280px;
  perspective: 800px;
  transition: border-color 0.5s var(--ease);
}

.material-card:hover {
  border-color: color-mix(in srgb, var(--mat-color, var(--accent)) 40%, transparent);
}

.material-card__front,
.material-card__back {
  padding: 2rem;
  backface-visibility: hidden;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.material-card__front {
  position: relative;
}

.material-card__back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform: rotateY(180deg);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.8rem;
}

.material-card.is-flipped .material-card__front {
  transform: rotateY(-180deg);
  opacity: 0;
}
.material-card.is-flipped .material-card__back {
  transform: rotateY(0deg);
  opacity: 1;
}

.material-card__svg {
  width: 60px; height: 60px;
  color: var(--mat-color, var(--accent));
  margin-bottom: 1rem;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.material-card:hover .material-card__svg {
  opacity: 1;
}
.material-card__svg svg { width: 100%; height: 100%; }

/* Material accent colors */
[data-material="pla"]    { --mat-color: #6abf69; }
[data-material="petg"]   { --mat-color: #4d9de0; }
[data-material="abs"]    { --mat-color: #e6a23c; }
[data-material="asa"]    { --mat-color: #3cbbb1; }
[data-material="petg-cf"]{ --mat-color: #8a8d93; }
[data-material="pa-nylon"]{ --mat-color: #a78bdb; }
[data-material="pa6-cf"] { --mat-color: #e05555; }
[data-material="tpu"]    { --mat-color: #45c8dc; }

.material-card__hint {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(212,82,10,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.material-card:hover .material-card__hint {
  opacity: 1;
}

.material-card__close {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1.2rem;
  display: inline-block;
  cursor: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(212,82,10,0.3);
}

.material-specs {
  list-style: none;
  padding: 0;
  margin: 0;
}
.material-specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
}
.material-specs li span {
  color: rgba(245,242,237,0.5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.material-specs li strong {
  color: var(--cream);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.material-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.material-temp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mat-color, var(--accent));
  display: block;
  margin-bottom: 0.8rem;
}

.material-card p { font-size: 0.85rem; }

.material-strength {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(245,242,237,0.4);
  display: block;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ========== PRICING / BUSINESS MODEL ========== */
.business-model { background: var(--dark); }

.business-model h2 { max-width: 700px; }

.business-model-desc {
  max-width: 650px;
  margin-bottom: 3.5rem;
}

.business-model-desc p { margin-bottom: 1rem; font-size: 1.05rem; }

.model-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.model-benefit {
  background: var(--dark-gray);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 2.5rem;
  position: relative;
}

.model-benefit--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(212,82,10,0.08) 0%, var(--dark-gray) 100%);
}

.pricing-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}

.model-benefit h3 { margin-bottom: 0.5rem; }

.price-tag {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
  display: block;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: rgba(245,242,237,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-sans);
}

.pricing-features li:last-child { border-bottom: none; }

/* ========== WHY FORMLAB / APART ========== */
.apart { background: var(--black); }

.apart-header { margin-bottom: 4rem; }
.apart-header h2 { max-width: 700px; }

.apart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.apart-card {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
}

.apart-card__number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.8rem;
}

.apart-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.apart-card p { font-size: 0.9rem; }

/* ========== INDUSTRIES ========== */
.industries {
  background: var(--dark);
  overflow: hidden;
}

.industries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.industries-carousel {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

.industry-card {
  flex: 0 0 380px;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.industry-card__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--dark-gray);
  border-radius: 16px;
  overflow: hidden;
}

.industry-card__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.5s, transform 0.6s var(--ease);
}

.industry-card:hover .industry-card__bg img {
  opacity: 0.7;
  transform: scale(1.05);
}

.industry-card__content {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 2.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  border-radius: 0 0 16px 16px;
}

.industry-card__content h3 { color: var(--cream); font-size: 1.3rem; }
.industry-card__content p { font-size: 0.85rem; margin-top: 0.4rem; }

/* ========== FUTURE / CTA ========== */
.future {
  background: var(--black);
  text-align: center;
}

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

.future-subtitle {
  font-size: 1.2rem;
  color: rgba(245,242,237,0.55);
  margin-bottom: 0.5rem;
}

/* ========== CONTACT ========== */
.contact-section {
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.contact-info h2 em {
  font-style: italic;
  color: var(--accent);
}

.contact-desc {
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: rgba(245,242,237,0.6);
  transition: color 0.3s;
}

a.contact-item:hover { color: var(--accent); }

.contact-item svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

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

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

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

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  transition: border-color 0.3s;
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
}

.form-group select option {
  background: var(--dark-gray);
  color: var(--cream);
}

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

.btn-submit {
  align-self: flex-start;
  cursor: pointer;
}

/* ========== FAQ ========== */
.faq-section { background: var(--black); }

.faq-list {
  max-width: 800px;
  margin-top: 2rem;
}

.faq-item {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-item summary {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: 650px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--black);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-accent {
  font-weight: 400;
  color: var(--accent);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(245,242,237,0.5);
  line-height: 1.6;
}

.footer-contact a { transition: color 0.3s; }
.footer-contact a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(245,242,237,0.5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease);
}

.footer-social a svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.footer-social a span {
  line-height: 1;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212,82,10,0.06);
}

.footer-nav h4, .footer-company h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.footer-nav li, .footer-company li { margin-bottom: 0.7rem; }

.footer-nav a, .footer-company a {
  font-size: 0.88rem;
  color: rgba(245,242,237,0.5);
  transition: color 0.3s;
}

.footer-nav a:hover, .footer-company a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

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

.footer-legal a,
.footer-legal button {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-legal a:hover,
.footer-legal button:hover { color: var(--cream); }

/* ========== OVERLAY WIPE ========== */
/* Overlay wipe removed — using hero parallax fade instead */

/* ========== PARALLAX SQUARES ========== */
.parallax-squares {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.p-square {
  position: absolute;
  border: 1px solid rgba(212,82,10,0.1);
  border-radius: 3px;
}

.p-square:nth-child(1) { width: 40px; height: 40px; top: 10%; left: 8%; }
.p-square:nth-child(2) { width: 20px; height: 20px; top: 25%; right: 12%; }
.p-square:nth-child(3) { width: 30px; height: 30px; top: 60%; left: 15%; }
.p-square:nth-child(4) { width: 50px; height: 50px; top: 75%; right: 8%; }
.p-square:nth-child(5) { width: 15px; height: 15px; top: 15%; left: 45%; }
.p-square:nth-child(6) { width: 35px; height: 35px; top: 80%; left: 40%; }
.p-square:nth-child(7) { width: 25px; height: 25px; top: 40%; right: 25%; }
.p-square:nth-child(8) { width: 18px; height: 18px; top: 50%; left: 25%; }

.rts-intro { position: relative; overflow: hidden; }
.rts-intro .container { position: relative; z-index: 1; }

/* ========== SCRUB TEXT (scroll-linked word opacity) ========== */
.scrub-text .word {
  display: inline-block;
  margin-right: 0.3em;
}

.scrub-text .word-inner {
  display: inline-block;
  opacity: 0.15;
  transition: none;
}

/* ========== SHOWCASE — cinematic reveal ========== */
.showcase {
  height: 100vh;
  background: var(--black);
  position: relative;
  padding: 0;
}

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

.showcase-media {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: inset(20%);
  transform: scale(0.8);
  will-change: clip-path, transform;
}

.showcase-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.showcase-sticky::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(transparent, rgba(10,10,10,0.9));
  z-index: 1;
  pointer-events: none;
}

.showcase-caption {
  position: absolute;
  bottom: 3rem;
  left: clamp(1.5rem, 4vw, 4rem);
  z-index: 2;
  opacity: 0;
}

.showcase-caption h2 {
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

/* ========== INDUSTRIES — full-screen sticky carousel ========== */
.industries-sticky {
  background: var(--black);
  position: relative;
  padding: 0;
}

.industries-sticky-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.industry-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  will-change: transform, opacity;
}

.industry-slide:first-child {
  opacity: 1;
  transform: scale(1);
}

.industry-slide__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.industry-slide__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.industry-slide__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 2rem;
}

.industry-slide__content .label {
  color: var(--accent);
}

.industry-slide__content h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.industry-slide__content p {
  font-size: 1.1rem;
  color: rgba(245,242,237,0.55);
}

.industry-progress {
  position: fixed;
  bottom: 2rem;
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.industry-progress.visible { opacity: 1; }

.industry-counter, .industry-total {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cream);
  letter-spacing: 0.1em;
}

.industry-progress-bar {
  width: 60px; height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
  overflow: hidden;
}

.industry-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 25%;
  transition: width 0.3s;
}

/* ========== FOOTER — fixed behind content ========== */
.footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 1;
}

.footer-spacer {
  height: 1px;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

/* Push content above footer */
.faq-section { position: relative; z-index: 2; }
.contact-section { position: relative; z-index: 2; background: var(--dark); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100dvh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    align-items: flex-start;
    justify-content: center;
    padding: 6rem clamp(2rem, 8vw, 5rem);
    gap: 0;
    z-index: 1001;
    animation: mobileMenuIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  @keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-links.mobile-open a {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    text-transform: none;
    letter-spacing: 0;
    color: var(--cream);
    opacity: 0;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(245, 242, 237, 0.06);
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: mobileMenuLinkIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .nav-links.mobile-open a:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.mobile-open a:nth-child(2) { animation-delay: 0.1s; }
  .nav-links.mobile-open a:nth-child(3) { animation-delay: 0.15s; }
  .nav-links.mobile-open a:nth-child(4) { animation-delay: 0.2s; }
  .nav-links.mobile-open a:nth-child(5) { animation-delay: 0.25s; }
  .nav-links.mobile-open a:nth-child(6) { animation-delay: 0.3s; }
  .nav-links.mobile-open a:nth-child(7) { animation-delay: 0.35s; }
  @keyframes mobileMenuLinkIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
  }
  .nav-links.mobile-open a:hover,
  .nav-links.mobile-open a:active {
    color: var(--accent);
  }
  .nav-links.mobile-open .btn-nav {
    background: transparent;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    margin-top: 2rem;
    width: auto;
    border-bottom: 1px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
  }
  .comparison-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }
  .model-benefits { grid-template-columns: 1fr; }
  .apart-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .apart-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .industry-card { flex: 0 0 300px; height: 380px; }
  .process-steps { grid-template-columns: 1fr; gap: 0; }
  .process-step { text-align: left; padding: 1.5rem 0; }
  .process-step__icon { margin: 0 0 1rem; }
  .process-step__line {
    top: auto; right: auto; bottom: 0; left: 0;
    width: 100%; height: 1px;
  }
  .process-step:last-child .process-step__line { display: block; }
  .cot-controls { grid-template-columns: 1fr; }
  .cot-mat-grid { grid-template-columns: repeat(3, 1fr); }
  .cot-result-col { position: static; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ========== ICOMAT-STYLE ENHANCED EFFECTS ========== */

/* --- Animated horizontal lines (decorative accents) --- */
.section-divider {
  position: relative;
  overflow: hidden;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,82,10,0.6), transparent);
  animation: divider-sweep 3s ease-in-out infinite;
}
@keyframes divider-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- Enhanced card hover glow --- */
.feature-card:hover,
.service-card:hover,
.portfolio-item:hover,
.testimonial-card:hover {
  box-shadow: 0 0 30px rgba(212,82,10,0.08), 0 8px 32px rgba(0,0,0,0.3);
}

/* --- Service card inner glow line on hover --- */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card:hover::before {
  opacity: 1;
}

/* --- Feature card icon glow on hover --- */
.feature-card:hover .feature-card__icon {
  background: rgba(212,82,10,0.2);
  box-shadow: 0 0 20px rgba(212,82,10,0.15);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* --- Gradient mesh backgrounds for key sections --- */
.business-model::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(212,82,10,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 80%, rgba(212,82,10,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.business-model { position: relative; }
.business-model > .container { position: relative; z-index: 1; }

.calculator-section::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 120%; height: 140%;
  background:
    radial-gradient(ellipse 700px 500px at 50% 0%, rgba(212,82,10,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.calculator-section { position: relative; }
.calculator-section > .container { position: relative; z-index: 1; }

.future::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 800px 400px at 50% 50%, rgba(212,82,10,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.future { position: relative; }
.future > .container { position: relative; z-index: 1; }

/* --- Subtle border-bottom accent on labels --- */
.label {
  position: relative;
  display: inline-block;
}
.label::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.4;
}

/* --- Animated corner marks on comparison cards --- */
.comparison-card::before,
.comparison-card::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 1px solid rgba(212,82,10,0.2);
  transition: border-color 0.5s var(--ease);
}
.comparison-card::before {
  top: 12px; left: 12px;
  border-right: none; border-bottom: none;
}
.comparison-card::after {
  bottom: 12px; right: 12px;
  border-left: none; border-top: none;
}
.comparison-card { position: relative; overflow: hidden; }
.comparison-card:hover::before,
.comparison-card:hover::after {
  border-color: rgba(212,82,10,0.5);
}

/* --- Process step hover line accent --- */
.process-step::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.5s var(--ease), left 0.5s var(--ease);
}
.process-step:hover::after {
  width: 60px; left: calc(50% - 30px);
}

/* --- Testimonial card quote mark decoration --- */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px; left: 20px;
  font-size: 5rem;
  font-family: var(--font-serif);
  color: rgba(212,82,10,0.08);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card { position: relative; overflow: hidden; }

/* --- Subtle pulse on CTA button --- */
.future .btn-primary {
  animation: cta-pulse 2.5s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,82,10,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(212,82,10,0.15); }
}

/* --- Material card shine sweep on hover --- */
.material-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.material-card { position: relative; overflow: hidden; }
.material-card:hover::after {
  left: 100%;
}

/* --- Staggered dot-grid animation (subtle drift) --- */
@keyframes dot-drift {
  0% { background-position: 0 0; }
  100% { background-position: 24px 24px; }
}
.dot-grid::before {
  animation: dot-drift 20s linear infinite;
}

/* --- FAQ accordion border glow when open --- */
.faq-item.active {
  border-color: rgba(212,82,10,0.25);
  box-shadow: 0 0 15px rgba(212,82,10,0.05);
}

/* --- Contact section gradient mesh --- */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 500px 400px at 80% 30%, rgba(212,82,10,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 70%, rgba(212,82,10,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.contact-section { position: relative; }
.contact-section > .container { position: relative; z-index: 1; }
