/*
 * OutBox public site stylesheet.
 *
 * Mobile-first, no framework: grid and flex only.
 *
 * Arabic is the default language of the site, so every rule is written with
 * logical properties (margin-inline, padding-block, inset-inline-start,
 * border-inline-start, text-align: start). One stylesheet therefore mirrors
 * correctly for RTL and LTR documents; the only [dir] rules are the font stack
 * switch and the slider arrows, which genuinely point the other way.
 *
 * Colours, radii, shadows, fonts and metrics are custom properties served by
 * /theme.css (generated from the identity settings). Nothing here invents a
 * brand colour, and nothing is inlined: the content-security-policy allows
 * style-src 'self' only.
 *
 * Progressive enhancement: content is visible without JavaScript. Only controls
 * that are useless when scripting is off (gallery filters, slider arrows) are
 * revealed once site.js adds the `js` class to <html>.
 */

:root {
  --gutter: 1.15rem;
  --gap: 1.15rem;
  --gap-lg: 2rem;
  --step: 0.75rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  --text-hero: clamp(2rem, 1.4rem + 3.2vw, 3.6rem);
}

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

html {
  font-size: var(--font-base, 16px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-arabic);
  line-height: var(--body-line-height, 1.9);
  overflow-x: hidden;
}

[dir="ltr"] body.site {
  font-family: var(--font-latin);
}

/* ------------------------------------------------------------------ elements */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: var(--heading-weight, 800);
  line-height: var(--heading-line-height, 1.3);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-hero);
}

h2 {
  font-size: var(--text-xl);
}

h3 {
  font-size: var(--text-lg);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-block-end: 0;
}

a {
  color: var(--color-text);
  text-decoration-color: var(--color-border);
  text-underline-offset: 0.2em;
}

/* The brand orange is a graphic colour: as text on paper it lands at 3.1:1.
 * Bands publish the readable sibling of their accent in --accent-text. */
a:hover {
  color: var(--accent-text, var(--color-primary));
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

img,
video,
iframe,
svg {
  max-inline-size: 100%;
  block-size: auto;
  border: 0;
  display: block;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

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

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

/* ----------------------------------------------------------------- utilities */

.shell {
  inline-size: min(100% - (var(--gutter) * 2), var(--container-width, 1200px));
  margin-inline: auto;
}

.shell--narrow {
  inline-size: min(100% - (var(--gutter) * 2), 46rem);
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 40;
  padding: 0.6rem 1.1rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border-start-end-radius: 0;
  border-end-end-radius: var(--radius-button);
  transform: translateY(-110%);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
  color: var(--color-bg);
}

/* Sanitised rich text keeps its own structure. */
.rich > :first-child {
  margin-block-start: 0;
}

.rich > :last-child {
  margin-block-end: 0;
}

.rich a {
  text-decoration: underline;
}

.rich ul,
.rich ol {
  padding-inline-start: 1.4rem;
  margin-block-end: 1em;
}

.rich li + li {
  margin-block-start: 0.3em;
}

.empty-note {
  color: var(--color-muted);
  font-size: var(--text-sm);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--step) 1rem;
}

/* ------------------------------------------------------------------- notices */

.notice {
  display: block;
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.notice--error {
  border-color: var(--color-secondary);
  color: var(--color-text);
}

.notice--warning {
  border-color: var(--color-primary);
}

.notice--success {
  border-color: var(--color-accent);
}

.notice--info {
  border-color: var(--color-border);
  color: var(--color-muted);
}

.site-flashes {
  display: grid;
  gap: var(--step);
  padding-block: var(--step);
}

.site-main > .notice--info {
  margin-block: var(--step) 0;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------- pills & chips */

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* Demo content must never read as real client work. */
.pill--sample {
  color: var(--color-muted);
  border-color: var(--color-muted);
  text-transform: lowercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: var(--step);
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

button.chip {
  cursor: pointer;
}

button.chip:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.chip.is-active {
  color: var(--accent-on);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ------------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
  background: var(--sec-btn-bg, var(--color-panel));
  color: var(--sec-btn-fg, var(--color-text));
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--sec-btn-fg, var(--color-text));
}

.btn--primary {
  background-image: var(--sec-btn-image, var(--brand-gradient));
  background-color: var(--sec-btn-bg, transparent);
  border-color: transparent;
  color: var(--sec-btn-fg, var(--color-bg));
}

.btn--primary:hover {
  color: var(--sec-btn-fg, var(--color-bg));
}

.btn--ghost {
  background: var(--sec-btn-bg, transparent);
  color: var(--sec-btn-fg, var(--color-text));
}

.btn--ghost:hover {
  border-color: var(--color-primary);
}

.btn--icon {
  inline-size: 2.4rem;
  padding-inline: 0;
  block-size: 2.4rem;
  font-size: 1.2rem;
}

/* The slider arrows are literal glyphs, so they flip in RTL. */
[dir="rtl"] .btn--icon {
  transform: scaleX(-1);
}

[dir="rtl"] .btn--icon:hover {
  transform: scaleX(-1) translateY(-2px);
}

/* ---------------------------------------------------------------------- cards */

.cards,
.card {
  display: grid;
  gap: var(--step);
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  list-style: none;
}

.card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.15rem;
  align-content: start;
}

.card--plain {
  background: transparent;
  border-color: var(--color-border);
}

.card__media,
.card__title,
.card__text,
.card__body {
  margin: 0;
}

.card__title {
  font-weight: var(--heading-weight, 800);
  font-size: var(--text-lg);
  line-height: var(--heading-line-height, 1.3);
}

.card__text,
.card__body {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.card__link {
  text-decoration: none;
  display: block;
  border-radius: inherit;
}

/* -------------------------------------------------------------------- header */

.site-header {
  position: relative;
  z-index: 30;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  border-block-end: 1px solid var(--color-border);
}

.site-header.is-sticky {
  position: sticky;
  inset-block-start: 0;
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-block-size: var(--header-height, 76px);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--logo-margin, 10px);
  text-decoration: none;
  color: var(--color-text);
  justify-content: var(--logo-align-header, start);
  flex: 0 0 auto;
}

.brand__logo {
  inline-size: var(--logo-width-mobile, 34px);
  block-size: var(--logo-height-mobile, 34px);
  object-fit: var(--logo-object-fit, contain);
}

.brand__mark {
  display: grid;
  place-items: center;
  inline-size: 2.2rem;
  block-size: 2.2rem;
  border-radius: var(--radius-input);
  background-image: var(--brand-gradient);
  color: var(--color-bg);
  font-size: 1.1rem;
}

.brand__text {
  font-weight: var(--heading-weight, 800);
  letter-spacing: 0.04em;
  font-size: var(--text-lg);
}

.brand--footer {
  font-size: 1rem;
}

.brand--footer .brand__logo {
  inline-size: var(--logo-width-mobile, 34px);
  block-size: var(--logo-height-mobile, 34px);
}

@media (min-width: 60rem) {
  .brand__logo,
  .brand--footer .brand__logo {
    inline-size: var(--logo-width, 44px);
    block-size: var(--logo-height, 44px);
  }
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: var(--step);
  flex-wrap: wrap;
}

/* Language switcher. */
.lang__list {
  display: flex;
  gap: 0.35rem;
  list-style: none;
}

.lang__link {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-muted);
}

.lang__link:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.lang__link.is-active {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: var(--color-panel);
}

/* Desktop bar: hidden until there is room for it. */
.nav-bar {
  display: none;
}

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

.nav-bar__link,
.nav-disclosure__link {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-button);
  text-decoration: none;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav-bar__link:hover,
.nav-disclosure__link:hover {
  color: var(--color-text);
  background: var(--color-panel);
}

.nav-bar__link.is-active,
.nav-disclosure__link.is-active {
  color: var(--accent-text);
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
}

/* Mobile disclosure: pure <details>, so it works with JavaScript disabled. */
.nav-disclosure {
  position: relative;
}

.nav-disclosure__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-sm);
  font-weight: 700;
}

.nav-disclosure__button::-webkit-details-marker {
  display: none;
}

.nav-disclosure__button::before {
  content: "≡";
  font-size: 1.05rem;
  line-height: 1;
}

.nav-disclosure__close {
  display: none;
}

.nav-disclosure[open] .nav-disclosure__open {
  display: none;
}

.nav-disclosure[open] .nav-disclosure__close {
  display: inline;
}

.nav-disclosure nav {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.5rem);
  inline-size: min(20rem, 78vw);
  padding: 0.6rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  z-index: 20;
}

.nav-disclosure__list {
  display: grid;
  gap: 0.15rem;
  list-style: none;
}

.nav-disclosure__link {
  display: block;
}

/* ------------------------------------------------------------------- sections */

.sec {
  padding-block: var(--spacing-section, 55px);
  /* A band that swaps its ink must not have to restate it: reading the token
     here means every dark plate flips its labels, headings and inputs with it. */
  color: var(--color-text);
}

.sec + .sec {
  padding-block-start: 0;
}

.sec__head {
  display: grid;
  gap: 0.35rem;
  margin-block-end: var(--gap-lg);
  max-inline-size: 60ch;
}

.sec__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sec__title {
  margin: 0 0 0.4rem;
}

.sec__subtitle {
  color: var(--color-muted);
  margin: 0;
  font-size: var(--text-lg);
}

.sec__actions {
  margin-block-start: var(--gap);
}

/* Column counts arrive from the section settings as data-cols, because the CSP
   forbids a generated style attribute. */
[data-cols="2"],
[data-cols="3"],
[data-cols="4"] {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 40rem) {
  [data-cols="2"],
  [data-cols="3"],
  [data-cols="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  [data-cols="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  [data-cols="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ----------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
  padding-block: calc(var(--spacing-section, 55px) * 0.6);
  min-block-size: 24rem;
}

.hero.is-short .hero__inner {
  min-block-size: 16rem;
  padding-block: calc(var(--spacing-section, 55px) * 0.35);
}

.hero.is-tall .hero__inner {
  min-block-size: 40rem;
  padding-block: calc(var(--spacing-section, 55px) * 1.1);
}

.hero__title {
  font-size: var(--text-hero);
  margin-block-end: 0.6rem;
}

.hero__text {
  max-inline-size: 62ch;
}

.hero--centered .hero__text {
  margin-inline: auto;
  text-align: center;
}

.hero--centered .hero__actions,
.hero--centered .hero__points {
  justify-content: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-block: var(--gap) 0;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step) 1.4rem;
  list-style: none;
  margin-block-start: var(--gap);
  padding: 0;
}

.hero__point {
  display: grid;
  gap: 0.1rem;
  padding-inline-start: 0.9rem;
  border-inline-start: 2px solid var(--color-primary);
}

.hero__badge {
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 700;
}

.hero__value {
  font-weight: var(--heading-weight, 800);
  font-size: var(--text-lg);
}

.hero__label {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.hero__media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-panel);
}

