/* =========================================================================
   Enso Dynamics — styles
   Design language: high-end restraint with editorial polish. Whitespace,
   typography, and rhythm carry the design; the ensō mark and a single
   navy/cobalt accent (drawn from the logo) provide brand life — used
   deliberately, never decoratively.
   ========================================================================= */

:root {
  --bg:            #FAFAF8;  /* off-white ground (never pure white) */
  --bg-subtle:     #F3F2EC;  /* faint warm alternate ground for section rhythm */
  --bg-tint:       #EEEDE6;  /* slightly deeper warm neutral for emphasis blocks */
  --bg-cool:       #E9EEF2;  /* quiet blue-grey architectural panels */
  --hero-bg:       #D4DDE8;  /* sampled from hero artwork edges */
  --hero-bg-soft:  #D4DDE8;  /* sampled from hero artwork quiet left area */
  --ink:           #14171C;  /* near-black headings */
  --ink-body:      #3A3D43;  /* body copy */
  --ink-muted:     #6B6E74;  /* secondary / captions */

  --navy:          #132D4A;  /* primary accent (text, links, focus) */
  --navy-deep:     #0B1F36;  /* darker hover */
  --cobalt:        #2E6FB5;  /* brand cobalt, from the logo gradient */
  --warm:          #D9783D;  /* restrained warm counterpoint for hero accents */
  --brand-grad:    linear-gradient(125deg, #3F8AD0 0%, #1E3A63 52%, #14181E 100%);

  --ink-dark:      #11141A;  /* dark band ground */
  --ink-dark-2:    #181C24;  /* slightly raised surface on dark */
  --on-dark:       #F4F4F1;  /* primary text on dark */
  --on-dark-muted: #A8ADB7;  /* secondary text on dark */
  --on-dark-faint: #6F757F;  /* labels, markers on dark */

  --line:          rgba(20, 23, 28, 0.10);
  --line-strong:   rgba(20, 23, 28, 0.20);
  --line-faint:    rgba(20, 23, 28, 0.06);
  --shadow-soft:   0 24px 80px -56px rgba(13, 32, 56, 0.48);
  --shadow-card:   0 18px 55px -42px rgba(13, 32, 56, 0.38);

  --maxw:          1180px;
  --readw:         62ch;
  --radius:        4px;       /* understated; architectural, not pillowy */
  --radius-lg:     8px;
  --space-section: clamp(5.5rem, 11vw, 10rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "cv05", "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

::selection { background: rgba(46, 111, 181, 0.16); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.75rem);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.90);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-faint);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: clamp(40px, 5vw, 46px); width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.8vw, 2.4rem);
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta {
  color: var(--bg);
  padding: 0.58rem 1.1rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: 0 10px 30px -20px rgba(19, 45, 74, 0.75);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a.nav-cta:hover {
  border-color: var(--navy-deep);
  background: var(--navy-deep);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: 0.25s var(--ease);
}

/* ---------- Buttons ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
  font-weight: 400;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); background: rgba(20, 23, 28, 0.03); }

.btn-on-dark { background: var(--on-dark); color: var(--ink-dark); border-color: var(--on-dark); }
.btn-on-dark:hover { background: #ffffff; }

.btn-brand { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.btn-brand:hover { background: #245C96; border-color: #245C96; }
.btn-brand:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Section markers ---------- */
/* Small uppercase eyebrow with a short cobalt dash. The dash is the only
   colored moment in the marker — restrained but immediately reads as a
   designed section label rather than a plain heading. */

.section-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
}
/* The little blue accent dash. */
.section-marker-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
}
.section-marker-num { display: none; }
.section-marker-label { color: var(--ink-muted); }

.section-marker--light .section-marker-label { color: var(--on-dark-muted); }
/* On dark, the dash needs to read against the near-black ground — lift it
   to a brighter cobalt instead of fading through charcoal. */
