/* ==========================================================================
   artemisoft.mk — "Swiss Graphite"
   One stylesheet. Mobile-first. No build step, no external requests.

   A 12-column grid with one axis: headings hang in columns 1–4, all running
   text starts at column 6. Type does the work that boxes, labels and
   decoration did before. The logo's orange is the only colour, used for
   the primary action, focus, and one rule above the closing section.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font (self-hosted, subset woff2)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   Contrast on --bg #1E2124, computed:
     --fg      #E8ECEE  13.61:1
     --fg-2    #AFB8BE   8.03:1
     --fg-3    #8C959B   5.31:1
     --ember   #F36A22   5.31:1
   The ground is a graphite, not near-black: light text on a very dark
   field haloes, which smears letterforms for astigmatic eyes, and a black
   ground made the generous spacing read as empty.
   -------------------------------------------------------------------------- */

:root {
  --bg:        #1E2124;
  --surface:   #25292C;

  --fg:        #E8ECEE;
  --fg-2:      #AFB8BE;
  --fg-3:      #8C959B;

  --ember:     #F36A22;          /* brand: fills, rules, button grounds */
  --ember-ink: #F36A22;          /* brand as TEXT — overridden in light mode */
  --ember-btn-ink: #160902;      /* ink sitting on an ember button */
  --ember-lift:#FF8340;
  --ember-lift:color-mix(in oklab, var(--ember) 84%, white);

  --line:      rgba(255, 255, 255, 0.10);   /* row rules */
  --line-2:    rgba(255, 255, 255, 0.20);   /* section rules, field borders */

  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1320px;
  --gut: 20px;                    /* page margin */
  --col-gap: 20px;                /* grid gutter */
  --sec-pad: 80px;                /* space between sections */
  --header-h: 62px;
}

/* --------------------------------------------------------------------------
   2b. Light theme

   Dark is the default and the identity. Light exists because light-on-dark
   haloes, which makes sustained reading harder for some eyes, and a reader
   who finds that uncomfortable should not have to leave.
   -------------------------------------------------------------------------- */

:root[data-theme="light"] {
  --bg:        #FBFBFA;
  --surface:   #F3F3F1;

  --fg:        #17191B;   /* 17.02:1 */
  --fg-2:      #4E555A;   /*  7.32:1 */
  --fg-3:      #686F74;   /*  4.93:1 */

  --ember-ink: #BF4708;   /*  4.92:1 — #F36A22 is only 2.94:1 here */
  --ember-btn-ink: #FFFFFF;

  --line:      rgba(0, 0, 0, 0.11);
  --line-2:    rgba(0, 0, 0, 0.24);

  color-scheme: light;
  scrollbar-color: #C9CBCC var(--bg);
}

/* white ink on ember only clears 3.05:1, so the button ground darkens to keep
   the label readable rather than the label lightening to keep the brand */
