/* Innovatica landing — visual system v3.
   Cool graphite ink on cool paper, dark showpiece bands (hero, manifesto,
   footer) with a red accent used sparingly. Radius on interactive surfaces
   only; full-bleed sections and hairlines stay square-cut. */

:root {
  /* Paper (light surfaces, cool) */
  --paper:        #FAFAF8;
  --paper-raised: #FFFFFF;
  --paper-sunken: #F2F2EE;

  /* Ink (cool graphite) */
  --ink:          #14161A;
  --ink-2:        #43474F;
  --ink-3:        #767B85;

  /* Borders — two weights */
  --line:         #E3E3DD;
  --line-strong:  #C6C7BF;

  /* Accent */
  --red:          #E62E3E;
  --red-deep:     #C21E2E;
  --red-tint:     #FBEAEA;
  --red-glow:     rgba(230, 46, 62, 0.07);

  /* Dark bands — cool near-black, layered */
  --dark:         #101216;
  --dark-raised:  #1B1E24;
  --dark-line:    #2A2E36;
  --dark-ink:     #F2F3F0;
  --dark-ink-2:   #9DA3AD;
  --red-on-dark:  #FF5460;

  /* Elevation & focus */
  --shadow-lift:  0 1px 2px rgba(20, 22, 26, 0.05), 0 8px 24px -12px rgba(20, 22, 26, 0.14);
  --focus-ring:   0 0 0 2px var(--paper), 0 0 0 4px var(--red);

  /* Radius system — interactive surfaces only */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;

  --text-display: clamp(2.75rem, 1.6rem + 4.8vw, 5.25rem);
  --text-h2:      clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --text-h3:      clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-body:    clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --text-small:   0.875rem;
  --text-kicker:  0.6875rem;

  --track-display: -0.035em;
  --track-h2:      -0.025em;
  --track-h3:      -0.015em;
  --track-kicker:   0.14em;

  /* Rhythm */
  --space-section: clamp(5rem, 3rem + 8vw, 9rem);
  --space-block:   clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --container:      1160px;
  --container-wide: 1360px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);

  /* Dot grid for dark bands */
  --dots: radial-gradient(circle, rgba(242, 243, 240, 0.07) 1px, transparent 1.5px);
}

/* Dark mode — follows the system setting by default; the header toggle
   sets data-theme to override it (persisted in localStorage). Same token
   system, surfaces inverted: the page goes near-black, and the dark
   showpiece bands (hero, manifesto, footer) become slightly raised so
   they still interrupt. The token block appears twice: once for an
   explicit dark override, once for system-dark without a light override. */
:root[data-theme="dark"] {
  --paper:        #101216;
  --paper-raised: #1B1E24;
  --paper-sunken: #0B0D10;
  --ink:          #F2F3F0;
  --ink-2:        #C5C9CF;
  --ink-3:        #969CA8;
  --line:         #2A2E36;
  --line-strong:  #434956;
  --red:          #FF5460;
  --red-deep:     #D93744;
  --red-tint:     rgba(255, 84, 96, 0.12);
  --red-glow:     rgba(255, 84, 96, 0.06);
  --dark:         #181B21;
  --dark-raised:  #22262E;
  --dark-line:    #333845;
  --dark-ink:     #F2F3F0;
  --dark-ink-2:   #9DA3AD;
  --red-on-dark:  #FF5460;
  --shadow-lift:  0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .footer-brand svg rect { fill: var(--dark-raised); }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #101216;
    --paper-raised: #1B1E24;
    --paper-sunken: #0B0D10;
    --ink:          #F2F3F0;
    --ink-2:        #C5C9CF;
    --ink-3:        #969CA8;
    --line:         #2A2E36;
    --line-strong:  #434956;
    --red:          #FF5460;
    --red-deep:     #D93744;
    --red-tint:     rgba(255, 84, 96, 0.12);
    --red-glow:     rgba(255, 84, 96, 0.06);
    --dark:         #181B21;
    --dark-raised:  #22262E;
    --dark-line:    #333845;
    --dark-ink:     #F2F3F0;
    --dark-ink-2:   #9DA3AD;
    --red-on-dark:  #FF5460;
    --shadow-lift:  0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  }

  :root:not([data-theme="light"]) .footer-brand svg rect { fill: var(--dark-raised); }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 90px; }

