﻿*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Gros Ventre";
  src: url("assets/fonts/Gros-Ventre-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gros Ventre";
  src: url("assets/fonts/Gros-Ventre-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f5;
  --bg-pure: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e4e4e0;
  --orange: #ff6b1b;
  --orange-soft: rgba(255, 107, 27, 0.12);
  --font-display: "Gros Ventre", "Geologica", system-ui, sans-serif;
  --font-body: "Geologica", system-ui, sans-serif;
  --header-h: 56px;
  --max: 1180px;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

body.ensembl {
  background: var(--bg);
  color: var(--ink);
}

body.nav-open,
body.lead-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

.e-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ── Header ── */
.e-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 28px);
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.page-hub .e-header {
  position: relative;
  background: rgba(247, 247, 245, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  grid-template-columns: auto 1fr auto auto;
}

.page-hub .e-header-cta {
  color: #111;
}

.page-hub .e-header-cta:hover {
  color: #000;
  opacity: 0.75;
}

.e-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.e-logo img {
  height: 28px;
  width: auto;
}

.e-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #111;
}

.e-nav a:hover,
.e-nav a.is-active {
  color: #000;
}

.e-header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--orange);
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
}

.e-header-cta:hover {
  filter: none;
  color: #e55a0f;
  opacity: 0.9;
}

.e-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-pure);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  justify-self: end;
}

.e-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s;
}

.e-burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.e-burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ── Buttons ── */
.e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--bg-pure);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.e-btn-dark,
.e-btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.e-btn-dark:hover,
.e-btn-orange:hover {
  filter: brightness(1.06);
}

.e-btn-light {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.e-btn-light:hover {
  background: var(--ink);
  color: var(--bg);
}

.e-btn-green {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

/* ── Hub (no scroll) ── */
.page-hub {
  height: 100svh;
  overflow: hidden;
  position: relative;
  background: #1a1a18;
}

.hub-stage {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  --hub-x: max(20px, calc((100% - min(var(--max), calc(100% - 40px))) / 4));
}

.hub-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #1a1a18;
}

.hub-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-hub .e-btn-light {
  background: rgba(255, 255, 255, 0.55);
  border-color: #111;
  color: #111;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-hub .e-btn-orange {
  background: rgba(255, 107, 27, 0.48);
  border-color: rgba(255, 107, 27, 0.65);
  color: #111;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-hub .e-btn-orange:hover {
  filter: none;
  background: rgba(255, 107, 27, 0.62);
}

.page-hub .hub {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: var(--header-h) 1fr auto;
  overflow-x: hidden;
}

.page-hub .hub > .e-header,
.page-hub .hub > .hub-footer {
  position: relative;
  z-index: 2;
}

.hub-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto 3fr;
  align-items: start;
  justify-items: start;
  width: min(var(--max), calc(100% - 40px));
  margin-left: var(--hub-x);
  margin-right: auto;
  min-height: 0;
  height: 100%;
  padding: 0 0 8px;
}

.hub-hero {
  grid-row: 2;
  min-width: 0;
  position: relative;
  max-width: 720px;
  width: 100%;
  overflow: hidden;
  text-align: left;
}

.hub-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.hub-title-wrap {
  position: relative;
  display: block;
  margin-bottom: 18px;
  max-width: 100%;
  overflow: hidden;
}

.hub-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  color: #000;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hub-title span {
  display: block;
}

.hub-title .accent {
  color: var(--orange);
}

