/* ============================================================
   EIAAW SOLUTIONS — Official Design System (LOCKED 2026-04-19)
   Source of truth: Sales marketing agent/public/landing.html
   ============================================================ */

:root {
  --bg: #FAF7F2;
  --bg-warm: #F3EDE0;
  --surface: #FFFFFF;

  --ink: #0F1A1D;
  --ink-2: #2A3438;
  --mute: #6B7A7F;

  --line: #D9CFBC;
  --line-soft: #E8DFCC;

  --primary: #1FA896;
  --primary-dark: #11766A;
  --primary-tint: #E5F4F1;

  --danger: #B4412B;

  --gradient: linear-gradient(135deg, #22B8A5 0%, #11766A 55%, #0A4D47 100%);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--primary); color: var(--bg); }

/* ---------- Layout ---------- */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 1;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
}
.section-pad { padding: clamp(100px, 14vh, 180px) 0; }
.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  margin-bottom: clamp(64px, 10vh, 120px);
  align-items: end;
}
.section-head .label { grid-column: 1 / span 2; }
.section-head .title { grid-column: 3 / span 8; }
.section-head .aside {
  grid-column: 11 / span 2;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute);
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .section-head .label,
  .section-head .title,
  .section-head .aside { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.section-h {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}
.section-h em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary-dark);
}
.lead {
  font-size: clamp(18px, 1.1vw + 14px, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}
.kinetic .line { display: block; }
.kinetic .word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), filter 0.85s var(--ease), transform 0.85s var(--ease);
}
.kinetic .word.in { opacity: 1; filter: blur(0); transform: none; }
.indent { display: inline-block; padding-left: clamp(20px, 6vw, 96px); }

/* ---------- Reveal ---------- */
.rvl { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rvl.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line-soft); background: rgba(250,247,242,0.88); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav-logo-text strong {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  text-transform: uppercase;
}
.nav-logo-text small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform-origin: left; transform: scaleX(1); }
@media (max-width: 720px) {
  .nav-logo-text small { display: none; }
  .nav-links { gap: 14px; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .nav-inner { padding: 14px 0; }
  .nav-logo img { width: 30px; height: 30px; }
  .nav-logo-text strong { font-size: 13px; letter-spacing: 0.06em; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 13px; }
  .nav-links .btn { padding: 10px 14px; font-size: 13px; }
  .nav-links .btn .arrow { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--ink); color: #FFFFFF; font-weight: 600; }
.btn-primary:hover { background: var(--primary-dark); color: #FFFFFF; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); padding: 13px 4px; border-radius: 0; }
.btn-ghost::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 10px;
  height: 1px;
  background: var(--ink);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.45s var(--ease);
}
.btn-ghost:hover::after { transform-origin: left; transform: scaleX(1); }
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 17px 28px; font-size: 15px; }
.magnetic { will-change: transform; transition: transform 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 10vh, 140px) 0 clamp(100px, 12vh, 160px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(31,168,150,0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(17,118,106,0.06), transparent 70%);
}
.hero-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(32px, 6vh, 72px);
  flex-wrap: wrap;
  gap: 12px;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.availability .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(31,168,150,0.2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(31,168,150,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(31,168,150,0); }
}
.hero-display { margin-bottom: clamp(28px, 4vh, 48px); }
.hero-meta-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  margin-top: clamp(40px, 6vh, 72px);
  align-items: start;
}
.hero-meta-row .meta-text { grid-column: 1 / span 6; }
.hero-meta-row .meta-ctas {
  grid-column: 8 / span 5;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 820px) {
  .hero-meta-row .meta-text,
  .hero-meta-row .meta-ctas { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Figure / imagery (floating-elegant) ---------- */
.figure-elegant {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-warm);
  box-shadow:
    0 2px 4px rgba(15,26,29,0.05),
    0 16px 40px -12px rgba(15,26,29,0.18),
    0 48px 96px -24px rgba(15,26,29,0.28),
    0 80px 140px -40px rgba(15,26,29,0.22);
  transition: transform 0.9s var(--ease), box-shadow 0.9s;
  isolation: isolate;
}
.figure-elegant:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(15,26,29,0.06),
    0 24px 56px -12px rgba(15,26,29,0.22),
    0 64px 120px -24px rgba(15,26,29,0.32),
    0 110px 180px -40px rgba(15,26,29,0.26);
}
.figure-elegant img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: filter 0.9s var(--ease), transform 0.9s var(--ease);
}
.figure-elegant::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  pointer-events: none;
  z-index: 2;
}
.figure-elegant .grain {
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
.thumb-elegant {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-warm);
  box-shadow:
    0 1px 2px rgba(15,26,29,0.06),
    0 8px 20px -6px rgba(15,26,29,0.18),
    0 24px 48px -12px rgba(15,26,29,0.22);
  transition: transform 0.7s var(--ease), box-shadow 0.7s, filter 0.7s;
  isolation: isolate;
}
.thumb-elegant::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  pointer-events: none;
}
.thumb-elegant img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