body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  color: var(--ink);
  font-weight: 760;
  font-variation-settings: "wght" 760;
  line-height: 1.03;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
  letter-spacing: var(--track-display);
  hanging-punctuation: first;
}

h2 {
  font-size: var(--text-h2);
  letter-spacing: var(--track-h2);
  line-height: 1.08;
  max-width: 22ch;
}

h3 {
  color: var(--ink);
  font-size: var(--text-h3);
  font-weight: 640;
  font-variation-settings: "wght" 640;
  letter-spacing: var(--track-h3);
  line-height: 1.2;
}

h2 em {
  font-style: normal;
  color: var(--red);
}

p { max-width: 62ch; text-wrap: pretty; }

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
}

.skip-link:focus-visible { top: 1rem; }

.container,
.container-wide {
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container      { max-width: var(--container); }
.container-wide { max-width: var(--container-wide); }

/* ---- kicker spine ---- */

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.kicker .num { color: var(--red-deep); }

/* ---- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-tile { display: block; flex: none; }

.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-weight: 650;
  font-variation-settings: "wght" 650;
  font-size: 1.19rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-ai { color: var(--red); }

.nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--ink-2);
}

.nav a:hover { color: var(--ink); }

/* ---- theme toggle ---- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.icon-sun { display: none; }

/* ---- CTA ---- */

.btn-cta {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 640;
  font-variation-settings: "wght" 640;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.btn-cta-lg {
  font-size: 1.05rem;
  padding: 14px 30px;
}

.link-plain {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link-plain:hover {
  color: var(--red-deep);
  text-decoration-thickness: 2px;
}

/* ---- hero (dark showpiece band in both themes) ---- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90rem 46rem at 18% -14rem, var(--red-glow), transparent 60%),
    var(--dark);
  padding-block: clamp(6rem, 14vh, 10rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dots);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 70%);
  pointer-events: none;
}

.hero > .container-wide { position: relative; }

/* 404 page — the hero band fills the viewport */
.hero-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-kicker { color: var(--dark-ink-2); margin-bottom: 2rem; }

.display {
  max-width: 16ch;
  color: var(--dark-ink);
}

.display em {
  font-style: normal;
  color: var(--red-on-dark);
}

.hero-sparkle {
  width: 0.5em;
  height: 0.5em;
  fill: var(--red-on-dark);
  margin-left: 0.16em;
  display: inline-block;
  vertical-align: baseline;
}

.hero-sub {
  margin-top: var(--space-block);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  max-width: 58ch;
  color: var(--dark-ink-2);
}

/* The identity phrase inside the hero subheadline — same emphasis idiom
   as .manifesto-mark, scaled to body size. */
.hero-sub strong {
  color: var(--dark-ink);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--red-on-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: var(--space-block);
}

.link-plain-dark {
  color: var(--dark-ink);
  text-decoration-color: var(--red-on-dark);
}

.link-plain-dark:hover { color: var(--red-on-dark); }

/* Small reassurance line under a CTA button (risk reversal). */
.cta-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.hero .cta-note { color: var(--dark-ink-2); }

.hero-meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
  list-style: none;
  padding: 1.5rem 0 0;
  margin-top: var(--space-block);
  border-top: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--dark-ink-2);
}

/* ---- sections ---- */

.section { padding-block: var(--space-section); }

.section-sunken { background: var(--paper-sunken); }

.section-contact { border-top: 1px solid var(--line-strong); }

.section-lede {
  margin-top: 1.25rem;
  color: var(--ink-3);
}

/* ---- product cards ---- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: var(--space-block);
}

.product-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.product-card-wide { grid-column: 1 / -1; }

.product-card-wide p { max-width: 72ch; }

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-index {
  font-family: var(--font-mono);
  font-size: var(--text-h2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--red);
}

.product-tag {
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--ink-3);
}

.product-card p { margin-top: 0.75rem; }

.engagement-note {
  margin-top: var(--space-block);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.engagement-note .kicker { margin-bottom: 0.75rem; }

/* ---- split (platform, commitments) ---- */

.split {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.split-rail {
  position: sticky;
  top: 6.5rem;
}

.rail-intro {
  margin-top: 1.25rem;
  color: var(--ink-3);
}

.split-items > * {
  padding-block: var(--space-block);
  border-top: 1px solid var(--line);
}

.split-items > *:last-child { border-bottom: 1px solid var(--line); }

.split-item p { margin-top: 0.75rem; }

/* ---- manifesto (layered dark) ---- */

.manifesto {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90rem 42rem at 50% -12rem, var(--red-glow), transparent 60%),
    var(--dark);
  padding-block: clamp(7rem, 16vh, 11rem);
  text-align: center;
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dots);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

/* Manifesto rotation — items share one grid cell so the section
   reserves the height of the tallest statement. */
.manifesto-rotator {
  position: relative;
  display: grid;
}

.manifesto-statement {
  grid-area: 1 / 1;
  font-size: var(--text-h2);
  font-weight: 640;
  font-variation-settings: "wght" 640;
  letter-spacing: var(--track-h2);
  line-height: 1.2;
  color: var(--dark-ink);
  max-width: 34ch;
  margin-inline: auto;
  text-wrap: balance;
  align-self: center;
}

.manifesto-statement:not(:first-child) { opacity: 0; }

.manifesto-mark {
  text-decoration: underline;
  text-decoration-color: var(--red-on-dark);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.manifesto-attr {
  position: relative;
  margin: 2.5rem auto 0;
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--dark-ink-2);
}

/* ---- process (bento) ---- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: var(--space-block);
}

.process-step {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-h2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--red);
}

.step-tag {
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--ink-3);
}

.process-step p { margin-top: 0.75rem; }

/* ---- trust commitments ---- */

.commit-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.commit-bullet {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--red-tint);
  border-radius: var(--r-sm);
}

