/*
  aromarytechnologies.com — the company site's whole stylesheet.

  The product site (hiyava.aromarytechnologies.com) keeps style.css; nothing
  here reaches it.

  ORGANISATION
    1  type face and tokens
    2  base: reset, type scale, links, buttons, focus
    3  header and menus
    4  heroes
    5  sections and shared blocks
    6  home: what we do, solutions by area, industries, steps, commitments
    7  inner pages: SAP Business One, custom software, solutions, industries
    8  contact form
    9  footer
    10 responsive
    11 motion, the privacy note and the chat box

  THE DIRECTION
  Short pages, one job per section. Photographs (scripts/site-photos.mjs)
  show the world we work in; the rendered screens of our own products
  (scripts/site-images) show the products, and only on the solution pages.
  Everything around them stays quiet. One typeface, Instrument Sans, served from this site,
  with headlines set narrow and tight. The emerald palette is the owner's
  (#047857 for anything read, #10b981 only as a fill), deep emerald in place
  of black. Cards are used where content really is a set of separate things
  (products, services), not as the default container. Motion came back at
  the owner's request in November 2026: quick, light, and off for anyone who
  asks for reduced motion (section 11 has the rules).

  NO STYLE ATTRIBUTES. The content-security policy is style-src 'self', so
  everything is a class here.
*/

/* ======================================================= 1 face, tokens */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #6b6560;
  --page: #f5f5f4;
  --surface: #ffffff;
  --alt: #ecebe8;
  --tint: #e9f2ee;
  --line: #e2e0dd;
  --line-2: #cfccc8;
  --field-line: #8f8882;

  --em-50: #ecfdf5;
  --em-100: #d1fae5;
  --em-300: #6ee7b7;
  --em-500: #10b981;
  --em-600: #059669;
  --em-700: #047857;
  --em-800: #065f46;
  --em-900: #064e3b;
  --em-950: #022c22;

  --on-dark: #ecfdf5;
  --on-dark-2: #b6d4c7;
  --on-dark-line: rgba(255, 255, 255, 0.14);

  --danger: #b91c1c;

  --font:
    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow:
    0 1px 2px rgba(28, 25, 23, 0.05), 0 12px 32px -16px rgba(28, 25, 23, 0.18);
  --shadow-up:
    0 2px 4px rgba(28, 25, 23, 0.06), 0 22px 44px -18px rgba(2, 44, 34, 0.3);
}

/* ================================================================ 2 base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.55rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-stretch: 86%;
}

h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.7vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-stretch: 90%;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

.lead {
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

a {
  color: var(--em-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--em-800);
}

:focus-visible {
  outline: 3px solid var(--em-500);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--em-950);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap.narrow {
  max-width: 820px;
}

/* ---------------------------------------------------------- buttons */

/*
  One button, two weights. The filled button is the action a page wants; the
  outlined one is the other way on. On a dark band the filled button turns
  light, because white on the emerald fill would not be readable (2.5:1).
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--em-700);
  border-radius: var(--r-sm);
  background: var(--em-700);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.btn:hover {
  background: var(--em-800);
  border-color: var(--em-800);
  color: #fff;
}

.btn.secondary {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}

.btn.secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn.sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn.wide {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.dark .btn,
.home-hero .btn,
.btn.on-dark {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--em-950);
}

.dark .btn:hover,
.home-hero .btn:hover,
.btn.on-dark:hover {
  background: #fff;
  border-color: #fff;
  color: var(--em-950);
}

.dark .btn.secondary,
.home-hero .btn.secondary {
  background: transparent;
  border-color: rgba(236, 253, 245, 0.4);
  color: var(--on-dark);
}

.dark .btn.secondary:hover,
.home-hero .btn.secondary:hover {
  border-color: var(--on-dark);
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* A text link that leads somewhere: the destination's name, underlined on hover. */
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--em-700);
}

.more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

.more:hover {
  text-decoration: underline;
}

.dark .more {
  color: var(--em-300);
}

/* --------------------------------------------------------- pictures */

.pic {
  margin: 0;
}

.pic img {
  width: 100%;
}

.photo img {
  border-radius: var(--r-lg);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.pic figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: right;
}

.dark .pic figcaption,
.home-hero .pic figcaption {
  color: var(--on-dark-2);
}

