/* ==========================================================================
   Evocomedia one-pager — vanilla CSS
   ========================================================================== */

/* ---------- Fonts: DIN Web Pro (headings, labels, like the logo) and Inter (running text, UI) ---------- */
@font-face { font-family: 'DIN Web Pro'; src: url('../fonts/DINWebPro-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN Web Pro'; src: url('../fonts/DINWebPro-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN Web Pro'; src: url('../fonts/DINWebPro-BoldIta.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'DIN Web Pro'; src: url('../fonts/DINWebPro-Black.woff') format('woff'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN Web Pro'; src: url('../fonts/DINWebPro-BlackIta.woff') format('woff'); font-weight: 900; font-style: italic; font-display: swap; }

/* Inter (running text, buttons, header nav, language switcher), variable weight 100-900, SIL Open Font License (fonts/OFL-Inter.txt) */
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  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; }

/* ---------- Tokens ---------- */
:root {
  /* Background (assets/js/bg.js): the lightest wedge is --bg-base, the darker ones lean to --bg-deep */
  --bg-base: #d22a24;     /* the brand red (the logo's): a calm red, easy on the eyes over the whole
                             screen (the earlier #e71f1b was so bright a long look tinted white cyan after) */
  --bg-deep: #881218;     /* wine red, a little softer */
  /* Footer: the same fan in black */
  --ft-base: #2e2826;     /* the lightest black wedge (warm, like all the greys) */
  --ft-deep: #0a0706;
  --ct-base: #ebe5e0;     /* the contact section: the same fan in a warm light grey (a step under --white) ... */
  --ct-deep: #b8ada6;     /* ... and warm grey (the greys lean a little to the red, so they sit with it) */

  --ink: #222222;          /* logo type colour */
  --paper: var(--white);   /* the white of the cards on red (the services and the clients ring) */
  --red: #b7211f;          /* red for buttons and text: the background's middle red (its 60-grey wedges) */
  --logo-red: #d22a24;     /* the brand red */
  --white: #f7f4f1;        /* the site's white: warm, the lightest of the contact fan before (pure #fff was too cold on the red) */

  --font: 'DIN Web Pro', 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;   /* headings, nav, buttons, labels */
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;   /* running text */
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;     /* buttons, header nav, language switcher */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: linear(0, 0.032, 0.117, 0.242, 0.39, 0.55, 0.708, 0.856, 0.986, 1.093, 1.176, 1.233, 1.265, 1.275, 1.267, 1.243, 1.209, 1.168, 1.124, 1.081, 1.04, 1.004, 0.975, 0.952, 0.936, 0.927, 0.924, 0.927, 0.933, 0.942, 0.954, 0.966, 0.978, 0.989, 0.999, 1.007, 1.013, 1.018, 1.02, 1.021, 1);   /* a damped spring, like the particles */
  /* text sizes: lead (the intro under a title), text (running text, fields), small (notes, legal,
     field labels) and label (small uppercase spaced labels) */
  --fs-lead: clamp(18px, 1.35vw, 20px);
  --fs-text: 16px;
  --fs-small: 14px;
  --fs-label: 14px;
  /* letter-spacing: small (running and UI text that wants a touch of air) and large (small
     uppercase labels: eyebrows, tags, field and footer labels). Titles keep their own tightening */
  --ls-small: 0.03em;
  --ls-large: 0.2em;
  --container: 1440px;
  --grey: #dad2cc;   /* warm light grey: the language menu's hover */
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 100px;      /* the header's height at the top of the page */
  --header-sticky: 80px;  /* ... and when it sticks (the footer's bottom strip matches it) */
}
@media (max-width: 900px) {
  :root { --header-h: 76px; --header-sticky: 60px; }   /* same 5 : 4 step down as on desktop */
}

/* ---------- Base ---------- */
/* Breakpoints, the same everywhere (and in the scripts: counters.js, main.js):
     560   phones: one column for the form, small labels
     760   small tablets: centred section heads, the footer in one column, the hero's scroll line at
           the bottom, one service card in a row (two from 761)
     900   tablets: the numbers in two columns (three from 901), a smaller header, the hero's mark
           from the header to 10px above the bottom
     1024  tablets on their side, small laptops: the header's menu button (the full menu from 1025),
           the contact form under its intro
     1440  wide screens: four service cards in a row
     and (orientation: landscape) and (max-height: 520px): a phone on its side */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* none: every section's top padding already leaves room for the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-text);
  font-size: var(--fs-text);
  line-height: 1.6;
  color: var(--white);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* DIN for headings and labels; Inter for running text */
h1, h2, h3,
.eyebrow, .card__tags, .card__num,
.skip-link {
  font-family: var(--font);
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Animated background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-base);
}

/* the canvas (assets/js/bg.js) paints the background */
.bg__canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  display: block;
}

/* ---------- Buttons ----------
   <a class="button ...">: primary (red) by default; combine freely:
   colour   secondary (dark) · grey (halfway between the footer fan's light grey and the contact fan's dark one) ·
            inverse (white, for red or dark backgrounds)
   style    outline (transparent with a 2px border)
   size     button-sm 40px · (default) 46px · button-lg 52px
   Hover changes only the background and border, never the letters. Colours: --button-* tokens. */
:root {
  --button-primary-bg: var(--red);
  --button-primary-bg-hover: #9b1a1c;
  --button-primary-text: var(--white);

  --button-secondary-bg: var(--ink);
  --button-secondary-bg-hover: #0a0706;
  --button-secondary-text: var(--white);

  --button-grey-bg: color-mix(in srgb, var(--ft-base), var(--ct-deep));            /* #736b66 */
  --button-grey-bg-hover: color-mix(in srgb, var(--ft-base) 62%, var(--ct-deep));   /* a step darker */
  --button-grey-text: var(--white);

  --button-inverse-bg: var(--white);
  --button-inverse-bg-hover: #f1e3e3;
  --button-inverse-text: var(--ink);

  --button-outline-bg-hover: rgba(183, 33, 31, 0.08);
  --button-outline-border: var(--red);
  --button-outline-text: var(--red);

  --button-secondary-outline-bg-hover: rgba(34, 34, 34, 0.06);
  --button-secondary-outline-border: var(--ink);
  --button-secondary-outline-text: var(--ink);

  --button-inverse-outline-bg-hover: rgba(247, 244, 241, 0.16);
  --button-inverse-outline-border: var(--white);
  --button-inverse-outline-text: var(--white);

  /* the soft light inside a button that follows the mouse (main.js sets --mx/--my) */
  --button-glow: rgba(247, 244, 241, 0.32);
  --button-glow-inverse: rgba(210, 42, 36, 0.18);
  --button-glow-outline: rgba(210, 42, 36, 0.16);
  --button-glow-secondary-outline: rgba(34, 34, 34, 0.12);
}

/* the glow's radius grows from 0 when the mouse comes in and shrinks back when it leaves */
@property --glow-r { syntax: '<length>'; inherits: false; initial-value: 0px; }

.button {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding-inline: 24px;

  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: var(--ls-small);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--button-primary-text);

  background-color: var(--button-primary-bg);
  border: 2px solid transparent;
  border-radius: 999px;
  outline: 0;
  cursor: pointer;

  --glow: var(--button-glow);
  background-image: radial-gradient(circle var(--glow-r) at var(--mx, 50%) var(--my, 50%), var(--glow), transparent);
  background-repeat: no-repeat;
  background-origin: border-box;   /* the glow reaches under the (transparent) border too, no ring left */
  transition: background-color 0.3s, border-color 0.3s, --glow-r 0.45s var(--ease);

  &:hover { background-color: var(--button-primary-bg-hover); }
  @media (hover: hover) and (pointer: fine) { &:hover { --glow-r: 90px; } }
  &:focus-visible { background-color: var(--button-primary-bg-hover); }

  &.outline {
    color: var(--button-outline-text);
    background-color: transparent;
    border-color: var(--button-outline-border);
    --glow: var(--button-glow-outline);

    &:hover { background-color: var(--button-outline-bg-hover); }
  }

  /* Variants */
  &.secondary {
    color: var(--button-secondary-text);
    background-color: var(--button-secondary-bg);

    &:hover { background-color: var(--button-secondary-bg-hover); }
    &:focus-visible { background-color: var(--button-secondary-bg-hover); }

    &.outline {
      color: var(--button-secondary-outline-text);
      background-color: transparent;
      border-color: var(--button-secondary-outline-border);
      --glow: var(--button-glow-secondary-outline);

      &:hover { background-color: var(--button-secondary-outline-bg-hover); }
    }
  }

  &.grey {
    color: var(--button-grey-text);
    background-color: var(--button-grey-bg);

    &:hover { background-color: var(--button-grey-bg-hover); }
    &:focus-visible { background-color: var(--button-grey-bg-hover); }
  }

  &.inverse {
    color: var(--button-inverse-text);
    background-color: var(--button-inverse-bg);
    --glow: var(--button-glow-inverse);

    &:hover { background-color: var(--button-inverse-bg-hover); }
    &:focus-visible { background-color: var(--button-inverse-bg-hover); }

    &.outline {
      color: var(--button-inverse-outline-text);
      background-color: transparent;
      border-color: var(--button-inverse-outline-border);
      --glow: var(--button-glow);

      &:hover { background-color: var(--button-inverse-outline-bg-hover); }
    }
  }

  /* Sizes */
  &.button-sm {
    height: 40px;
    padding-inline: 18px;
  }

  &.button-lg {
    height: 52px;
    padding-inline: 30px;
  }
}