.section-marker--light .section-marker-line {
  background: linear-gradient(90deg, #7FB1E8 0%, #2E6FB5 100%);
}

.section-marker--centered { justify-content: center; display: inline-flex; }

/* ---------- Accent word ---------- */
/* A single word in section titles takes the deep navy plus a soft cobalt
   underline drawn under the text baseline. Restrained editorial accent — the
   one designed moment per heading. Underline is decoration only (not a link). */

.accent-word {
  color: var(--navy);
  position: relative;
  display: inline-block;
}
.accent-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 3px;
  background: var(--cobalt);
  opacity: 0.55;
  border-radius: 2px;
}
.section--dark .accent-word { color: #BCD7F0; }
.section--dark .accent-word::after { background: #7FB1E8; opacity: 0.7; }
/* Hero gets a slightly heavier underline since the title is largest. */
.hero-title .accent-word::after { height: 4px; bottom: 0.08em; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
}
.hero-glow {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: max(1.5rem, calc((100vw - var(--maxw)) / 2 + 2.75rem));
  right: max(1.5rem, calc((100vw - var(--maxw)) / 2 + 2.75rem));
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(19, 45, 74, 0.22), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Faint hairline grid behind the hero — barely visible, signals "systems". */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(19, 45, 74, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 45, 74, 0.035) 1px, transparent 1px);
  background-size: clamp(80px, 12vw, 140px) 100%;
  background-position: center top;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.58), rgba(0,0,0,0) 84%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.58), rgba(0,0,0,0) 84%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: static;
  display: block;
  padding-top: clamp(2.8rem, 5.4vw, 5rem);
  padding-bottom: clamp(2.4rem, 4.6vw, 4.25rem);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -1.6rem -2rem -1.6rem -3rem;
  background: linear-gradient(90deg, var(--hero-bg) 0%, rgba(212,221,232,0.92) 70%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.hero-title {
  font-size: clamp(2.35rem, 4.55vw, 3.45rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.026em;
  max-width: 18ch;
  overflow-wrap: break-word;
}
.hero-lead {
  margin-top: 1.45rem;
  max-width: 52ch;
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-body);
}
.hero-sub { margin-top: 1.1rem; max-width: 52ch; color: var(--ink-muted); }
.hero .cta-row { margin-top: 2.5rem; }

.hero-visual {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  width: min(100vw, 1360px);
  transform: translateX(-50%);
  min-height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-visual::before {
  display: none;
}
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center center;
  max-width: none;
  opacity: 0.94;
  filter: saturate(0.98) contrast(1.01);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--space-section);
  border-top: 1px solid var(--line-faint);
  overflow: hidden;
}
.section::before {
  content: "";
  position: absolute;
  right: max(-7rem, calc((100vw - var(--maxw)) / 2 - 9rem));
  top: clamp(2rem, 8vw, 6rem);
  width: clamp(180px, 22vw, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(19, 45, 74, 0.08);
  opacity: 0.55;
  pointer-events: none;
}
.section:nth-of-type(even)::before {
  right: auto;
  left: max(-7rem, calc((100vw - var(--maxw)) / 2 - 9rem));
}
.section--subtle {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), transparent 42%),
    var(--bg-subtle);
  border-top-color: transparent;
}
.hero + .section {
  padding-top: clamp(4.25rem, 7vw, 7rem);
}

.section-head { margin-bottom: 2.75rem; max-width: 50rem; }
.section-head--centered {
  margin-inline: auto;
  text-align: center;
}
.section-head--centered .section-marker { margin-inline: auto; }

.section-title {
  font-size: clamp(2rem, 3.9vw, 3rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  max-width: 22ch;
  overflow-wrap: break-word;
}
.section-title--centered {
  margin-inline: auto;
}

/* ---------- Prose ---------- */

.prose {
  max-width: var(--readw);
  position: relative;
}
.prose p + p { margin-top: 1.25rem; }
.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(19, 45, 74, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.prose a:hover {
  color: var(--cobalt);
  text-decoration-color: var(--cobalt);
}
.prose .statement {
  color: var(--ink);
  font-size: clamp(1.18rem, 1.85vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  font-weight: 500;
  margin-top: 1.75rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--navy);
}

/* ---------- Services (duckbill-style polished cards) ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.35rem, 2.6vw, 2rem);
  margin-top: clamp(1.6rem, 4vw, 2.8rem);
}
.service-card {
  position: relative;
  min-height: 100%;
  padding: clamp(2.25rem, 3.4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.38)),
    var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.80) inset, var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(19, 45, 74, 0.08);
  background: radial-gradient(circle, rgba(46, 111, 181, 0.08), transparent 66%);
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(46, 111, 181, 0.40);
  transform: translateY(-3px);
  box-shadow: 0 28px 70px -42px rgba(15, 39, 71, 0.48);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(19, 45, 74, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background:
    radial-gradient(circle at 68% 22%, rgba(46, 111, 181, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,248,251,0.72));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 12px 30px -22px rgba(15, 39, 71, 0.70);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(46, 111, 181, 0.08);
  pointer-events: none;
}
.service-card:hover .service-icon {
  border-color: rgba(46, 111, 181, 0.44);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 16px 36px -22px rgba(15, 39, 71, 0.78);
}
.service-icon svg {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
}
.service-icon .icon-soft {
  stroke: rgba(19, 45, 74, 0.42);
}
.service-icon .icon-navy {
  stroke: var(--navy);
}
.service-icon .icon-cobalt {
  stroke: var(--cobalt);
}
.service-icon .icon-warm {
  stroke: var(--warm);
}
.service-icon .icon-node {
  fill: #F8FAFC;
  stroke: var(--cobalt);
}
.service-icon .icon-warm-fill {
  fill: var(--warm);
  stroke: none;
}
.service-title {
  font-size: clamp(1.28rem, 1.65vw, 1.48rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.service-body { color: var(--ink-muted); font-size: 1rem; line-height: 1.65; }

/* staggered reveal of the three cards */
html.js .service-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
html.js .service-grid .service-card:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Feature lists ---------- */

.list-block { margin-top: 3rem; }
.list-heading {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: 1.4rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem clamp(1.5rem, 4vw, 3rem);
  max-width: 880px;
}
.feature-list li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--ink-body);
  line-height: 1.55;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(19, 45, 74, 0.58);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(46, 111, 181, 0.07);
}