.hub-lead {
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: #111;
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.5;
  padding: 12px 16px;
  background: rgba(247, 247, 245, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: fit-content;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.hub-facts {
  position: absolute;
  left: var(--hub-x);
  bottom: clamp(12px, 2.5vh, 24px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(10px, 2vw, 22px);
}

.hub-fact {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  margin: 0;
  font-family: var(--font-display);
  line-height: 1;
  color: #000;
}

.hub-fact-num {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hub-fact-label {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  font-weight: 400;
  line-height: 1.2;
  color: #111;
}

.hub-fact-cta {
  padding: 0;
  border: none;
  background: transparent;
  color: #111;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
}

.hub-fact-cta:hover {
  color: #000;
  opacity: 0.75;
}

.hub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 3vw, 28px);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(247, 247, 245, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  color: #111;
}

.hub-footer a:hover {
  color: #000;
}

.hub-footer-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Inner pages ── */
.page-inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.e-main,
main.e-article {
  flex: 1;
  padding: 40px 0 64px;
}

.e-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.e-back:hover {
  color: var(--orange);
}

.e-page-head {
  margin-bottom: 36px;
  max-width: 720px;
}

.e-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.e-page-head h1,
.e-blog-page-head h1,
.e-ecosystem-head h1,
.e-legal-head h1,
.e-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.e-pill {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.e-page-head p,
.e-subtitle {
  margin-top: 14px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
}

/* ── Collection / card grids ── */
.e-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.e-card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.e-card {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 24px 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.e-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.e-card small {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.e-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.e-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-top: auto;
}

/* ── Products / carousel ── */
.e-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.e-carousel-btn {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-pure);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.e-carousel-btn:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

.e-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.e-carousel-viewport {
  overflow: hidden;
  min-width: 0;
}

.e-carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.e-carousel .e-product {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  background: var(--bg-pure);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.e-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.e-product {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.e-product:hover,
.e-carousel .e-product:hover {
  border-color: var(--ink);
}

.e-product-media {
  aspect-ratio: 4 / 5;
  background: #f0f0ee;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  min-height: 280px;
}

.e-carousel .e-product-media {
  min-height: clamp(300px, 36vh, 420px);
  padding: 22px;
}

.e-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.e-product:hover .e-product-media img {
  transform: scale(1.03);
}

.e-product-body {
  padding: 18px 18px 20px;
  display: grid;
  gap: 6px;
}

.e-product h3 {
  font-size: 18px;
  font-weight: 700;
}

.e-product p {
  font-size: 14px;
  color: var(--muted);
}

.e-product b {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
}

.e-product span {
  font-size: 13px;
  color: var(--muted);
}

.e-carousel-hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.page-catalog .e-wrap {
  width: min(1280px, calc(100% - 40px));
}

/* ── Client ticker ── */
.e-clients {
  margin: 8px 0 36px;
}

.e-ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-pure);
  padding: 16px 0;
  white-space: nowrap;
}

.e-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: e-ticker 32s linear infinite;
}

.e-ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.e-ticker-group span {
  flex: 0 0 auto;
  padding: 0 2.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.e-ticker-group span::after {
  content: "·";
  margin-left: 2.4rem;
  color: var(--orange);
}

@keyframes e-ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ── Client journey ── */
.e-journey {
  position: relative;
  margin-bottom: 56px;
}

.e-journey-rail {
  display: none;
}

.e-journey-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.e-journey-step {
  text-align: center;
}

.e-journey-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 260px;
  margin-bottom: 14px;
  background: var(--bg-pure);
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--orange);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s, opacity 0.35s;
  animation: journeyPulse 15s ease-in-out infinite;
}

.e-journey-step:nth-child(1) .e-journey-visual { animation-delay: 0s; }
.e-journey-step:nth-child(2) .e-journey-visual { animation-delay: 3s; }
.e-journey-step:nth-child(3) .e-journey-visual { animation-delay: 6s; }
.e-journey-step:nth-child(4) .e-journey-visual { animation-delay: 9s; }
.e-journey-step:nth-child(5) .e-journey-visual { animation-delay: 12s; }

@keyframes journeyPulse {
  0%, 16%, 100% {
    opacity: 0.55;
    transform: scale(0.98);
    border-color: var(--line);
    box-shadow: none;
  }
  4%, 12% {
    opacity: 1;
    transform: scale(1);
    border-color: var(--orange);
    box-shadow: 0 8px 28px rgba(255, 107, 27, 0.15);
  }
}

.e-journey-step h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.e-journey-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.e-page-head-section {
  margin-top: 12px;
}

/* ── Case photo gallery ── */
.e-case-showcase {
  margin: 0 0 36px;
}

.e-case-showcase-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.e-case-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 40px;
  padding: 0;
}

.e-case-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-pure);
  aspect-ratio: 3 / 4;
}