/* ---------- Header ----------
   At the top: see-through, white logo and plain text links over the red.
   After scrolling (sticky): the same picture as the page background behind it, the logo shrinks to "em". */
.header {
  --h-fg: var(--white);     /* text, links, burger */
  --h-type: var(--white);   /* logo letters */
  --h-mark: var(--white);   /* logo mark */
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  color: var(--h-fg);
}
/* the bar's height is set, not its padding: the logo, links and button stay centred in it */
.header__inner { height: var(--header-h); transition: height 0.45s var(--ease); }
.header.is-scrolled .header__inner { height: var(--header-sticky); }

/* header background: an exact copy of the page background (bg.js draws its canvas in here every frame),
   so the bar looks like the background itself and hides the content */
.header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;                       /* see-through at the top of the page */
}
.header.is-scrolled .header__bg { opacity: 1; }   /* solid at once when sticky, nothing shows through */
.header__bg .bg__canvas { height: 160px; }   /* only the strip under the header (bg.js paints it) */
/* over the footer the header slides up out of sight, shadows and all */
.header { transition: translate 0.45s var(--ease); }
.header.is-away { translate: 0 calc(-100% - 60px); }

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(28px, 2.9vw - 1.7px, 40px);   /* 28px at 1025 (the full menu fits), 40px from 1440 */
}

/* logo: full "evocomedia" at the top; on the sticky bar "voco" and "edia" fade out letter by letter,
   "m" slides next to "e" and the box narrows, leaving the "em" logo */
.header__logo {
  --lh: 44px;                       /* logo height */
  --full: 5.6571;     /* width / height of the full logo */
  --short: 2.4091;   /* width / height of the "em" logo */
  flex: none;
  display: block;
  margin-right: auto;
  width: calc(var(--lh) * var(--full));
  overflow: visible;                /* never crop the sliding "m" */
  transition: width 0.6s var(--ease) 0.15s;
}
.header__logo svg { display: block; height: var(--lh); width: calc(var(--lh) * var(--full)); max-width: none; transition: height 0.45s var(--ease), width 0.45s var(--ease); }
.header.is-scrolled .header__logo { width: calc(var(--lh) * var(--short)); transition-delay: 0s; }

.header .header__logo .logo-hide {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), fill 0.45s var(--ease);
  transition-delay: calc(0.3s - var(--i) * 0.03s), calc(0.3s - var(--i) * 0.03s), 0s;   /* coming back: right to left */
}
.header.is-scrolled .header__logo .logo-hide {
  opacity: 0;
  transform: translateY(18px) scale(0.6);
  transition-delay: calc(var(--i) * 0.035s), calc(var(--i) * 0.035s), 0s; /* leaving: left to right */
}
.header .header__logo .logo-m { transition: transform 0.6s var(--ease) 0.15s, fill 0.45s var(--ease); }
.header.is-scrolled .header__logo .logo-m { transition-delay: 0.2s, 0s; transform: translateX(-137.97px); }
.header__logo .logo-type { fill: var(--h-type); transition: fill 0.45s var(--ease); }
.header__logo .logo-mark { fill: var(--h-mark); transition: fill 0.45s var(--ease); }

/* nav: plain words; hovering drops a dot from above onto the header's bottom line, where it
   bounces and settles; the current section's link keeps its dot there */
.nav__list { display: flex; gap: clamp(26px, 1.93vw + 6.2px, 34px); }   /* 26px at 1025, 34px from 1440 */
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--ls-small);
  text-transform: lowercase;
  text-decoration: none;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  /* waiting 26px above the line, split in two halves: `translate` and `transform`.
     In: both halves fall together on a damped spring, like the particles (past the line, back,
     settled). Out: only `translate` floats up its 13px, slowing down, while the dot fades; the
     other half jumps back once it is invisible. Being transitions, both directions carry on
     smoothly from wherever the dot is, even when the mouse moves on halfway. */
  translate: 0 -13px;
  transform: translateY(-13px);
  transition:
    translate 0.5s cubic-bezier(0.25, 0.6, 0.35, 1),
    transform 0s 0.4s,
    opacity 0.35s var(--ease);
  pointer-events: none;
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after {
  opacity: 1;
  translate: 0 0;
  transform: none;
  transition:
    translate 0.9s var(--spring),
    transform 0.9s var(--spring),
    opacity 0.25s var(--ease);
}

/* desktop: the links fill the bar's height, so their dot sits on the header's bottom line */
@media (min-width: 1025px) {
  .nav, .nav__list, .nav__list li { height: 100%; }
  .nav__list { align-items: center; }
  .nav__list li { display: flex; align-items: center; }
  .nav__link { display: flex; align-items: center; height: 100%; padding: 0; }
}