/* ---------- Dark band ---------- */

.section--dark {
  background:
    radial-gradient(circle at 82% 12%, rgba(46, 111, 181, 0.20), transparent 34rem),
    linear-gradient(135deg, #10141B 0%, #11141A 52%, #182130 100%);
  color: var(--on-dark-muted);
  border-top-color: rgba(255, 255, 255, 0.04);
}
.section--dark::before {
  border-color: rgba(255,255,255,0.09);
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 64%);
}
.section--dark .section-title { color: var(--on-dark); }
.section--dark .prose p { color: var(--on-dark-muted); }
.section--dark .prose .statement { color: var(--on-dark); border-left-color: #7FB1E8; }
.section--dark .list-heading {
  color: var(--on-dark);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
.section--dark .feature-list li { color: var(--on-dark-muted); }
.section--dark .feature-list li::before {
  background: rgba(127, 177, 232, 0.14);
  border-color: rgba(127, 177, 232, 0.72);
  box-shadow: 0 0 0 4px rgba(127, 177, 232, 0.08);
}
.section--dark .prose a { color: #9DC4ED; text-decoration-color: rgba(157, 196, 237, 0.4); }
.section--dark .prose a:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }

/* Large faint ensō watermark bleeding off the bottom-right corner. The
   asset is already light-on-transparent (designed for dark grounds), so
   we just lower the opacity — no filter. */
.section-watermark {
  position: absolute;
  right: -6%;
  bottom: -16%;
  width: clamp(280px, 42vw, 560px);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.section--dark .container { position: relative; z-index: 1; }

/* Dark-band two-column for prose + feature list */
.dark-band-inner,
.ai-native-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.dark-band-inner,
.ai-native-inner {
  position: relative;
}
.section--dark .dark-band-inner {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.015);
  box-shadow: 0 35px 90px -65px rgba(0,0,0,0.85);
}
.dark-band-inner .list-block,
.ai-native-inner .list-block {
  margin-top: 0;
}
.dark-band-inner .feature-list,
.ai-native-inner .feature-list {
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

/* ---------- Contact (two-column on dark) ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-grid .section-head { margin-bottom: 1.5rem; }

.contact-form-wrap {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035)),
    var(--ink-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  box-shadow: 0 32px 80px -58px rgba(0, 0, 0, 0.9);
}
.contact-form-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #7FB1E8, #2E6FB5, transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.field { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-dark-muted);
  margin-bottom: 0.55rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--on-dark-faint); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(46, 111, 181, 0.28);
}

.contact-form textarea { resize: vertical; min-height: 150px; }

/* Keep autofilled fields legible on the dark band (browsers force a light fill). */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--on-dark);
  -webkit-box-shadow: 0 0 0 1000px var(--ink-dark-2) inset;
  caret-color: var(--on-dark);
  transition: background-color 9999s ease-in-out 0s;
}

/* Honeypot: visually and physically removed, still reachable by naive bots. */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-actions { margin-top: 0.75rem; }
.contact-form.is-hidden { display: none; }

.form-status {
  margin-top: 1rem;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}
.form-status.error { color: #F2A6A6; }
.form-status.success { color: #8FD6A6; }

.form-success {
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}
.form-success:focus { outline: none; }
.form-success-title { color: var(--on-dark); font-size: 1.25rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--on-dark-muted); }

/* ---------- Footer ---------- */

.site-footer {
  background:
    linear-gradient(180deg, #11141A 0%, #0D1016 100%);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-mark {
  width: 40px;
  height: 40px;
  opacity: 0.85;
}
.footer-wordmark {
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--on-dark);
  margin-bottom: 0.35rem;
}
.footer-tagline {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 32ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--on-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--on-dark); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
}
.footer-copy { color: var(--on-dark-faint); font-size: 0.85rem; }
.footer-meta {
  color: var(--on-dark-faint);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .dark-band-inner,
  .ai-native-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-visual { display: none; }
  .hero-inner { padding-top: clamp(3.5rem, 12vw, 5rem); }
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -24px rgba(15, 39, 71, 0.4);
  }
  .primary-nav.is-open { display: block; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1rem;
  }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a.nav-cta {
    border: 1px solid transparent;
    padding: 0.85rem 0;
    background: transparent;
    color: var(--ink-muted);
    box-shadow: none;
  }
  .nav-links a.nav-cta:hover { background: transparent; color: var(--ink); }

  .feature-list { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .section::before { display: none; }
  .service-card { padding: 1.65rem; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