.commit-bullet svg {
  width: 14px;
  height: 14px;
  fill: var(--red);
}

.commit-item p { margin-top: 0.35rem; }

/* ---- FAQ ---- */

.faq-list { margin-top: var(--space-block); }

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--red);
  background: var(--red-tint);
  border-radius: var(--r-sm);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item summary:hover h3 { color: var(--red-deep); }

.faq-item > p {
  padding: 0 0.5rem 1.75rem;
  max-width: 66ch;
}

.faq-item > p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.faq-item > p a:hover { color: var(--red-deep); }

/* ---- contact ---- */

.contact-split {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.btn-contact {
  margin-top: var(--space-block);
  font-size: var(--text-h3);
  padding: 1.1rem 2.2rem;
}

.contact-form { margin-top: var(--space-block); }

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

.form-field { margin-bottom: 1.25rem; }

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--ink-3);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--paper-raised);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: var(--text-body);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-3); }

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: var(--focus-ring);
}

.form-field textarea {
  resize: vertical;
  min-height: 9rem;
  max-height: 70vh;
}

.char-count {
  margin: 0.35rem 0 0;
  font-size: var(--text-small);
  color: var(--ink-3);
  text-align: right;
}

/* Honeypot — visually removed, still in the submitted form for bots. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn-contact {
  margin-top: 0.5rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.contact-form .btn-contact:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  margin-top: 1rem;
  min-height: 1.3em;
  font-size: var(--text-small);
  color: var(--ink-2);
}

.form-status.ok { color: var(--ink); font-weight: 600; }
.form-status.err { color: var(--red-deep); }

.email-plain {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-small);
}

.email-plain a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.email-plain a:hover { color: var(--red-deep); }

.contact-side {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 3rem);
}

.office-address {
  font-style: normal;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-note { color: var(--ink-2); }

.registered-office {
  color: var(--ink-3);
  font-size: var(--text-small);
  margin-bottom: 2rem;
}

/* ---- footer (layered dark, glow bottom-left) ---- */

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70rem 30rem at 12% 130%, rgba(230, 46, 62, 0.08), transparent 60%),
    var(--dark);
  color: var(--dark-ink-2);
  padding-block: 3rem;
}