.hero__media img {
  inline-size: 100%;
  object-fit: cover;
}

.hero.has-bubbles::before,
.hero.has-bubbles::after {
  content: "";
  position: absolute;
  inline-size: 22rem;
  block-size: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-secondary), transparent 65%);
  opacity: 0.28;
  pointer-events: none;
  inset-block-start: -6rem;
  inset-inline-end: -8rem;
}

.hero.has-bubbles::after {
  background: radial-gradient(circle at 30% 30%, var(--color-accent), transparent 65%);
  inset-block-start: auto;
  inset-block-end: -9rem;
  inset-inline-end: auto;
  inset-inline-start: -7rem;
}

/* ------------------------------------------------------------- hero slider */

.hero__frame {
  position: relative;
}

.hero .slider__viewport {
  border-radius: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero .slider__viewport::-webkit-scrollbar {
  display: none;
}

.hero .slider__viewport:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}

.hero__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
}

@media (min-width: 60rem) {
  .hero--split .hero__inner,
  .hero--stacked .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero--stacked .hero__media {
    grid-row: 1;
  }

  .hero--centered .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: start;
  }
}

/* ------------------------------------------------------------- about / points */

.about__split {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
}

.about__media {
  display: grid;
  gap: var(--gap);
}

.about__image {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  inline-size: 100%;
  object-fit: cover;
}

.about__points {
  display: grid;
  gap: var(--step);
  list-style: none;
  margin-block: var(--gap) 0;
  padding: 0;
}

.about__point {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-inline-start: 0.9rem;
  border-inline-start: 2px solid var(--color-secondary);
}

.about__mark {
  color: var(--accent-text, var(--color-primary));
  font-weight: var(--heading-weight, 800);
}

.about__label {
  color: var(--color-muted);
}

.about__actions {
  margin-block-start: var(--gap);
}