/* language: the chosen one with a caret; a small white card drops down with both */
.lang {
  position: relative;
  flex: none;
}
.lang__toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 4px;
  border: 0;
  background: none;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: var(--ls-small);
  color: inherit;
  outline: 0;   /* no focus ring (the page's :focus-visible outline), like the buttons */
  cursor: pointer;
}
.lang__caret {
  width: 12px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.lang.is-open .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: -12px;
  z-index: 0;
  min-width: 210px;
  padding: 12px 8px;
  color: var(--ink);
  filter: drop-shadow(0 12px 22px rgba(60, 0, 8, 0.28));   /* follows the slanted shape */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.25s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
/* the card: white, slanted like the service cards, only a little less */
.lang__menu::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  clip-path: polygon(0 5px, 100% 0, 100% calc(100% - 5px), 0 100%);
}
.lang__btn {
  display: flex;
  align-items: baseline;            /* code and name on one baseline */
  gap: 12px;
  width: 100%;
  padding: 15px 16px 13px;
  border: 0;
  background: none;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  color: inherit;
  text-decoration: none;            /* a link to the page in that language */
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lang__btn b { width: 24px; font-weight: 800; letter-spacing: var(--ls-small); }
.lang__btn:hover { background: var(--grey); }
/* the current language: the logo's red, white letters */
.lang__btn[aria-current='true'] {
  background: var(--red);
  color: var(--white);
  cursor: default;
}

/* CTA: an outline pill that fills white on hover */
.header__cta { flex: none; }

/* burger: three lines that turn into an X */
.burger {
  display: none;
  position: relative;
  flex: none;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span,
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--h-fg);
  transition: transform 0.45s var(--ease), opacity 0.3s, background-color 0.45s;
}
.burger::before { top: 12px; }
.burger span { top: 19px; }
.burger::after { top: 26px; }
.burger[aria-expanded='true'] span { opacity: 0; }
.burger[aria-expanded='true']::before { transform: translateY(7px) rotate(45deg); background: var(--white); }
.burger[aria-expanded='true']::after { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

@media (max-width: 1024px) {
  .header__inner { gap: 14px; }
  .burger { display: block; z-index: 2; }
  .header__cta { display: none; }
  .header__logo { --lh: 38px; }
  .header:has(.nav.is-open) .lang { color: var(--white); }
  .lang { position: relative; z-index: 2; }

  .nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(34, 34, 34, 0.96);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 26px; }
  .nav__link {
    font-size: clamp(32px, 9vw, 46px);
    font-weight: 900;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .nav__link::after { bottom: -12px; width: 8px; height: 8px; margin-left: -4px; background: var(--bg-base) !important; }   /* the brighter base red on the dark menu */
  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open li:nth-child(2) .nav__link { transition-delay: 0.08s; }
  .nav.is-open li:nth-child(3) .nav__link { transition-delay: 0.16s; }
}

/* ---------- Hero ----------
   The particle mark (particles.js) and the slogan share one centre: the middle of the space
   under the header. */
.hero {
  --gap: 28px;                        /* room above and below the mark */
  position: relative;
  overflow-x: clip;                   /* the mark may be wider than a phone: it must not widen the page */
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  text-align: center;
  overflow: hidden;
}

main, .footer { position: relative; z-index: 1; }
/* nothing may widen the page on a phone: the mark wider than the screen, the ring's turned faces,
   a card tilted back before it is revealed (its 3D box is wider than the card). clip (not hidden)
   makes no scroll box, so the sticky numbers still stick */
main { overflow-x: clip; }

/* as big as the space under the header allows; without JavaScript only the slogan shows */
.hero__mark {
  position: absolute;
  top: calc(var(--header-h) + (100% - var(--header-h)) / 2);   /* the hero's middle under the header, as the slogan's */
  left: 50%;
  width: min(100svh - var(--header-h) - var(--gap) * 2, 100vw - var(--gutter) * 2);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.hero__mark svg { width: 100%; height: 100%; visibility: hidden; }   /* only the particles' shape, never shown */
.hero__mark.is-drawn { cursor: pointer; }

/* the particles: the whole screen, over the background, under the page content. Sized as the
   window is now (100vh on an iPhone is the screen with the address bar
   hidden); particles.js draws at the size this gives. A canvas does not stretch by inset alone
   (it keeps its own size), hence 100%: of a fixed box that is the window as it is now */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* the loose wandering points (wander.js): the whole screen, under the mark's points, they stay
   while the page scrolls */
.wander {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* slogan: "We" bold, "can solve" light, "it" black italic (like the logo's tagline).
   On a phone on its side the mark is small (the screen is short) and the 56px floor made the
   slogan far wider than it: there it follows the mark's size instead (below). 
   The words fade in shuffled, swap places a few times and settle (main.js). */
.hero__title {
  position: relative;
  z-index: 1;
  /* never wider than the mark allows (a phone: the mark is the screen's width less the gutters) */
  font-size: min(clamp(56px, min(9vw, 12vh), 116px), (100vw - var(--gutter) * 2) * 0.13);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.26em;
}
.hero__br { flex-basis: 100%; height: 0; }   /* always two lines: two words above, two below */
.w { display: inline-block; will-change: transform; }
.w__in {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%) scale(0.9);
  animation: word-in 0.7s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.08s);
}
@keyframes word-in { to { opacity: 1; transform: none; } }
/* phones (portrait and on their side): the mark fills the space from the header's bottom to 10px
   above the screen's bottom, as big as that height allows (on a narrow screen its width decides,
   with the gutters); the slogan in its middle, sized to it. The hero's content box is that space
   (padding: the header above, 10px below), so the slogan's grid centre is the mark's */
@media (max-width: 900px), (orientation: landscape) and (max-height: 520px) {
  .hero { padding-bottom: 10px; }
  .hero__mark {
    top: calc(var(--header-h) + (100% - var(--header-h) - 10px) / 2);
    width: min(100svh - var(--header-h) - 10px, 100vw - var(--gutter) * 2);
  }
  .hero__title { font-size: min(clamp(56px, min(9vw, 12vh), 116px), (100vw - var(--gutter) * 2) * 0.13, (100svh - var(--header-h) - 10px) * 0.13); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hero__title { font-size: clamp(22px, (100svh - var(--header-h) - 10px) * 0.135, 56px); }
}
.w--light { font-weight: 400; }              /* "can solve" */
.hero__words .ch { display: inline-block; }   /* each letter on its own (main.js bends the line around the cursor) */
.hero__it {
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0;
  padding-right: 0.06em;                     /* italic overhang */
}
.hero__it.is-plain { font-weight: 700; font-style: normal; padding-right: 0; }   /* while shuffling */

/* Bosnian: the "it" hidden inside riješiti; that word stays light, only "it" stands out */
.w__it { font-weight: 900; font-style: italic; letter-spacing: 0; padding-right: 0.04em; }
.w__it.is-plain { font-weight: inherit; font-style: normal; padding-right: 0; }
.w--inner .w__in,
.w--inner .w__in.hero__it { font-weight: 400; font-style: normal; padding-right: 0; }

/* scroll hint: a thin line that a white stroke runs down; right, halfway down the hero.
   It fades out once the header is sticky (we have already scrolled). */
.hero__scroll {
  position: absolute;
  top: 50%;
  right: max(var(--gutter), calc((100% - var(--container)) / 2));   /* the content's right edge */
  display: grid;
  place-items: center;
  width: 40px;
  height: 56px;
  transform: translateY(-50%);
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
html.is-scrolled .hero__scroll { opacity: 0; visibility: hidden; }
/* endless animations out of sight rest: the browser would keep drawing them */
html.is-scrolled .hero__scroll .hero__line::after,
.footer:not(.is-in-view) .hero__line::after { animation-play-state: paused; }
/* phones: the slogan fills the middle, so the line moves down to the bottom right */
@media (max-width: 760px) {
  .hero__scroll { top: auto; bottom: 20px; transform: none; }
}
/* ... but on a phone on its side (and a screen too wide for that, up to 900px) it stays level with
   the mark's middle */
@media (min-width: 761px) and (max-width: 900px), (orientation: landscape) and (max-height: 520px) {
  .hero__scroll { top: calc(var(--header-h) + (100% - var(--header-h) - 10px) / 2); bottom: auto; transform: translateY(-50%); }
}
.hero__line {
  position: relative;
  width: 2px;
  height: 44px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(247, 244, 241, 0.2);
}
.hero__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateY(-100%);
  animation: scroll-line 2s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Sections ---------- */
/* every section fills at least the screen: a shorter content sits in its middle (below the
   sticky header), a longer one grows the section and its own padding keeps the sections apart.
   Opened at its address or from the menu, a section's top is the screen's top */
.section {
  --pad: clamp(40px, 5vw, 70px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-sticky, 80px) + var(--pad)) 0 var(--pad);
}
.section.contact,
.section.light {
  /* full width, slanted top like the footer; the footer's slanted top overlaps its bottom
     (.light: the same light part on another page, the privacy policy) */
  --slant: clamp(40px, 6vw, 90px);
  isolation: isolate;
  /* not a screen tall: just its content, with its own padding (as before) */
  display: block;
  min-height: 0;
  padding: calc(var(--slant) + clamp(70px, 9vw, 130px)) 0 calc(var(--slant) + clamp(70px, 9vw, 130px));
  color: var(--ink);
  background: var(--ct-base);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
/* its fan (bg.js): pinned to the screen like the page canvas, the clip-path cuts it out */
.contact__fan { position: absolute; inset: 0; z-index: -1; }
.contact__fan .bg__canvas { position: fixed; }

/* the title and its lead get 75% of the container (the whole width on phones), both as wide */
.section__head { max-width: 75%; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head .section__lead { max-width: none; }
@media (max-width: 760px) { .section__head { max-width: none; } }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; text-wrap: balance; }   /* no lone last word */

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;   /* between the parts of a split eyebrow (Eyebrow.astro): label | value */
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--ls-large);
  text-transform: uppercase;
  color: var(--red);
  clip-path: polygon(0 3px, 100% 0, 100% 100%, 0 100%);
}
/* the section's name on a slanted white chip with red text, like the cards (inverted on the
   white contact card) */
.eyebrow__label {
  /* trimmed to the capitals, so equal padding looks equal; letter-spacing leaves 3px after the
     last letter, taken off the right padding */
  text-box: trim-both cap alphabetic;
  /* +2px on top: the slanted top edge cuts that much off on average */
  padding: 12px 11px 10px 14px;
  background: var(--white);
}
/* on a phone a size smaller: smaller letters, a tighter chip, less room under it */
@media (max-width: 560px) {
  .eyebrow { margin-bottom: 16px; font-size: 12px; }
  .eyebrow__label { padding: 10px 9px 8px 11px; }
}

.section__title {
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;   /* a line that wraps leaves no lone last word */
}
/* the same for an italic line of its own (after a <br>): balance does not reach past the break */
.section__title br + em { display: inline-block; text-wrap: balance; }
/* italic like "media" in the logo */
.section__title em,
.contact__title em { font-style: italic; font-weight: 700; }

.section__lead { font-weight: 400; letter-spacing: var(--ls-small); max-width: 560px; margin-top: 22px; font-size: var(--fs-lead); opacity: 0.92; }
/* bold words in a lead ("Big brands", "counted" …) */
:is(.section__lead, .contact__lead) :is(b, strong) { font-weight: 800; }

/* scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: perspective(1000px) translateY(50px) rotateX(-14deg);
  transform-origin: 50% 100%;
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }   /* nothing to reveal them without JavaScript */

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
/* eight cards: four a row on a wide screen, two on a tablet and a laptop (four would be too
   narrow there), one on a phone and a small tablet */
@media (min-width: 761px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1440px) {
  .services { grid-template-columns: repeat(4, 1fr); }
}

/* white cards, slanted like the contact card */
.services__item { filter: drop-shadow(0 26px 40px rgba(70, 0, 8, 0.25)); }

.card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  /* a column, so the tags can sit at the bottom: cards in a row are equally tall, their texts not */
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 48px 34px 44px;
  color: var(--ink);
  clip-path: polygon(0 3.5%, 100% 0, 100% 96.5%, 0 100%);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.card.is-tilting { transition: transform 0.12s linear; }

.card__glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(210, 42, 36, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.services__item:hover .card__glare { opacity: 1; }   /* the wrapper, which does not tilt (main.js) */

/* the white card is drawn by an SVG with the number cut out of it,
   so the page background shows through the digits; its colour is --paper (the rect inside the
   mask stays pure white: it is the mask) */
.card__bg > rect { fill: var(--paper); }
.card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.card__num {
  font-family: var(--font);
  font-size: 120px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* the icon frame is a hole in the card (drawn in the card's SVG mask);
   this span only keeps its space in the layout */
.card__icon {
  display: block;
  flex: none;
  width: 60px; height: 60px;
  margin-bottom: 28px;
}
.card__hole {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s var(--ease);
}
.services__item:hover .card__hole { transform: scale(1.12); }

.card__title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}
/* "AI" in a title: on a slanted red chip like the eyebrows (inverted, as on the contact card) */
.card__ai {
  display: inline-block;
  padding: 6px 4px 5px 6px;   /* +1px on top: the slanted edge; the letter spacing's 2px off the right */
  margin-right: 1px;
  font-size: 0.76em;          /* smaller than the title, so the chip is about the height of its capitals */
  vertical-align: 0.1em;      /* sat in the middle of the title's capitals */
  color: var(--white);
  background: var(--red);
  text-box: trim-both cap alphabetic;
  letter-spacing: 0.08em;
  clip-path: polygon(0 2px, 100% 0, 100% 100%, 0 100%);
}
.card__text { margin-top: 12px; font-size: var(--fs-text); color: #5b524d; }

.card__tags { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: auto; padding-top: 22px; }   /* at the card's bottom, at least 22px under the text */
/* words with a small red dot in front of each (still neat when they wrap); the dot is raised so its
   middle sits on the middle of the capitals: (cap height - dot) / 2 above the baseline */
.card__tags li {
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-box: trim-both cap alphabetic;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.card__tags li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  vertical-align: calc((1cap - 5px) / 2);
  border-radius: 50%;
  background: var(--red);
}

/* picked from a tag point in the hero: the card pops up once and the clicked tag's dot pulses a
   few times (grows and shrinks) */
.card.is-picked { animation: card-pick 1.1s var(--ease); }
.services__item:has(.card.is-picked) { position: relative; z-index: 1; }   /* over its neighbours while it is bigger */
@keyframes card-pick {
  0% { scale: 1; }
  30% { scale: 1.1; }
  100% { scale: 1; }
}
.card__tags li.is-picked::before { animation: dot-pick 0.5s ease-in-out 4; }
@keyframes dot-pick {
  0%, 100% { scale: 1; }
  50% { scale: 2.2; }
}
@media (prefers-reduced-motion: reduce) {
  .card.is-picked, .card__tags li.is-picked::before { animation: none; }
}

/* ---------- Numbers ---------- */
/* a grid: rows of three (one on a phone), the last row centred. With motion (counters.js) each
   counts up from 0 when the section comes into view, one after another; the plus comes in
   once its number has arrived. Without motion (or JS) the numbers are simply there. */
/* the stage: at least a screen tall, the content in the middle of the screen below the sticky
   header. With motion (counters.js, .is-scrub) the section is taller and the stage stays on the
   screen while the scroll counts the numbers up */
.stats { position: relative; color: var(--white); }
.stats.is-scrub { height: calc(100vh + 50vh); }
.stats.is-scrub .stats__stage { position: sticky; top: 0; }
/* a jump from the menu passes it without being held (main.js) */
.stats.is-scrub.is-passing { height: auto; }
.stats__stage {
  /* rows: space, heading, the gap to the numbers, numbers, space. The gap is the usual one at
     least and grows (up to 150px) when the screen has room to spare, before the space around */
  display: grid;
  grid-template-rows: 1fr auto minmax(clamp(44px, 6vw, 72px), 150px) auto 1fr;
  height: 100vh;
  height: 100svh;            /* a definite height, so only real spare room grows the gap ... */
  min-height: min-content;   /* ... and never shorter than its content (on a short screen) */
  padding: calc(var(--header-sticky, 80px) + clamp(40px, 5vw, 70px)) 0 clamp(40px, 5vw, 70px);
}
.stats__stage > .container { grid-row: 2; }
.stats__stage > .stats__pin { grid-row: 4; }
.stats .section__head { margin-bottom: 0; }
.stats__pin {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(48px, 6vw, 80px) 24px;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  text-align: center;
}
.stats__item { flex: 0 0 100%; min-width: 0; }   /* its column's width, even while a label is wide */
@media (min-width: 901px) { .stats__item { flex-basis: calc((100% - 48px) / 3); } }
.stats__num {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-box: trim-both cap alphabetic;   /* trimmed to the digits, so the label sits close */
}
/* light, the thing counted in black (<b>), like "can solve" against "We" in the slogan */
.stats__label {
  margin: 18px 0 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: var(--ls-small);
  white-space: nowrap;   /* one line, also while its letters close up (nothing jumps) */
}
.stats__label b { font-weight: 900; }
/* the plus takes no room until it comes in, then widens: the number is centred alone, and with it */
.stats__plus { display: inline-block; vertical-align: top; transform-origin: 25% 55%; }
.stats__plus > span { display: inline-block; padding-left: 0.04em; }
/* phone: two side by side, smaller; the million gets a row of its own, first; the labels may take
   two lines (room kept for both, so nothing jumps while their letters close up) */
@media (max-width: 900px) {
  .stats__pin { gap: 40px 16px; }
  .stats__item { flex-basis: calc((100% - 16px) / 2); }
  .stats__item:nth-child(4) { order: -1; flex-basis: 100%; }
  .stats__num { font-size: clamp(30px, 8.6vw, 44px); }
  .stats__item:nth-child(4) .stats__num { font-size: clamp(40px, 12vw, 60px); }
  .stats__label { margin-top: 12px; font-size: 14px; white-space: normal; min-height: 2.3em; }
  .stats__item:nth-child(4) .stats__label { min-height: 0; }
}

/* a phone on its side (a short, wide screen): two rows, the million and two more above, the other
   two below, smaller; the stage scrolls by as usual there (counters.js does not hold it) */
@media (orientation: landscape) and (max-height: 520px) {
  .stats__stage { height: auto; min-height: 0; padding: calc(var(--header-sticky, 64px) + 24px) 0 40px; grid-template-rows: auto 24px auto; }
  .stats__stage > .container { grid-row: 1; }
  .stats__stage > .stats__pin { grid-row: 3; }
  .stats__pin { gap: 22px 16px; }
  .stats__item, .stats__item:nth-child(4) { flex: 0 0 calc((100% - 32px) / 3); }
  .stats__item:nth-child(4) { order: -1; }
  .stats__num, .stats__item:nth-child(4) .stats__num { font-size: clamp(26px, 4.4vw, 40px); }
  .stats__label, .stats__item:nth-child(4) .stats__label { margin-top: 8px; font-size: 12px; min-height: 0; }
}

/* ---------- Clients: 3D ring ---------- */
#work { overflow-x: clip; }   /* the turned faces of the ring reach past a phone's sides: they must not widen the page */
.ring {
  --w: clamp(130px, 15vw, 210px);
  --h: calc(var(--w) * 0.68);
  --n: 8;                     /* how many faces (index.html and main.js set it) */
  /* the radius where the faces just meet edge to edge, plus a gap */
  --r: calc(var(--w) / (2 * tan(180deg / var(--n))) * 1.08);
  /* the ring pushed back so the front face is always as near as with 8 faces: more faces make a
     wider ring, not bigger cards */
  --back: calc(var(--w) * 0.585 - var(--r));
  position: relative;
  display: grid;
  place-items: center;
  height: calc(var(--h) + 140px);
  /* the turned faces sit low in the box: pulled up so the gap under the heading is the same as
     in the other sections (the head's own margin) */
  margin-top: calc(var(--h) * -0.38);
  perspective: 1200px;
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ring.is-dragging { cursor: grabbing; }
/* drawn into one canvas (main.js): the DOM cards are not shown, the track only keeps the size */
.ring__canvas {
  position: absolute;
  z-index: 0;
  left: 0;
  top: -80px;
  width: 100%;
  height: calc(100% + 160px);   /* the turned cards reach a little out of the box */
  pointer-events: none;
}
.ring.is-canvas .ring__track { visibility: hidden; transform: none; transform-style: flat; }
.ring.is-canvas .ring__face { display: none; }

.ring__track {
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: translateZ(var(--back)) rotateX(-6deg) rotateY(var(--angle, 0deg));
}

/* white cards with slanted top and bottom, like the services and contact cards;
   the client logo is cut through the white, so the red background shows through it */
.ring__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12%;
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ring__plate {
  position: absolute;
  inset: 0;
  background: var(--white);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  /* white everywhere except the logo: logo mask "excluded" from a full mask */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 50% 50%, 0 0;
  mask-position: 50% 50%, 0 0;
  /* the logo in 64% x 44% of the card, smaller for one with a scale (--logo, src/data/clients.ts) */
  -webkit-mask-size: calc(64% * var(--logo, 1)) calc(44% * var(--logo, 1)), 100% 100%;
  mask-size: calc(64% * var(--logo, 1)) calc(44% * var(--logo, 1)), 100% 100%;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: transform 0.4s var(--ease);
}
/* drawn once into a picture by main.js (no mask, no clip-path: cheap to turn in 3D) */
.ring__plate.is-baked {
  background: center / 100% 100% no-repeat;
  clip-path: none;
  -webkit-mask: none;
  mask: none;
}
.ring__face:hover .ring__plate { transform: scale(1.04); }
.ring__logo {                         /* kept for screen readers and search engines */
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* the name of the front card, over it (main.js). Letter outlines, not text (index.html): one
   svg per card, stacked; each letter is moved from the middle by --ls (the letter spacing, in
   em), so a name comes in as the numbers' labels do (counters.js), its letters closing up from
   wide spacing as it fades in, and goes spreading out as it fades */
@property --ls { syntax: '<number>'; inherits: true; initial-value: 0.6; }
.ring__current {
  position: absolute;
  z-index: 1;
  left: 0; right: 0;
  bottom: calc(50% - var(--h) * 0.191 + 19.3px);   /* just over the front card, 33-41px above it (the ring sits low in its box) */
  display: grid;
  justify-items: center;
  margin: 0;
  font-size: clamp(15px, 1.25vw, 18px);
  pointer-events: none;
}
.ring__name {
  grid-area: 1 / 1;
  height: 1.2em;                 /* the viewBox is 1.2 em tall: 1em = the font's em */
  width: auto;
  overflow: visible;
  fill: var(--white);
  opacity: 0;
  --ls: 0.6;
  transition: opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1), --ls 0.9s cubic-bezier(0.33, 1, 0.68, 1);
}
.ring__name path { transform: translateX(calc(var(--ls) * var(--k) * 1px)); }
.ring__name.is-on { opacity: 1; --ls: 0.2; }     /* var(--ls-large) */
.ring__name.is-out { transition-duration: 0.4s, 0.45s; transition-timing-function: cubic-bezier(0.32, 0, 0.67, 0); }

.ring__floor {
  position: absolute;
  z-index: -1;                 /* under the cards */
  left: 50%; bottom: 10px;
  width: min(80vw, 700px);
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 0, 8, 0.3), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

/* the ring's scrollbar: a 2px line, the thumb one face (an eighth) wide, wrapping round like the ring */
.ring__bar {
  --x: 0px;                         /* where the thumb starts (main.js) */
  --w: 240px;
  display: flex;
  align-items: center;
  width: var(--w);
  height: 28px;                     /* easy to grab, the line itself is 2px */
  /* the line (in the middle of the 28px) as far under the front card as the client's name is
     above it (33-41px): the card's size follows the ring's --w, clamp(130px, 15vw, 210px), and
     the margin with it (measured: 75px with 210px cards, 62px with 192px, 35px with 154px) */
  margin: clamp(18px, 10.6vw - 74px, 75px) auto 0;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.ring__line {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background:
    linear-gradient(var(--white), var(--white)) var(--x) 0 / calc(var(--w) / 8) 100% no-repeat,
    linear-gradient(var(--white), var(--white)) calc(var(--x) - var(--w)) 0 / calc(var(--w) / 8) 100% no-repeat,
    rgba(247, 244, 241, 0.25);
}
.ring__bar:focus-visible { outline: 2px solid rgba(247, 244, 241, 0.5); outline-offset: 4px; border-radius: 4px; }


/* ---------- Contact: intro, email and call on the left, the form on the right ---------- */
.contact__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px);
  color: var(--ink);
}
@media (max-width: 1024px) { .contact__card { grid-template-columns: minmax(0, 1fr); } }   /* the screen's width, never its content's (it widened the page on phones) */
/* without the form (SHOW_CONTACT_FORM in src/data/site.ts): the intro alone, one column, centred */
.contact__card--solo { grid-template-columns: minmax(0, 1fr); }
.contact__card--solo .contact__intro { align-items: center; text-align: center; }
.contact__card--solo .contact__intro .eyebrow { align-self: center; }
.contact__card--solo .contact__direct { display: flex; flex-direction: column; align-items: center; margin-top: 0; padding-top: clamp(40px, 5vw, 64px); }
.contact__card .eyebrow { color: var(--white); }
.contact__card .eyebrow__label { background: var(--red); }

.contact__intro { display: flex; flex-direction: column; }
.contact__intro .eyebrow { align-self: flex-start; }   /* its own width, like the other sections */
.contact__title {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 900;
  line-height: 1;
}
.contact__title em { color: var(--red); }
.contact__lead { font-weight: 400; letter-spacing: var(--ls-small); max-width: 420px; margin-top: 22px; font-size: var(--fs-lead); color: #5b524d; }

/* pushed to the bottom of the column, like the form's end */
.contact__direct { margin-top: auto; padding-top: clamp(40px, 6vw, 80px); }
.contact__label {
  font-family: var(--font);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-large);
  text-transform: uppercase;
  color: #7d736d;
}

/* "WhatsApp" (red) and "Book a call" (black) in one row under their label, a slanted pipe (/) between them.
   The pipe is each button's ::before, in the gap to its left. The row is pulled left by one gap
   (margin-left) inside a wrap that clips it (overflow: hidden), so the pipe of a button that starts
   a line (the first, or one that wrapped onto the next line) falls outside and is never seen: no
   pipe left hanging on a narrow screen. "or" is still in the markup, for screen readers. */
.contact__choice-wrap { overflow: hidden; margin-top: 12px; }
.contact__choice {
  --sep: 33px;   /* the gap between the buttons, the pipe in its middle */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 12px;
  margin-left: calc(-1 * var(--sep));
}
.contact__choice > .button { position: relative; margin: 0 0 0 var(--sep); }
.contact__choice > .button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(var(--sep) / -2 - 3px);   /* the middle of the gap (the button's 2px border included) */
  width: 2px;
  /* as tall as the button once slanted: its padding box + the 2px borders, divided by cos(20°) */
  height: calc((100% + 4px) / 0.94);
  background: #7d736d;
  opacity: 0.5;
  transform: translateY(-50%) rotate(20deg);   /* slanted, like a / */
  pointer-events: none;
}
.contact__card--solo .contact__choice { justify-content: center; }


.contact__wa svg { flex: none; }
.contact__note { margin-top: 10px; font-size: 14px; color: #7d736d; }
.contact__card--solo .contact__note { text-align: center; }

/* the form: square fields with a 2px border; the label sits on top of the field's left edge as a
   slanted chip like the eyebrow, in the border's colour (red with the field on focus).
   The span follows the field in the HTML, column-reverse puts it on top. */
/* a white sheet slanted top and bottom like the service cards; the wrapper carries the shadow
   (a clip-path would cut it off the form itself) */
.cform__wrap { align-self: start; filter: drop-shadow(0 26px 40px rgba(40, 18, 12, 0.13)); }
.cform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(48px, 5vw, 68px) clamp(24px, 4vw, 52px) clamp(44px, 5vw, 64px);
  background: var(--white);
  clip-path: polygon(0 3.5%, 100% 0, 100% 96.5%, 0 100%);
}
.cform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  width: 100%;
}
@media (max-width: 560px) { .cform__grid { grid-template-columns: 1fr; } }
.cform__field--wide { grid-column: 1 / -1; }
.cform__field {
  /* --line: one colour for the field's border and its label chip: the lightest dark wedge of the
     footer's fan, the same in every state (hover, focus); only an error turns it red */
  --line: var(--ft-base);
  display: flex;
  flex-direction: column-reverse;
}
.cform__field > span {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  /* the chip's height is fractional (trimmed to the capitals), so its bottom edge was drawn
     half-covered: a thin light line between it and the field's border. It reaches 1px down,
     over the border, so they meet without a seam */
  margin-bottom: -1px;
  padding: 9px 12px 8px 12px;
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: normal;
  text-box: trim-both cap alphabetic;
  color: var(--white);
  background: var(--line);
  clip-path: polygon(0 3px, 100% 0, 100% 100%, 0 100%);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
/* empty and not in use, the label (the same chip) rests inside the field; clicking in (or
   anything typed, or filled in by the browser) lifts it to its place on the top left */
.cform__field:not(:focus-within):has(:placeholder-shown) > span {
  transform: translateY(calc(50% + 24px));
}
.cform__field :is(input, textarea) {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 12px;   /* the text lines up with the label's */
  font: 500 var(--fs-text)/1.4 var(--font-text);
  color: var(--ink);
  background: transparent;
  border: 0 solid var(--line);
  border-width: 0 0 2px;   /* only the line under it */
  border-radius: 0;
  outline: 0;
  transition: border-color 0.3s;
}
/* fields the browser filled in itself (autofill): Chrome paints them light blue and that cannot
   be switched off, so a wide inset shadow in the card's colour covers it, and the text keeps ours */
.cform__field :is(input, textarea):is(:autofill, :-webkit-autofill) {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: inset 0 0 0 1000px var(--white);
}
.cform__field textarea {
  height: auto;
  min-height: 140px;
  padding: 12px;
  resize: vertical;
}
.cform__field.is-bad { --line: var(--red); }
/* the asterisk of a required field, after its label (in the chip) */
.cform__req { margin-left: 3px; font-weight: 700; }

/* checkbox: a square 2px frame (the dark box with the light inside, 2px in); filled dark with a
   white tick when on */
.cform__check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-left: 4px;
  font-size: var(--fs-small);
  cursor: pointer;
}
.cform__check input,
.consent__check {
  appearance: none;
  position: relative;
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  background: var(--ft-base);
  border: 0;
  border-radius: 0;
  outline: 0;
  cursor: pointer;
}
.cform__check input::before,
.consent__check::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--white);
  transition: opacity 0.3s;
}
.cform__check input::after,
.consent__check::after {
  content: '';
  position: relative;
  width: 10px;
  height: 6px;
  margin-top: -2px;
  border: solid var(--white);
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.3s var(--spring);
}
.cform__check input:checked::before,
.consent__check:checked::before { opacity: 0; }
.cform__check input:checked::after,
.consent__check:checked::after { transform: rotate(-45deg) scale(1); }

.cform__submit { margin-top: 26px; }
/* Cloudflare Turnstile: nothing to see unless Cloudflare wants a click (main.js adds is-shown).
   Its inside is Cloudflare's (an iframe, light theme), across the form */
.cform__turnstile { align-self: stretch; }
.cform__turnstile.is-shown { margin-top: 24px; }
.cform__turnstile iframe { display: block; }
.cform__submit:disabled { opacity: 0.6; cursor: progress; }
/* the field only bots fill in: off the screen, out of reach of the keyboard (tabindex -1) */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__note { margin-top: 14px; font-size: var(--fs-small); color: #7d736d; }
/* the answer after sending: a slanted strip like the labels, across the form, green when it went
   out, red when not; it springs in */
.cform__done,
.cform__error {
  align-self: stretch;   /* the form lines up its parts at the start: this one goes across */
  margin-top: 18px;
  padding: 11px 16px;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
  background: #2f7a4d;
  clip-path: polygon(0 3px, 100% 0, 100% calc(100% - 3px), 0 100%);
  transform-origin: 0 50%;
  animation: cform-msg 0.6s var(--spring) both;
}
.cform__error { background: var(--red); }
.cform__done[hidden],
.cform__error[hidden] { display: none; }
@keyframes cform-msg {
  from { opacity: 0; transform: translateY(8px) scale(0.96) skewY(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cform__done, .cform__error { animation: none; }
}


/* ---------- A page of its own (the privacy policy, PrivacyPage.astro) ----------
   A red top a little taller than the header, with the eyebrow, the title and a line under it
   (over the page's red fan), then the text on the light part like the contact section. */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(90px, 11vw, 160px);
  color: var(--white);
}
.page-hero .eyebrow { color: var(--red); }
.page-hero__lead { max-width: 640px; }
.page-body { padding-top: calc(var(--slant) + clamp(56px, 7vw, 100px)); }

/* the 404 page: its text in the middle of the red page, as tall as the screen above the footer */
.notfound { display: flex; align-items: center; min-height: 82svh; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* where the particles' shape stands, above the text (notfound.js draws them on a canvas over the
   whole screen): "404" across it, the "#" in its middle. Never wider than the screen less the
   gutters, nor taller than a third of a short screen */
.notfound__fx { display: block; width: min(760px, 100vw - var(--gutter) * 2, 33svh * 2.4); aspect-ratio: 2.4 / 1; margin-bottom: clamp(16px, 3vw, 32px); cursor: pointer; touch-action: manipulation; }
.notfound .eyebrow__label { color: var(--red); background: var(--white); text-transform: none; }   /* E = mc², not MC² */
.notfound__title { max-width: 22ch; margin-top: 18px; font-size: clamp(40px, 6vw, 84px); font-weight: 400; text-wrap: balance; }
.notfound__title b { font-weight: 900; }   /* "Antimatter" bold, the rest regular (like the hero's "We can solve it") */
.notfound__lead { max-width: 640px; margin-inline: auto; text-wrap: pretty; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 36px; }

/* long text: one readable column */
.prose { max-width: 760px; }
.prose > section + section { margin-top: clamp(40px, 5vw, 56px); }
.prose h2 {
  font-family: var(--font);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.15;
}
.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.7;
  color: #3d3633;
}
.prose p { margin-top: 14px; }
.prose ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--red); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--button-primary-bg-hover); }