/* ------------------------------------------------------------ lists */

.ticks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ticks svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--em-700);
}

.dark .ticks svg {
  color: var(--em-300);
}

/* ============================================================ 3 header */

.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.hd-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand .logo {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  margin-left: auto;
}

.nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav > ul > li > a:not(.btn),
.dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.nav > ul > li > a:not(.btn):hover,
.dd-btn:hover,
.dd:focus-within > .dd-btn,
.nav a[aria-current="page"]:not(.btn) {
  color: var(--ink);
  background: var(--alt);
}

.nav-cta {
  margin-left: 10px;
}

.chev {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

/* ---- the panels: open on hover and on focus, so no script is needed */

.dd {
  position: relative;
}

.dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  width: 360px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-up);
  /* Shown and hidden at once: a menu must never depend on an animation
     finishing, and an instant panel is the faster one to use. */
  display: none;
}

/* The gap between the trigger and the panel must not close it on the way down. */
.dd-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.dd:hover > .dd-panel,
.dd:focus-within > .dd-panel,
.dd.open > .dd-panel {
  display: block;
}

.dd.shut > .dd-panel {
  display: none;
}

.dd-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dd-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}

.dd-panel a:hover,
.dd-panel a[aria-current="page"] {
  background: var(--tint);
}

.dd-panel strong {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
}

.dd-panel span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-top: 2px;
}

/* The solutions panel lists eight areas, each naming its products: two
   columns, centred under its trigger so it never runs off the right edge. */
.dd:nth-child(2) .dd-panel {
  width: 640px;
  left: 50%;
  margin-left: -320px;
}

.dd:nth-child(2) .dd-panel ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* A menu near the right end of the bar (Products) opens leftwards, so its
   panel ends under its trigger instead of past the edge of the window. */
.dd:nth-last-child(-n + 3) .dd-panel {
  left: auto;
  right: -12px;
}

.dd-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 6px;
}

.dd-all a {
  font-weight: 600;
  color: var(--em-700);
}

/* ---- the phone menu: a <details>, so it opens and closes without script */

.menu {
  display: none;
  margin-left: auto;
}

.menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  list-style: none;
  cursor: pointer;
  color: var(--ink);
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu svg {
  width: 20px;
  height: 20px;
}

.menu .icon-close,
.menu[open] .icon-open {
  display: none;
}

.menu[open] .icon-close {
  display: block;
}

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 8px 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-up);
}

.menu-group {
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--line);
}

.menu-group p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.menu-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-group a,
.menu-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.menu-link {
  border-bottom: 1px solid var(--line);
}

.menu-link.cta {
  justify-content: center;
  margin-top: 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--em-700);
  color: #fff;
  font-weight: 600;
}

/* ============================================================ 4 heroes */

.hero {
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
}

.hero .lead {
  margin-top: 22px;
}

.crumb {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.crumb a {
  color: inherit;
}

/*
  THE HOME HERO, the one bold thing on the site: deep emerald, a big narrow
  headline and the promise on the left, a photograph on the right.
*/
.home-hero {
  padding: 84px 0 92px;
  color: var(--on-dark);
  background:
    radial-gradient(
      70rem 40rem at 85% 10%,
      rgba(16, 185, 129, 0.18),
      transparent 60%
    ),
    linear-gradient(170deg, var(--em-950) 0%, var(--em-900) 100%);
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.hero-title {
  max-width: 14ch;
  font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.6rem);
}

.home-hero .lead {
  color: var(--on-dark-2);
}

.hero-points {
  margin-top: 30px;
  gap: 8px;
  font-size: 15.5px;
  color: var(--on-dark-2);
}

.hero-points svg {
  color: var(--em-300);
}

.home-hero .photo img {
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
}

/* A small label over a heading: what the section is, before what it says. */
.eyebrow {
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--em-700);
}

.dark .eyebrow,
.home-hero .eyebrow {
  color: var(--em-300);
}