/* ---------- Hero figure ---------- */
.hero-figure {
  margin-top: clamp(60px, 10vh, 100px);
  aspect-ratio: 21 / 9;
}
@media (max-width: 720px) { .hero-figure { aspect-ratio: 4 / 3; } }

/* ---------- Pitch / metrics ---------- */
.pitch .grid-12 { align-items: end; gap: clamp(24px, 3vw, 56px); }
.pitch .pitch-copy { grid-column: 1 / span 7; }
.pitch .pitch-copy h2 { margin-top: 18px; }
.pitch .pitch-copy p { margin-top: 28px; color: var(--ink-2); font-size: clamp(17px, 1vw + 13px, 20px); line-height: 1.55; max-width: 52ch; }
.pitch .pitch-copy strong { color: var(--ink); font-weight: 600; }

.metrics {
  grid-column: 9 / span 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.metric-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.metric-card .metric-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 3.6vw + 6px, 56px);
  letter-spacing: -0.035em;
  color: var(--primary-dark);
  line-height: 1;
}
.metric-card .metric-num em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
}
.metric-card .metric-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  text-align: right;
  max-width: 16ch;
}
@media (max-width: 900px) {
  .pitch .pitch-copy, .metrics { grid-column: 1 / -1; }
}

/* ---------- What We Do ---------- */
.what-we-do { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.capabilities {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  row-gap: clamp(36px, 6vh, 72px);
}
.capability {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(18px, 2vw, 32px);
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.capability .cap-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
}
.capability .cap-body h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 1.6vw + 10px, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--ink);
}
.capability .cap-body p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 40ch;
}
.capability .cap-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .capability { grid-column: 1 / -1; grid-template-columns: 96px 1fr; }
}

/* ---------- Ethics ---------- */
.ethics-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2vw, 32px);
  align-items: start;
}
.ethics-figure {
  grid-column: 1 / span 5;
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 5;
}
.ethics-list {
  grid-column: 7 / span 6;
  display: flex;
  flex-direction: column;
}
.ethic-point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.ethic-point:last-child { border-bottom: 1px solid var(--line); }
.ethic-point .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
  padding-top: 3px;
}
.ethic-point strong {
  display: block;
  font-size: clamp(18px, 1.2vw + 8px, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.ethic-point p { color: var(--ink-2); margin: 0; font-size: 15px; line-height: 1.6; max-width: 52ch; }
.commitment {
  grid-column: 7 / span 6;
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--primary-tint);
  border-radius: 20px;
  border-left: 3px solid var(--primary);
}
.commitment p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1vw + 10px, 20px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.commitment strong {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}
@media (max-width: 960px) {
  .ethics-figure { grid-column: 1 / -1; position: static; aspect-ratio: 16 / 10; }
  .ethics-list, .commitment { grid-column: 1 / -1; }
}

/* ---------- Products preview (homepage) ---------- */
.products { background: var(--bg-warm); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2vw, 32px);
}
.product-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.5s var(--ease);
  box-shadow: 0 1px 2px rgba(15,26,29,0.04);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow:
    0 8px 20px -6px rgba(15,26,29,0.14),
    0 32px 64px -20px rgba(15,26,29,0.22);
}
.product-card .pc-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--bg-warm); }
.product-card .pc-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
}
.product-card:hover .pc-media img { transform: scale(1.04); filter: saturate(1) contrast(1.04); }
.product-card .pc-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-card .pc-url {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.product-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 1.8vw + 10px, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.product-card p { color: var(--ink-2); margin: 0; font-size: 15px; line-height: 1.55; }
.product-card .pc-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
@media (max-width: 900px) { .product-card { grid-column: 1 / -1; } }

/* ---------- Products page layout ---------- */
.product-hero { padding: clamp(60px, 8vh, 100px) 0 clamp(48px, 6vh, 80px) !important; }
.product-detail { padding: clamp(80px, 10vh, 140px) 0; border-top: 1px solid var(--line-soft); }
.product-detail:first-of-type { border-top: 0; }
.product-detail .grid-12 { align-items: start; row-gap: clamp(32px, 6vh, 64px); gap: clamp(24px, 3vw, 56px); }
.product-detail .pd-media { grid-column: 1 / span 6; aspect-ratio: 5 / 4; position: sticky; top: 120px; }
.product-detail .pd-media.figure-elegant:hover { transform: none; }
.product-detail .pd-body  { grid-column: 7 / span 6; }
.product-detail.reverse .pd-media { grid-column: 7 / span 6; order: 2; }
.product-detail.reverse .pd-body  { grid-column: 1 / span 6; order: 1; }
.product-detail h2 {
  margin: 14px 0 18px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(30px, 3vw + 6px, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.product-detail h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--primary-dark); }
.product-detail .pd-url {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.product-detail .pd-url::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .6; }
.product-detail p { color: var(--ink-2); font-size: clamp(16px, 0.5vw + 14px, 18px); line-height: 1.6; max-width: 48ch; margin: 0 0 18px; }
.product-detail ul { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.product-detail ul li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.product-detail ul li > div { min-width: 0; }
.product-detail ul li strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }
.product-detail ul li::before {
  content: attr(data-n);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
  padding-top: 3px;
}
.product-detail .pd-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 960px) {
  .product-detail .pd-media,
  .product-detail.reverse .pd-media,
  .product-detail .pd-body,
  .product-detail.reverse .pd-body { grid-column: 1 / -1; }
  .product-detail .pd-media,
  .product-detail.reverse .pd-media { position: static; top: auto; aspect-ratio: 4 / 3; }
  .product-detail.reverse .pd-media { order: 1; }
  .product-detail.reverse .pd-body  { order: 2; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg); border-top: 1px solid var(--line-soft); }
