/* ALPNA CONSULT — stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Exactly matches the cream backdrop of the cube video — seamless blend */
  --bg: #FAEEDB;
  --bg-raised: #FCF3E3;
  --bg-deep: #F1E4CB;
  --ink: #1A1815;
  --ink-2: #2E2A24;
  --ink-3: #56504A;
  --muted: #8A837C;
  --rule: #E6D9BD;
  --rule-strong: #D4C5A4;

  /* Pastel palette — from the cube */
  --pastel-yellow: #F4D97A;
  --pastel-yellow-soft: #FBEFC4;
  --pastel-yellow-ink: #6B5316;

  --pastel-blue: #A8C8E8;
  --pastel-blue-soft: #E2ECF7;
  --pastel-blue-ink: #234E77;

  --pastel-green: #B6D4B1;
  --pastel-green-soft: #E1EFDE;
  --pastel-green-ink: #2F5A2C;

  --pastel-pink: #F0B8B8;
  --pastel-pink-soft: #F9DFDF;
  --pastel-pink-ink: #7A3535;

  /* Typography */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Density */
  --section-py: 72px;
  --container: 1240px;
  --radius: 14px;
  --radius-sm: 10px;
}

[data-density="compact"] {
  --section-py: 48px;
}
[data-density="roomy"] {
  --section-py: 120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Scroll-scrubbed cube background — centered, full-screen, very transparent */
.cube-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.cube-bg video {
  width: min(95vh, 95vw);
  height: min(95vh, 95vw);
  object-fit: contain;
  opacity: 0.55;
  mix-blend-mode: normal;
  filter: saturate(1);
}
.cube-bg::after {
  /* subtle radial vignette so the cube fades into the page edges */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 85%);
}

/* Transparent sections — let the cube show through */
section,
.why, .process, .faq {
  background: transparent !important;
  border-color: transparent !important;
}
.footer { background: transparent; }
.nav { background: color-mix(in oklab, var(--bg) 60%, transparent); }
.nav.is-scrolled { background: color-mix(in oklab, var(--bg) 82%, transparent); }