.e-case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── About page ── */
.e-about-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  max-width: 42rem;
}

.e-prose {
  max-width: 42rem;
  margin-bottom: 40px;
}

.e-prose p {
  margin: 0 0 16px;
  line-height: 1.65;
  color: var(--ink);
}

.e-about-pillars {
  margin-bottom: 48px;
  padding: 28px 24px;
  background: var(--bg-pure);
  border: 1px solid var(--line);
}

.e-about-list {
  margin: 16px 0 20px;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.e-about-list li {
  margin-bottom: 6px;
}

.e-about-tagline {
  margin: 0;
  font-weight: 500;
  font-size: 1.05rem;
}

/* ── Contacts page ── */
.e-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 48px;
}

.e-contact-card {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 28px 24px;
}

.e-contact-card p {
  margin: 0 0 20px;
  line-height: 1.55;
  color: var(--muted);
}

.e-contact-list {
  margin: 20px 0 0;
}

.e-contact-list div {
  margin-bottom: 18px;
}

.e-contact-list dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.e-contact-list dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.e-why {
  padding: 28px 24px;
  background: var(--bg-pure);
  border: 1px solid var(--line);
}

.e-why-list {
  margin: 20px 0 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.e-why-list li {
  margin-bottom: 8px;
}

/* ── Cases / process / benefits ── */
.e-case-grid,
.e-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.e-process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.e-case-grid article,
.e-process-grid article,
.e-benefit-grid article {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 22px 18px;
}

.e-case-grid span,
.e-process-grid b {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.e-process-grid b {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.e-case-grid h3,
.e-process-grid h3,
.e-benefit-grid h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.05;
}

.e-case-grid p,
.e-process-grid p,
.e-benefit-grid p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.e-benefit-grid span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--orange);
  font-weight: 700;
  font-size: 14px;
}

/* ── FAQ ── */
.e-faq {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.e-faq details {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 0;
}

.e-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.e-faq summary::-webkit-details-marker {
  display: none;
}

.e-faq details[open] summary {
  color: var(--orange);
}

.e-faq p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Calculator ── */
.e-calculator {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.e-calc-form,
.e-calc-result {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 22px;
}

.e-calc-form {
  display: grid;
  gap: 14px;
}

.e-calc-form label {
  display: grid;
  gap: 6px;
}

.e-calc-form label > span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.e-calc-form select,
.e-calc-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.e-calc-form select:focus,
.e-calc-form input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.e-calc-form .e-btn {
  width: 100%;
}

.e-calc-result span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.e-calc-result strong {
  display: block;
  margin: 8px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
}

.e-calc-result ul {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.e-calc-result li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.e-calc-result li span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

.e-calc-result li b {
  font-weight: 500;
}

.e-calc-result p {
  font-size: 13px;
  color: var(--muted);
}

.e-calc-success {
  margin-top: 12px;
  color: #1a7a3a;
}

.e-calc-error {
  margin-top: 12px;
  color: #c0392b;
}

/* ── Final CTA strip ── */
.e-final {
  margin-top: 48px;
}

.e-final-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 24px;
  background: var(--ink);
  color: #fff;
}

.e-final-box span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.e-final-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.e-final-box .e-btn {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

/* ── Blog / ecosystem / legal ── */
.e-blog-list {
  display: grid;
  gap: 12px;
}

.e-blog-item {
  display: block;
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 22px;
  transition: border-color 0.2s;
}

.e-blog-item:hover {
  border-color: var(--ink);
}

.e-blog-item-lead {
  border-color: var(--ink);
}

.e-blog-item-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}

.e-blog-tag {
  color: var(--orange);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.e-blog-item h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}

.e-blog-item p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.e-blog-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
}

.e-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.e-eco-card {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 180px;
}

.e-eco-card-lead {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.e-eco-badge {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.e-eco-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.e-eco-card p {
  color: var(--muted);
  font-size: 14px;
}

.e-eco-card-lead p {
  color: rgba(255, 255, 255, 0.7);
}

.e-eco-note {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--orange);
}

.e-article,
.e-article-body {
  max-width: 720px;
}

.e-article h1,
.page-blog .e-wrap > h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 16px;
}

.e-article p,
.e-article-body p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.e-article h2,
.e-article-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
  margin: 28px 0 10px;
}