.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-line);
  font-size: var(--text-small);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-ink);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
}

.footer-nav a:hover { color: var(--dark-ink); }

.footer-meta a {
  text-decoration: underline;
  text-decoration-color: var(--red-on-dark);
  text-underline-offset: 3px;
}

.footer-meta a:hover { color: var(--dark-ink); }

.footer-sparkle {
  width: 12px;
  height: 12px;
  fill: var(--red-on-dark);
  display: inline-block;
  vertical-align: -1px;
}

/* ---- motion (opt-in) ---- */

@media (prefers-reduced-motion: no-preference) {
  .btn-cta { transition: background 120ms ease, transform 160ms ease, box-shadow 160ms ease; }
  .btn-cta:hover {
    background: var(--red-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
  }

  .product-card,
  .process-step { transition: box-shadow 160ms ease-out, transform 160ms ease-out, border-color 160ms ease-out; }
  .product-card:hover,
  .process-step:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
    border-color: var(--line-strong);
  }

  .split-item h3 { transition: color 160ms ease; }
  .split-item:hover h3 { color: var(--red-deep); }

  .faq-item summary h3 { transition: color 160ms ease; }

  .nav a, .footer-nav a, .link-plain, .email-plain a, .footer-meta a {
    transition: color 160ms ease;
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(0.86); opacity: 0.75; }
  }
  .hero-sparkle {
    animation: pulse 4s ease-in-out infinite;
    transform-origin: center;
  }

  /* Manifesto rotation: 8 messages x 6s = 48s cycle.
     Each item fades in for ~1s, holds ~4s, fades out for ~1s. */
  @keyframes manifesto-cycle {
    0%       { opacity: 0; transform: translateY(8px); }
    2.1%     { opacity: 1; transform: none; }
    10.4%    { opacity: 1; transform: none; }
    12.5%    { opacity: 0; transform: translateY(-6px); }
    100%     { opacity: 0; }
  }
  .manifesto-statement {
    animation: manifesto-cycle 48s ease-in-out infinite;
  }
  .manifesto-statement:nth-child(1) { animation-delay: -1s; }
  .manifesto-statement:nth-child(2) { animation-delay: 5s; }
  .manifesto-statement:nth-child(3) { animation-delay: 11s; }
  .manifesto-statement:nth-child(4) { animation-delay: 17s; }
  .manifesto-statement:nth-child(5) { animation-delay: 23s; }
  .manifesto-statement:nth-child(6) { animation-delay: 29s; }
  .manifesto-statement:nth-child(7) { animation-delay: 35s; }
  .manifesto-statement:nth-child(8) { animation-delay: 41s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .manifesto-statement:not(:first-child) { display: none; }
}

/* ---- responsive ---- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-rail { position: static; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-side {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 2rem;
  }
}

@media (max-width: 860px) {
  /* brand + nav + toggle + CTA stop fitting below ~880px */
  .nav { display: none; }
}

@media (max-width: 720px) {
  .header-inner { gap: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  /* No room for the header CTA next to brand + theme toggle; the hero
     carries the same CTA one scroll below. */
  .site-header .btn-cta { display: none; }
  /* At heading size the no-wrap contact button exceeds narrow screens. */
  .btn-contact {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }
}