/* ---------- Cookie question (Consent.astro, analytics.js) ----------
   Bottom left over the page: a white card slanted like the language menu, the same two buttons
   side by side; it rises in, and leaves the page usable behind it (no dark cover). */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 26px 26px 24px;
  color: var(--ink);
  filter: drop-shadow(0 18px 40px rgba(20, 8, 6, 0.28));
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s, transform 0.5s var(--ease);
}
.consent::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  clip-path: polygon(0 6px, 100% 0, 100% calc(100% - 6px), 0 100%);
}
.consent.is-in { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__title {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.consent__text {
  margin-top: 10px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: #5a514c;
}
.consent__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.consent__save { grid-column: 1 / -1; }
.consent__buttons .button[hidden] { display: none; }
/* "Settings": a quiet text link under the buttons */
.consent__more {
  display: block;
  margin: 14px auto 0;
  padding: 2px 4px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}
.consent__more:hover { color: var(--red); }
.consent__more[hidden] { display: none; }
/* the kinds of cookies, each with its switch; the list scrolls if the screen is short */
.consent__prefs {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  max-height: min(46vh, 360px);
  overflow-y: auto;
}
.consent__prefs[hidden] { display: none; }
.consent__cat {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(34, 34, 34, 0.14);
  cursor: pointer;
}
div.consent__cat, .consent__cat.is-off { cursor: default; }
.consent__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.consent__name { font-family: var(--font); font-size: 16px; font-weight: 700; }
.consent__always { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--ink); }
.consent__about { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: #5a514c; }
.consent__cat.is-off .consent__name, .consent__cat.is-off .consent__about { opacity: 0.6; }
.consent__check:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* a phone on its side: wider and lower, the text and buttons side by side, so it covers the
   bottom of the screen and not the header */
@media (orientation: landscape) and (max-height: 520px) {
  .consent {
    left: 50%;
    bottom: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 20px;
    align-items: center;
    width: min(760px, calc(100vw - 2 * var(--gutter)));
    max-height: calc(100svh - var(--header-h) - 20px);
    overflow-y: auto;
    padding: 16px 20px;
    transform: translate(-50%, 16px);
  }
  .consent.is-in { transform: translateX(-50%); }
  .consent__title { grid-column: 1; font-size: 17px; }
  .consent__text { grid-column: 1; margin-top: 4px; font-size: 12px; line-height: 1.45; }
  .consent__prefs { grid-column: 1 / -1; }
  .consent__buttons { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: 150px; margin-top: 0; }
  .consent .consent__more { grid-column: 1; justify-self: start; margin: 2px 0 0; padding: 8px 0; }
  .consent.is-prefs .consent__buttons { grid-column: 1 / -1; grid-row: auto; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; }
}

/* ---------- Footer ----------
   Taller, with a slanted top edge; its background is the page's fan in black (bg.js).
   Contact details in a row, the giant wordmark (back to top), then copyright and cookie links. */
.footer {
  position: relative;
  margin-top: calc(-1 * clamp(40px, 6vw, 90px));   /* its slanted top lies over the contact section */
  isolation: isolate;
  padding: clamp(150px, 16vw, 230px) 0 0;
  background: var(--ft-deep);
  clip-path: polygon(0 clamp(40px, 6vw, 90px), 100% 0, 100% 100%, 0 100%);
}
.footer__bg { position: absolute; inset: 0; z-index: -1; }
/* the canvas is pinned to the screen like the page canvas and the footer's clip-path cuts it out,
   so scrolling moves only the footer's edge: the fan never lags a frame behind the scroll */
.footer__bg .bg__canvas { position: fixed; }

.footer .logo-type { fill: var(--white); }
.footer .logo-mark { fill: var(--logo-red); }
.footer__label {
  margin-bottom: 14px;
  font-family: var(--font);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-large);
  text-transform: uppercase;
  opacity: 0.55;
}

/* contact details: write, call, where */
.footer__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* equal sides, so "Write to us" sits in the very middle */
  justify-content: space-between;
  gap: 32px 48px;
}
.footer__email {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}
.footer__email:hover { color: var(--bg-base); }   /* the brighter base red reads better on the black */
.footer__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }   /* the e-mail and its copy button */
/* round grey icon buttons with white icons (button button-sm grey): the social profiles, and the
   copy button, whose icon turns into a check once copied; their names ("Instagram" …, "Copy" /
   "Copied!") are the labels and tooltips */