/* The platforms the work is done on: names in a quiet band under the hero. */
.platforms {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.platforms-in {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.platforms p {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.platforms ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}

.platforms li {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* Inner pages name a thing rather than make a claim: a size down from the home page. */
.page-hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.7rem);
}

.page-hero.plain .lead {
  max-width: 68ch;
}

/* ================================================= 5 sections, shared */

.sec {
  padding: 104px 0;
}

.sec.alt {
  background: var(--alt);
}

.sec.dark {
  background: var(--em-950);
  color: var(--on-dark);
}

.sec.dark .lead {
  color: var(--on-dark-2);
}

.head {
  max-width: 780px;
  margin-bottom: 52px;
}

.head .lead {
  margin-top: 16px;
}

.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.split .lead {
  margin-top: 18px;
}

.split.flip > :first-child {
  order: 2;
}

.note {
  margin-top: 28px;
  padding-left: 14px;
  border-left: 3px solid var(--em-600);
  font-size: 15px;
  color: var(--ink-2);
  max-width: 70ch;
}

.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 1.6em 0 0.5em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.4em;
}

/* --- the closing band */

.cta {
  background: var(--em-950);
  color: var(--on-dark);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta .lead {
  margin-top: 14px;
  color: var(--on-dark-2);
}

.cta .actions {
  margin-top: 0;
  flex: none;
}

.cta .btn {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--em-950);
}

.cta .btn.secondary {
  background: transparent;
  border-color: rgba(236, 253, 245, 0.4);
  color: var(--on-dark);
}

/* --- questions */

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--line-2);
}

.faq details {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--em-700);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 0 22px;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ============================================================= 6 home */

.cat-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 36px;
}

.cat-items.wide {
  grid-template-columns: repeat(3, 1fr);
}

.cat-items a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
}

.cat-items strong {
  display: block;
  font-weight: 600;
}

.cat-items a:hover strong {
  color: var(--em-700);
  text-decoration: underline;
}

.cat-items span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* --- what we do: three cards, each with its photograph */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.card .photo img,
.ind-cards .photo img {
  border-radius: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.card-body h3 {
  font-size: 1.3rem;
  font-stretch: 92%;
  letter-spacing: -0.01em;
}

.card-body > p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.card-body .ticks {
  margin-top: 18px;
  gap: 8px;
  font-size: 15.5px;
}

.card-body .more {
  margin-top: auto;
  padding-top: 22px;
}

/* --- "Built to order": the label on every solution that is designed and
   built for a customer rather than installed off the shelf */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--em-100);
  border-radius: 999px;
  background: var(--em-50);
  color: var(--em-800);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-copy > .badge,
.head > .badge {
  margin-bottom: 14px;
}

.sol-card-body .badge {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--em-800);
  line-height: 1.5;
}

/* --- industries: a photograph, a name and a line each */

.ind-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ind-cards a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.ind-cards a:hover {
  border-color: var(--em-600);
}

.ind-cards a:hover strong {
  color: var(--em-700);
}

.ind-body {
  display: grid;
  gap: 4px;
  padding: 18px 20px 20px;
}

.ind-body strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.ind-body span {
  font-size: 15px;
  color: var(--ink-2);
}

/* --- what you can hold us to: four commitments in a row */

.reasons-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.reasons-row li {
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}

.reasons-row h3 {
  margin-top: 16px;
  font-size: 1.08rem;
}

.reasons-row p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--ink-2);
}

/* --- how a project runs: a real sequence, so numbered */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.steps li {
  padding-top: 22px;
  border-top: 2px solid var(--on-dark-line);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--em-300);
  border-radius: 50%;
  color: var(--em-300);
  font-size: 14px;
  font-weight: 600;
}

.step-t {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--em-300);
}

.steps h3 {
  margin-top: 6px;
}

.steps p:not(.step-t) {
  margin-top: 10px;
  color: var(--on-dark-2);
  font-size: 15.5px;
}

.ind-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--em-50);
  color: var(--em-700);
}

.ind-icon svg {
  width: 22px;
  height: 22px;
}

/* ====================================================== 7 inner pages */

/* --- SAP Business One */

.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.modules li {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.modules strong {
  display: block;
  font-weight: 600;
}

.modules p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

.services {
  border-top: 1px solid var(--line-2);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-2);
}

.service h3 {
  font-size: 1.35rem;
}

.service p {
  margin-top: 10px;
  color: var(--ink-2);
}

.service .ticks {
  margin-top: 0;
}

/* --- solutions */

.area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.area-nav a {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background: var(--page);
}

.area-nav a:hover {
  border-color: var(--em-600);
  color: var(--em-800);
}

