/* ─── FONT (self-hosted; the face the applications set everything in) ─── */
/* Source Serif 4: every label, button, field and paragraph. Variable weight
   with an optical size axis, so display sizes get the display cut on their own.
   The wordmark of the logo is drawn as outlines, so it needs no font at all. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-serif-4-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-serif-4-italic-latin.woff2') format('woff2');
}

/* ─── TOKENS (copied from the applications' globals.css) ─── */
/* Paper, the light theme: a warm sheet with blue ink. */
:root {
  color-scheme: light;
  --radius: 2px;
  --t-fast: 110ms;
  --t: 170ms;
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
  --background: #f6f5f2;
  --foreground: #14171d;
  --card: #fffefc;
  --card-foreground: #14171d;
  --popover: #fffefc;
  --popover-foreground: #14171d;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #f2f1ec;
  --muted: #f2f1ec;
  --muted-foreground: #636a75;
  --destructive: #b91c1c;
  --border: #e2ded5;
  --input: #d2cec3;
  --ink-2: #4d535d;
  --rule-2: #d2cec3;
  --rule-strong: #b6b1a4;
  --plot: #fffefc;
  --signal-ok: #15803d;
  --signal-warn: #b45309;
  --sheet-rule: 0.09;
  --sheet-rule-minor: 0.04;
  --shadow-menu: 0 8px 16px -6px rgb(20 23 29 / 0.14);
  --font-sans: 'Source Serif 4', Georgia, 'Times New Roman', Times, serif;
}
/* Night, the default of the applications. */
.dark {
  color-scheme: dark;
  --background: #0b0d12;
  --foreground: #e9eaee;
  --card: #11141b;
  --card-foreground: #e9eaee;
  --popover: #11141b;
  --popover-foreground: #e9eaee;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #171b24;
  --muted: #171b24;
  --muted-foreground: #6d7581;
  --destructive: #ef4444;
  --border: #222833;
  --input: #2d3542;
  --ink-2: #a4abb6;
  --rule-2: #2d3542;
  --rule-strong: #3b4453;
  --plot: #0d1016;
  --signal-ok: #22c55e;
  --signal-warn: #f59e0b;
  --sheet-rule: 0.06;
  --sheet-rule-minor: 0.028;
  --shadow-menu: 0 8px 16px -6px rgb(0 0 0 / 0.6);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-color: var(--rule-2) transparent;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* A deep link, a back button or a keyboard jump lands under the sticky bar
   unless every target keeps the bar's height clear. */
[id] { scroll-margin-top: 92px; }

/* Keyboard focus is the same solid accent outline on every control. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* The scrollbar is a rule, not a pill. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 1px; }
::-webkit-scrollbar-thumb:hover { background: var(--rule-strong); }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Emphasis inside a heading: the italic of the same face, same weight, no second colour. */
.emphasis { font-style: italic; font-weight: inherit; }

/* ─── MICRO LABEL (the caption of a table in a technical report) ─── */
/* Set in the second ink, which stays quieter than the body text without
   dropping under the 4.5:1 floor a public page owes its readers. */
.section-tag,
.capability-kicker,
.footer-col h4,
.form-group label,
.content-card h4,
.dropdown-heading {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ─── REVEAL: a panel arriving does not zoom or slide, it just appears ─── */
/* Nothing is hidden unless the script that will reveal it is already running:
   the page renders complete with scripting off or blocked. */
.fade-up {
  --reveal-delay: 0s;
  transition-property: opacity, transform;
  transition-duration: var(--t), var(--t);
  transition-timing-function: var(--ease), var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .fade-up { opacity: 0; transform: translateY(4px); }
.js .fade-up.visible { opacity: 1; transform: translateY(0); }
/* A grid appears at once; the stagger classes stay for the markup contract. */
.delay-1 { --reveal-delay: 0.1s; }
.delay-2 { --reveal-delay: 0.2s; }
.delay-3 { --reveal-delay: 0.3s; }
.delay-4 { --reveal-delay: 0.4s; }
.capability-grid .delay-1,
.capability-grid .delay-2,
.capability-grid .delay-3 { --reveal-delay: 0s; }

/* ─── BUTTONS (the applications' button, default 30px, lg 34px) ─── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 30px;
  padding: 0 11px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background-clip: padding-box;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; pointer-events: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }

.btn-outline {
  border-color: var(--input);
  background: transparent;
  color: var(--foreground);
}
.btn-outline:hover {
  border-color: var(--rule-strong);
  background: var(--muted);
}

.btn-lg { height: 34px; padding: 0 15px; font-size: 14px; }
.btn-lg svg { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { pointer-events: none; opacity: 0.5; }

/* ─── NAVBAR (the bar of the applications: card sheet, one rule, the brand in its own column) ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
}

/* The brand: the drawing, which says SVOLTA, with the one word it does not
   say set under it as a nameplate. Together they are the full lockup at a
   size where every letter is still type. */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  color: var(--foreground);
  border-radius: var(--radius);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.logo-icon .lockup-nav { display: block; height: auto; }
/* The mark at the size the bar uses on a narrow window: reversed out of the
   blue tile, the one piece of the interface allowed to carry a filled colour. */
.logo-icon .mark {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.brand-text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.35em;
  line-height: 1;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.brand-name { font-size: 8px; font-weight: 600; }
.brand-descriptor { font-size: 8px; font-weight: 600; }
/* The drawing already says the first word; it stays in the text for assistive
   technology and search, and comes back beside the tile on a narrow window. */
.nav-logo .brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

/* Where you are: full ink and a 2px accent bar under the current section,
   never a pill. */
.nav-links > li > a,
.nav-links > li > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 26px;
  padding: 0 11px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: inherit;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-links > li > a:hover,
.nav-links > li > button:hover { color: var(--foreground); }

.nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.nav-links > li > a[aria-current="location"] { font-weight: 600; color: var(--foreground); }
.nav-links > li > a[aria-current="location"]::after { opacity: 1; }

/* The sign-in control sits apart from the destinations, as an outline button. */
.nav-links > li.nav-dropdown { margin-left: 0.625rem; }
.nav-links > li > button.dropdown-trigger {
  height: 30px;
  padding: 0 9px 0 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  border: 1px solid var(--input);
  background: transparent;
}
.nav-links > li > button.dropdown-trigger:hover {
  border-color: var(--rule-strong);
  background: var(--muted);
}
.nav-dropdown.active .dropdown-trigger {
  background: var(--secondary);
  border-color: var(--rule-strong);
}
.dropdown-trigger svg {
  width: 13px;
  height: 13px;
  color: var(--muted-foreground);
  transition: transform var(--t-fast) var(--ease);
}
.nav-dropdown.active .dropdown-trigger svg { transform: rotate(180deg); }

/* The menu of the applications: a hairline box with a 2px accent band on top.
   It hangs from the bar's rule, not from the middle of the bar. */
.nav-dropdown { position: static; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 1.5rem;
  left: auto;
  min-width: 220px;
  padding: 4px;
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--input);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), visibility var(--t-fast);
}
.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-heading { padding: 8px 8px 6px; }

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background-color var(--t-fast) var(--ease);
}
.dropdown-menu a:hover { background: var(--muted); }
.dropdown-menu a svg { width: 13px; height: 13px; color: var(--muted-foreground); flex-shrink: 0; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Mobile toggle: the square icon control of the bar, at a size a thumb can hit. */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.mobile-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--foreground);
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.mobile-toggle.active span:first-child { transform: translateY(5.5px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:last-child { transform: translateY(-5.5px) rotate(-45deg); }

/* ─── HERO (the sheet of the sign-in screen: semi log paper with a decline traced on it) ─── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--foreground);
}
.hero-sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-sheet .rule-major { stroke-opacity: var(--sheet-rule); }
.hero-sheet .rule-minor { stroke-opacity: var(--sheet-rule-minor); }

/* The decline is a fixed size, the way the sign-in screen draws it, framed so
   its knee is on screen, and it passes above the lockup rather than through it. */
.hero-decline {
  position: absolute;
  top: -44px;
  left: 6%;
  width: 1600px;
  height: 412px;
  color: var(--primary);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  min-height: 560px;
}

.hero-title {
  font-size: clamp(2rem, 1.35rem + 1.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

/* The whole drawing, at a size where TECHNOLOGIES is still type. */
.hero-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1.5rem;
  color: var(--primary);
}
.lockup-hero { width: 100%; max-width: 440px; height: auto; }

/* ─── SECTIONS ─── */
.section { padding: 5rem 0 5.5rem; }

/* Services sits on the card sheet, one step up from the page, between two rules. */
.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* A section opens the way a chapter of a report does: a rule across the
   header's measure, the running head under it, then the title. */
.section-header {
  max-width: 720px;
  margin-bottom: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-2);
}
.section-header .section-tag,
.contact-info .section-tag,
.hubs-intro .section-tag { margin-bottom: 1.125rem; }

.section-title {
  font-size: clamp(1.625rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.875rem;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ─── SOFTWARE: one panel per application, the card of the applications ─── */
.capability-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.capability-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 2.5rem;
  min-width: 0;
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition-property: opacity, transform, border-color;
  transition-duration: var(--t), var(--t), var(--t-fast);
  transition-timing-function: var(--ease), var(--ease), var(--ease);
  transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s, 0s;
}
.capability-card:hover { border-color: var(--rule-strong); }

/* The header of the card holds the title, over its own rule, with the
   application it belongs to at the far end of the row. */
.capability-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.capability-head h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}
.capability-head .capability-kicker { flex-shrink: 0; }

.capability-card > p {
  grid-column: 1;
  grid-row: 2;
  padding: 16px 0 0 16px;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* The nine capabilities of an application: a ruled index, three columns of
   rows, one rule per row and no boxes. */
.capability-features {
  grid-column: 2;
  grid-row: 2 / -1;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2rem;
  margin: 16px 16px 16px 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.capability-features li {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}

/* The link out to the application: the link variant of the button. */
.capability-link {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 14px 0 18px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  text-underline-offset: 4px;
}
.capability-link:hover { text-decoration: underline; }
.capability-link svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ─── SERVICES: three columns divided by rules, no boxes ─── */
.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.service-card {
  display: block;
  padding: 1.5rem 2rem 0.5rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.service-card:hover { border-color: transparent; }
.service-card + .service-card {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}
.service-card h3 {
  margin-bottom: 0.625rem;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
.service-card > p {
  padding: 0;
  max-width: none;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ─── COMPANY: the header beside two disclosures ─── */
.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: start;
}
.company-layout .section-header { margin-bottom: 0; }

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.accordion:hover { border-color: var(--rule-strong); }
/* The open panel is the one that owns the screen: the 2px band on its top edge. */
.accordion.open { box-shadow: inset 0 2px 0 0 var(--primary); }

.accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px 12px 16px;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: background-color var(--t-fast) var(--ease);
}
.accordion-header:hover { background: var(--muted); }
.accordion-header:focus-visible { outline-offset: -2px; }

.accordion-title { flex: 1; min-width: 0; }
.accordion-title h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.accordion-title p {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.accordion-chevron {
  flex-shrink: 0;
  display: flex;
  color: var(--muted-foreground);
  transition: transform var(--t) var(--ease);
}
.accordion-chevron svg { width: 15px; height: 15px; }
.accordion.open .accordion-chevron { transform: rotate(180deg); }

/* The panel opens by growing its grid row, so nothing is measured and a font
   arriving late cannot clip it. */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}
.accordion.open .accordion-body { grid-template-rows: 1fr; }
.accordion-content { min-height: 0; overflow: hidden; }
.accordion-inner {
  padding: 4px 16px 18px;
  border-top: 1px solid var(--border);
}
.accordion-inner > p {
  padding-top: 0.875rem;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 0.875rem;
  background: var(--border);
  border: 1px solid var(--border);
}
.content-card {
  padding: 12px 14px 14px;
  background: var(--card);
}
.content-card h4 { margin-bottom: 0.5rem; }
.content-card p {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ─── CONTACT: the sign-in card, with a form in it ─── */
.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 3rem;
  padding: 2rem 2rem 2.125rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.contact-info h2 {
  font-size: clamp(1.5rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
.contact-info > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 40ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* A field is a hairline box with a heavier base, the way a printed form rules
   the line you write on. It sits on the darker sheet. Focus turns the base blue. */
.form-group input,
.form-group textarea {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-bottom-color: var(--rule-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
  font-style: italic;
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--input);
  border-bottom-color: var(--rule-strong);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  border-bottom-color: var(--primary);
  box-shadow: inset 0 -1px 0 0 var(--primary);
}
.form-group textarea {
  height: auto;
  min-height: 112px;
  padding: 8px 9px;
  line-height: 1.5;
  resize: vertical;
}

.form-consent {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
}
.form-consent a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-fast) var(--ease);
}
.form-consent a:hover { color: var(--primary); }

/* Energy hubs: the markets the software is built for, as a ruled 3 by 2 table. */
.hubs-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
  padding: 1.75rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hubs-intro { min-width: 0; }
.hubs-intro .section-tag { margin-bottom: 0.875rem; }
.hubs-intro h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}
.hubs-intro p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}

.hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.hub-location {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  background: var(--card);
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  background: var(--card);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, max-content);
  column-gap: 4rem;
  row-gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  align-items: flex-start;
  gap: 8px;
}
.footer-brand .logo-icon .lockup-footer { display: block; }
.footer-brand .logo-icon .lockup-nav { display: none; }
.footer-brand .brand-text { font-size: 9px; padding-left: 2px; }
.footer-brand .brand-name,
.footer-brand .brand-descriptor { font-size: 9px; }
.footer-brand p {
  margin-top: 1rem;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 30ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col h4 { margin-bottom: 0.375rem; }
.footer-col a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--foreground); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 12px;
  color: var(--ink-2);
}
.footer-legal-links a {
  font-size: 12px;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.footer-legal-links a:hover { color: var(--foreground); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    min-height: 0;
    padding-top: 3rem;
  }
  .hero-figure { justify-content: flex-start; padding-top: 0; }
  .lockup-hero { max-width: 360px; }
  .hero-decline { left: 34%; top: -30px; }

  .capability-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .capability-card > p { grid-column: 1; grid-row: 2; padding: 16px 16px 0; }
  .capability-features {
    grid-column: 1;
    grid-row: 3;
    margin: 14px 16px 0;
  }
  .capability-link { grid-row: 4; margin: 14px 0 16px 16px; }

  .company-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .contact-wrapper { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .contact-info > p { max-width: 62ch; }
  .hubs-panel { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  [id] { scroll-margin-top: 76px; }
  body.menu-open { overflow: hidden; }

  .nav-container { height: 64px; }
  .nav-logo { flex-direction: row; gap: 10px; }
  .logo-icon .lockup-nav { display: none; }
  .logo-icon .mark { display: inline-flex; }
  .brand-text { font-size: 10px; letter-spacing: 0.14em; }
  .brand-name, .brand-descriptor { font-size: 10px; }
  .navbar .nav-logo .brand-name {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }

  .nav-links,
  .nav-actions { display: none; }
  .mobile-toggle { display: flex; }

  /* The menu drops under the bar as one panel of the same sheet. */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 0.75rem;
    gap: 0;
    box-shadow: var(--shadow-menu);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.open > li,
  .nav-links.open > li > a,
  .nav-links.open > li > button { width: 100%; }
  .nav-links.open > li > a {
    height: 44px;
    padding: 0 8px;
    font-size: 14px;
  }
  /* In a vertical list the current mark is the applications' side indicator:
     a 3px bar on the left edge, not an underline the width of the panel. */
  .nav-links.open > li > a::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 60%;
    transform: translateY(-50%);
    border-radius: 0 3px 3px 0;
  }
  .nav-links.open > li.nav-dropdown {
    margin: 0.5rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }
  .nav-links.open > li > button.dropdown-trigger {
    height: 40px;
    justify-content: space-between;
    text-align: left;
  }
  .nav-links.open .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
    padding: 0;
    border-width: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t) var(--ease);
  }
  .nav-links.open .nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-top: 0.5rem;
    padding: 4px;
    border-width: 1px;
    border-top-width: 2px;
    max-height: 300px;
  }
  .nav-links.open .dropdown-menu a { padding: 11px 8px; }

  .hero-content { padding-top: 2.5rem; padding-bottom: 3rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .lockup-hero { max-width: 260px; }
  .hero-decline { top: -22px; left: -16%; width: 900px; height: 232px; }

  .section { padding: 3.5rem 0 4rem; }
  .section-header { margin-bottom: 2rem; }

  .capability-features { grid-template-columns: minmax(0, 1fr); }

  .service-grid { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .service-card,
  .service-card + .service-card {
    padding: 1.25rem 0 1.25rem;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .content-grid { grid-template-columns: 1fr; }
  .contact-wrapper { padding: 1.5rem 1.25rem 1.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .hubs-panel { padding: 1.5rem 1.25rem; }
  .hubs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .nav-container { padding: 0 1rem; }
  .nav-links.open { padding: 0.5rem 0.5rem 0.75rem; }

  /* On a phone the application's name goes above the title instead of beside it. */
  .capability-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .capability-head .capability-kicker { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .fade-up { opacity: 1; transform: none; }
}

/* ─── LEGAL PAGES ─── */
.legal-section { padding: 3.5rem 0 5rem; }
.legal-container { max-width: 760px; }
.legal-section .section-tag { margin-bottom: 1rem; }
.legal-title {
  font-size: clamp(1.875rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.legal-updated {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.25rem 0 0.75rem;
}
.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal-content p + p { margin-top: 0.875rem; }
.legal-content ul {
  margin: 0.875rem 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-content strong { color: var(--foreground); font-weight: 600; }
.legal-content a {
  color: var(--primary);
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
}
.legal-content a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .legal-section { padding: 2.5rem 0 3.5rem; }
}

/* ─── INTRO: the opening clip, put on the page by intro.js and gone when it ends ─── */
/* The page stays dark from the first paint only when the intro will play; the
   animation is the way out should the script never run. */
.intro-pending { background: #040708; }
.intro-pending body { visibility: hidden; animation: intro-fallback 0s 2s forwards; }
@keyframes intro-fallback { to { visibility: visible; } }
/* The real lockup waits for the one flying in. */
.intro-active .hero-figure { visibility: hidden; }

.intro { position: fixed; inset: 0; z-index: 1000; }
.intro-veil { position: absolute; inset: 0; background: #040708; }
.intro-video {
  position: absolute;
  display: block;
  /* The edges of the clip melt into the veil: no rectangle on a large screen. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.intro-lockup {
  position: absolute;
  opacity: 0;
  color: #4aa8ff;
  filter: drop-shadow(0 0 5px rgb(74 168 255 / 0.7));
}
.intro-handoff .intro-lockup { opacity: 1; transition: opacity 280ms ease-out; }
.intro-handoff .intro-video { opacity: 0; transition: opacity 280ms ease-in; }
.intro-fly .intro-veil { opacity: 0; transition: opacity 520ms var(--ease) 130ms; }
.intro-fly .intro-lockup {
  color: var(--primary);
  filter: drop-shadow(0 0 0 rgb(74 168 255 / 0));
  transition: transform 700ms cubic-bezier(0.45, 0, 0.2, 1), color 700ms ease, filter 700ms ease;
}