/* Cards stay readable with a soft translucent fill */
.why-card, .testi-card {
  background: color-mix(in oklab, var(--bg-raised) 80%, transparent) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.process-steps {
  background: color-mix(in oklab, var(--bg) 70%, transparent) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tabs {
  background: color-mix(in oklab, var(--bg-deep) 75%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Put all real content above the cube bg */
.nav, main, .footer, .tweaks-panel { position: relative; z-index: 2; }

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.logo-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.logo-mark span { display: block; border-radius: 2px; }
.logo-word-dim { color: var(--ink-3); font-weight: 500; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-menu {
  display: flex;
  gap: 34px;
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
}
.nav-menu a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.is-active { color: var(--ink); }
.nav-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--pastel-yellow);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(2px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: color-mix(in oklab, var(--ink) 90%, var(--ink-3)); }

.btn-pastel {
  background: var(--pastel-blue);
  color: var(--pastel-blue-ink);
}
.btn-pastel:hover { background: color-mix(in oklab, var(--pastel-blue) 85%, var(--ink)); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  border-radius: 0;
}
.btn-link:hover { color: var(--ink-2); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.italic { font-style: italic; }

.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 52ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-sans);
}

/* ---------- Section scaffolding ---------- */
section {
  padding: var(--section-py) 0;
  position: relative;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.section-num {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  padding: 3px 8px;
  background: var(--bg-deep);
  border-radius: 4px;
}
.section-label-text::before {
  content: "—";
  margin-right: 10px;
  color: var(--rule-strong);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 48px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  max-width: 900px;
}
/* When the cube is a global BG on the right, let the hero right column breathe */
.hero-visual-frame {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}
.hero-visual-frame::before { display: none; }
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em {
  font-style: italic;
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.16em;
  background: var(--pastel-yellow);
  z-index: -1;
  opacity: 0.8;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}
.hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.hero-visual-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(247,244,238,0.25) 100%);
}
.hero-visual-badge {
  position: absolute;
  top: 20px; left: 20px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-visual-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pastel-green);
  animation: pulse 2s ease-in-out infinite;
}
.hero-visual-caption {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-aside {
  position: absolute;
  top: 90px;
  right: -160px;
  width: 360px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  transform: rotate(-90deg);
  transform-origin: left top;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero layout variants */
[data-hero="right"] .hero-grid { grid-template-columns: 1.25fr 1fr; }
[data-hero="left"] .hero-grid { grid-template-columns: 1fr 1.25fr; direction: rtl; }
[data-hero="left"] .hero-grid > * { direction: ltr; }

/* ---------- Why us ---------- */
.why {
  background: var(--bg-raised);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.why-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-bottom: 48px;
  align-items: end;
}
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -20px rgba(26,24,21,0.2);
}
.why-card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--ink);
}
.why-card:nth-child(1) .why-card-icon { background: var(--pastel-yellow-soft); }
.why-card:nth-child(2) .why-card-icon { background: var(--pastel-blue-soft); }
.why-card:nth-child(3) .why-card-icon { background: var(--pastel-green-soft); }
.why-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.why-card p {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Services ---------- */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-bottom: 48px;
  align-items: end;
}
.tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-deep);
  border-radius: 999px;
  gap: 2px;
  position: relative;
  margin-bottom: 40px;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: 999px;
  cursor: pointer;
  z-index: 1;
  transition: color 0.25s ease;
}
.tab.is-active { color: #000; font-weight: 600; }
.tab-indicator {
  position: absolute;
  top: 4px; bottom: 4px;
  background: var(--bg);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(26,24,21,0.08);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.services-panel {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 64px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.45s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.services-visual {
  position: relative;
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  display: flex; align-items: stretch; justify-content: stretch;
  padding: 110px 24px 110px;
}
.services-benefits {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.services-benefits-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 2px;
}
.services-benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 24, 21, 0.06);
}
.benefit-card-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.benefit-card-body {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
}
@media (max-width: 980px) {
  .services-visual { padding: 64px 16px 100px; min-height: auto; }
}
.services-visual video {
  width: 70%; height: 70%; object-fit: contain;
}
.services-visual-bg {
  position: absolute; inset: 0;
}
.services-visual-bg.firme {
  background: linear-gradient(135deg, var(--pastel-yellow-soft) 0%, var(--pastel-blue-soft) 100%);
}
.services-visual-bg.autoritati {
  background: linear-gradient(135deg, var(--pastel-green-soft) 0%, var(--pastel-pink-soft) 100%);
}
.services-visual-tag {
  position: absolute; top: 24px; left: 24px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.services-visual-footer {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.services-visual-footer .big {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.01em;
}
.services-visual-footer .small {
  font-size: 13px;
  color: var(--ink-3);
}

.services-content h3 {
  font-size: clamp(30px, 3vw, 44px);
  margin-bottom: 16px;
}
.services-content > p {
  color: var(--ink-3);
  max-width: 52ch;
  margin-bottom: 36px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-top: 1px solid var(--rule);
}
.service-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 0.25s ease;
}
.service-list li:hover { padding-left: 8px; }
.service-list-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.service-list-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.service-list-title em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
  margin-top: 3px;
}
.service-list-arrow {
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.service-list li:hover .service-list-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Process ---------- */
.process {
  background: var(--bg-raised);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.process-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-bottom: 40px;
  align-items: end;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.process-step {
  padding: 40px 36px 48px;
  border-right: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.process-step:last-child { border-right: none; }
.process-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.process-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.process-step-tile {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
}
.process-step:nth-child(1) .process-step-tile { background: var(--pastel-yellow); color: var(--pastel-yellow-ink); }
.process-step:nth-child(2) .process-step-tile { background: var(--pastel-blue); color: var(--pastel-blue-ink); }
.process-step:nth-child(3) .process-step-tile { background: var(--pastel-green); color: var(--pastel-green-ink); }
.process-step h3 {
  font-size: 34px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.process-step-pill {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.process-step p {
  color: var(--ink-3);
  font-size: 14.5px;
  margin: 0;
  flex: 1;
}
.process-step-meta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Trust / stats ---------- */
.trust-section {
  padding: 120px 0 0;
}
.trust-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-bottom: 48px;
  align-items: end;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 84px);
  word-break: break-word;
  overflow-wrap: anywhere;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.trust-stat-unit {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  margin-left: 4px;
  color: var(--ink-3);
}
.trust-stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}

/* ---------- Testimonials ---------- */
.testi-head {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: end;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  padding: 36px;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}
.testi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 3px;
}
.testi-card:nth-child(1)::before { background: var(--pastel-yellow); }
.testi-card:nth-child(2)::before { background: var(--pastel-blue); }
.testi-card:nth-child(3)::before { background: var(--pastel-green); }
.testi-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  flex: 1;
}
.testi-attrib {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.testi-attrib-name {
  font-size: 14px;
  font-weight: 500;
}
.testi-attrib-role {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}
.testi-attrib-sample {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-raised);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.faq-intro h2 { margin-bottom: 20px; }
.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  line-height: 1.3;
}
.faq-toggle {
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep);
  color: var(--ink);
  transition: background 0.2s ease;
}
.faq-item.is-open .faq-toggle {
  background: var(--pastel-yellow);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 0 28px;
  color: var(--ink-3);
  font-size: 15px;
  max-width: 60ch;
  line-height: 1.6;
}

/* ---------- Final CTA + Contact ---------- */
.cta {
  padding: var(--section-py) 0;
}
.cta-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 72px;
  background: var(--ink);
  color: var(--bg);
  border-radius: calc(var(--radius) + 6px);
  position: relative;
  overflow: hidden;
}
.cta-wrap h2 {
  color: var(--bg);
  font-size: clamp(38px, 4vw, 60px);
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  line-height: 1.05;
}
.cta-wrap h2 em { font-style: italic; color: var(--pastel-yellow); }
.cta-wrap p {
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  font-size: 16px;
  line-height: 1.55;
  max-width: 44ch;
  margin-bottom: 40px;
}
.cta-contact-big {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.cta-contact-big .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.cta-contact-big .value {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: -0.01em;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.cta-contact-big .value:hover { color: var(--pastel-yellow); }
.cta-contact-small {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(247,244,238,0.15);
  font-size: 14px;
}
.cta-contact-small svg { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.cta-contact-small .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  display: flex; align-items: center; gap: 10px;
}
.cta-contact-big .label { color: color-mix(in oklab, var(--bg) 55%, transparent) !important; }
.cta-contact-big .value { color: var(--bg) !important; }

.cta-form {
  background: color-mix(in oklab, var(--bg) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  padding: 36px;
  border-radius: var(--radius);
}
.cta-form h3 { color: var(--bg); font-size: 24px; margin-bottom: 24px; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}
.form-row input, .form-row textarea, .form-row select {
  padding: 14px 16px;
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  border-radius: 10px;
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: color-mix(in oklab, var(--bg) 40%, transparent); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--pastel-yellow);
  background: color-mix(in oklab, var(--bg) 5%, transparent);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-row select option {
  background: var(--ink);
  color: var(--bg);
}
.form-row.has-error input,
.form-row.has-error textarea {
  border-color: var(--pastel-pink);
}
.form-error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pastel-pink);
  letter-spacing: 0.04em;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  background: var(--pastel-yellow);
  color: var(--pastel-yellow-ink);
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.form-submit:hover { background: color-mix(in oklab, var(--pastel-yellow) 85%, white); }
.form-submit:active { transform: translateY(1px); }
.form-note {
  margin-top: 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
}

.form-success { padding: 36px; text-align: center; color: var(--bg); }
.form-success-mark {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--pastel-green);
  display: flex; align-items: center; justify-content: center;
  color: var(--pastel-green-ink);
}
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: color-mix(in oklab, var(--bg) 70%, transparent); max-width: 32ch;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 24px;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-links a:hover { color: var(--ink-2); }
.footer-brand p {
  color: var(--ink-3);
  font-size: 14px;
  max-width: 34ch;
  margin: 20px 0 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  gap: 24px;
}

/* ---------- Cube motif floating ---------- */
.cube-motif {
  object-fit: contain;
  border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --container: 100%; }
  .container { padding: 0 24px; }
}