.area .head {
  margin-bottom: 32px;
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.sol-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.sol-card:hover {
  border-color: var(--em-600);
  color: var(--ink);
}

.sol-thumb {
  padding: 18px 18px 0;
  background: var(--tint);
}

/* A photograph fills the top of its card, at the height a framed screen takes,
   so cards with either kind of picture line up in one row. */
.sol-thumb.photo {
  padding: 0;
  overflow: hidden;
}

.sol-thumb.photo img {
  border-radius: 0;
  aspect-ratio: 24 / 13;
}

.sol-card-body {
  padding: 20px 22px 24px;
}

.sol-card strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
}

.sol-card-body span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

.sol-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.sol-body h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
}

.sol-body h2 + .lead {
  margin-top: 14px;
}

.sol-body .lead + h2 {
  margin-top: 52px;
}

.facts {
  position: sticky;
  top: 96px;
  padding: 10px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* A third party's trademark line, under a solution's facts. */
.facts .note {
  margin-top: 18px;
  font-size: 13.5px;
}

.facts dl {
  margin: 0 0 20px;
}

.facts dl div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.facts dd {
  margin: 4px 0 0;
  font-size: 15.5px;
}

.impact {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.impact li {
  padding-top: 20px;
  border-top: 2px solid var(--em-500);
  font-size: 1.28rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* --- industries page */

.industry {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.ind-photo {
  margin-bottom: 22px;
}

.ind-photo img {
  border-radius: var(--r-md);
}

.industry-head .lead {
  margin-top: 12px;
}

.industry h3 {
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.pains,
.helps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pains li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.pains li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #d97706;
}

.helps li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.helps a {
  font-weight: 600;
}

.helps small {
  flex: none;
  font-size: 13px;
  color: var(--ink-3);
}

/* --- about */

.what {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.what a {
  display: block;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.what a:hover {
  border-color: var(--em-600);
}

.what strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.what span {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
}

/* ========================================================== 8 contact */

.contact-hero {
  padding-bottom: 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.contact-intro .lead {
  margin-top: 20px;
}

.next {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  counter-reset: next;
  display: grid;
  gap: 18px;
}

.next li {
  counter-increment: next;
  position: relative;
  padding-left: 46px;
}

.next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--em-50);
  color: var(--em-800);
  font-size: 14px;
  font-weight: 600;
}

.next strong {
  display: block;
}

.next span {
  display: block;
  color: var(--ink-2);
  font-size: 15.5px;
}

.direct {
  margin-top: 32px;
  color: var(--ink-2);
}

.enquiry {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--page);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 15px;
  font-weight: 600;
}

.opt {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 13.5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--field-line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  padding: 12px 14px;
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--em-700);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.field-error {
  display: none;
  font-size: 14px;
  color: var(--danger);
}

.field.invalid .field-error {
  display: block;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}

/* The honeypot: off-screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 6px;
}

.consent {
  font-size: 14px;
  color: var(--ink-2);
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-weight: 500;
}

.form-status[data-kind="pending"] {
  background: var(--alt);
  color: var(--ink-2);
}

.form-status[data-kind="ok"] {
  background: var(--em-50);
  color: var(--em-800);
}

.form-status[data-kind="error"] {
  background: #fef2f2;
  color: var(--danger);
}

/* ============================================================ 9 footer */

.ft {
  padding: 72px 0 40px;
  background: var(--alt);
  border-top: 1px solid var(--line);
}

.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
  gap: 48px;
}

.ft-brand p {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 34ch;
}

/* The last column holds the email addresses, so it gets the room they need. */
.ft-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.55fr);
  gap: 28px;
}

.ft h2 {
  font-size: 14.5px;
  letter-spacing: 0;
  font-stretch: 100%;
  margin-bottom: 12px;
}

.ft ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ft a:not(.brand) {
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
  overflow-wrap: break-word;
}

.ft a:not(.brand):hover {
  color: var(--ink);
  text-decoration: underline;
}

.ft-legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-3);
  max-width: 110ch;
}

/* ======================================================== 10 responsive */

@media (max-width: 1120px) {
  .nav > ul > li > a:not(.btn),
  .dd-btn {
    padding: 8px 9px;
    font-size: 15px;
  }

  .ft-top {
    grid-template-columns: 1fr;
  }
}