.button.button-sm.footer__icon { width: 40px; padding: 0; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__copy {
  .copy__icons { display: inline-grid; }
  svg { grid-area: 1 / 1; transition: opacity 0.2s, transform 0.3s var(--ease); }
  .copy__done { opacity: 0; transform: scale(0.6); }
  &.is-done .copy__icon { opacity: 0; transform: scale(0.6); }
  &.is-done .copy__done { opacity: 1; transform: none; }
}
.footer__place { font-size: var(--fs-text); line-height: 1.5; }
.footer__row--four { grid-template-columns: repeat(4, auto); }   /* with "Call us" (SHOW_FOOTER_PHONE) */
/* "Write to us" in the middle of the three */
.footer__write { text-align: center; }
.footer__write .footer__mail { justify-content: center; }
.footer__row > :last-child { text-align: right; }
@media (max-width: 760px) {
  .footer__row { grid-template-columns: 1fr; }
  .footer__row > :last-child { text-align: left; }
  .footer__write { text-align: left; }
  .footer__write .footer__mail { justify-content: flex-start; }
}

/* the wordmark with the hero's scroll line next to it, running upwards: one link back to top */
.footer__brand {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(56px, 8vw, 110px);
  text-decoration: none;
}
.footer__big { display: block; flex: 1; min-width: 0; }
.footer__word { width: 100%; height: auto; }
/* the wordmark rests folded into "em" (like the sticky header's logo) and opens out to the full
   name while the mouse is over the footer. Without hover (touch) the full name always */
.footer__big .logo-hide {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  transition-delay: calc(0.3s - var(--i) * 0.03s);
}
.footer__big .logo-m { transition: transform 0.6s var(--ease) 0.15s; }
@media (hover: hover) {
  .footer:not(:hover) .footer__big .logo-hide {
    opacity: 0;
    transform: translateY(18px) scale(0.6);
    transition-delay: calc(var(--i) * 0.035s);
  }
  .footer:not(:hover) .footer__big .logo-m { transform: translateX(-137.97px); transition-delay: 0.2s; }
}
.footer__up {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 56px;
}
.footer__up .hero__line::after { animation-direction: reverse; }
.footer__brand:hover .hero__line { background: rgba(247, 244, 241, 0.35); }

/* the bottom strip: as tall as the sticky header (--header-sticky) with copyright left, cookie links right */
.footer__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  height: var(--header-sticky);
  margin-top: clamp(48px, 6vw, 80px);
}
.footer__meta,
.footer__legal a,
.footer__legal button {
  font-size: var(--fs-small);
  line-height: 1.7;
  opacity: 0.35;
}
.footer__legal { display: flex; gap: 28px; }
.footer__legal a,
.footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
.footer__legal a:hover,
.footer__legal button:hover { opacity: 0.8; }
/* touch: small links get a finger-sized hit area (44px) without looking any bigger */
@media (pointer: coarse) {
  .footer__legal a, .footer__legal button { padding: 12px 4px; margin: -12px -4px; }
  .footer__email { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .consent__more { padding: 12px 8px; margin-top: 4px; }
}
/* phones: copyright and cookie links one above the other, centred */
@media (max-width: 760px) {
  .footer__bottom {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    height: auto;
    padding: 20px 0;
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }

  /* clients become a plain grid */
  .ring { height: auto; margin-top: 0; perspective: none; cursor: default; padding: 0 var(--gutter); }
  .ring__track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: var(--container);
    height: auto;
    transform: none;
  }
  .ring__face { position: relative; height: 120px; transform: none; }
  .ring__floor, .ring__bar, .ring__current { display: none; }
}