.e-article-body {
  margin: 20px 0 28px;
}

.e-legal-page .e-legal-head,
.e-legal-nav,
.e-legal-block,
.e-legal-doc {
  max-width: 820px;
}

.e-legal-nav {
  margin: 28px 0;
  padding: 18px;
  background: var(--bg-pure);
  border: 1px solid var(--line);
}

.e-legal-nav ol {
  list-style: decimal;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.e-legal-nav a:hover {
  color: var(--orange);
}

.e-legal-block,
.e-legal-doc {
  margin-bottom: 36px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.e-legal-block h2,
.e-legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.e-legal-block h3,
.e-legal-doc h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 18px 0 8px;
}

.e-legal-block p,
.e-legal-block li,
.e-legal-doc p,
.e-legal-doc li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.e-legal-block ul,
.e-legal-doc ul {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 12px;
}

.e-legal-download a {
  color: var(--orange);
  font-weight: 500;
}

.e-social {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.e-social-list {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.e-social-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--bg-pure);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.e-social-icon {
  width: 18px;
  height: 18px;
}

/* ── Footer ── */
.e-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}

.e-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.e-footer strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.e-footer a:hover {
  color: var(--orange);
}

.e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.e-cookie-settings {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.e-cookie-settings:hover {
  color: var(--orange);
}

/* ── Cookie banner ── */
.e-cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  width: min(360px, calc(100% - 32px));
  padding: 18px;
  background: var(--bg-pure);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.e-cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.e-cookie-banner a {
  color: var(--orange);
}

.e-cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.e-cookie-actions .e-btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 12px;
}

/* ── Lead modal ── */
.e-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
}

.e-lead-modal[hidden] {
  display: none;
}

.e-lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
}

.e-lead-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90svh, 820px);
  overflow: auto;
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 22px;
}

.e-lead-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.e-lead-head h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.e-lead-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.e-lead-close:hover {
  border-color: var(--ink);
}

.e-lead-form {
  display: grid;
  gap: 14px;
}

.e-lead-field {
  display: grid;
  gap: 6px;
}

.e-lead-field[hidden] {
  display: none;
}