/* The header menus give way to the phone menu. */
@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .hero-grid,
  .split,
  .sol-body,
  .contact-grid,
  .industry,
  .service {
    grid-template-columns: 1fr;
  }

  .split,
  .hero-grid {
    gap: 40px;
  }

  .split.flip > :first-child {
    order: 0;
  }

  .home-hero .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .cards {
    max-width: 640px;
  }

  .ind-cards,
  .reasons-row {
    grid-template-columns: 1fr 1fr;
  }

  .what {
    grid-template-columns: 1fr;
  }

  .steps,
  .impact {
    grid-template-columns: 1fr 1fr;
  }

  .modules {
    grid-template-columns: 1fr 1fr;
  }

  .cat-items.wide {
    grid-template-columns: 1fr 1fr;
  }

  .facts {
    position: static;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .ft-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .industry,
  .service {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hd-in {
    min-height: 62px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .home-hero {
    padding: 52px 0 60px;
  }

  .platforms-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .platforms ul {
    gap: 4px 18px;
  }

  .platforms li {
    font-size: 14.5px;
  }

  .reasons-row {
    grid-template-columns: 1fr;
  }

  /* Two industries a row on a phone: the photo and the name carry it. */
  .ind-cards {
    gap: 12px;
  }

  .ind-body {
    padding: 12px 14px 14px;
  }

  .ind-body strong {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .ind-body span {
    display: none;
  }

  .card-body {
    padding: 22px 20px 24px;
  }

  .sec {
    padding: 72px 0;
  }

  .head {
    margin-bottom: 36px;
  }

  .row-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .cat-items,
  .cat-items.wide,
  .steps,
  .impact,
  .modules,
  .what,
  .field-row {
    grid-template-columns: 1fr;
  }

  .sol-grid {
    grid-template-columns: 1fr;
  }

  /* On a phone the catalogue is a list of names; each page explains itself. */
  .cat-items span {
    display: none;
  }

  .cat-items a {
    padding: 6px 0;
  }

  .enquiry {
    padding: 22px 18px;
  }

  .form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .ft-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* The contact column holds the email addresses, the longest words in the
     footer: on a phone it takes the full width, so nothing runs off the page. */
  .ft-cols > :last-child {
    grid-column: 1 / -1;
  }

  .brand span {
    font-size: 15.5px;
  }
}

@media (max-width: 360px) {
  .brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* No sideways scroll, whatever a picture or a long address does. */
main {
  overflow-x: clip;
}

/* ================================================ 11 motion, notice, chat */

/*
  THE MOTION RULES. Quick (under half a second for anything that moves
  content), only transform and opacity, and always ending where the page
  would be without it. Nothing waits on a script: the hero plays from CSS,
  and company.js only hides what starts below the fold. prefers-reduced-motion
  turns all of it off at the bottom of this section.
*/

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- the header settles once the page moves */

.hd {
  transition:
    box-shadow 200ms ease,
    background-color 200ms ease;
}

.hd.scrolled {
  box-shadow: 0 8px 24px -18px rgba(2, 44, 34, 0.45);
}

/* --- the home hero: a slow glow behind, the words and photo arriving */

.home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.home-hero::before {
  width: 46rem;
  height: 46rem;
  right: -12rem;
  top: -18rem;
  background: radial-gradient(
    closest-side,
    rgba(16, 185, 129, 0.32),
    transparent
  );
  animation: drift-a 18s ease-in-out infinite alternate;
}

.home-hero::after {
  width: 34rem;
  height: 34rem;
  left: -14rem;
  bottom: -20rem;
  background: radial-gradient(
    closest-side,
    rgba(110, 231, 183, 0.16),
    transparent
  );
  animation: drift-b 22s ease-in-out infinite alternate;
}

/* A faint dot grid, fading out towards the words. */
.home-hero .wrap {
  position: relative;
}

.home-hero .hero-grid::before {
  content: "";
  position: absolute;
  inset: -40px -32px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(236, 253, 245, 0.12) 1px,
    transparent 1.5px
  );
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
}

@keyframes drift-a {
  to {
    transform: translate(-7rem, 5rem) scale(1.12);
  }
}

@keyframes drift-b {
  to {
    transform: translate(9rem, -4rem) scale(0.92);
  }
}

.home-hero .hero-copy > * {
  animation: arrive 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.home-hero .hero-copy > :nth-child(2) {
  animation-delay: 50ms;
}

.home-hero .hero-copy > :nth-child(3) {
  animation-delay: 100ms;
}

.home-hero .hero-copy > :nth-child(4) {
  animation-delay: 150ms;
}

.home-hero .hero-copy > :nth-child(5) {
  animation-delay: 200ms;
}

.home-hero .hero-art .pic {
  animation: settle 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* --- the cards floating over the hero photo */

.hero-art {
  position: relative;
}

.float-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 18px 36px -18px rgba(2, 44, 34, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation:
    chip-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both,
    bob 6s ease-in-out infinite alternate;
}

.chip > svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: var(--em-50);
  color: var(--em-700);
}

.chip strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.chip small {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
}

.chip.c1 {
  left: -28px;
  top: 14%;
  animation-delay: 350ms, 0s;
}

.chip.c2 {
  right: -22px;
  top: 46%;
  animation-delay:
    500ms,
    -2s;
}

.chip.c3 {
  left: 8%;
  bottom: -22px;
  animation-delay:
    650ms,
    -4s;
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

@keyframes bob {
  from {
    translate: 0 -5px;
  }
  to {
    translate: 0 5px;
  }
}

/* --- the platforms ticker */

.platforms-in {
  overflow: hidden;
}

.marquee {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.platforms .marquee ul {
  flex: none;
  flex-wrap: nowrap;
  gap: 0;
  animation: ticker 38s linear infinite;
}

.platforms .marquee li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.platforms .marquee li::after {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 22px;
  border-radius: 50%;
  background: var(--em-500);
}

.marquee:hover ul {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

/* --- rising into view (classes from company.js) */

.rise {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 480ms ease,
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rise.in {
  opacity: 1;
  transform: none;
}

.rise.d1 {
  transition-delay: 60ms;
}

.rise.d2 {
  transition-delay: 120ms;
}

.rise.d3 {
  transition-delay: 180ms;
}

/* The line over each step draws across as the step arrives. */
.steps li {
  position: relative;
  border-top-color: var(--on-dark-line);
}

.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: var(--em-300);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms;
}

.steps li.in::before,
.steps li:not(.rise)::before {
  transform: scaleX(1);
}

/* --- hover: cards lift, photos lean in, arrows nudge */

.card,
.ind-cards a,
.sol-card,
.what a {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.card:hover,
.ind-cards a:hover,
.sol-card:hover,
.what a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-up);
}

.card .photo,
.ind-cards .photo,
.sol-card .photo {
  overflow: hidden;
}

.card .photo img,
.ind-cards .photo img,
.sol-card .photo img {
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .photo img,
.ind-cards a:hover .photo img,
.sol-card:hover .photo img {
  transform: scale(1.06);
}

.more::after {
  transition: transform 180ms ease;
}

.more:hover::after,
a:hover > .more::after,
.card:hover .more::after {
  transform: translateX(3px) rotate(45deg);
}

/* A light passes over the main buttons on hover. */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-18deg);
  pointer-events: none;
}

.btn:hover::before {
  left: 130%;
  transition: left 650ms ease;
}

.btn.secondary::before {
  display: none;
}

/* The closing band breathes, slowly. */
.cta {
  background:
    radial-gradient(
      40rem 20rem at 85% 0%,
      rgba(16, 185, 129, 0.22),
      transparent 70%
    ),
    var(--em-950);
  background-size: 160% 160%;
  animation: band 16s ease-in-out infinite alternate;
}

@keyframes band {
  to {
    background-position: 100% 100%;
  }
}

/* --- the privacy note */

.notice {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  width: min(380px, calc(100vw - 40px));
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 24px 48px -20px rgba(2, 44, 34, 0.4);
  font-size: 14.5px;
  color: var(--ink-2);
  animation: pop-up 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both 400ms;
}

.notice.leaving {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.notice-t {
  margin-bottom: 6px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.notice-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@keyframes pop-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* --- the chat box */

.chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat[hidden],
.chat [hidden] {
  display: none !important;
}

.chat-launch {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--em-700);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(2, 44, 34, 0.6);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
  animation: pop-up 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both 900ms;
}

.chat-launch:hover {
  transform: scale(1.06);
  background: var(--em-800);
}

.chat-launch svg {
  width: 28px;
  height: 28px;
}

.chat-launch-close {
  display: none;
}

.chat.open .chat-launch-icon {
  display: none;
}

.chat.open .chat-launch-close {
  display: block;
}

/* A soft ring that pulses while the greeting waits. */
.chat-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--em-500);
  opacity: 0;
}

.chat:has(.chat-greet:not([hidden])) .chat-launch::after {
  animation: ring 2.2s ease-out infinite;
}

@keyframes ring {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.chat-greet {
  position: relative;
  max-width: 290px;
  animation: pop-up 380ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.chat-greet-open {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px;
  background: var(--surface);
  box-shadow: 0 18px 36px -18px rgba(2, 44, 34, 0.45);
  color: var(--ink-2);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.chat-greet-open strong {
  color: var(--ink);
  font-size: 15px;
}

.chat-greet-x,
.chat-x {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.chat-greet-x {
  position: absolute;
  top: 6px;
  right: 6px;
}

.chat-greet-x:hover,
.chat-x:hover {
  background: var(--alt);
  color: var(--ink);
}

.chat-greet-x svg,
.chat-x svg {
  width: 16px;
  height: 16px;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 60px -24px rgba(2, 44, 34, 0.5);
  transform-origin: bottom right;
  animation: open-up 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes open-up {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  background: linear-gradient(160deg, var(--em-950), var(--em-900));
  color: var(--on-dark);
}

.chat-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.chat-avatar .logo {
  width: 22px;
  height: 22px;
}

.chat-who {
  flex: 1;
  min-width: 0;
}

.chat-who strong {
  display: block;
  font-size: 15px;
}

.chat-who small {
  display: block;
  font-size: 12.5px;
  color: var(--on-dark-2);
}

.chat-head .chat-x {
  color: var(--on-dark-2);
}

.chat-head .chat-x:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 4px;
  overflow-y: auto;
}

.msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  animation: arrive 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.msg.bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--alt);
  color: var(--ink);
}

.msg.me {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--em-700);
  color: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  padding: 8px 12px;
  border: 1px solid var(--em-600);
  border-radius: 999px;
  background: var(--surface);
  color: var(--em-800);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.chip-btn:hover {
  background: var(--em-700);
  color: #fff;
}

.chat-form {
  display: grid;
  gap: 10px;
  padding: 10px 16px 6px;
  overflow-y: auto;
}

.chat-form .field label {
  font-size: 13.5px;
}

.chat-form input,
.chat-form textarea {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 15px;
}

.chat-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-send .consent {
  font-size: 12.5px;
}

.chat-foot {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

/* While the privacy note is open the chat waits, so two boxes never stack. */
.notice-open .chat {
  display: none;
}

@media (max-width: 640px) {
  .chip {
    display: none;
  }

  .chip.c1 {
    display: flex;
    left: 10px;
    top: auto;
    bottom: -18px;
  }

  .platforms .marquee {
    width: 100%;
  }

  .notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .chat {
    right: 14px;
    bottom: 14px;
  }

  .chat-launch {
    width: 54px;
    height: 54px;
  }

  .chat-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 100px);
  }

  .chat-greet {
    max-width: calc(100vw - 90px);
  }
}

/* Reduced motion: everything above stands still and is simply there. */
@media (prefers-reduced-motion: reduce) {
  .home-hero::before,
  .home-hero::after,
  .home-hero .hero-copy > *,
  .home-hero .hero-art .pic,
  .chip,
  .cta,
  .notice,
  .chat-launch,
  .chat-launch::after,
  .chat-greet,
  .chat-panel,
  .msg {
    animation: none !important;
  }

  .platforms .marquee ul {
    animation: none;
    flex-wrap: wrap;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-copy {
    display: none !important;
  }

  .rise {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .ind-cards a:hover,
  .sol-card:hover,
  .what a:hover,
  .card:hover .photo img,
  .sol-card:hover .photo img,
  .ind-cards a:hover .photo img,
  .chat-launch:hover {
    transform: none;
  }

  .btn::before {
    display: none;
  }

  .steps li::before {
    transform: scaleX(1);
  }
}