@media (max-width: 980px) {
  .hero-grid, .why-head, .why-cards, .services-head, .services-panel,
  .process-head, .process-steps, .testi-head, .testi-grid, .faq-grid,
  .cta-wrap, .footer-grid, .trust-grid, .trust-head {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .trust-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 32px 20px; }
  .trust-section { padding: 64px 0 0; }
  .process-step { border-right: none; border-bottom: 1px solid var(--rule); min-height: auto; padding: 28px 24px 32px; }
  .process-step:last-child { border-bottom: none; }
  .process-step-header { margin-bottom: 24px; }
  .cta-wrap { padding: 40px 24px; }
  .cta-form { padding: 24px; }
  .nav-menu { display: none; }
  :root { --section-py: 56px; }
  .display-xl { font-size: clamp(38px, 9vw, 64px); }
  .display-lg { font-size: clamp(32px, 7vw, 48px); }
  .display-md { font-size: clamp(26px, 5.5vw, 38px); }
  .lede { font-size: 16px; }
  .hero { padding-top: 24px; padding-bottom: 32px; }
  .hero-meta { flex-wrap: wrap; gap: 20px; margin-top: 32px; padding-top: 20px; }
  .hero-meta-item { flex: 1 1 140px; }
  .hero-meta-item strong { font-size: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .why-card { padding: 24px; }
  .why-card h3 { font-size: 22px; }
  .testi-card { padding: 24px; }
  .testi-card blockquote { font-size: 18px; }
  .services-content h3 { font-size: clamp(24px, 5vw, 34px); }
  .service-list li { grid-template-columns: auto 1fr auto; gap: 12px; padding: 16px 0; }
  .service-list-title { font-size: 14.5px; }
  .service-list-title em { font-size: 12px; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13px; }
  .tab svg { display: none; }
  .faq-q { font-size: 18px; padding: 20px 0; }
  .cta-contact-big .value { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; }
  .trust-stat-num { font-size: clamp(40px, 12vw, 64px); }
  .cube-bg video { width: 80vw; height: 80vw; opacity: 0.18; }
  .cta-wrap h2 { font-size: clamp(28px, 6vw, 40px); }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .trust-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .nav-inner { height: 60px; }
  .nav-inner .btn { padding: 10px 14px; font-size: 13px; }
  .section-label { margin-bottom: 24px; flex-wrap: wrap; }
  .display-xl { font-size: clamp(34px, 10vw, 52px); line-height: 1.05; }
  .hero h1 em::after { display: none; }
}

/* Prevent any horizontal overflow */
html, body { overflow-x: hidden; max-width: 100%; width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
.container { box-sizing: border-box; max-width: 100%; }

/* ---------- Mobile hardening ---------- */
@media (max-width: 980px) {
  /* Inputs / form fields must always fit their parent */
  .form-row input,
  .form-row textarea,
  .form-row select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .form-two { grid-template-columns: 1fr; gap: 18px; }

  /* Long emails / phone numbers must wrap, not push the layout wider */
  .cta-contact-big .value {
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: clamp(22px, 6.5vw, 32px);
  }
  .cta-contact-big .value span { flex-wrap: wrap; }
  .cta-contact-small {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .cta-contact-small .k { margin-top: 12px; }

  /* The decorative rotated label off the right edge — hide on mobile (causes h-scroll) */
  .hero-aside { display: none !important; }

  /* Footer links can be long; allow wrap */
  .footer-links a, .footer-bottom { word-break: break-word; overflow-wrap: anywhere; }

  /* Tabs scroll horizontally inside their bar instead of pushing the page */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* CTA wrap shouldn't have huge padding on mobile */
  .cta-wrap { padding: 32px 20px !important; }
  .cta-form { padding: 20px !important; }
}

@media (max-width: 540px) {
  .cta-wrap { padding: 24px 16px !important; }
  .cta-form { padding: 18px !important; }
  .container { padding: 0 16px !important; }
  .form-row input,
  .form-row textarea,
  .form-row select { padding: 12px 14px; font-size: 16px; } /* 16px prevents iOS auto-zoom */
}