.e-lead-field > span,
.e-lead-field > legend {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.e-lead-field abbr {
  color: var(--orange);
  text-decoration: none;
}

.e-lead-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.e-lead-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.e-lead-chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.e-lead-field input,
.e-lead-field select,
.e-lead-field textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.e-lead-field textarea {
  min-height: 96px;
  resize: vertical;
}

.e-lead-field input:focus,
.e-lead-field select:focus,
.e-lead-field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.e-lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.e-lead-note {
  font-size: 12px;
  color: var(--muted);
}

.e-lead-note a {
  color: var(--orange);
}

.e-lead-submit {
  width: 100%;
}

.e-lead-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.e-lead-success {
  color: #1a7a3a;
  font-size: 14px;
}

.e-lead-error {
  color: #c0392b;
  font-size: 14px;
}

/* ── Segment (optional) ── */
.e-segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.e-segment-grid article {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  padding: 18px;
}

.e-segment-grid b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.e-segment-grid p {
  font-size: 13px;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .e-card-grid-4,
  .e-product-grid,
  .e-process-grid,
  .e-segment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-main {
    grid-template-columns: 1fr;
  }

  .e-carousel .e-product {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}

@media (max-width: 860px) {
  .page-hub {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-hub .hub {
    min-height: 100svh;
    height: auto;
    grid-template-rows: auto 1fr auto;
  }

  .hub-stage {
    --hub-x: 16px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    padding: 0 0 12px;
  }

  .hub-main {
    width: calc(100% - 32px);
    margin: 0 16px;
    height: auto;
    min-height: 0;
    grid-template-rows: auto;
    padding: clamp(20px, 5vh, 48px) 0 0;
  }

  .hub-hero {
    grid-row: auto;
    max-width: 100%;
  }

  .hub-title {
    font-size: clamp(2rem, 10.5vw, 2.85rem);
    letter-spacing: -0.03em;
  }

  .hub-kicker {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .hub-lead {
    font-size: 0.95rem;
    padding: 10px 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .hub-actions {
    width: 100%;
  }

  .hub-actions .e-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hub-facts {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 16px;
    padding: 0 0 12px;
    gap: 8px 14px;
    max-width: calc(100% - 32px);
  }

  .hub-fact {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .hub-fact-num {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hub-fact-label {
    font-size: 0.9rem;
  }

  .hub-fact-cta {
    font-size: 1.05rem;
  }

  .hub-footer {
    position: relative;
    z-index: 2;
  }

  .e-calculator,
  .e-case-grid,
  .e-benefit-grid,
  .e-ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .e-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: var(--header-h);
    gap: 10px 12px;
  }

  .e-logo {
    margin-right: auto;
  }

  .e-logo img {
    height: 30px;
    width: auto;
  }

  .e-header-cta {
    font-size: 15px;
    order: 2;
  }

  .e-burger {
    order: 3;
  }

  .e-nav {
    order: 10;
    width: 100%;
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg-pure);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    z-index: 99;
  }

  .e-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .e-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink);
  }

  .e-burger {
    display: flex;
  }

  .page-hub .e-header {
    position: sticky;
    top: 0;
    background: rgba(247, 247, 245, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .e-ticker-group span {
    padding: 0 1.5rem;
    font-size: 1rem;
  }

  .e-ticker-group span::after {
    margin-left: 1.5rem;
  }

  .e-journey-track {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .e-journey-visual {
    max-height: 200px;
    aspect-ratio: 16 / 10;
  }

  .e-case-gallery {
    grid-template-columns: repeat(2, 1fr);
    width: calc(100% - 32px);
  }

  .e-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .e-journey-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .e-journey-step:nth-child(4),
  .e-journey-step:nth-child(5) {
    grid-column: span 1;
  }
}

@media (min-width: 769px) {
  .e-case-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .e-card-grid,
  .e-product-grid,
  .e-process-grid,
  .e-segment-grid {
    grid-template-columns: 1fr;
  }

  .e-lead-row {
    grid-template-columns: 1fr;
  }

  .e-final-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .hub-title-wrap {
    margin-bottom: 12px;
  }

  .e-page-head h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .e-carousel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .e-carousel-btn {
    display: none;
  }

  .e-carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .e-carousel-track {
    transform: none !important;
  }

  .e-carousel .e-product {
    flex: 0 0 calc((100% - 18px) / 2);
    scroll-snap-align: start;
  }

  .e-cookie-banner {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .e-wrap {
    width: calc(100% - 28px);
  }

  .hub-main {
    width: calc(100% - 24px);
    margin: 0 12px;
    padding-top: 16px;
  }

  .hub-title {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 0.9;
  }

  .hub-lead {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hub-facts {
    margin: 0 12px;
    gap: 6px 10px;
  }

  .hub-fact-num {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

  .hub-fact-label {
    font-size: 0.8rem;
  }

  .hub-fact-cta {
    font-size: 0.95rem;
    margin-top: 4px;
  }

  .hub-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    font-size: 12px;
    gap: 10px;
  }

  .hub-footer-meta {
    gap: 10px;
  }

  .hub-actions {
    flex-direction: column;
  }

  .hub-actions .e-btn {
    width: 100%;
    min-height: 44px;
    font-size: 13px;
  }

  .e-header-cta {
    font-size: 14px;
  }

  .e-carousel .e-product {
    flex: 0 0 86%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .e-journey-visual {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .e-product-media img,
  .e-card,
  .e-btn {
    transition: none;
  }

  .e-ticker-track {
    animation: none;
  }
}