.cta-band .wrap { padding-top: clamp(80px, 10vh, 120px); padding-bottom: clamp(80px, 10vh, 120px); }
.cta-band .grid-12 { align-items: end; }
.cta-band .cta-copy { grid-column: 1 / span 7; }
.cta-band .cta-copy p { color: var(--ink-2); max-width: 44ch; margin: 24px 0 0; font-size: clamp(17px, 1vw + 12px, 20px); line-height: 1.55; }
.cta-band .cta-actions { grid-column: 9 / span 4; display: flex; justify-content: flex-end; align-items: end; gap: 14px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .cta-band .cta-copy, .cta-band .cta-actions { grid-column: 1 / -1; }
  .cta-band .cta-actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
footer {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  color: var(--ink);
  padding: clamp(80px, 10vh, 120px) 0 48px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2vw, 32px); align-items: start; }
.footer-lockup-blk { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 24px; }
.footer-lockup-blk .lockup-big { display: flex; align-items: center; gap: 14px; }
.footer-lockup-blk .lockup-big img { width: 54px; height: 54px; }
.footer-lockup-blk .lockup-big .nav-logo-text strong { font-size: 18px; }
.footer-lockup-blk .lockup-big .nav-logo-text small { font-size: 11px; }
.footer-statement {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.4vw + 10px, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 28ch;
  margin: 0;
}
.footer-statement em { font-family: var(--sans); font-style: normal; color: var(--primary-dark); font-weight: 500; }
.footer-col { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-transform: uppercase;
  font-weight: 500;
}
.footer-col a { font-size: 14px; color: var(--ink-2); transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--primary-dark); }
.social-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -8px 0;
  border-radius: 9px;
  color: var(--ink-2);
  transition: color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.social-link svg { display: block; }