.about--cards .about__media--cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 60rem) {
  .about__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .about--image_start .about__media {
    grid-column: 1;
    grid-row: 1;
  }

  .about--image_start .about__text {
    grid-column: 2;
  }

  .about--cards .about__split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------- services */

.services__grid {
  display: grid;
  gap: var(--gap);
  list-style: none;
  grid-template-columns: minmax(0, 1fr);
}

.service {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.25rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.services--grid .service {
  background: transparent;
  box-shadow: none;
}

.service__icon {
  inline-size: 2.4rem;
  block-size: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-input);
  background: color-mix(in srgb, var(--color-primary) 18%, var(--color-panel));
  color: var(--accent-text);
  font-size: 1.2rem;
  margin-block-end: 0.2rem;
}

.service__title {
  margin: 0;
  font-size: var(--text-lg);
}

.service__title a {
  text-decoration: none;
  color: inherit;
}

.service__body {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.service__link {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  color: inherit;
  text-decoration: none;
}

a.service__link:hover .service__title {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

.service-detail__body {
  max-inline-size: 78ch;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.service-pricing__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  list-style: none;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.price-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-card);
}

.price-card__name,
.price-card__price,
.price-card__description {
  margin: 0;
}

.price-card__price {
  color: var(--accent-text, var(--color-primary));
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.price-card__description {
  flex: 1;
  color: var(--color-muted);
}

/* -------------------------------------------------------------------- gallery */

.gallery__filters {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: var(--gap);
}

.js .gallery__filters {
  display: flex;
}

.gallery__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.gallery__item {
  position: relative;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.js .gallery__item.is-hidden {
  display: none;
}

.gallery__link {
  display: block;
  text-decoration: none;
}

.gallery__img {
  inline-size: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gallery__link:hover .gallery__img,
.gallery__link:focus-visible .gallery__img {
  opacity: 0.88;
}

.gallery__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
}

.gallery__count {
  position: absolute;
  inset-block-end: 0.5rem;
  inset-inline-end: 0.5rem;
  padding: 0.1rem 0.55rem;
  background: rgba(20, 16, 10, 0.78);
  color: #f7f2e6;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 99px;
}

.gallery__caption {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------- free text */

.text__inner {
  max-inline-size: 76ch;
}

.text--center .text__inner {
  margin-inline: auto;
  text-align: center;
}

.text--center .sec__subtitle {
  margin-inline: auto;
}

.text--center .rich {
  text-align: start;
}

.text--center .empty-note {
  text-align: center;
}

/* ---------------------------------------------------------- flexible columns */

.custom__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.custom__cell {
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.custom__cell--text,
.custom__cell--button {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.custom--plain .custom__cell--text,
.custom--plain .custom__cell--button {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.custom__grid[data-align="center"] .custom__cell {
  align-items: center;
  text-align: center;
}

.custom__grid[data-align="end"] .custom__cell {
  align-items: flex-end;
  text-align: end;
}

.custom__grid[data-valign="start"] {
  align-items: start;
}

.custom__grid[data-valign="start"] .custom__cell {
  justify-content: flex-start;
}

.custom__grid[data-valign="end"] {
  align-items: end;
}

.custom__grid[data-valign="end"] .custom__cell {
  justify-content: flex-end;
}

.custom__grid[data-ratio="wide"] .custom__image {
  aspect-ratio: 16 / 9;
}

.custom__grid[data-ratio="square"] .custom__image {
  aspect-ratio: 1;
}

.custom__grid[data-ratio="portrait"] .custom__image {
  aspect-ratio: 4 / 5;
}

.custom__image,
.custom__video {
  inline-size: 100%;
  border-radius: var(--radius-card);
}

.custom__image {
  display: block;
  block-size: auto;
  object-fit: cover;
}

.custom__video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-ink);
}

.custom__video .video-frame {
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

.custom__label {
  margin: 0;
  font-size: var(--text-lg);
}

@media (min-width: 48rem) {
  .custom__grid[data-cols="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom__grid[data-cols="2"][data-widths="wide_start"] {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .custom__grid[data-cols="2"][data-widths="wide_end"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }

  .custom__grid[data-cols="3"],
  .custom__grid[data-cols="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  .custom__grid[data-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .custom__grid[data-cols="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Masonry uses multi-column flow, which mirrors in RTL automatically. */
.gallery--masonry .gallery__grid {
  display: block;
  columns: 2;
  column-gap: var(--gap);
}

.gallery--masonry .gallery__item {
  break-inside: avoid;
  margin-block-end: var(--gap);
}

.gallery--masonry .gallery__img {
  aspect-ratio: auto;
}

.js .gallery--masonry .gallery__item.is-hidden {
  display: none;
}

@media (min-width: 60rem) {
  .gallery__grid[data-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery__grid[data-cols="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery--masonry .gallery__grid[data-cols="3"] {
    columns: 3;
  }

  .gallery--masonry .gallery__grid[data-cols="4"] {
    columns: 4;
  }
}

/* --------------------------------------------------------------------- videos */

.videos__grid {
  display: grid;
  gap: var(--gap);
  list-style: none;
  grid-template-columns: minmax(0, 1fr);
}

.video-card {
  display: grid;
  gap: 0.8rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-bg);
}

.video-frame,
.video-card__media video,
.video-card__media iframe {
  inline-size: 100%;
  block-size: 100%;
  display: block;
}

.video-card__cover {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.video-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.video-card__title {
  margin: 0;
  font-size: var(--text-lg);
}

.video-card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.video-card__note {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-input);
  padding: 0.5rem 0.7rem;
}

@media (min-width: 60rem) {
  .videos--featured .videos__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-auto-rows: minmax(0, auto);
  }

  .videos--featured .video-card--featured {
    grid-column: 1;
    grid-row: span 3;
  }
}

/* -------------------------------------------------------------------- slider */

.slider__frame {
  position: relative;
}

.slider__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-card);
}

.slider__viewport::-webkit-scrollbar {
  display: none;
}

.slider__viewport:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.slider__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slider__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
}

.slider__img {
  display: block;
  width: 100%;
  height: clamp(17rem, 40vw, 27rem);
  object-fit: cover;
  background: var(--color-panel);
}

.slider--inset .slider__img {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.slider__caption {
  position: absolute;
  inset-inline-start: 0.9rem;
  inset-block-end: 0.9rem;
  display: grid;
  gap: 0.2rem;
  max-inline-size: min(92%, 34rem);
  padding: 0.7rem 0.9rem;
  background: rgba(20, 16, 10, 0.72);
  color: #f7f2e6;
  border-radius: 10px;
  text-align: start;
}

.slider__slide-title {
  font-size: var(--text-md);
  font-weight: 700;
}

.slider__slide-text {
  font-size: var(--text-sm);
  opacity: 0.92;
}

.slider__caption .pill,
.slider__caption .btn {
  justify-self: start;
  margin-block-start: 0.15rem;
}

.slider__controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  pointer-events: none;
}

.slider__controls[hidden] {
  display: none;
}

.slider__arrow,
.slider__dot,
.slider__toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.slider__arrow {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  inline-size: 2.6rem;
  block-size: 2.6rem;
  border-radius: 50%;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.slider__arrow--prev {
  inset-inline-start: clamp(0.65rem, 2vw, 1.25rem);
}

.slider__arrow--next {
  inset-inline-end: clamp(0.65rem, 2vw, 1.25rem);
}

.slider__arrow span {
  inline-size: 0.55rem;
  block-size: 0.55rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.slider__arrow--prev span {
  transform: rotate(225deg);
}

.slider__arrow--next span {
  transform: rotate(45deg);
}

[dir="rtl"] .slider__arrow--prev span {
  transform: rotate(45deg);
}

[dir="rtl"] .slider__arrow--next span {
  transform: rotate(225deg);
}

.slider__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.slider__arrow:focus-visible,
.slider__dot:focus-visible,
.slider__toggle:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.slider__dots {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline: 0;
  inline-size: max-content;
  max-inline-size: calc(100% - 7rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  pointer-events: auto;
}

.slider__dots-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.slider__dot {
  inline-size: 0.6rem;
  block-size: 0.6rem;
  padding: 0;
  border-radius: 50%;
  background: var(--color-muted);
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.slider__dot.is-active {
  background: var(--color-primary);
  opacity: 1;
}

.slider__toggle {
  inline-size: 2.2rem;
  block-size: 2.2rem;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1;
}

.slider__toggle::before {
  content: "▮▮";
}

.slider__toggle.is-paused::before {
  content: "▶";
}

/* ------------------------------------------------------------------- website */

.website__sites {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.website__site {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.website__cover {
  position: relative;
  display: block;
  inline-size: 100%;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--color-panel);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.website__cover img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  transition: transform 7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.website__cover:hover img,
.website__cover:focus-visible img {
  transform: translateY(-66%);
}

.website__cover-hint {
  position: absolute;
  inset-block-end: 0.6rem;
  inset-inline-end: 0.6rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(20, 16, 10, 0.78);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  pointer-events: none;
}

.website__site-meta {
  display: grid;
  gap: 0.2rem;
}

.website__site-name {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--heading-weight, 800);
}

.website__site-tag {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.website__site-links {
  margin: 0.2rem 0 0;
}

.website__site-link {
  color: var(--accent-text, var(--color-primary));
  font-weight: 600;
  font-size: var(--text-sm);
}

.website__thumbs {
  display: flex;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.website__thumb {
  display: block;
  inline-size: 3.6rem;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-panel);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.85;
}

.website__thumb img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: top;
}

.website__thumb:hover,
.website__thumb:focus-visible {
  opacity: 1;
  outline: 2px solid var(--color-primary, var(--color-accent));
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .website__cover img {
    transition: none;
  }
}

.website__overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: rgba(12, 12, 16, 0.94);
}

.website__overlay[hidden] {
  display: none;
}

.website__overlay-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.website__overlay-cap {
  font-size: var(--text-sm);
  max-inline-size: 24rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website__overlay-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.website__ctl {
  display: grid;
  place-items: center;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.website__ctl:hover,
.website__ctl:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.website__ctl:disabled {
  opacity: 0.4;
  cursor: default;
}

.website__ctl--toggle {
  font-size: 0.8rem;
}

.website__ctl--prev span,
.website__ctl--next span {
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
}

.website__ctl--prev span {
  transform: rotate(225deg);
}

.website__ctl--next span {
  transform: rotate(45deg);
}

.website__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.3rem;
}

.website__dot {
  inline-size: 0.6rem;
  block-size: 0.6rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  cursor: pointer;
}

.website__dot.is-active {
  background: var(--color-primary);
}

.website__overlay-stage {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}

.website__overlay-img {
  display: block;
  inline-size: min(75rem, 100%);
  margin-inline: auto;
  background: #fff;
}

body.website-open {
  overflow: hidden;
}

/* ------------------------------------------------------------------- projects */

.projects__list {
  display: grid;
  gap: var(--gap);
  list-style: none;
  grid-template-columns: minmax(0, 1fr);
}

.projects--list .projects__list {
  grid-template-columns: minmax(0, 1fr);
}

.project-card {
  display: block;
  position: relative;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
}

.project-card__media {
  inline-size: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card__body {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem 1.2rem;
}

.project-card__title {
  font-size: var(--text-lg);
  font-weight: var(--heading-weight, 800);
  line-height: var(--heading-line-height, 1.3);
}

.project-card__client {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.project-card__summary {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.project-card__result {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-block-start: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--color-accent) 16%, var(--color-panel));
  font-size: var(--text-sm);
}

.project-card__result-label {
  color: var(--color-muted);
}

.project-card__more {
  margin-block-start: 0.4rem;
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.project-card:hover {
  border-color: var(--color-primary);
}

/* -------------------------------------------------------------------- clients */

.clients__list {
  display: grid;
  gap: var(--gap);
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clients--row .clients__list {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: minmax(9rem, 1fr);
  overflow-x: auto;
  padding-block-end: 0.4rem;
  scrollbar-width: thin;
}

.clients__item {
  display: grid;
  place-items: center;
  padding: 0.9rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  inline-size: 100%;
  block-size: 7rem;
}

.clients__link {
  display: grid;
  place-items: center;
  inline-size: 100%;
  block-size: 100%;
  text-decoration: none;
  color: inherit;
}

.clients__logo {
  inline-size: 100%;
  max-inline-size: 9rem;
  block-size: 4rem;
  object-fit: contain;
}

.clients.is-grayscale .clients__logo {
  filter: grayscale(1);
  opacity: 0.75;
}

.clients.is-grayscale .clients__item:hover .clients__logo {
  filter: none;
  opacity: 1;
}

.clients__name {
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-align: center;
}

@media (min-width: 60rem) {
  .clients__list[data-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clients__list[data-cols="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .clients__list[data-cols="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .clients--row .clients__list[data-cols="6"] {
    grid-auto-columns: minmax(8rem, 1fr);
  }
}

/* --------------------------------------------------------------- testimonials */

.testimonials__list {
  display: grid;
  gap: var(--gap);
  list-style: none;
  grid-template-columns: minmax(0, 1fr);
}

.quote {
  display: grid;
}

.quote__figure {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.3rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  block-size: 100%;
}

.quote__body {
  margin: 0;
  font-size: var(--text-lg);
  border-inline-start: 3px solid var(--color-primary);
  padding-inline-start: 1rem;
}

.quote__foot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.quote__avatar {
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.quote__who {
  display: grid;
  gap: 0.1rem;
  margin-inline-end: auto;
}

.quote__author {
  font-weight: var(--heading-weight, 800);
}

.quote__role {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.stars {
  letter-spacing: 0.12em;
}

.stars__on {
  color: var(--accent-text);
}

.stars__off {
  color: var(--color-border);
}

.testimonials__controls {
  display: none;
  gap: 0.5rem;
  margin-block-start: var(--gap);
}

.js .testimonials__controls {
  display: flex;
}

/* Only once site.js marks the slider does the single-quote view apply; without
   it every quote stays visible in a grid. */
.js .testimonials.is-slider .quote {
  display: none;
}

.js .testimonials.is-slider .quote.is-active {
  display: grid;
}

.js .testimonials.is-slider .testimonials__list {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------------------------------------------------------------------- stats */

.stats__list {
  display: grid;
  gap: var(--gap);
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats--row .stats__list {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: minmax(0, 1fr);
}

.stats__item {
  display: grid;
  gap: 0.2rem;
  padding: 0.4rem 0.6rem;
  text-align: center;
}

.stats.has-dividers .stats__item + .stats__item {
  border-inline-start: 1px solid var(--color-border);
}

.stats__figure {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  font-size: var(--text-xl);
  font-weight: var(--heading-weight, 800);
  line-height: 1.1;
  background-image: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats__suffix {
  font-size: 0.7em;
}

.stats__label {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

@media (min-width: 60rem) {
  .stats__list[data-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats__list[data-cols="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------------ faq */

.faq__items,
.faq__list {
  display: grid;
  gap: var(--step);
}

.faq__item {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: var(--heading-weight, 800);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent-text, var(--color-primary));
  font-size: 1.3rem;
  line-height: 1;
}

.faq__item[open] .faq__question::after {
  content: "−";
}

.faq__question-text {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: inherit;
  line-height: var(--heading-line-height, 1.3);
}

.faq__answer {
  padding: 0 1.15rem 1.1rem;
  color: var(--color-muted);
  border-block-start: 1px solid var(--color-border);
  padding-block-start: 0.9rem;
}

.faq__list {
  align-content: start;
}

.faq__term {
  font-weight: var(--heading-weight, 800);
  margin-block-start: 0.9rem;
}

.faq__def {
  color: var(--color-muted);
  margin-block-start: 0.25rem;
}

/* ------------------------------------------------------------------------ cta */

.cta {
  position: relative;
  overflow: hidden;
}

.cta__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__bg {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--gap);
  align-items: center;
}

.cta__title {
  font-size: var(--text-xl);
}

.cta__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
}

.cta--banner .cta__inner {
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--color-panel) 78%, transparent);
}

.cta--panel .cta__inner {
  padding: 2rem clamp(1.2rem, 4vw, 3rem);
  border-radius: calc(var(--radius-card) * 1.5);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

@media (min-width: 60rem) {
  .cta__inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .cta__actions {
    justify-content: flex-end;
  }
}

/* -------------------------------------------------------------------- contact */

.contact__split {
  display: grid;
  gap: var(--gap-lg);
  align-items: start;
}

.contact__aside {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.contact__details {
  display: grid;
  gap: 0.6rem;
  margin-block-start: var(--gap);
}

.contact__dt {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.contact__dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact__media img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.contact__media figcaption {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin-block-start: 0.4rem;
}

.contact__map {
  margin: var(--gap) 0 0;
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: clamp(15rem, 26vw, 22rem);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--color-panel);
}

.contact__form {
  display: grid;
  gap: var(--step);
  align-content: start;
}

.contact__result {
  padding: 1.4rem;
  background: var(--color-panel);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-card);
}

.contact__result-title {
  margin-block-start: 0;
}

.contact__result .btn {
  margin-block-start: 0.5rem;
}

@media (min-width: 60rem) {
  .contact__split[data-cols="2"] {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* ---------------------------------------------------------------------- forms */

.form {
  display: grid;
  gap: var(--step);
  padding: 1.3rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.form__grid {
  display: grid;
  gap: var(--step);
}

.form__note {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.form__actions {
  margin: 0;
}

.form__privacy {
  color: var(--color-muted);
  font-size: 0.8rem;
  margin: 0;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.field__label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.field__star {
  color: var(--accent-text);
}

.field__error {
  color: var(--color-error, var(--color-secondary));
  font-size: var(--text-sm);
}

.input {
  inline-size: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  font: inherit;
  line-height: 1.6;
}

.input:focus {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.input[aria-invalid="true"] {
  border-color: var(--color-secondary);
}

.input--area {
  min-block-size: 9rem;
  resize: vertical;
}

select.input {
  appearance: none;
  background-image: none;
}

/* Honeypot: clipped out of the visual flow rather than display:none, so a bot
   still fills it and a human never sees it. tabindex="-1" keeps it untabbable. */
.field--guard {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--message,
  .field--name,
  .field--email {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------ project detail */

.project__head {
  padding-block: calc(var(--spacing-section, 55px) * 0.7) var(--gap-lg);
}

.project__head-grid {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
}

.project__cover {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  inline-size: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.project__title {
  margin-block-end: 0.5rem;
}

.project__head-text {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.project__summary {
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block-start: var(--gap);
}

.facts {
  display: grid;
  gap: 0.5rem;
  margin-block: var(--gap) 0;
}

.facts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
}

.facts__row dt {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin-inline-end: 0.4rem;
}

.facts__row dd {
  margin: 0;
  font-weight: 600;
}

@media (min-width: 56rem) {
  .project__head-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/* Challenge → solution → outcome read as a numbered sequence. */
.case {
  display: grid;
  gap: var(--gap-lg);
}

.case__block {
  padding-block-start: 1.1rem;
  border-block-start: 3px solid var(--color-border);
}

.case__num {
  display: block;
  color: var(--accent-text, var(--color-primary));
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: var(--heading-weight, 800);
  line-height: 1;
  margin-block-end: 0.5rem;
}

.case__title {
  margin-block-end: 0.5rem;
  font-size: var(--text-xl);
}

.case .rich {
  color: var(--color-muted);
}

@media (min-width: 52rem) {
  .case {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project__video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #000;
  box-shadow: var(--shadow-card);
  margin-block-start: var(--gap);
}

.project__video .video-frame {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

.results {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: var(--gap);
}

.results__item {
  padding: 1rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  display: grid;
  gap: 0.25rem;
}

.results__value {
  font-size: var(--text-xl);
  font-weight: var(--heading-weight, 800);
  line-height: 1.1;
}

.results__label {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.sec--prose .rich {
  max-inline-size: 68ch;
}

/* -------------------------------------------------------------- page heading */

.page-head {
  padding-block: calc(var(--spacing-section, 55px) * 0.7) var(--gap);
}

.page-head__title {
  margin-block-end: 0.4rem;
}

.page-head__subtitle {
  color: var(--color-muted);
  font-size: var(--text-lg);
  margin: 0;
}

/* ------------------------------------------------------------- status / error */

.status {
  padding-block: calc(var(--spacing-section, 55px) * 1.4);
}

.status__inner {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  max-inline-size: 44rem;
}

.status__code {
  margin: 0;
  font-size: 3.2rem;
  font-weight: var(--heading-weight, 800);
  line-height: 1;
  background-image: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status__title {
  margin: 0;
}

.status__body,
.status__again {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.status__detail,
.status__note {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.status__message {
  margin-block-start: 0.5rem;
}

.status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-block-start: var(--gap);
}

/* --------------------------------------------------------------------- footer */

.site-footer {
  border-block-start: 1px solid var(--color-border);
  background: var(--color-panel);
  margin-block-start: calc(var(--spacing-section, 55px) * 0.6);
  padding-block: var(--gap-lg) var(--gap);
}

.site-footer__grid {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: minmax(0, 1fr);
}

.site-footer__block {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  justify-items: var(--logo-align-footer, start);
}

.site-footer__title {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin: 0 0 0.3rem;
  font-weight: 700;
}

.site-footer__about {
  color: var(--color-muted);
  font-size: var(--text-sm);
  max-inline-size: 40ch;
}

.site-footer__list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  font-size: var(--text-sm);
}

.site-footer__list a {
  text-decoration: none;
  color: var(--color-muted);
}

.site-footer__list a:hover {
  color: var(--accent-text, var(--color-primary));
}

.site-footer__list--social {
  grid-auto-flow: column;
  justify-content: start;
  gap: 0.9rem;
}

.site-footer__copy {
  margin-block-start: var(--gap-lg);
  color: var(--color-muted);
  font-size: 0.8rem;
}

@media (min-width: 60rem) {
  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-bar {
    display: block;
  }

  .nav-disclosure {
    display: none;
  }
}

/* --------------------------------------------------------------- preferences */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }

  [dir="rtl"] .btn--icon:hover {
    transform: scaleX(-1);
  }
}

@media (prefers-contrast: more) {
  .sec__subtitle,
  .card__text,
  .site-footer__list a {
    color: var(--color-text);
  }
}

/* ---------------------------------------------------------------------- print */

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .nav-disclosure,
  .cta__actions,
  .hero__actions {
    display: none;
  }

  body.site {
    background: #fff;
    color: #000;
  }
}

/* =============================================================
   2026-11 "paper & tape" identity layer
   Scoped to body.site: the admin theme (body.adm) keeps the
   identity settings untouched. Appended after all component
   rules on purpose — same specificity, later position wins.
   ============================================================= */

/* ---------- tokens: paper, ink, tape, navy ---------- */

body.site {
  --color-bg: #f4efe4;
  --color-panel: #fffdf4;
  --color-text: #1c1712;
  --color-muted: #5f564a;
  --color-border: #d9cdb2;
  --color-primary: #f25c19;
  --color-secondary: #e84a0f;
  --color-accent: #1b2436;
  /* Brand orange is a mid-tone: 3.3:1 as small text on paper and 4.1:1 on
     navy, so it cannot be both the ink and the plate. --accent-text is the
     same hue pushed to AA for text — deep enough to hold 4.5:1 on the darkest
     pale stock, not just on plain paper — and --accent-on is what sits on an
     orange plate. Dark bands re-declare --accent-text as the lighter tint. */
  --accent-text: #9c380c;
  --accent-on: #1c1712;
  /* Validation copy has to be readable, not merely warm: the brand's darker
     orange-red holds AA on paper, and the dark bands swap it for a tint. */
  --color-error: #b3261e;
  --gradient-from: #f25c19;
  --gradient-to: #1b2436;
  --brand-gradient: linear-gradient(135deg, #ff7a3d 0%, #e84a0f 100%);
  --heading-gradient: linear-gradient(90deg, #1c1712, #1c1712);
  --radius-card: 10px;
  --radius-button: 10px;
  --radius-input: 8px;
  --shadow-card: 5px 5px 0 rgba(28, 23, 18, 0.16);
  --spacing-section: 72px;
  --cut-line: rgba(28, 23, 18, 0.3);
  --font-arabic: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

[dir="ltr"] body.site {
  --font-latin: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- typography: display face on headings ---------- */

body.site h1,
body.site h2,
body.site h3,
body.site h4,
body.site .stats__figure,
body.site .brand__text {
  font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 800;
}

[dir="ltr"] body.site h1,
[dir="ltr"] body.site h2,
[dir="ltr"] body.site h3,
[dir="ltr"] body.site h4,
[dir="ltr"] body.site .stats__figure,
[dir="ltr"] body.site .brand__text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ---------- column counts (cascade fix) ---------- */

[data-cols="2"],
[data-cols="3"],
[data-cols="4"] {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 40rem) {
  [data-cols="2"],
  [data-cols="3"],
  [data-cols="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  [data-cols="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  [data-cols="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- section rhythm: cut-line divisions + bands ---------- */

.sec + .sec {
  padding-block-start: var(--spacing-section);
  border-block-start: 2px dashed var(--cut-line);
}

.sec--gallery,
.sec--videos {
  background: #eae1cc;
}

/* A band that ships its own plate also ships the ink for it. The guard keeps
   that promise honest: as soon as the editor picks a background for the
   section, the band stops restating colours and the chosen stock — which is
   declared later in this file and carries its own tokens — becomes the only
   authority. Without it a pale stock on the numbers band inherited the
   light-on-dark muted and dropped to 1.7:1. */
.sec--stats:not([class*="sec--bg-"]),
.sec--contact:not([class*="sec--bg-"]),
.sec--cta:not([class*="sec--bg-"]) {
  --color-text: #f7f2e6;
  --color-muted: #9aa6bd;
  --color-border: rgba(247, 242, 230, 0.22);
  --color-panel: #232e45;
  --accent-text: #ff9c57;
  --color-error: #ff9d94;
  /* The stamp's hard shadow is ink, so on a navy plate it has to turn over. */
  --btn-shadow: rgba(247, 242, 230, 0.32);
  --btn-soft-shadow: rgba(247, 242, 230, 0.18);
  --cut-line: rgba(247, 242, 230, 0.35);
  background: #1b2436;
}

.sec--clients:not([class*="sec--bg-"]) {
  --color-text: #1c1712;
  --color-muted: #2b2118;
  --color-border: rgba(28, 23, 18, 0.35);
  --cut-line: rgba(28, 23, 18, 0.4);
  /* On the orange tape every mark has to be ink; neither orange works on orange. */
  --accent-text: #1c1712;
  background: var(--color-primary);
  border-block: 2px solid #1c1712;
  overflow: hidden;
  padding-block: var(--gap-lg);
}

/* ---------- section heads: tape eyebrows ---------- */

.sec__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem 0.35rem;
  background: var(--color-primary);
  color: var(--accent-on);
  border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(28, 23, 18, 0.85);
  letter-spacing: 0.08em;
  transform: rotate(-1.1deg);
}

[dir="rtl"] .sec__eyebrow {
  transform: rotate(1.1deg);
}

.sec--clients .sec__eyebrow {
  background: #1c1712;
  color: #fff7ec;
  box-shadow: 3px 3px 0 rgba(255, 253, 244, 0.55);
}

.sec__title {
  font-size: var(--text-xl);
}

.sec--gallery .sec__head,
.sec--videos .sec__head,
.sec--projects .sec__head,
.sec--clients .sec__head,
.sec--testimonials .sec__head {
  text-align: center;
  margin-inline: auto;
  justify-items: center;
}

.sec--gallery .gallery__filters {
  justify-content: center;
}

/* ---------- stamp buttons ---------- */

body.site .btn {
  border: 2px solid var(--color-text);
  border-radius: var(--radius-button);
  background: var(--sec-btn-bg, var(--color-panel));
  color: var(--sec-btn-fg, var(--color-text));
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--btn-shadow, rgba(28, 23, 18, 0.85));
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

body.site .btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--btn-shadow, rgba(28, 23, 18, 0.85));
  color: var(--sec-btn-fg, var(--color-text));
}

body.site .btn--primary {
  background-color: var(--sec-btn-bg, var(--color-primary));
  background-image: var(--sec-btn-image, none);
  border-color: var(--color-text);
  /* An orange plate always carries ink, whichever band it stands on. */
  color: var(--sec-btn-fg, var(--accent-on));
}

body.site .btn--ghost {
  background-color: var(--sec-btn-bg, transparent);
  box-shadow: 4px 4px 0 var(--btn-soft-shadow, rgba(28, 23, 18, 0.22));
}

body.site .btn--ghost:hover {
  background-color: var(--sec-btn-bg, var(--color-panel));
  border-color: var(--color-text);
}

[dir="rtl"] body.site .btn--icon {
  transform: scaleX(-1);
}

body.site .btn--icon:hover {
  transform: translate(2px, 2px);
}

[dir="rtl"] body.site .btn--icon:hover {
  transform: scaleX(-1) translate(2px, 2px);
}

/* ---------- header: brand + nav on the inline-start side ---------- */

.site-header {
  background: #f4efe4;
  border-block-end: 2px solid #1c1712;
}

.site-header.is-sticky {
  background: rgba(244, 239, 228, 0.92);
}

.site-header__tools {
  margin-inline-start: auto;
}

.nav-bar__link {
  position: relative;
  color: var(--color-text);
  font-weight: 700;
  border-radius: 6px;
}

.nav-bar__link:hover {
  background: transparent;
  color: var(--accent-text, var(--color-primary));
}

.nav-bar__link.is-active {
  background: transparent;
  border: none;
  color: var(--color-text);
}

.nav-bar__link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 0.55rem;
  inset-block-end: 0.1rem;
  block-size: 0.22rem;
  border-radius: 2px;
  background: var(--color-primary);
  transform: rotate(-1deg);
}

[dir="rtl"] .nav-bar__link.is-active::after {
  transform: rotate(1deg);
}

.nav-disclosure__button {
  background: var(--color-panel);
  border: 2px solid #1c1712;
  box-shadow: 3px 3px 0 rgba(28, 23, 18, 0.85);
  color: #1c1712;
}

.nav-disclosure nav {
  border: 2px solid #1c1712;
}

/* Desktop bar from tablet width up (overrides the 60rem rule above). */
@media (min-width: 48rem) {
  .nav-bar {
    display: block;
  }

  .nav-disclosure {
    display: none;
  }
}

/* ---------- hero: paper grid + tape corners ---------- */

.sec--hero {
  background-image: radial-gradient(rgba(28, 23, 18, 0.12) 1.1px, transparent 1.4px);
  background-size: 21px 21px;
}

.sec--hero::before,
.sec--hero::after {
  content: "";
  position: absolute;
  inline-size: 7.5rem;
  block-size: 2.1rem;
  background: rgba(242, 92, 25, 0.9);
  box-shadow: 0 2px 5px rgba(28, 23, 18, 0.28);
}

.sec--hero::before {
  inset-block-start: 1.5rem;
  inset-inline-start: -1.8rem;
  transform: rotate(-45deg);
}

.sec--hero::after {
  inset-block-end: 1.5rem;
  inset-inline-end: -1.8rem;
  transform: rotate(45deg);
}

[dir="rtl"] .sec--hero::before {
  transform: rotate(45deg);
}

[dir="rtl"] .sec--hero::after {
  transform: rotate(-45deg);
}

.hero__title {
  font-size: clamp(2.3rem, 1.5rem + 3.8vw, 4.1rem);
  line-height: 1.12;
}

.hero__badge {
  background: var(--color-primary);
  color: #1c1712;
  border: 2px solid #1c1712;
  border-radius: 6px;
  padding: 0.08em 0.45em;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(28, 23, 18, 0.2);
}

.hero__point {
  background: var(--color-panel);
  border: 2px solid #1c1712;
  border-radius: 8px;
  padding: 0.5rem 0.95rem;
  box-shadow: 3px 3px 0 rgba(28, 23, 18, 0.14);
}

.hero__media {
  position: relative;
}

.hero__media img {
  border: 2px solid #1c1712;
  border-radius: var(--radius-card);
  box-shadow: 6px 6px 0 rgba(28, 23, 18, 0.2);
  transform: rotate(1.2deg);
}

[dir="rtl"] .hero__media img {
  transform: rotate(-1.2deg);
}

.hero__media::before {
  content: "";
  position: absolute;
  inset-block-start: -0.7rem;
  inset-inline-start: 8%;
  inline-size: 5rem;
  block-size: 1.5rem;
  background: rgba(242, 92, 25, 0.9);
  transform: rotate(-4deg);
  box-shadow: 0 1px 3px rgba(28, 23, 18, 0.3);
  z-index: 1;
}

[dir="rtl"] .hero__media::before {
  transform: rotate(4deg);
}

/* ---------- sample badge: demo content stays visibly demo ---------- */

.pill--sample {
  color: #1c1712;
  border: 1.5px dashed #1c1712;
  background: #ffd9c4;
  font-weight: 700;
}

.sec--clients .pill--sample {
  background: #1c1712;
  color: #fff7ec;
  border: 1.5px dashed rgba(255, 247, 236, 0.75);
}

.sec--clients .sec__sample {
  text-align: center;
  margin-block-start: 0.6rem;
}

/* ---------- services: ink-bordered sticker cards ---------- */

.services--grid .service {
  background: var(--color-panel);
  border: 2px solid #1c1712;
  border-radius: var(--radius-card);
  box-shadow: 4px 4px 0 rgba(28, 23, 18, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.services--grid .service:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(28, 23, 18, 0.2);
}

.service__icon {
  border: 2px solid #1c1712;
  background: var(--color-panel);
}

/* ---------- clients: orange tape marquee ---------- */

.sec--clients .shell {
  max-inline-size: 100%;
  padding-inline: 0;
}

.sec--clients .sec__head {
  padding-inline: var(--gutter);
}

.clients__track {
  display: flex;
  inline-size: max-content;
  margin-block-start: var(--gap);
  animation: clients-marquee 30s linear infinite;
}

[dir="rtl"] .clients__track {
  animation-name: clients-marquee-rtl;
}

@keyframes clients-marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes clients-marquee-rtl {
  to {
    transform: translateX(50%);
  }
}

.clients__track .clients__list {
  display: flex;
  align-items: center;
  gap: 3.25rem;
  padding-inline-end: 3.25rem;
  margin: 0;
}

.sec--clients .clients__item {
  flex: 0 0 10rem;
  inline-size: 10rem;
  block-size: 7rem;
  background: #fffdf4;
  border: 2px solid #1c1712;
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 3px 3px 0 rgba(28, 23, 18, 0.85);
  transition: transform 0.18s ease;
}

.sec--clients .clients__item:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
}

.sec--clients .clients__logo {
  inline-size: 100%;
  max-inline-size: 8.5rem;
  block-size: 4.25rem;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.sec--clients .clients__name {
  color: #1c1712;
  font-size: var(--text-lg);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .clients__track {
    animation: none;
    inline-size: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .clients__track .clients__list[aria-hidden="true"] {
    display: none;
  }

  .clients__track .clients__list {
    padding-inline-end: 0;
    gap: 1.5rem;
  }
}

/* ---------- gallery: framed prints ---------- */

.gallery__item {
  border: 2px solid #1c1712;
  background: var(--color-panel);
  box-shadow: 4px 4px 0 rgba(28, 23, 18, 0.15);
}

.gallery__img {
  transition: transform 0.25s ease;
}

.gallery__link:hover .gallery__img,
.gallery__link:focus-visible .gallery__img {
  opacity: 1;
  transform: scale(1.03);
}

.gallery__caption {
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- videos: sticker cards ---------- */

.video-card {
  border: 2px solid #1c1712;
  background: var(--color-panel);
  box-shadow: 4px 4px 0 rgba(28, 23, 18, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(28, 23, 18, 0.2);
}

.video-card:hover .video-card__title {
  color: var(--accent-text, var(--color-primary));
}

/* ---------- projects: portfolio cards ---------- */

.project-card {
  border: 2px solid #1c1712;
  box-shadow: 5px 5px 0 rgba(28, 23, 18, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
  border-color: var(--color-primary);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(28, 23, 18, 0.22);
}

.project-card__media {
  border-block-end: 2px solid #1c1712;
  transition: transform 0.25s ease;
}

.project-card:hover .project-card__media {
  transform: scale(1.03);
}

.project-card__result {
  background: rgba(27, 36, 54, 0.08);
  border: 1.5px dashed rgba(27, 36, 54, 0.4);
}

/* ---------- about: numbered chips ---------- */

.about__point {
  background: var(--color-panel);
  border: 2px solid #1c1712;
  border-radius: 8px;
  padding: 0.6rem 0.95rem;
  box-shadow: 3px 3px 0 rgba(28, 23, 18, 0.12);
}

.about__mark {
  background: var(--color-primary);
  color: #1c1712;
  border: 2px solid #1c1712;
  font-weight: 800;
}

/* ---------- stats: shipping label on navy ---------- */

.stats__list {
  border: 2px dashed rgba(247, 242, 230, 0.45);
  border-radius: 14px;
  padding: var(--gap);
}

.sec--stats .stats__figure {
  background-image: linear-gradient(90deg, #ffab73, #ff8a4a);
}

.stats__item {
  padding: 0.5rem 0.25rem;
}

/* ---------- generic cards ---------- */

.card {
  border: 2px solid #1c1712;
  box-shadow: 4px 4px 0 rgba(28, 23, 18, 0.14);
}

.faq__item {
  border: 2px solid #1c1712;
}

/* ---------- contact: details panel on navy ---------- */

.contact__details {
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.contact__dt {
  margin-block-start: 0.65rem;
}

.contact__dt:first-of-type {
  margin-block-start: 0;
}

/* ---------- inputs: paper fields with ink borders ---------- */

body.site .input {
  background: #fffdf4;
  border: 2px solid #1c1712;
  color: #1c1712;
}

body.site .input:focus {
  border-color: var(--color-primary);
  box-shadow: 3px 3px 0 rgba(242, 92, 25, 0.35);
}

/* ---------- footer: navy with tape seam ---------- */

.site-footer {
  --color-text: #f7f2e6;
  --color-muted: #9aa6bd;
  --color-border: rgba(247, 242, 230, 0.2);
  --accent-text: #ff9c57;
  background: #1b2436;
  border-block-start: 4px solid var(--color-primary);
  margin-block-start: 0;
  color: #f7f2e6;
}

.site-footer__copy {
  color: #96a2b8;
}

/* ---------- inner page headings ---------- */

.page-head {
  border-block-end: 2px dashed rgba(28, 23, 18, 0.3);
  margin-block-end: var(--gap);
}

/* ------------------------------------------------- section backgrounds ---- */
/* Chosen per section in the editor (settings > bg). Placed last so the choice
   wins over the type's own background. */

.sec--bg-light {
  background: var(--color-panel);
}

.sec--bg-tint {
  background: var(--color-bg);
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-bg));
}

/* Every dark plate shares one set of light-on-dark tokens, so choosing a
   background also flips borders, panels and muted text with it. */
.sec--bg-navy,
.sec--bg-dark,
.sec--bg-slate,
.sec--bg-forest,
.sec--bg-plum,
.sec--bg-ink {
  color: #f7f2e6;
  --color-text: #f7f2e6;
  --color-muted: #9aa6bd;
  --color-border: rgba(247, 242, 230, 0.22);
  --color-panel: #232e45;
  --accent-text: #ff9c57;
  --color-error: #ff9d94;
  /* The stamp's hard shadow is ink, so on a navy plate it has to turn over. */
  --btn-shadow: rgba(247, 242, 230, 0.32);
  --btn-soft-shadow: rgba(247, 242, 230, 0.18);
  --cut-line: rgba(247, 242, 230, 0.35);
  --heading-gradient: linear-gradient(90deg, #f7f2e6, #f7f2e6);
}

.sec--bg-navy {
  background: #1b2436;
}

.sec--bg-dark {
  background: #10151f;
}

.sec--bg-peach {
  background: color-mix(in srgb, var(--color-primary) 13%, var(--color-bg));
}

.sec--bg-aqua {
  background: color-mix(in srgb, var(--color-secondary) 11%, var(--color-bg));
}

.sec--bg-indigo {
  background: color-mix(in srgb, var(--color-accent) 11%, var(--color-bg));
}

.sec--bg-rose {
  background: color-mix(in srgb, var(--color-primary) 6%, color-mix(in srgb, var(--color-secondary) 8%, var(--color-bg)));
}

.sec--bg-gradient {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary) 15%, var(--color-bg)),
    color-mix(in srgb, var(--color-secondary) 12%, var(--color-bg)));
}

/* The newer tints are literal hues rather than identity colours, because an
   editor choosing "sage" expects green even on a page whose brand is orange.
   Each stays light enough to keep the dark body text readable. */
.sec--bg-butter {
  background: color-mix(in srgb, #e0a52c 14%, var(--color-bg));
}

.sec--bg-sage {
  background: color-mix(in srgb, #4f7a52 12%, var(--color-bg));
}

.sec--bg-clay {
  background: color-mix(in srgb, #a8552f 13%, var(--color-bg));
}

.sec--bg-lilac {
  background: color-mix(in srgb, #6b5aa8 12%, var(--color-bg));
}

.sec--bg-mist {
  background: color-mix(in srgb, #5b7d99 13%, var(--color-bg));
}

.sec--bg-sand {
  background: color-mix(in srgb, #c9a06a 20%, var(--color-bg));
}

/* Dark plates only set the colour; the shared light-on-dark rule above is what
   carries the text and border tokens. */
.sec--bg-slate {
  background: #2c3a4d;
}

.sec--bg-forest {
  background: #16352c;
}

.sec--bg-plum {
  background: #322038;
}

.sec--bg-ink {
  background: #16181d;
}

body.site .sec.sec--spacing-compact {
  padding-block: clamp(2rem, 4vw, 3rem);
}

body.site .sec.sec--spacing-loose {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.sec--width-narrow .shell {
  inline-size: min(100% - (var(--gutter) * 2), 50rem);
}

.sec--width-wide .shell {
  inline-size: min(100% - (var(--gutter) * 2), 88rem);
}

.sec--heading-start .sec__head,
.sec--heading-start .text__inner {
  margin-inline: 0;
  justify-items: start;
  text-align: start;
}

.sec--heading-center .sec__head,
.sec--heading-center .text__inner {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.sec--heading-center .text__inner .rich {
  text-align: start;
}

.sec--heading-center .sec__actions {
  text-align: center;
}

body.site .sec.sec--with-divider {
  border-block-start: 1px solid var(--color-border);
}

/* ---------- animated collage artwork: quiet edges, clear content ---------- */

.sec--has-collage {
  --collage-ink: #1c1712;
  --collage-paper: #fffdf4;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.sec--has-collage.sec--bg-navy,
.sec--has-collage.sec--bg-dark,
.sec--has-collage.sec--bg-slate,
.sec--has-collage.sec--bg-forest,
.sec--has-collage.sec--bg-plum,
.sec--has-collage.sec--bg-ink,
.sec--has-collage.sec--stats,
.sec--has-collage.sec--contact,
.sec--has-collage.sec--cta {
  --collage-ink: #f7f2e6;
  --collage-paper: #232e45;
}

.section-collage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.section-collage__piece {
  --collage-rotate: 0deg;
  position: absolute;
  inline-size: clamp(5.5rem, 10vw, 10.5rem);
  color: var(--collage-ink);
  opacity: 0.24;
  transform: rotate(var(--collage-rotate));
  transform-origin: center;
}

.section-collage__piece svg {
  inline-size: 100%;
  overflow: visible;
}

.section-collage__piece--paper {
  padding: 0.65rem;
  background: var(--collage-paper);
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 5px 5px 0 color-mix(in srgb, currentColor 24%, transparent);
}

.section-collage__piece--paper::before {
  content: "";
  position: absolute;
  inset-block-start: -0.55rem;
  inset-inline-start: 50%;
  inline-size: 42%;
  block-size: 1rem;
  background: color-mix(in srgb, var(--color-primary) 80%, transparent);
  transform: translateX(-50%) rotate(-3deg);
}

[dir="rtl"] .section-collage__piece--paper::before {
  transform: translateX(50%) rotate(3deg);
}

.section-collage__piece--a {
  --collage-rotate: -8deg;
  inset-block-start: 8%;
  inset-inline-start: -1.5%;
}

.section-collage__piece--b {
  --collage-rotate: 8deg;
  inset-block-start: 6%;
  inset-inline-end: 2%;
}

.section-collage__piece--c {
  --collage-rotate: 5deg;
  inset-block-end: 6%;
  inset-inline-start: 4%;
}

.section-collage__piece--d {
  --collage-rotate: -7deg;
  inset-block-end: 8%;
  inset-inline-end: -0.5%;
}

.section-collage__fill {
  fill: var(--color-primary);
}

.section-collage__secondary {
  fill: var(--color-secondary);
}

.section-collage__paper-fill {
  fill: var(--collage-paper);
}

.section-collage__record {
  fill: var(--color-primary);
}

/* ---- motion styles: one picker choice, one class, one set of keyframes ---- */
/* `float` is what every section already drifted with, so it keeps the original
   timings and stays the default for a block saved before this control existed. */

.section-collage--motion-float.is-animated .section-collage__piece--a {
  animation: collage-float-a 11s ease-in-out infinite;
}

.section-collage--motion-float.is-animated .section-collage__piece--b {
  animation: collage-float-b 13s ease-in-out infinite;
}

.section-collage--motion-float.is-animated .section-collage__piece--c {
  animation: collage-float-c 15s ease-in-out infinite;
}

.section-collage--motion-float.is-animated .section-collage__piece--d {
  animation: collage-float-d 12s ease-in-out infinite;
}

/* Side to side, as if the page were a shelf someone nudged. */
.section-collage--motion-sway.is-animated .section-collage__piece {
  animation: collage-sway 9s ease-in-out infinite;
}

.section-collage--motion-sway.is-animated .section-collage__piece--b {
  animation-duration: 12s;
  animation-delay: -3s;
}

.section-collage--motion-sway.is-animated .section-collage__piece--c {
  animation-duration: 11s;
  animation-delay: -5s;
}

.section-collage--motion-sway.is-animated .section-collage__piece--d {
  animation-duration: 14s;
  animation-delay: -2s;
}

/* A longer lift than float: the pieces climb the section and settle back. */
.section-collage--motion-rise.is-animated .section-collage__piece {
  animation: collage-rise 16s ease-in-out infinite;
}

.section-collage--motion-rise.is-animated .section-collage__piece--b {
  animation-duration: 19s;
  animation-delay: -6s;
}

.section-collage--motion-rise.is-animated .section-collage__piece--c {
  animation-duration: 22s;
  animation-delay: -11s;
}

.section-collage--motion-rise.is-animated .section-collage__piece--d {
  animation-duration: 18s;
  animation-delay: -4s;
}

/* Slow full turns. Alternating pieces run backwards so the collage never reads
   as one rigid plate. */
.section-collage--motion-spin.is-animated .section-collage__piece {
  animation: collage-spin 34s linear infinite;
}

.section-collage--motion-spin.is-animated .section-collage__piece--b,
.section-collage--motion-spin.is-animated .section-collage__piece--d {
  animation-name: collage-spin-back;
  animation-duration: 42s;
}

.section-collage--motion-spin.is-animated .section-collage__piece--c {
  animation-duration: 38s;
  animation-delay: -8s;
}

/* Breathing rather than travelling: the artwork swells and settles in place. */
.section-collage--motion-breathe.is-animated .section-collage__piece {
  animation: collage-breathe 8s ease-in-out infinite;
}

.section-collage--motion-breathe.is-animated .section-collage__piece--b {
  animation-duration: 10s;
  animation-delay: -2s;
}

.section-collage--motion-breathe.is-animated .section-collage__piece--c {
  animation-duration: 12s;
  animation-delay: -5s;
}

.section-collage--motion-breathe.is-animated .section-collage__piece--d {
  animation-duration: 9s;
  animation-delay: -3s;
}

/* Marks inside the artwork animate the same way whatever the pieces are doing. */
.section-collage.is-animated .section-collage__draw {
  stroke-dasharray: 12 8;
  animation: collage-draw 9s linear infinite;
}

.section-collage.is-animated .section-collage__record {
  transform-box: fill-box;
  transform-origin: center;
  animation: collage-pulse 4s ease-in-out infinite;
}

.sec--clients .section-collage__piece {
  opacity: 0.14;
}

@keyframes collage-float-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--collage-rotate)); }
  50% { transform: translate3d(0, -14px, 0) rotate(calc(var(--collage-rotate) + 3deg)); }
}

@keyframes collage-float-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--collage-rotate)); }
  50% { transform: translate3d(-10px, 12px, 0) rotate(calc(var(--collage-rotate) - 4deg)); }
}

@keyframes collage-float-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--collage-rotate)); }
  50% { transform: translate3d(12px, -8px, 0) rotate(calc(var(--collage-rotate) - 3deg)); }
}

@keyframes collage-float-d {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--collage-rotate)); }
  50% { transform: translate3d(-8px, -12px, 0) rotate(calc(var(--collage-rotate) + 4deg)); }
}

@keyframes collage-draw {
  to { stroke-dashoffset: -160; }
}

@keyframes collage-pulse {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes collage-sway {
  0%, 100% { transform: translate3d(-15px, 0, 0) rotate(calc(var(--collage-rotate) - 3deg)); }
  50% { transform: translate3d(15px, 0, 0) rotate(calc(var(--collage-rotate) + 3deg)); }
}

@keyframes collage-rise {
  0%, 100% { transform: translate3d(-6px, 20px, 0) rotate(var(--collage-rotate)); }
  50% { transform: translate3d(6px, -26px, 0) rotate(calc(var(--collage-rotate) + 2deg)); }
}

@keyframes collage-spin {
  from { transform: translate3d(0, 0, 0) rotate(var(--collage-rotate)); }
  to { transform: translate3d(0, 0, 0) rotate(calc(var(--collage-rotate) + 360deg)); }
}

@keyframes collage-spin-back {
  from { transform: translate3d(0, 0, 0) rotate(var(--collage-rotate)); }
  to { transform: translate3d(0, 0, 0) rotate(calc(var(--collage-rotate) - 360deg)); }
}

@keyframes collage-breathe {
  0%, 100% { transform: scale(0.93) rotate(var(--collage-rotate)); }
  50% { transform: scale(1.09) rotate(calc(var(--collage-rotate) + 2deg)); }
}

@media (max-width: 40rem) {
  .section-collage__piece {
    inline-size: 5rem;
    opacity: 0.14;
  }

  .section-collage__piece--paper {
    padding: 0.4rem;
    box-shadow: 3px 3px 0 color-mix(in srgb, currentColor 20%, transparent);
  }

  .section-collage__piece--a,
  .section-collage__piece--c {
    inset-inline-start: -0.75rem;
  }

  .section-collage__piece--b,
  .section-collage__piece--d {
    inset-inline-end: -0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-collage.is-animated .section-collage__piece,
  .section-collage.is-animated .section-collage__draw,
  .section-collage.is-animated .section-collage__record {
    animation: none !important;
  }
}

/* ================================================================ 2026-11 additions
 * Controls the section editor exposes per cell, per language and per button.
 * Every value below arrives from a validated enum in SectionRegistry, so the
 * attribute or class name is always one of a known list of words.
 */

/* ------------------------------------------------------------------ one cell
 * A grid is described by data-cols on the list; a single cell can then widen
 * itself with data-span or align its own words with data-align. Scoping both
 * rules to a child of a data-cols container keeps them clear of the elements
 * that carry the same attribute names for their own layout settings.
 */

[data-cols] > [data-span="2"] { grid-column: span 2; }
[data-cols] > [data-span="3"] { grid-column: span 3; }
[data-cols] > [data-span="4"] { grid-column: span 4; }

[data-cols] > [data-align="start"] { text-align: start; justify-items: start; }
[data-cols] > [data-align="center"] { text-align: center; justify-items: center; }
[data-cols] > [data-align="end"] { text-align: end; justify-items: end; }

[data-cols] > [data-align="center"] .stats__figure,
[data-cols] > [data-align="end"] .stats__figure {
  justify-content: center;
}

[data-cols] > [data-align="end"] .stats__figure { justify-content: flex-end; }

/* One row per figure is the point of a stacked narrow screen; a cell that
   asked for two columns would otherwise leave a hole in the grid. */
@media (max-width: 59.99rem) {
  [data-cols] > [data-span] { grid-column: auto; }
}

/* ---------------------------------------------------------------- text align */

.text--right .text__inner {
  margin-inline: 0 0;
  text-align: right;
}

.text--right .sec__eyebrow,
.text--right .sec__subtitle {
  text-align: right;
}

.sec--heading-end .sec__head,
.sec--heading-end .text__inner {
  margin-inline: 0;
  justify-items: end;
  text-align: end;
}

.sec--heading-end .sec__actions,
.sec--heading-center .sec__actions {
  text-align: inherit;
}

.sec--body-start .rich,
.sec--body-start .sec__subtitle {
  text-align: start;
}

.sec--body-center .rich,
.sec--body-center .sec__subtitle {
  text-align: center;
}

.sec--body-end .rich,
.sec--body-end .sec__subtitle {
  text-align: end;
}

/* ------------------------------------------------------------------ buttons
 * The section may carry its own button colours as --sec-btn-bg / --sec-btn-fg
 * (served by /theme.css, keyed by the section id, because the CSP forbids an
 * inline style attribute). The preset classes are the same decision written as
 * a name rather than a hex value.
 */

.sec--btn-solid .btn {
  background-color: var(--sec-btn-bg, var(--color-primary));
  background-image: var(--sec-btn-image, var(--brand-gradient));
  border-color: transparent;
  color: var(--sec-btn-fg, var(--color-bg));
}

.sec--btn-outline .btn {
  background-color: var(--sec-btn-bg, transparent);
  background-image: none;
  border-color: var(--color-primary);
  color: var(--sec-btn-fg, var(--color-primary));
}

.sec--btn-light .btn {
  background-color: var(--sec-btn-bg, var(--color-bg));
  background-image: none;
  border-color: var(--color-border);
  color: var(--sec-btn-fg, var(--color-text));
}

.sec--btn-dark .btn {
  background-color: var(--sec-btn-bg, var(--color-text));
  background-image: none;
  border-color: transparent;
  color: var(--sec-btn-fg, var(--color-bg));
}

.sec--btn-link .btn {
  background: none;
  border-color: transparent;
  color: var(--sec-btn-fg, var(--color-primary));
  padding-inline: 0;
}

.sec--btn-solid .btn:hover,
.sec--btn-dark .btn:hover,
.sec--btn-light .btn:hover,
.sec--btn-outline .btn:hover,
.sec--btn-link .btn:hover {
  color: var(--sec-btn-fg, var(--color-text));
}

/* ---------------------------------------------------------------- contact side */

@media (min-width: 60rem) {
  .contact__split[data-side="end"] .contact__aside { order: 2; }
  .contact__split[data-side="end"] .contact__form { order: 1; }
}

/* ------------------------------------------------------------------- pricing */

.pricing__grid {
  display: grid;
  gap: var(--gap);
  align-items: stretch;
}

.pricing__card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card, 14px);
  background: var(--color-panel);
}

.pricing__card--highlight {
  border-color: var(--color-primary);
  box-shadow: 0 10px 26px rgb(0 0 0 / 12%);
}

.pricing__name {
  margin: 0;
  font-size: var(--text-lg);
}

.pricing__price {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--accent-text);
  line-height: 1.2;
}

.pricing__period {
  margin-inline-start: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
}

.pricing__currency {
  margin-inline-start: 0.25rem;
  font-size: var(--text-sm);
  font-weight: 700;
}

.pricing__body {
  margin: 0;
  color: var(--color-muted);
}

.pricing__foot {
  margin: 0;
}

.pricing__note {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.pricing--compare .pricing__grid {
  gap: 0;
}

.pricing--compare .pricing__card {
  border-radius: 0;
  border-inline-width: 0;
  border-block: 0;
}

.pricing--compare .pricing__card:first-child {
  border-inline-start-width: 1px;
  border-start-start-radius: var(--radius-card, 14px);
  border-end-start-radius: var(--radius-card, 14px);
}

.pricing--compare .pricing__card:last-child {
  border-inline-end-width: 1px;
  border-start-end-radius: var(--radius-card, 14px);
  border-end-end-radius: var(--radius-card, 14px);
}

@media (min-width: 60rem) {
  .pricing--compare .pricing__card {
    border-inline-width: 1px;
    border-inline-start-width: 0;
  }

  .pricing--compare .pricing__card:first-child {
    border-inline-start-width: 1px;
  }
}

/* ----------------------------------------------------------- spec line lists */

/* One line per feature: a mark drawn in CSS, the words, and an optional value.
   Readers get the state as a word instead of the glyph, so the mark is hidden
   from them and the grid never spends a column on it. */
.pricing__specs,
.price-card__specs {
  --spec-yes: #1f7a4d;
  --spec-no: #b3261e;
  display: grid;
  gap: 0;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

/* price-card lines up its own children to the start, so the list has to be
   told to use the whole card or it shrinks to its longest word. */
.price-card__specs {
  align-self: stretch;
}

.pricing__specs__item,
.price-card__specs__item {
  display: grid;
  grid-template-columns: 1.5em minmax(0, 1fr) auto;
  gap: 0.5em;
  align-items: baseline;
  padding-block: 0.4em;
  border-block-end: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.pricing__specs__item:last-child,
.price-card__specs__item:last-child {
  border-block-end: 0;
}

.pricing__specs__mark::before,
.price-card__specs__mark::before {
  content: '✓';
  color: var(--spec-yes);
  font-weight: 800;
}

.pricing__specs__item--no .pricing__specs__mark::before,
.price-card__specs__item--no .price-card__specs__mark::before {
  content: '✕';
  color: var(--spec-no);
}

.pricing__specs__item--value .pricing__specs__mark::before,
.price-card__specs__item--value .price-card__specs__mark::before {
  content: '•';
  color: var(--color-muted);
}

.pricing__specs__item--no .pricing__specs__label,
.price-card__specs__item--no .price-card__specs__label {
  color: var(--color-muted);
}

.pricing__specs__value,
.price-card__specs__value {
  font-weight: 700;
}

/* --------------------------------------------------------------------- steps */
.steps__list {
  display: grid;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.2rem;
  block-size: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--accent-text, var(--color-primary));
  color: var(--accent-text, var(--color-primary));
  font-weight: 800;
  font-size: var(--text-sm);
}

.step__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.step__title {
  margin: 0;
  font-size: var(--text-lg);
}

.step__body {
  margin: 0;
  color: var(--color-muted);
}

.steps__actions {
  margin: 1.25rem 0 0;
}

/* Timeline: the number sits on a rail the entries hang off, and the rail is the
   only column, whatever the column setting says. */
.steps--timeline .steps__list[data-cols] {
  grid-template-columns: minmax(0, 1fr);
}

.steps--timeline .step {
  position: relative;
  padding-inline-start: 3rem;
}

.steps--timeline .step__badge {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
}

.steps--timeline .step:not(:last-child) {
  padding-block-end: 0.6rem;
}

.steps--timeline.has-connector .step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.05rem;
  inset-block: 2.4rem 0;
  inline-size: 1px;
  background: var(--color-border);
}

/* In the grid layout the connector joins a step to the next one in the same row,
   so it only exists once there is a row of more than one step to join. */
@media (min-width: 60rem) {
  .steps--numbered.has-connector .step {
    position: relative;
  }

  .steps--numbered.has-connector .steps__list[data-cols="2"] .step:nth-child(odd):not(:last-child)::after,
  .steps--numbered.has-connector .steps__list[data-cols="3"] .step:not(:nth-child(3n)):not(:last-child)::after,
  .steps--numbered.has-connector .steps__list[data-cols="4"] .step:not(:nth-child(4n)):not(:last-child)::after {
    content: "";
    position: absolute;
    inset-block-start: 1.05rem;
    inset-inline-end: calc(var(--gap) * -1);
    inline-size: var(--gap);
    block-size: 1px;
    background: var(--color-border);
  }
}

/* ---------------------------------------------------------------------- team */

.team__list {
  display: grid;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.person {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.15rem;
}

.person__media {
  display: block;
}

.person__photo {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius-card) - 4px);
}

/* No photo is a normal state, not a broken one: the initials keep the grid
   square so a card without a picture is the same height as one with it. */
.person__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-card) - 4px);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--accent-text, var(--color-primary));
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
}

.person__name {
  margin: 0;
  font-size: var(--text-lg);
}

.person__name a {
  color: inherit;
  text-decoration: none;
}

.person__name a:hover,
.person__name a:focus-visible {
  text-decoration: underline;
}

.person__role {
  margin: 0;
  color: var(--accent-text, var(--color-primary));
  font-size: var(--text-sm);
}

.person__bio {
  margin: 0;
  color: var(--color-muted);
}

/* List: the photo shrinks to a portrait at the start of the row and the words
   take the rest, which is what a team page reads like when there are many. */
.team--list .team__list {
  grid-template-columns: minmax(0, 1fr);
}

.team--list .person {
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.team--list .person__photo,
.team--list .person__initials {
  aspect-ratio: 1 / 1;
}

.team__actions {
  margin: 1.25rem 0 0;
}

@media (max-width: 30rem) {
  .team--list .person {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------- sticky bar */

.sticky-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 40;
  pointer-events: none;
}

.sticky-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  inline-size: min(100% - (var(--gutter) * 2), 72rem);
  margin-inline: auto;
  margin-block-end: 0.85rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card, 14px);
  background: var(--color-panel);
  box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* With JavaScript the bar waits for the visitor to scroll to it; without
   JavaScript it is simply there, because hiding content nobody can reveal is
   not an acceptable fallback. */
html.js .sticky-bar__inner {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
}

html.js .sticky-bar.is-visible .sticky-bar__inner {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sticky-bar--bubble .sticky-bar__inner {
  justify-content: center;
  border-radius: 999px;
  inline-size: auto;
  padding-inline: 1.4rem;
}

.sticky-bar__text {
  display: grid;
  gap: 0.15rem;
  margin: 0;
}

.sticky-bar__title {
  font-weight: 800;
}

.sticky-bar__subtitle {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.sticky-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.sticky-bar__close {
  inline-size: 2rem;
  block-size: 2rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 40rem) {
  .sticky-bar.is-mobile-hidden {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-bar__inner {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ================================================================ cards widget
 * The general-purpose block: eight cards, six shapes, eight backgrounds.
 *
 * The shape (raised, outline, filled, tape, stripe, fold) only ever touches the
 * frame — border, shadow, corner, tape. The tone only ever sets --card-hue, and
 * the background is mixed from that hue with the panel colour. The two are
 * therefore free to combine, and every colour still follows the identity tokens
 * served by /theme.css instead of a hard-coded hex.
 */

.card {
  --card-hue: var(--color-primary);
  --card-mix: 10%;
  --card-bg: color-mix(in srgb, var(--card-hue) var(--card-mix), var(--color-panel));
  --card-fg: var(--color-text);
  --card-muted: var(--color-muted);
  position: relative;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card, 17px);
  background: var(--card-bg);
  color: var(--card-fg);
}

/* the six shapes */

.card--raised {
  border-color: transparent;
  box-shadow: var(--shadow-card, 0 10px 24px rgba(0, 0, 0, 0.12));
}

.card--outline {
  --card-mix: 0%;
  border: 2px solid var(--card-hue);
  box-shadow: none;
}

.card--filled {
  --card-mix: 14%;
  border-color: color-mix(in srgb, var(--card-hue) 40%, transparent);
}

.card--tape {
  border-style: solid;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--card-hue) 22%, transparent);
}

.card--tape::before {
  content: "";
  position: absolute;
  inset-block-start: -0.7rem;
  inset-inline-start: 50%;
  inline-size: 38%;
  block-size: 1.4rem;
  background: color-mix(in srgb, var(--card-hue) 62%, transparent);
  border-inline: 1px dashed color-mix(in srgb, var(--card-hue) 85%, transparent);
  transform: translateX(-50%) rotate(-2deg);
}

[dir="rtl"] .card--tape::before {
  transform: translateX(50%) rotate(2deg);
}

.card--stripe {
  border-inline-start-width: 5px;
  border-inline-start-color: var(--card-hue);
}

.card--fold::after {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-end: -1px;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  border-start-end-radius: var(--radius-card, 17px);
  background: linear-gradient(
    225deg,
    color-mix(in srgb, var(--card-hue) 45%, var(--color-panel)) 50%,
    transparent 50.5%
  );
}

[dir="rtl"] .card--fold::after {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--card-hue) 45%, var(--color-panel)) 50%,
    transparent 50.5%
  );
}

/* the eight backgrounds: one hue each, everything else comes from the shape */

.card--tone-panel {
  --card-bg: var(--color-panel);
}

.card--tone-primary {
  --card-hue: var(--color-primary);
}

.card--tone-secondary {
  --card-hue: var(--color-secondary);
}

.card--tone-accent {
  --card-hue: var(--color-accent);
}

.card--tone-mint {
  --card-hue: #1f7a4d;
}

.card--tone-sand {
  --card-hue: #b0803f;
}

.card--tone-blend {
  --card-bg: linear-gradient(
    140deg,
    color-mix(in srgb, var(--color-primary) var(--card-mix), var(--color-panel)),
    color-mix(in srgb, var(--color-secondary) var(--card-mix), var(--color-panel))
  );
}

.card--tone-ink {
  --card-bg: #1b2436;
  --card-fg: #f7f2e6;
  --card-muted: rgba(247, 242, 230, 0.78);
  border-color: rgba(247, 242, 230, 0.2);
  --color-border: rgba(247, 242, 230, 0.2);
}

/* the innards */

.card__media {
  overflow: hidden;
  border-radius: calc(var(--radius-card, 17px) * 0.6);
  background: color-mix(in srgb, var(--card-hue) 12%, var(--color-panel));
}

.card__image {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.cards__list[data-ratio="wide"] .card__media {
  aspect-ratio: 16 / 9;
}

.cards__list[data-ratio="square"] .card__media {
  aspect-ratio: 1;
}

.cards__list[data-ratio="portrait"] .card__media {
  aspect-ratio: 4 / 5;
}

.cards__list[data-ratio="auto"] .card__image {
  block-size: auto;
}

.card__body {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.card__tag {
  margin: 0;
  /* The hue is the card's identity but not automatically an ink: pulled 38%
     toward the band's own colour it stays the same family and clears AA. */
  color: color-mix(in srgb, var(--card-hue) 62%, var(--color-text));
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card--tone-ink .card__tag {
  color: color-mix(in srgb, var(--card-hue) 60%, #f7f2e6);
}

.card__title {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.35;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover {
  text-decoration: underline;
}

.card__text {
  margin: 0;
  color: var(--card-muted);
}

.card__text > :last-child {
  margin-block-end: 0;
}

.card__actions {
  margin: 0.25rem 0 0;
}

.cards__actions {
  margin: var(--gap) 0 0;
}

/* the four layouts */

.cards__list {
  display: grid;
  gap: var(--gap);
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Same height across one row, with each card's own button at its foot. */
.cards.is-equal .cards__list {
  align-items: stretch;
}

.cards.is-equal .card {
  grid-template-rows: auto minmax(0, 1fr);
}

.cards.is-equal .card__body {
  display: flex;
  flex-direction: column;
}

.cards.is-equal .card__actions {
  margin-block-start: auto;
}

/* First card wide: the one thing the editor meant to stand out. */
.cards--featured .cards__list > .card:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 60rem) {
  .cards--featured .cards__list > .card:first-child {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--gap-lg);
  }

  .cards--featured .cards__list > .card:first-child .card__title {
    font-size: var(--text-xl);
  }
}

/* One card per row, picture beside words. The column setting is not used here. */
.cards--list .cards__list[data-cols] {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48rem) {
  .cards--list .card {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    align-items: center;
  }
}

/* Words over the picture, for a band of work that speaks for itself. */
.cards--overlay .card {
  --card-fg: #f7f2e6;
  --card-muted: rgba(247, 242, 230, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-block-size: 20rem;
  padding: 1.25rem;
  isolation: isolate;
  overflow: hidden;
  color: var(--card-fg);
}

/* The frame is the whole card here, so the scrim goes on the media box and the
   corner fold keeps its own pseudo-element. */
.cards--overlay .card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #10151f;
}

.cards--overlay .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0) 35%, rgba(11, 14, 20, 0.78));
}

.card:hover {
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------- compare */

/* Before/after. The wipe crops the before picture to a slice whose width the
   script sets as --cut, counted from the reading-start edge, so the control
   mirrors in Arabic with no [dir] rule.

   The frame is a size container: the cropped layer has to stay as wide as the
   whole frame, not as wide as the slice showing it, and 100cqw is the only way
   to say that without measuring in script. */

.compare__list {
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare__item {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.compare__frame {
  --compare-thumb: 1.6rem;

  position: relative;
  container-type: inline-size;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}

.compare__half {
  display: block;
}

.compare__img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* Nothing that only makes sense with the wipe exists without it: the two
   pictures simply follow each other down the page. */
.compare__divider,
.compare__ctl,
.compare__tag {
  display: none;
}

.compare__frame.is-live .compare__tag,
.compare--side .compare__tag {
  display: inline-block;
}

.compare__frame.is-live .compare__half--before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  /* The same expression as the divider below, on purpose: a custom property
     holding it would be measured against the frame's parent, not the frame. */
  inline-size: calc((var(--compare-thumb) / 2) + (100cqw - var(--compare-thumb)) * var(--cut, 0.5));
  overflow: hidden;
}

.compare__frame.is-live .compare__half--before .compare__img {
  inline-size: 100cqw;
  /* The picture spans the whole frame and the half clips it; the global
     img { max-inline-size: 100% } would otherwise shrink it back to the slice. */
  max-inline-size: none;
  block-size: 100%;
  object-fit: cover;
}

.compare__frame.is-live .compare__divider {
  display: block;
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc((var(--compare-thumb) / 2) + (100cqw - var(--compare-thumb)) * var(--cut, 0.5));
  inline-size: 2px;
  margin-inline-start: -1px;
  background: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-border);
  pointer-events: none;
}

.compare__frame.is-live .compare__ctl {
  display: block;
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding-block: 0.7rem;
}

.compare__range {
  inline-size: 100%;
  block-size: var(--compare-thumb);
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.compare__range::-webkit-slider-runnable-track {
  block-size: var(--compare-thumb);
  background: transparent;
}

.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  inline-size: var(--compare-thumb);
  block-size: var(--compare-thumb);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-panel);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.compare__range::-moz-range-track {
  block-size: var(--compare-thumb);
  background: transparent;
}

.compare__range::-moz-range-thumb {
  inline-size: var(--compare-thumb);
  block-size: var(--compare-thumb);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-panel);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.compare__range:focus {
  outline: none;
}

.compare__range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.compare__range:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.compare__tag {
  position: absolute;
  inset-block-start: 0.6rem;
  z-index: 2;
  background: var(--color-panel);
  color: var(--color-text);
}

.compare__tag--before {
  inset-inline-start: 0.6rem;
}

.compare__tag--after {
  inset-inline-end: 0.6rem;
}

/* Side by side: two framed halves, each labelled, nothing to drag. */
.compare__pair {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare--side .compare__half {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}

.compare--side .compare__tag {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
}

.compare__caption {
  display: grid;
  gap: 0.3rem;
}

.compare__name {
  margin: 0;
  font-size: var(--text-lg);
}

.compare__text {
  margin: 0;
  color: var(--color-muted);
}

.compare__actions {
  margin-block-start: var(--gap);
}

/* One agreed frame height for the pair, so the wipe never shows a strip of the
   other picture's proportions. */
.compare__list[data-ratio="wide"] .compare__img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.compare__list[data-ratio="square"] .compare__img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.compare__list[data-ratio="portrait"] .compare__img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 24rem) {
  .compare__pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