:root[data-theme="light"] .btn-primary { background: #C2470A; }
:root[data-theme="light"] .btn-primary:hover { background: #A93D06; box-shadow: 0 8px 24px rgba(194, 71, 10, 0.24); }

/* one lockup is white, the other dark; show whichever the theme needs */
.brand .on-light, .foot-brand .on-light { display: none; }
:root[data-theme="light"] .brand .on-dark,
:root[data-theme="light"] .foot-brand .on-dark { display: none; }
:root[data-theme="light"] .brand .on-light,
:root[data-theme="light"] .foot-brand .on-light { display: block; }

/* --------------------------------------------------------------------------
   2c. Theme toggle control
   -------------------------------------------------------------------------- */

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-btn:hover { color: var(--fg); border-color: var(--fg-3); }
.theme-btn svg { display: block; }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html {
  color-scheme: dark;
  accent-color: var(--ember);
  scrollbar-color: #3A3F43 var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
  overflow-x: hidden;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.nowrap { white-space: nowrap; }

a { color: inherit; }

::selection { background: var(--ember); color: var(--ember-btn-ink); }

:focus-visible {
  outline: 2px solid var(--ember-ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ember);
  color: var(--ember-btn-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 12px; }

/* --------------------------------------------------------------------------
   4. The grid

   .g is the 12-column grid. On a phone every child spans the full width and
   the grid is a plain stack. From 900px the axis appears: .c-head sits in
   columns 1–4, .c-body starts at column 6 and leaves column 12 empty,
   .c-wide runs from column 6 to the edge.
   -------------------------------------------------------------------------- */

.g {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 22px;
}
.g > * { grid-column: 1 / -1; min-width: 0; }

/* rows inside a list repeat the same 12 columns, so their contents land on
   the same vertical lines as the section above them */
.rows > li,
.work-item,
.stack-group {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.rows > li > *,
.work-item > *,
.stack-group > * { grid-column: 1 / -1; min-width: 0; }

/* --------------------------------------------------------------------------
   5. Cross-document view transitions
   -------------------------------------------------------------------------- */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 140ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 220ms var(--ease-out) both; }

@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

.site-head { view-transition-name: site-head; }
.site-foot { view-transition-name: site-foot; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), transform 0.32s var(--ease-out);
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head.is-tucked { transform: translateY(-100%); }

.head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

/* the real lockup: the brand's condensed letterforms match nothing in the
   type stack, so the wordmark is never retyped */
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.brand img { height: 24px; width: auto; }

.site-nav { display: none; }

.nav-link {
  padding: 6px 0;
  font-size: 15px;
  color: var(--fg-2);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: color 0.2s var(--ease), background-size 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--fg); background-size: 100% 1px; }
.nav-link[aria-current='page'] {
  color: var(--fg);
  background-image: linear-gradient(var(--ember), var(--ember));
  background-size: 100% 1px;
}

/* buttons: rectangles, no glow, the label says what happens */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }

/* hover: the orange lifts and glows, as on the previous site */
.btn-primary {
  background: var(--ember);
  color: var(--ember-btn-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn-primary:hover {
  background: var(--ember-lift);
  box-shadow: 0 8px 26px rgba(243, 106, 34, 0.28), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg-3); background: rgba(255, 255, 255, 0.04); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(0, 0, 0, 0.03); }

.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }

.head-cta { display: none; }

/* mobile menu */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.menu-btn span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), background-color 0.15s linear;
}
.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.2s var(--ease);
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded='true'] span { background: transparent; }
.menu-btn[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: 22px var(--gut) 40px;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.24s var(--ease), visibility 0.24s;
}
.mobile-nav.open { visibility: visible; opacity: 1; }

.mobile-nav a.m-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(32px, 10vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-decoration: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s var(--ease);
}
.mobile-nav a.m-link:active { color: var(--ember-ink); }
.mobile-nav.open a.m-link { opacity: 1; transform: none; }
.mobile-nav.open a.m-link:nth-child(2) { transition-delay: 0.03s; }
.mobile-nav.open a.m-link:nth-child(3) { transition-delay: 0.06s; }
.mobile-nav.open a.m-link:nth-child(4) { transition-delay: 0.09s; }
.mobile-nav.open a.m-link:nth-child(5) { transition-delay: 0.12s; }
.mobile-nav .btn { margin-top: 28px; }
.m-contact {
  margin-top: auto;
  padding-top: 28px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--fg-3);
}
.m-contact a { color: var(--fg-2); text-decoration: none; }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */

.sec {
  padding-block: var(--sec-pad);
  border-top: 1px solid var(--line-2);
}

.sec-title {
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.sec-intro {
  max-width: 44ch;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
}

/* a plain underlined link that leads on to the full page */
.more {
  margin-top: 40px;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 600;
}
.more a,
.prose a,
.cta-direct a,
.contact-facts .map-link a {
  text-decoration: none;
  padding-bottom: 2px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease-out), color 0.2s var(--ease);
}
.more a:hover,
.prose a:hover,
.cta-direct a:hover,
.contact-facts .map-link a:hover { color: var(--ember-ink); background-size: 100% 1px, 100% 1px; }

/* --------------------------------------------------------------------------
   8. Hero (homepage) and page heads (inner pages)
   -------------------------------------------------------------------------- */

.hero { padding-block: 48px 72px; }

/* monumental: one weight, no accent word, tight leading */
.display {
  font-size: clamp(40px, 8.4vw, 136px);
  line-height: 0.92;
  letter-spacing: -0.047em;
  margin-inline-start: -0.05em;   /* large glyphs carry side bearing */
}