.social-link:hover { color: var(--primary-dark); background-color: rgba(15, 27, 31, 0.05); transform: translateY(-1px); }
.social-link:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.footer-bottom {
  margin-top: clamp(56px, 8vh, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
@media (max-width: 900px) {
  .footer-lockup-blk { grid-column: 1 / -1; }
  .footer-col { grid-column: span 4; }
}
@media (max-width: 560px) {
  .footer-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Chatbot toggle ---------- */
.chat-toggle {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 24px;
  border: 0;
  box-shadow:
    0 2px 4px rgba(17,118,106,0.2),
    0 10px 24px -6px rgba(17,118,106,0.45),
    0 24px 48px -12px rgba(15,26,29,0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.chat-toggle:hover { transform: translateY(-2px); }
.chat-toggle::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  pointer-events: none;
}
.chat-toggle::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(31,168,150,0.4);
  opacity: 0;
  animation: chat-ring 2.8s var(--ease) infinite;
}
@keyframes chat-ring {
  0% { transform: scale(0.9); opacity: 0.55; }
  80% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- Contact modal ---------- */
.eiaaw-modal {
  position: fixed; inset: 0;
  background: rgba(15, 26, 29, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: clamp(12px, 3vw, 40px);
}
.eiaaw-modal.open { display: flex; animation: eiaaw-fade-in 0.3s var(--ease); }
@keyframes eiaaw-fade-in { from { opacity: 0; } to { opacity: 1; } }
.eiaaw-modal-panel {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  padding: clamp(28px, 4vw, 44px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow:
    0 4px 12px rgba(15,26,29,0.12),
    0 24px 64px -16px rgba(15,26,29,0.32),
    0 64px 120px -32px rgba(15,26,29,0.4);
  animation: eiaaw-pop 0.4s var(--ease);
}
@keyframes eiaaw-pop { from { transform: translateY(16px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.eiaaw-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.eiaaw-modal-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.eiaaw-modal-panel h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw + 8px, 34px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 10px 0 12px;
  color: var(--ink);
}
.eiaaw-modal-lead {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.eiaaw-modal-lead strong { color: var(--ink); font-weight: 600; }
.eiaaw-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.eiaaw-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.eiaaw-field label small {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--mute);
  margin-left: 4px;
}
.eiaaw-field input,
.eiaaw-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.eiaaw-field input:focus,
.eiaaw-field textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(31,168,150,0.18);
}
.eiaaw-field textarea { resize: vertical; min-height: 100px; }
.eiaaw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .eiaaw-row { grid-template-columns: 1fr; } }
.eiaaw-modal-err {
  background: #FCE8E1;
  color: var(--danger);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(180, 65, 43, 0.28);
  margin-bottom: 14px;
}
.eiaaw-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Floating chat panel ---------- */
.eiaaw-chat-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: min(360px, calc(100vw - 40px));
  height: min(520px, calc(100vh - 140px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 290;
  box-shadow:
    0 4px 10px rgba(15,26,29,0.1),
    0 24px 64px -16px rgba(15,26,29,0.28),
    0 48px 96px -32px rgba(15,26,29,0.34);
  transform-origin: bottom right;
  animation: eiaaw-pop 0.35s var(--ease);
}
.eiaaw-chat-panel.open { display: flex; }
.eiaaw-chat-head {
  padding: 14px 16px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eiaaw-chat-head strong {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: block;
}
.eiaaw-chat-head small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.eiaaw-chat-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 0;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.eiaaw-chat-close:hover { background: rgba(255,255,255,0.32); }
.eiaaw-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.eiaaw-chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
}
.eiaaw-chat-bubble.bot {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.eiaaw-chat-bubble.user {
  background: var(--ink);
  color: var(--bg);
  align-self: flex-end;
  border-top-right-radius: 4px;
}
.eiaaw-chat-bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.eiaaw-chat-bubble.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mute);
  animation: eiaaw-typing 1.2s var(--ease) infinite;
}
.eiaaw-chat-bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.eiaaw-chat-bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes eiaaw-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.eiaaw-chat-bubble a { color: var(--primary-dark); text-decoration: underline; }
.eiaaw-chat-bubble.user a { color: #fff; }
.eiaaw-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.eiaaw-chat-quick:empty { padding: 0; border: 0; }
.eiaaw-chat-chip {
  font-family: var(--sans);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.eiaaw-chat-chip:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.eiaaw-chat-form {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}
.eiaaw-chat-form input {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.eiaaw-chat-form input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(31,168,150,0.18);
}
.eiaaw-chat-form button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font-size: 16px;
  transition: background 0.25s var(--ease);
}
.eiaaw-chat-form button:hover { background: var(--primary-dark); }
@media (max-width: 520px) {
  .eiaaw-chat-panel {
    right: 12px; left: 12px;
    width: auto;
    bottom: 88px;
  }
}

/* ---------- Mobile-only safeguards ---------- */
@media (max-width: 640px) {
  .figure-elegant .grain { display: none; }
  .hero-figure { margin-top: clamp(40px, 6vh, 60px); }
  .pitch .pitch-copy h2 { margin-top: 14px; }
  .metrics { margin-top: 28px; }
  .commitment { padding: 22px 20px; }
  .product-card .pc-body { padding: 22px 22px 26px; }
  .cta-band .cta-copy h2 { margin-top: 14px; }
  /* Avoid magnetic jitter on touch devices */
  .magnetic { transform: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