.hero-lede {
  max-width: 40ch;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
}
.hero-lede a { color: var(--fg); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-text { margin-top: 18px; }
.hero .facts { margin-top: 44px; }

/* each headline line is its own block, so the break points are fixed and the
   lines can rise in one after another */
.display .ln { display: block; }

/* a schematic of the kind of system the company builds, drawn in the page's
   own ink: boxes and wires in grey, the Kafka bus in the logo orange */
.schematic { margin: 36px 0 0; }
.schematic svg { display: block; width: 100%; max-width: 560px; height: auto; overflow: visible; font-family: var(--sans); }
.sch-frame { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 5; }
.sch-box, .sch-line { fill: none; stroke: var(--fg-3); stroke-width: 1.25; }
.sch-bus { fill: none; stroke: var(--ember); stroke-width: 3; }
.sch-t { fill: var(--fg); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.sch-s { fill: var(--fg-3); font-size: 13px; }
.sch-in { fill: var(--fg-2); font-size: 14px; }
.sch-k { fill: var(--ember-ink); font-size: 13px; font-weight: 600; }

/* on a phone the drawing is scaled to about two-thirds; the labels grow in
   user units so they still read at around 12px */
@media (max-width: 619px) {
  .sch-t { font-size: 19px; }
  .sch-s, .sch-k { font-size: 16px; }
  .sch-in { font-size: 17px; }
}

@media (max-width: 479px) {
  .hero-actions, .cta-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

/* facts under the hero: a two-column table, not a box */
.facts { margin: 0; border-top: 1px solid var(--line-2); }
.facts > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.5;
}
.facts dt { color: var(--fg-3); }
.facts dd { margin: 0; color: var(--fg); }
.facts a { color: var(--fg); text-decoration: none; }
.facts a:hover { color: var(--ember-ink); }

.page-head { padding-block: 48px 72px; }
.page-title {
  font-size: clamp(36px, 5.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.044em;
  margin-inline-start: -0.04em;
}

/* --------------------------------------------------------------------------
   9. Client logos
   -------------------------------------------------------------------------- */

.clients-intro {
  margin-top: 20px;
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* The marks sit in a grid of equal cells, centred, divided by hairlines only.
   Each cell draws its own top and left border and is pulled 1px up and left,
   so the borders on the outer edge fall outside the list and are clipped:
   no outer frame, at any column count. Borders rather than 1px gaps over a
   background, because a 1px gap between fractional-width columns can round
   to nothing at browser zoom or on 125-150% displays. */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}
.logo-wall li {
  margin: -1px 0 0 -1px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #FFFFFF;
  transition: background-color 0.25s var(--ease);
}
.logo-wall li:hover { background: #F5F6F7; }

.logo-wall a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 24px 12px;
  text-decoration: none;
}

/* Each mark in its own colours, sized optically rather than to one height:
   width follows the mark's proportions and how much ink it carries (the
   thin Symphony Solutions wordmark gets more room, the solid Image PR block
   less), so all eight read as the same size. Widths are a share of the
   cell, so the balance holds on every screen. Measured: aspect / ink
   HPE 3.5 / 50%, INIT 1.9 / 42%, Datalex 5.6 / 43%, Danieli 7.0 / 69%,
   Symphony Solutions 3.1 / 29%, WVP 2.6 / 74%, Ellia 3.6 / 44%,
   Image PR 3.6 / 100%. Width = 33.4 x aspect^0.39 x ink^-0.24, rounded,
   then checked by eye: Symphony Solutions +10 (small lettering beside a
   large circle), HPE -4 (solid strokes). */
.logo-wall img {
  height: auto;
  max-width: 100%;
  transition: transform 0.25s var(--ease-out);
}
.logo-wall li:hover img { transform: translateY(-2px); }
.logo-wall img[alt="Hewlett Packard Enterprise"] { width: 60%; }
.logo-wall img[alt="INIT"]               { width: 53%; }
.logo-wall img[alt="Datalex"]            { width: 82%; }
.logo-wall img[alt="Danieli"]            { width: 76%; }
.logo-wall img[alt="Symphony Solutions"] { width: 80%; }
.logo-wall img[alt="WVP"]                { width: 53%; }
.logo-wall img[alt="Ellia"]              { width: 63%; }
.logo-wall img[alt="Image PR"]           { width: 56%; }

@media (min-width: 620px) {
  .logo-wall a { min-height: 150px; }
}

/* --------------------------------------------------------------------------
   10. Ruled rows (services) and the work list

   Services are rows on the axis: name left, text right. Work is set as a
   type list instead — each system name large across the page, its
   description dropping onto the axis below — so the middle of the page has
   scale contrast rather than a second table.
   -------------------------------------------------------------------------- */

.rows, .work {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.rows > li {
  row-gap: 10px;
  padding-block: 24px 26px;
  border-bottom: 1px solid var(--line);
}
.rows h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
  transition: color 0.2s var(--ease);
}
.rows > li:hover h3 { color: var(--ember-ink); }
.rows p,
.work-desc {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
}

.work-item {
  row-gap: 10px;
  padding-block: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.work-name {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
  transition: color 0.2s var(--ease);
}
.work-desc { transition: color 0.2s var(--ease); }
.work-item:hover .work-desc { color: var(--fg); }

/* the homepage names the services and leaves the detail to /services/; set
   as a two-column list of large links so it reads nothing like the work rows */
.svc-names {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  columns: 1;
}
.svc-names li { break-inside: avoid; }
.svc-names a {
  display: inline-block;
  padding: 7px 0;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 92% / 0% 2px no-repeat;
  transition: color 0.2s var(--ease), background-size 0.35s var(--ease-out);
}
.svc-names a:hover { color: var(--ember-ink); background-size: 100% 2px; }
@media (min-width: 620px) { .svc-names { columns: 2; column-gap: var(--col-gap); } }

/* --------------------------------------------------------------------------
   11. Technology table
   -------------------------------------------------------------------------- */

.stack-groups { margin-top: 48px; border-top: 1px solid var(--line-2); }
.stack-group {
  row-gap: 6px;
  padding-block: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.stack-group h3 { font-size: 17px; letter-spacing: -0.01em; }
.stack-why { font-size: 15px; line-height: 1.5; color: var(--fg-3); }

/* the tools are the content: plain text, comma-separated, no chips */
.stack-list {
  display: flex;                 /* flex ignores the whitespace between <li>s */
  flex-wrap: wrap;
  column-gap: 0.32em;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.45;
  color: var(--fg);
}
.stack-list li:not(:last-child)::after { content: ','; }

.stack-note {
  max-width: 62ch;
  margin-top: 28px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fg-3);
}

/* --------------------------------------------------------------------------
   12. Statements (how we operate, working conditions)
   -------------------------------------------------------------------------- */

.assure {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.assure li { padding-top: 16px; border-top: 1px solid var(--line-2); }
.assure h3 { font-size: 20px; letter-spacing: -0.02em; }
.assure p { margin-top: 10px; font-size: 16.5px; line-height: 1.62; color: var(--fg-2); }

/* --------------------------------------------------------------------------
   13. Orange planes and the closing section

   Swiss posters get their warmth from flat colour, not from effects. A plane
   re-points the ink tokens, so everything inside it — rules, links, focus,
   buttons — follows without per-component overrides. Graphite on the logo
   orange is 6.12:1 and the brown secondary ink 5.0:1, both AA. The plane is
   the same in both themes: it is the brand colour, not a surface.
   -------------------------------------------------------------------------- */

.plane-ember,
.cta {
  --fg:        #101316;
  --fg-2:      #3B1E0E;
  --fg-3:      #3B1E0E;
  --ember-ink: #101316;
  --line:      rgba(16, 19, 22, 0.22);
  --line-2:    rgba(16, 19, 22, 0.50);
  background: var(--ember);
  color: var(--fg);
  border-top: 0;
}
.plane-ember + .sec { border-top: 0; }

/* the client logos are other companies' colour marks, drawn for white; this
   plane shows them as they were made. Light-theme ink tokens. */
.plane-white {
  --fg:        #17191B;
  --fg-2:      #4E555A;
  --fg-3:      #686F74;
  --ember-ink: #BF4708;
  --line:      rgba(0, 0, 0, 0.11);
  --line-2:    rgba(0, 0, 0, 0.24);
  background: #FFFFFF;
  color: var(--fg);
  border-top: 0;
}
.plane-white + .sec { border-top: 0; }

.plane-ember ::selection,
.cta ::selection { background: #101316; color: #F2F4F5; }

/* on orange the primary action turns graphite; the orange button would vanish */
.plane-ember .btn-primary,
.cta .btn-primary,
:root[data-theme="light"] .plane-ember .btn-primary,
:root[data-theme="light"] .cta .btn-primary { background: #101316; color: #F2F4F5; }
.plane-ember .btn-primary:hover,
.cta .btn-primary:hover,
:root[data-theme="light"] .plane-ember .btn-primary:hover,
:root[data-theme="light"] .cta .btn-primary:hover { background: #2A2F33; box-shadow: 0 8px 26px rgba(16, 19, 22, 0.35); }
/* the mark, large and cropped by the plane's bottom edge. On orange the
   identity manual sets it in silver, with no orange band. Desktop only:
   on a phone it would sit behind text. */
.has-mark { position: relative; overflow: hidden; }
.has-mark > .wrap { position: relative; z-index: 1; }
.plane-mark { display: none; }
@media (min-width: 900px) {
  .plane-mark {
    display: block;
    position: absolute;
    left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
    bottom: -26%;
    height: 82%;
    width: auto;
    transform: translateX(-6%);   /* the visible left edge lines up with the heading */
    pointer-events: none;
    user-select: none;
  }
}

.plane-ember .btn-ghost,
.cta .btn-ghost { border-color: rgba(16, 19, 22, 0.55); }
.plane-ember .btn-ghost:hover,
.cta .btn-ghost:hover { border-color: #101316; background: rgba(16, 19, 22, 0.06); }

.cta-title {
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.042em;
  margin-inline-start: -0.03em;
}
.cta-inner { margin-top: 18px; }
.cta-inner > p:first-child {
  max-width: 44ch;
  font-size: clamp(18px, 1.55vw, 20px);
  line-height: 1.55;
  color: var(--fg-2);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-direct {
  margin-top: 26px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--fg-3);
}
.cta-direct a { color: var(--fg); text-decoration: none; }
.cta-direct a:hover { color: var(--ember-ink); }

.cta-next-wrap { margin-top: 18px; }
.cta-next-h { font-size: 17px; letter-spacing: -0.01em; }
.cta-next {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line-2);
}
/* a real sequence, so it is numbered — plainly */
.cta-next li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-2);
  counter-increment: step;
}
.cta-next li::before { content: counter(step); color: var(--fg-3); }

/* --------------------------------------------------------------------------
   14. Prose with hanging heads (about, services, privacy)

   Each h2 sits in columns 1–4 on the same line as the first paragraph that
   follows it; paragraphs run in columns 6–11. No extra markup needed: grid
   auto-placement does it.
   -------------------------------------------------------------------------- */

.prose {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.prose > * { grid-column: 1 / -1; min-width: 0; }

.prose > h2 {
  margin-top: 64px;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.prose > p { margin-top: 18px; max-width: 64ch; font-size: 17px; line-height: 1.72; color: var(--fg-2); }
.prose > h2 + p { margin-top: 14px; }
.prose > :first-child,
.prose > h2:first-child + * { margin-top: 0; }

.prose h3 { margin-top: 32px; font-size: 18px; letter-spacing: -0.02em; }
.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}
.prose a:hover { color: var(--ember-ink); text-decoration-color: currentColor; }

.prose ul { margin: 18px 0 0; padding-left: 1.1em; }
.prose ul li { margin-top: 8px; font-size: 16.5px; line-height: 1.65; color: var(--fg-2); }

/* the mark beside the story of the name on /about-us/; the dark-ground
   version (lighter greys) or the standard one, whichever the theme needs */
.name-mark { margin: 32px 0 0; }
.name-mark img { height: 148px; width: auto; }
.name-mark .on-light { display: none; }
:root[data-theme="light"] .name-mark .on-dark { display: none; }
:root[data-theme="light"] .name-mark .on-light { display: block; }

/* phased sequence on /services/: a real order, numbered plainly */
.seq {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 22px 0 4px;
  padding: 14px 0 0;
  list-style: none;
  counter-reset: phase;
  border-top: 1px solid var(--line);
}
.seq li {
  font-size: 15.5px;
  color: var(--fg);
  counter-increment: phase;
}
.seq li::before { content: counter(phase); margin-right: 7px; color: var(--fg-3); }

/* --------------------------------------------------------------------------
   15. Contact form
   -------------------------------------------------------------------------- */

.field { margin-top: 22px; }
.field:first-child { margin-top: 0; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 17px; /* < 16px makes iOS zoom on focus */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember-ink);
  box-shadow: 0 0 0 1px var(--ember-ink);
}
.field textarea { min-height: 160px; resize: vertical; field-sizing: content; max-height: 60vh; }
.field-row { display: grid; gap: 22px; }
.field-row .field { margin-top: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-3);
}
.form-note a { color: var(--fg-2); }

.form-status { display: none; }
.form-status.ok, .form-status.err {
  display: block;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-size: 15.5px;
  line-height: 1.55;
}
.form-status.ok { border-color: #3FBF7F; }
.form-status.err { border-color: var(--ember); }
.form-status a { color: var(--ember-ink); }

.contact-facts { display: grid; gap: 26px; align-content: start; }
.contact-facts h3 { font-size: 15px; letter-spacing: -0.005em; color: var(--fg-3); font-weight: 400; }
.contact-facts div p, .contact-facts div address {
  margin-top: 6px;
  font-style: normal;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg);
}
.contact-facts a { color: var(--fg); text-decoration: none; }
.contact-facts a:hover { color: var(--ember-ink); }
.contact-facts .map-link a {
  font-size: 15.5px;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-foot { border-top: 1px solid var(--line-2); }
.foot-grid { display: grid; gap: 32px; padding-block: 48px 28px; }
.foot-brand { display: inline-flex; align-items: center; text-decoration: none; }
.foot-brand img { height: 24px; width: auto; }
.foot-about { margin-top: 16px; max-width: 36ch; font-size: 15px; line-height: 1.6; color: var(--fg-3); }

.foot-col h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: var(--fg); }
.foot-col ul { margin: 10px 0 0; padding: 0; list-style: none; }
.foot-col a, .foot-col address {
  display: block;
  padding: 5px 0;
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.foot-col a:hover { color: var(--ember-ink); }

.foot-base {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-3);
}

/* --------------------------------------------------------------------------
   17. Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 620px) {
  :root { --gut: 32px; }
  .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assure { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--col-gap); }
}
/* Eight logos: two or four columns, never three, so no cell is left empty.
   Four only where a cell stays about 140px wide: full width from 620px, and
   beside the hanging head from 1100px; between, two. */
@media (min-width: 900px) and (max-width: 1099.98px) {
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .assure-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  :root { --gut: 48px; --col-gap: 24px; --sec-pad: 128px; --header-h: 72px; }

  .brand img { height: 27px; }
  .menu-btn, .mobile-nav { display: none; }
  .site-nav { display: flex; align-items: center; gap: 30px; }
  .head-cta { display: inline-flex; }

  /* the axis */
  .g > .c-head { grid-column: 1 / 5; }
  .g > .c-body { grid-column: 6 / 12; }
  .g > .c-wide { grid-column: 6 / -1; }

  .hero { padding-block: 88px 120px; }
  .page-head { padding-block: 88px 112px; }
  .hero-text { grid-column: 1 / 6; margin-top: 72px; }
  .schematic { grid-column: 7 / -1; margin-top: 72px; align-self: start; justify-self: end; width: 100%; max-width: 560px; }
  .page-head .hero-lede { margin-top: 44px; }
  .page-head .hero-actions { grid-column: 6 / 12; margin-top: 0; }


  .rows > li > h3 { grid-column: 1 / 5; }
  .rows > li > p, .work-desc { grid-column: 6 / 12; }
  .work-name { grid-column: 1 / 5; }

  .stack-group > h3, .stack-group > .stack-why { grid-column: 1 / 5; }
  .stack-group > .stack-list { grid-column: 6 / 12; grid-row: 1 / span 2; margin-top: 0; }
  .stack-note { grid-column: 6 / 12; }

  .cta-title { grid-column: 1 / 11; }
  .cta-inner { grid-column: 1 / 5; margin-top: 48px; }
  .cta-inner:last-child { grid-column: 1 / 7; }   /* nothing beside it */
  .cta-next-wrap { grid-column: 6 / 12; margin-top: 48px; }

  .contact-split > .form-wrap { grid-column: 6 / 12; grid-row: 1; }
  .contact-split > .contact-facts { grid-column: 1 / 5; grid-row: 1; }

  /* hanging heads */
  .prose > * { grid-column: 6 / 12; }
  .prose > h2 { grid-column: 1 / 5; margin-top: 88px; }
  .prose > h2 + *, .prose > h2 + p { margin-top: 88px; }
  .prose > h2:first-child + * { margin-top: 0; }
  .prose { align-items: baseline; }

  .foot-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: 64px 36px; }
  .foot-grid > :nth-child(1) { grid-column: 1 / 5; }
  .foot-grid > :nth-child(2) { grid-column: 6 / 8; }
  .foot-grid > :nth-child(3) { grid-column: 8 / 10; }
  .foot-grid > :nth-child(4) { grid-column: 10 / -1; }
}

/* --------------------------------------------------------------------------
   18. Motion

   One orchestrated opening: the headline lines rise, then the schematic
   draws itself tier by tier and the Kafka bus runs across last. Everything
   is CSS, so nothing can be left invisible by a script that did not run,
   and all of it sits behind prefers-reduced-motion: no-preference.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .display .ln { overflow: clip; padding-block: 0.06em 0.12em; margin-block: -0.06em -0.12em; }
  .display .ln > span { display: block; animation: line-rise 0.95s var(--ease-out) both; }
  .display .ln:nth-child(2) > span { animation-delay: 0.09s; }
  .display .ln:nth-child(3) > span { animation-delay: 0.18s; }

  .page-title { animation: title-rise 0.8s var(--ease-out) both; }

  .schematic [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.55s var(--ease-out) forwards; }
  .schematic .sch-bus { animation-duration: 0.8s; }
  .schematic text, .sch-frame { animation: fade 0.5s var(--ease) both; }
  .schematic .s1, .schematic .f1 { animation-delay: 0.45s; }
  .schematic .s2 { animation-delay: 0.75s; }
  .schematic .s3, .schematic .f3 { animation-delay: 0.9s; }
  .schematic .s4, .schematic .f4 { animation-delay: 1.1s; }
  .schematic .s5, .schematic .f5 { animation-delay: 1.3s; }
  .schematic .s6 { animation-delay: 1.5s; }
  .schematic .s7, .schematic .f7 { animation-delay: 1.65s; }
  .schematic .s8, .schematic .f8 { animation-delay: 2.0s; }
  .schematic .f9 { animation-delay: 2.3s; }

  /* the work list lights up as each project passes the middle of the
     screen, like a departures board — it gives the list life on a phone,
     where there is no hover. Browsers without scroll timelines show it lit. */
  @supports (animation-timeline: view()) {
    .work-name {
      animation: lit linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes line-rise { from { transform: translateY(108%); } }
@keyframes title-rise { from { opacity: 0; transform: translateY(0.3em); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes lit {
  0%, 22%  { color: var(--fg-3); }
  42%, 58% { color: var(--fg); }
  78%, 100% { color: var(--fg-3); }
}

/* --------------------------------------------------------------------------
   19. User preferences
   -------------------------------------------------------------------------- */

@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;
    scroll-behavior: auto !important;
  }
}

/* Raise every edge and mute when the visitor asks for more contrast. */
@media (prefers-contrast: more) {
  :root {
    --line:   rgba(255, 255, 255, 0.24);
    --line-2: rgba(255, 255, 255, 0.40);
    --fg-2:   #C6CDD2;
    --fg-3:   #A6AEB4;
  }
}

/* --------------------------------------------------------------------------
   20. Print — procurement people print this
   -------------------------------------------------------------------------- */

@media print {
  .site-head, .mobile-nav, .menu-btn, .btn, form, .form-status, .skip { display: none !important; }
  body, .site-foot { background: #fff !important; color: #000 !important; }
  .hero-lede, .sec-intro, .work-desc, .rows p, .prose p, .stack-why, .foot-col a, .assure p { color: #222 !important; }
  a { text-decoration: none; color: #000 !important; }
  .sec { padding-block: 24px; }
  .cta { border-top-color: #000; }
}

/* a list that opens its section needs no space above it */
.wrap > .work:first-child { margin-top: 0; }
