/* iffware site stylesheet on the identity tokens. Rules: apps/web/README.md, "Tasarım sistemi" (DesignSystemTests). */

/* Sizes the identity tokens do not have, named once here (DesignSystemTests allow raw rem lengths nowhere else). */
:root {
  --target: calc(var(--space-10) + var(--space-1));
  --measure-form: 40rem;
  --label-column: minmax(8rem, 14rem);
}

/* 1. Base */

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

html {
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--text-base);
  font-weight: var(--font-weight-text);
  line-height: var(--leading-text);
  overflow-wrap: break-word;
}

/* Emphasis is weight, never slant: the identity ships no italic and forbids a synthesised one. */
em,
i,
cite,
dfn,
var,
address {
  font-style: normal;
  font-weight: var(--font-weight-strong);
}

address {
  font-weight: inherit;
}

strong,
b,
th {
  font-weight: var(--font-weight-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-4);
  max-width: var(--layout-text);
  text-wrap: pretty;
}

ul,
ol {
  max-width: var(--layout-text);
  margin: 0 0 var(--space-4);
  padding-inline-start: var(--space-6);
}

li {
  margin-block: var(--space-2);
}

li::marker {
  color: var(--color-mark);
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
}

ul {
  list-style-type: square;
}

/* Links: always underlined in running text (colour alone must not carry the meaning), visible focus comes from tokens.css. */
:where(a) {
  color: var(--color-accent-text);
  text-decoration-line: underline;
  text-decoration-thickness: var(--border-hairline);
  text-underline-offset: 0.2em;
}

:where(a:visited) {
  color: var(--color-muted);
}

:where(a:hover) {
  color: var(--color-accent-hover);
  text-decoration-thickness: var(--border-rule);
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0 var(--space-1);
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}

pre {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  background: var(--color-surface-alt);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
  line-height: var(--leading-ui);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

pre code {
  padding: 0;
  background: none;
}

blockquote {
  margin: 0 0 var(--space-6);
  padding: var(--space-3) var(--space-5);
  max-width: var(--layout-text);
  background: var(--color-surface);
  border-inline-start: var(--border-rule) solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

hr {
  height: 0;
  margin: var(--space-10) 0;
  border: 0;
  border-top: var(--rule-double) var(--color-border-strong);
}

mark {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

details {
  max-width: var(--layout-text);
  margin: 0 0 var(--space-4);
  border-top: var(--border-hairline) solid var(--color-border);
}

summary {
  padding: var(--space-3) 0;
  font-family: var(--font-ui);
  font-weight: var(--font-weight-strong);
  cursor: pointer;
}

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

:target {
  scroll-margin-top: var(--space-6);
}

/* 2. Frame: skip link, header, footer */

.skip-link {
  position: absolute;
  top: calc(-1 * var(--space-24));
  left: var(--space-4);
  z-index: var(--z-overlay);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-rule) solid var(--color-text);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: var(--font-weight-strong);
}

.skip-link:focus {
  top: var(--space-4);
}

/* The page edge: full-bleed bars (the double rules) with the content kept to the page width. */
.site-header,
.site-footer {
  --edge: max(var(--layout-gutter), calc((100% - var(--layout-page)) / 2 + var(--layout-gutter)));
  padding-inline: var(--edge);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand tools"
    "nav nav";
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-4) var(--space-3);
  border-bottom: var(--border-hairline) solid var(--color-inverse-border);
}

.site-header a,
.site-header :is(.nav-list, .language-switch) a,
.site-header .theme-toggle {
  color: inherit;
}

.site-header .theme-toggle,
.site-header .theme-toggle:hover {
  background: transparent;
  border-color: var(--color-inverse-border);
}

/* Header links keep the header's colour on hover. */
.site-header :is(.nav-list, .language-switch) a:is(:hover, :focus-visible, [aria-current="page"]) {
  color: inherit;
  border-bottom-color: var(--color-inverse-accent);
}

.brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--color-text);
  text-decoration: none;
}

.wordmark {
  display: block;
  width: auto;
  height: var(--space-6);
}

/* Wordmark accent bar: a class, not the file's inline style (CSP; WordmarkTests). */
.logo-accent {
  fill: var(--color-mark, currentColor);
}

.site-nav {
  grid-area: nav;
}

.nav-list {
  display: grid;
  /* Three columns, none narrower than its longest word. */
  grid-template-columns: repeat(3, minmax(min-content, 1fr));
  gap: 0 var(--space-4);
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-ui);
  line-height: var(--leading-ui);
}

.nav-list li {
  margin: 0;
}

.nav-list a,
.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding-block: var(--space-1) 0;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: var(--border-rule) solid transparent;
  transition: border-color var(--motion-duration-fast) var(--motion-ease-standard);
}

.nav-list a:hover,
.language-switch a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.nav-list a[aria-current="page"] {
  font-weight: var(--font-weight-strong);
  border-bottom-color: var(--color-accent);
}

.header-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-ui);
}

.language-switch a {
  padding-block: 0;
}

/* The theme button is written for everyone and shown only when theme.js has run (it sets data-js on the html element). */
.theme-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: calc(var(--target) - var(--space-2));
  padding: var(--space-1) var(--space-3);
  background: transparent;
  color: var(--color-text);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  cursor: pointer;
  transition: background-color var(--motion-duration-fast) var(--motion-ease-standard);
}

[data-js] .theme-toggle {
  display: inline-flex;
}

.theme-toggle:hover {
  background: var(--color-surface-alt);
}

/* The state is a shape, not only a colour. */
.theme-toggle::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border: var(--border-rule) solid currentColor;
}

.theme-toggle[aria-pressed="true"]::before {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Header call to action: only where the row has room (the footer always has it). */
.header-tools .header-cta {
  display: none;
  min-height: calc(var(--target) - var(--space-2));
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--layout-page);
  margin-inline: auto;
  padding: var(--space-4) var(--layout-gutter) var(--space-16);
}

main:focus {
  outline: none;
}

.site-footer {
  display: grid;
  gap: var(--space-4) var(--space-8);
  padding-block: var(--space-16) var(--space-10);
  background: var(--color-surface);
  border-top: var(--border-hairline) solid var(--color-border);
  font-family: var(--font-text);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.footer-main {
  display: grid;
  gap: var(--space-8);
}

.footer-name {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-strong);
  color: var(--color-text);
}

.footer-tagline {
  max-width: 36ch;
  margin: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.footer-heading {
  margin: 0 0 var(--space-2);
  font-weight: var(--font-weight-strong);
  color: var(--color-text);
}

.site-footer .nav-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.footer-contact p {
  margin: 0 0 var(--space-2);
}

.footer-contact a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-cta {
  font-weight: var(--font-weight-strong);
}

.footer-base {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: var(--border-hairline) solid var(--color-border);
}

.site-footer .nav-list a {
  color: var(--color-muted);
}

.site-footer .nav-list a:hover {
  color: var(--color-text);
}

.footer-tools,
.legal-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
}

.legal-info {
  font-style: normal;
}

.legal-info p {
  margin: 0 0 var(--space-1);
  max-width: none;
}

.legal-info a {
  color: var(--color-text);
}

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

/* 3. Page: breadcrumb, header, rhythm */

.breadcrumb {
  margin: 0 0 var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "›";
  content: "›" / "";
  margin-inline-end: var(--space-2);
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
}

.page {
  padding-top: var(--space-4);
}

.page-header {
  margin-bottom: var(--space-8);
}

.page-header h1 {
  max-width: 24ch;
  font-size: var(--text-4xl);
}

.page-header .page-meta {
  margin: var(--space-4) 0 0;
}

.page-meta {
  max-width: none;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* The summary under the heading is the lead of the page. */
.page-header + p,
.page-header + .draft-banner + p {
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-ui);
}

.draft-banner {
  max-width: none;
  margin: 0 0 var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-alt);
  border: var(--border-rule) solid var(--color-text);
  font-family: var(--font-ui);
  font-weight: var(--font-weight-strong);
  line-height: var(--leading-ui);
}

.legal-missing {
  padding: 0 var(--space-1);
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: var(--border-hairline) dashed currentColor;
  font-family: var(--font-ui);
  font-size: 0.9em;
}

/* Sections of a page: every h2 of the body opens with the double rule. */
.page > h2,
.reference-line > h2 {
  margin: var(--space-16) 0 var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--border-hairline) solid var(--color-border);
  font-size: var(--text-3xl);
}

.page > h3 {
  margin: var(--space-8) 0 var(--space-2);
  font-size: var(--text-lg);
}

.page > h4 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--text-base);
}

.page-header + h2,
.page-header + p + h2 {
  margin-top: var(--space-10);
}

/* The home page opens bigger; the two bars of the mark above the heading are its only ornament. */
.page-home .page-header h1 {
  max-width: 18ch;
}

.page-home .page-header + p {
  max-width: 44ch;
  font-size: var(--text-lg);
}

/* The ring follows the band's --color-focus. */
:focus-visible {
  outline-color: var(--color-focus);
}

/* Dark bands (identity 3.1,
D-60): the header,
the opening of the home page and its closing call stay dark in both themes. */
.site-header,
.hero,
.band-6,
.page-service .band:last-child {
  --color-focus: var(--color-inverse-text);
  color: var(--color-inverse-text);
  background: var(--color-inverse-bg);
}

.hero {
  border-image: conic-gradient(var(--color-inverse-bg) 0 0) fill 0 / / 0 100vw;
}

main:has(.page-home),
.page-home,
.page-service {
  padding-block: 0;
}

main:has(.page-service) {
  padding-top: 0;
}

/* A service page (D-62) opens like the home page: the trail and the opening on the dark band. */
main:has(.page-service) .breadcrumb {
  --color-focus: var(--color-inverse-text);
  margin: 0;
  padding-top: var(--space-6);
  color: var(--color-inverse-muted);
  background: var(--color-inverse-bg);
  border-image: conic-gradient(var(--color-inverse-bg) 0 0) fill 0 / / 0 100vw;
}

main:has(.page-service) .breadcrumb :is(a, [aria-current]) {
  color: inherit;
}

.page-service .hero {
  padding-block: var(--space-10) var(--space-16);
}

.page-service .hero .page-header h1 {
  max-width: none;
  font-size: var(--text-4xl);
  font-weight: 800;
}

.hero-visual-phone {
  justify-self: center;
  width: min(100%, calc(var(--space-24) * 3));
  padding: var(--space-2);
}

.hero-visual-phone::before {
  content: none;
}

.page-service .section-1 ul {
  display: grid;
  gap: var(--space-4);
  max-width: none;
  padding: 0;
  list-style: none;
}

.page-service .section-1 li {
  margin: 0;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
}

.page-service .section-1 li strong {
  display: block;
  color: var(--color-accent-text);
}

/* Example screens in device frames: a browser window for a wide one, a phone for a tall one. */
.page-service .screen {
  position: relative;
  padding: var(--space-6) var(--space-2) var(--space-2);
  background: var(--color-surface-alt);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
}

.page-service .screen::before {
  content: "";
  position: absolute;
  top: var(--space-2);
  left: var(--space-3);
  width: 3.2em;
  height: 0.7em;
  background: radial-gradient(circle, var(--color-border-strong) 0.3em, transparent 0.32em) 0 0 / 1.1em 100% repeat-x;
}

.page-service .screen-portrait {
  --color-focus: var(--color-inverse-text);
  padding: var(--space-2);
  background: var(--color-inverse-bg);
  border-color: var(--color-inverse-border);
  border-radius: calc(var(--radius-lg) * 2);
}

.page-service .screen-portrait::before {
  content: none;
}

.page-service .screen img {
  border-radius: var(--radius-md);
}

.page-service .band:not(.section-1) ul:not(.screen-list) {
  display: grid;
  gap: var(--space-4);
  max-width: none;
  padding: 0;
  list-style: none;
}

.page-service .band:not(.section-1) ul:not(.screen-list) li {
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-5);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
}

.page-service .band:not(.section-1) ul:not(.screen-list) li::before {
  content: "";
  flex: none;
  width: 0.4em;
  height: 0.8em;
  margin: 0.2em 0.35em 0;
  border: solid var(--color-accent);
  border-width: 0 0.16em 0.16em 0;
  transform: rotate(45deg);
}

.page-service ol {
  display: grid;
  gap: var(--space-6);
  max-width: none;
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.page-service ol li {
  margin: 0;
  padding-top: var(--space-4);
  color: var(--color-muted);
  border-top: var(--border-rule) solid var(--color-accent);
  counter-increment: step;
}

.page-service ol li::before {
  content: "0" counter(step);
  display: block;
  color: var(--color-mark);
  font-family: var(--font-display);
  font-weight: var(--font-weight-strong);
}

.page-service ol li strong {
  display: block;
  margin-block: var(--space-1);
  color: var(--color-text);
}

.page-service h3 {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
}

.page-service .band {
  padding-block: var(--space-10);
}

.page-service .band > h2 {
  margin-bottom: var(--space-6);
}

.hero h1 {
  color: inherit;
}

.hero p,
.band-6 p,
.page-service .band:last-child p {
  color: var(--color-inverse-muted);
}

.hero {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-16) var(--space-20);
}

.hero .page-header {
  margin-bottom: var(--space-6);
}

.hero-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-6);
  padding: var(--space-2) var(--space-4);
  border: var(--border-hairline) solid var(--color-inverse-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
}

.hero-eyebrow::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  background: var(--color-inverse-accent);
  border-radius: var(--radius-full);
}

.hero h1 .accent {
  color: var(--color-inverse-accent);
}

.hero .button:first-child::after {
  content: "→";
  content: "→" / "";
  margin-inline-start: var(--space-2);
}

.hero .button {
  background: var(--color-inverse-accent);
  color: var(--color-on-inverse-accent);
  border-color: var(--color-inverse-accent);
}

.hero .button + .button {
  background: transparent;
  color: var(--color-inverse-text);
  border-color: var(--color-inverse-border);
}

.hero .button:hover {
  background: var(--color-inverse-text);
  color: var(--color-inverse-bg);
}

.page-home .hero .page-header h1 {
  max-width: none;
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
}

/* A browser frame round the panel, a phone over its corner. */
.hero-visual {
  position: relative;
  margin: 0;
  padding: var(--space-8) var(--space-3) var(--space-3);
  background: var(--color-inverse-surface);
  border: var(--border-hairline) solid var(--color-inverse-border);
  border-radius: var(--radius-lg);
}

.hero-visual img,
.card-showcase img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
}

.hero-visual .hero-phone {
  display: none;
}

/* The three dots of a browser window. */
.hero-visual::before {
  content: "";
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  width: 3.8em;
  height: 0.8em;
  background: radial-gradient(circle, var(--color-inverse-border) 0.4em, transparent 0.42em) 0 0 / 1.3em 100% repeat-x;
}

/* Inner pages open on a band of the alternate surface. */
.page:not(.page-home) > .page-header {
  padding-block: var(--space-8);
  border-image: conic-gradient(var(--color-surface-alt) 0 0) fill 0 / / 0 100vw;
}

/* Home bands (D-61, D-67), in the order of the home page: the strip of areas, services, product (pine), how we work, why us,
   and the closing call (a dark box). */
.band {
  padding-block: var(--space-20);
}

.band > :first-child {
  margin-top: 0;
}

.band h2 {
  max-width: 24ch;
  font-size: var(--text-3xl);
}

.band h2 em {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-accent-text);
  font-family: var(--font-text);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: var(--font-weight-strong);
}

.band h2 + p {
  max-width: 48ch;
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.band-lead {
  padding-block: var(--space-6);
  border-bottom: var(--border-hairline) solid var(--color-border);
  border-image: conic-gradient(var(--color-surface) 0 0) fill 0 / / 0 100vw;
}

/* Our areas: six columns, each the icon and the name of a service, divided by hairlines. */
.area-links p {
  margin: 0 0 var(--space-3);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-strong);
  letter-spacing: var(--tracking-wide);
}

.area-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.area-links li {
  margin: 0;
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.area-links li:nth-child(odd) {
  border-right: var(--border-hairline) solid var(--color-border);
}

.area-links li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.area-links a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-3);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-strong);
  line-height: var(--leading-ui);
  text-decoration: none;
}

.area-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(var(--space-10) + var(--space-1));
  height: calc(var(--space-10) + var(--space-1));
  color: var(--color-accent-text);
  background: var(--color-selection);
  border-radius: var(--radius-md);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--space-12) + var(--space-1));
  height: calc(var(--space-12) + var(--space-1));
  margin-bottom: var(--space-4);
  color: var(--color-accent-text);
  background: var(--color-selection);
  border-radius: var(--radius-lg);
}

.card-points {
  margin: 0;
  padding-inline-start: var(--space-5);
  font-size: var(--text-sm);
}

.band-2 {
  --color-focus: var(--color-on-accent);
  display: grid;
  column-gap: var(--space-16);
  align-items: center;
  color: var(--color-on-accent);
  background: var(--color-accent);
  border-image: conic-gradient(var(--color-accent) 0 0) fill 0 / / 0 100vw;
}

.band-2 h2 em {
  align-self: flex-start;
  width: fit-content;
  padding: var(--space-1) var(--space-3);
  color: var(--color-on-cta);
  background: var(--color-cta);
  border-radius: var(--radius-full);
}

.band-2 h2 + p {
  color: inherit;
}

.band-2 ul {
  padding: 0;
  list-style: none;
}

.band-2 li {
  display: flex;
  gap: var(--space-3);
}

.band-2 li::before {
  content: "";
  flex: none;
  width: 0.4em;
  height: 0.8em;
  margin: 0.2em 0.35em 0;
  border: solid var(--color-cta);
  border-width: 0 0.16em 0.16em 0;
  transform: rotate(45deg);
}

.band-2 p:has(> a) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.band-2 p > a,
.band-6 p > a,
.page-service .band:last-child p > a {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--target) + var(--space-1));
  padding: 0 var(--space-6);
  border: var(--border-hairline) solid currentColor;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-strong);
  text-decoration: none;
}

.band-2 p > a {
  color: var(--color-on-accent);
}

.band-2 p > a:first-child {
  color: var(--color-accent-text);
  background: var(--color-on-accent);
  border-color: var(--color-on-accent);
}

.product-screens {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-4);
}

.product-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.band-3 ol {
  display: grid;
  gap: var(--space-8);
  max-width: none;
  margin-top: var(--space-10);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.band-3 li {
  margin: 0;
  color: var(--color-muted);
  counter-increment: step;
}

.band-3 li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-mark);
  font-family: var(--font-display);
  font-weight: var(--font-weight-strong);
}

.band-3 li strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-lg);
}

.band-4 ul {
  display: grid;
  gap: var(--space-4);
  max-width: none;
  margin-top: var(--space-8);
  padding: 0;
  list-style: none;
}

.band-4 li {
  margin: 0;
  padding: var(--space-6);
  color: var(--color-muted);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-top: var(--border-rule) solid var(--color-accent);
  border-radius: var(--radius-lg);
}

.band-4 li strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-lg);
}

.band-6,
.page-service .band:last-child {
  display: grid;
  gap: var(--space-4) var(--space-8);
  align-items: center;
  margin-block: var(--space-4) var(--space-20);
  padding: var(--space-12) var(--space-8);
  border-radius: calc(var(--radius-lg) * 2);
}

.band-6 h2 + p,
.page-service .band:last-child h2 + p {
  margin: 0;
  color: var(--color-inverse-muted);
}

.band-6 p:last-child,
.page-service .band:last-child p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
}

.band-6 p > a,
.page-service .band:last-child p > a {
  color: var(--color-inverse-text);
  border-color: var(--color-inverse-border);
}

.band-6 p > a:first-child,
.header-tools .header-cta,
.page-service .band:last-child p > a:first-child {
  color: var(--color-on-cta);
  background: var(--color-cta);
  border-color: var(--color-cta);
}

.card p {
  color: var(--color-muted);
}

.card-showcase {
  gap: var(--space-6);
}

.card .card-status {
  align-self: flex-start;
  margin: auto 0 0;
  padding: var(--space-1) var(--space-3);
  background: var(--color-selection);
  color: var(--color-text);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-strong);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(var(--space-24) * 3)), 1fr));
  gap: var(--space-5);
  margin: var(--space-8) 0;
}

.technology-group {
  padding: var(--space-6);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
}

.technology-category {
  margin: 0 0 var(--space-3);
  color: var(--color-accent-text);
  font-weight: var(--font-weight-strong);
}

.technology-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.technology-group li + li {
  margin-top: var(--space-3);
}

.technology-group strong {
  display: block;
}

.page-error .page-header h1 {
  font-size: var(--text-4xl);
}

.error-reference {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.error-back {
  margin-top: var(--space-6);
  font-family: var(--font-ui);
  font-weight: var(--font-weight-strong);
}

/* 4. Components */

/* Buttons: the first is the primary action (accent), a second one beside it is quiet. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  max-width: none;
  margin: var(--space-6) 0 var(--space-8);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target);
  padding: var(--space-2) var(--space-6);
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: var(--border-hairline) solid var(--color-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-text);
  font-size: var(--text-base);
  font-weight: var(--font-weight-ui);
  line-height: var(--leading-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion-duration-fast) var(--motion-ease-standard), border-color var(--motion-duration-fast) var(--motion-ease-standard);
}

.button:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
  border-color: var(--color-accent-hover);
}

.button + .button {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.button + .button:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border-color: var(--color-text);
}

/* Cards: quiet boxes on the surface; the title is the link, the double rule closes the description. */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  max-width: none;
  margin: var(--space-8) 0;
  padding: 0;
  list-style: none;
}

.cards > li {
  margin: 0;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-6);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--motion-duration-base) var(--motion-ease-standard);
}

.card:hover,
.card:focus-within {
  border-color: var(--color-accent);
}

.card h2,
.card h3,
.card h4 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xl);
}

.card h2 a,
.card h3 a,
.card h4 a {
  color: var(--color-text);
  text-decoration-color: transparent;
}

.card h2 a:hover,
.card h3 a:hover,
.card h4 a:hover {
  color: var(--color-text);
  text-decoration-color: var(--color-accent);
}

.card p {
  margin-bottom: var(--space-4);
}

.post-cards {
  gap: var(--space-8);
}

/* The fact box (case and open source pages): a specification sheet. */
.fact-box {
  margin: var(--space-6) 0 var(--space-8);
  padding: var(--space-5) var(--space-6) var(--space-3);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
}

.fact-box h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
}

.fact-box dl {
  margin: 0;
}

.fact-box dl > div {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border-top: var(--border-hairline) solid var(--color-border);
  font-family: var(--font-text);
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
}

.fact-box dt {
  color: var(--color-muted);
  font-weight: var(--font-weight-strong);
}

.fact-box dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Product screenshots (demo data): framed like documents, phones side by side. */
.screens {
  margin: var(--space-10) 0;
}

.screen-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-5);
  max-width: none;
  margin: var(--space-6) 0 var(--space-3);
  padding: 0;
  list-style: none;
}

.screen {
  grid-column: 1 / -1;
  margin: 0;
}

.screen-portrait {
  grid-column: auto;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
}

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

.reference-line p {
  margin-bottom: 0;
  color: var(--color-muted);
}

/* Tables: stacked rows on a phone (data-label), a real table from the tablet width. */
table {
  display: block;
  width: 100%;
  margin: 0 0 var(--space-8);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  border-collapse: collapse;
}

table caption {
  display: block;
  padding: 0 0 var(--space-3);
  font-weight: var(--font-weight-strong);
  text-align: start;
}

table thead {
  position: absolute;
  width: var(--border-hairline);
  height: var(--border-hairline);
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

table tbody,
table tr,
table th,
table td {
  display: block;
}

table tbody {
  border-top: var(--rule-double) var(--color-border-strong);
}

table tr {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-bottom: var(--border-hairline) solid var(--color-border);
}

table th,
table td {
  padding: var(--space-1) 0;
  text-align: start;
  overflow-wrap: anywhere;
}

table td::before {
  content: attr(data-label);
  display: block;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-strong);
}

table td:empty {
  display: none;
}

table th[scope="rowgroup"] {
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-alt);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--font-weight-display);
}

table tr:has(> th[scope="rowgroup"]) {
  padding: 0;
  background: none;
}

.nowrap {
  white-space: nowrap;
}

.reference-note {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

/* 5. Contact form (states: open, field error, general error, success, closed) */

.contact-form-slot {
  max-width: var(--measure-form);
  margin: var(--space-6) 0 var(--space-10);
}

.contact-form {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-5);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
}

.contact-form p {
  margin: 0;
}

.form-hint,
.form-notice,
.form-info,
.form-fallback {
  max-width: none;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  color: var(--color-muted);
}

.form-fallback {
  margin: var(--space-4) 0 0;
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-ui);
  font-weight: var(--font-weight-strong);
  line-height: var(--leading-ui);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  color: var(--color-text);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--font-weight-ui);
  line-height: var(--leading-ui);
}

.form-textarea {
  min-height: calc(var(--space-24) * 2);
  resize: vertical;
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--color-text);
}

/* A field with a mistake: a heavier border besides the colour, and the message above the field. */
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
  border-width: var(--border-rule);
}

.form-error {
  margin: 0;
  color: var(--color-danger);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-strong);
  line-height: var(--leading-ui);
}

/* The trap field: out of sight, out of reach of the keyboard (tabindex -1) and of assistive technology (aria-hidden). */
.form-trap {
  position: absolute;
  left: -100vw;
  width: var(--border-hairline);
  height: var(--border-hairline);
  overflow: hidden;
}

.form-summary,
.form-failed,
.form-success,
.form-closed {
  max-width: none;
  margin: 0 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: var(--border-rule) solid var(--color-border-strong);
  font-family: var(--font-ui);
  line-height: var(--leading-ui);
}

.form-summary,
.form-failed {
  background: var(--color-danger-bg);
  color: var(--color-text);
  border-color: var(--color-danger);
}

.form-summary h2 {
  margin: 0 0 var(--space-2);
  color: var(--color-danger);
  font-size: var(--text-lg);
}

.form-summary-list {
  margin: 0;
  padding-inline-start: var(--space-5);
}

.form-summary-list li {
  margin: var(--space-1) 0;
}

.form-summary-list a,
.form-failed a {
  color: var(--color-danger);
}

.form-failed {
  font-weight: var(--font-weight-strong);
}

.form-success {
  background: var(--color-success-bg);
  color: var(--color-text);
  border-color: var(--color-success);
}

.form-success p {
  max-width: none;
  margin: 0 0 var(--space-2);
}

.form-success p:last-child {
  margin-bottom: 0;
}

.form-success a {
  color: var(--color-success);
}

.form-closed {
  background: var(--color-surface-alt);
}

/* What takes focus after a submit is marked, whatever the browser's heuristics say. */
.form-summary:focus,
.form-failed:focus,
.form-success:focus {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Home page details (D-65). The opening: buttons before the line of assurances, notices over the product screen. */
.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-text > .actions {
  order: 1;
  margin-bottom: var(--space-6);
}

.hero-badge {
  display: none;
}

/* Section headings like a magazine: the heading left, its summary right. */
.band-1 > *,
.band-3 > *,
.band-4 > * {
  grid-column: 1 / -1;
}

/* How we work: numbered circles joined by a line. */
.band-3 ol {
  position: relative;
}

.band-3 li::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--space-12) + var(--space-1));
  height: calc(var(--space-12) + var(--space-1));
  margin-bottom: var(--space-4);
  color: var(--color-accent-text);
  background: var(--color-surface);
  border: var(--border-rule) solid var(--color-accent);
  border-radius: var(--radius-full);
  position: relative;
}

.band-4 {
  counter-reset: why;
}

.band-4 li {
  counter-increment: why;
}

.band-4 li::before {
  content: counter(why);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--color-on-accent);
  background: var(--color-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: var(--font-weight-strong);
}

/* Interaction (D-64): on hover, focus or a click only, with the short token durations (nothing moves by itself). */
.card,
.band-4 li,
.page-service .section-1 li,
.page-service .band:not(.section-1) ul:not(.screen-list) li {
  position: relative;
  transition: transform var(--motion-duration-base) var(--motion-ease-standard), border-color var(--motion-duration-base) var(--motion-ease-standard);
}

.card:is(:hover, :focus-within),
.band-4 li:hover,
.page-service .section-1 li:hover,
.page-service .band:not(.section-1) ul:not(.screen-list) li:hover {
  border-color: var(--color-accent);
  transform: translateY(calc(-1 * var(--space-1)));
}

/* The whole card is the link of its heading. */
.card :is(h2, h3, h4) a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.offering-cards .card :is(h2, h3, h4) a::after {
  content: " →";
  content: " →" / "";
  color: var(--color-accent-text);
  opacity: 0;
  transition: opacity var(--motion-duration-fast) var(--motion-ease-standard);
}

.offering-cards .card:is(:hover, :focus-within) :is(h2, h3, h4) a::after {
  opacity: 1;
}

.area-links a,
.page-service ol li {
  transition: background-color var(--motion-duration-fast) var(--motion-ease-standard), color var(--motion-duration-fast) var(--motion-ease-standard), border-color var(--motion-duration-fast) var(--motion-ease-standard);
}

.area-links a:hover {
  background: var(--color-surface-alt);
}

.area-links a:hover .area-icon {
  color: var(--color-on-accent);
  background: var(--color-accent);
}

.page-service ol li:hover {
  border-top-color: var(--color-mark);
}

.screen-link {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

/* The large picture opens over the page (popover): the address does not change; Escape or a click outside closes it. */
.screen-popover {
  max-width: min(94vw, var(--layout-page));
  max-height: 94vh;
  padding: var(--space-3);
  overflow: auto;
  color: var(--color-text);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-lg);
}

.screen-popover::backdrop {
  background: var(--color-inverse-bg);
  opacity: 0.8;
}

.page-service .screen-popover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  margin-inline: auto;
}

.screen-close {
  display: flex;
  margin: var(--space-3) 0 0 auto;
  cursor: pointer;
}

@supports not selector(:popover-open) {
  .screen-popover {
    display: none;
  }
}

.screen-link img {
  transition: transform var(--motion-duration-base) var(--motion-ease-standard);
}

.screen-link:is(:hover, :focus-visible) img {
  transform: scale(1.03);
}

.screen-zoom {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  color: var(--color-inverse-text);
  background: var(--color-inverse-bg);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-strong);
  opacity: 0;
  transition: opacity var(--motion-duration-fast) var(--motion-ease-standard);
}

/* Touch: the label stays visible. */
@media (hover: none) {
  .screen-zoom {
    opacity: 1;
  }
}

.screen-link:is(:hover, :focus-visible) .screen-zoom {
  opacity: 1;
}

/* Questions open and close (details); the plus turns into a cross. */
.faq {
  max-width: var(--layout-text);
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--target);
  padding-block: var(--space-3);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  margin: 0;
  font-size: var(--text-lg);
  transition: color var(--motion-duration-fast) var(--motion-ease-standard);
}

.faq summary:hover h3 {
  color: var(--color-accent-text);
}

.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  color: var(--color-accent-text);
  font-size: var(--text-2xl);
  line-height: var(--leading-ui);
  transition: transform var(--motion-duration-fast) var(--motion-ease-standard);
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq > p {
  margin-top: 0;
  padding-bottom: var(--space-4);
  color: var(--color-muted);
}

/* Photographs (D-68): one shape everywhere; the picture fills its frame. */
.photo {
  max-width: var(--layout-text);
  margin: var(--space-8) 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.photo img,
.card-photo img,
.hero-photo > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.band .photo {
  max-width: none;
}

/* The photograph of a service on its card, edge to edge; the icon sits over its lower edge. */
.card-photo {
  display: block;
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) 0;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-photo img {
  transition: transform var(--motion-duration-base) var(--motion-ease-standard);
}

.card:is(:hover, :focus-within) .card-photo img {
  transform: scale(1.04);
}

.card-photo + .card-icon {
  position: relative;
  margin-top: calc(-1 * var(--space-6));
  background: linear-gradient(var(--color-selection), var(--color-selection)) var(--color-surface);
  border: var(--border-rule) solid var(--color-surface);
}

/* The opening of a service page: its photograph instead of the browser frame. */
.hero-photo {
  padding: 0;
  background: none;
  border: 0;
}

.hero-photo::before {
  content: none;
}

.hero-photo > img {
  border: 0;
  border-radius: var(--radius-lg);
}

.band-5 .faq {
  max-width: none;
}

/* What we deliver: a list whose items open with a bold name is set as small cards, name over text. */
.page-service .band:not(.section-1) ul:not(.screen-list) li:has(> strong) {
  display: block;
  color: var(--color-muted);
}

.page-service .band:not(.section-1) li:has(> strong)::before {
  display: block;
  margin-bottom: var(--space-4);
}

.page-service .band:not(.section-1) li > strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-lg);
}

/* 6. Wider screens */

@media (min-width: 40em) {
  .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-6);
  }

  .fact-box dl > div {
    grid-template-columns: var(--label-column) minmax(0, 1fr);
    gap: var(--space-4);
  }

  .contact-form {
    padding: var(--space-8);
  }
}

@media (min-width: 48em) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    padding: var(--space-8);
  }

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

  /* Back to a real table. */
  table {
    display: table;
  }

  table caption {
    display: table-caption;
  }

  table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  table thead,
  table tbody {
    border-top: 0;
  }

  table tbody {
    display: table-row-group;
  }

  table thead {
    display: table-header-group;
  }

  table tr {
    display: table-row;
    padding: 0;
    background: none;
  }

  table th,
  table td {
    display: table-cell;
    padding: var(--space-3) var(--space-4);
    vertical-align: top;
    border-bottom: var(--border-hairline) solid var(--color-border);
  }

  table td::before {
    content: none;
  }

  table td:empty {
    display: table-cell;
  }

  table thead th {
    color: var(--color-muted);
    border-bottom: var(--border-rule) solid var(--color-border-strong);
  }

  table tbody tr:first-child th[scope="rowgroup"] {
    border-top: var(--rule-double) var(--color-border-strong);
  }

  table th[scope="rowgroup"] {
    padding: var(--space-3) var(--space-4);
  }

  table tr:has(> th[scope="rowgroup"]) {
    display: table-row;
  }

  /* A real table sizes a column by its longest word, so its cells may no longer break anywhere (that is for the stacked cells above): */
  table th,
  table td,
  table code {
    overflow-wrap: break-word;
  }

}

@media (min-width: 64em) {
  .page-home .hero .page-header h1 {
    font-size: calc(var(--text-5xl) * 0.94);
  }

  .site-header {
    /* Equal side columns: the menu stays in the middle whatever the tools hold. */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "brand nav tools";
    gap: var(--space-4) var(--space-10);
    padding-block: var(--space-5);
  }

  .wordmark {
    height: var(--space-8);
  }

  .site-nav {
    justify-self: center;
  }

  .header-tools {
    justify-self: end;
  }

  .footer-main {
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr);
  }

  .footer-base {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .screen-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    padding-block: var(--space-20) var(--space-24);
  }

  .hero-visual .hero-phone {
    position: absolute;
    right: calc(-1 * var(--space-3));
    bottom: calc(-1 * var(--space-16));
    display: block;
    width: 30%;
    overflow: hidden;
    border: var(--space-1) solid var(--color-inverse-border);
    border-radius: var(--radius-lg);
  }

  .card-showcase {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
  }

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

  .offering-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen {
    grid-column: span 2;
  }

  .screen-portrait {
    grid-column: span 1;
  }

  .band-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .band-2 > * {
    grid-column: 1;
  }

  .band-2 > .product-screens {
    grid-column: 2;
    grid-row: 1 / span 5;
  }

  .band-3 ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-service .section-1 ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-service ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-service .band:not(.section-1) ul:not(.screen-list) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .band-4 ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .area-links ul {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  /* One row: only the lines between the areas; the frame of the strip closes the bottom (no second line under the first four). */
  .area-links li {
    border-right: var(--border-hairline) solid var(--color-border);
    border-bottom: 0;
  }

  .area-links li:last-child {
    border-right: 0;
  }

  .area-links a {
    gap: var(--space-3);
    padding: var(--space-5);
    font-size: var(--text-base);
  }

  .hero-visual .hero-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    color: var(--color-text);
    background: var(--color-surface);
    border: var(--border-hairline) solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-strong);
  }

  .hero-badge svg {
    color: var(--color-accent-text);
  }

  .hero-badge-1 {
    top: var(--space-16);
    left: calc(-1 * var(--space-8));
  }

  .hero-badge-2 {
    bottom: calc(-1 * var(--space-5));
    left: var(--space-12);
  }

  .band-1,
  .band-3,
  .band-4 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-16);
    align-items: end;
  }

  .band-1 > h2,
  .band-3 > h2,
  .band-4 > h2 {
    grid-column: 1;
  }

  .band-1 > h2 + p {
    grid-column: 2;
    margin: 0 0 var(--space-2);
  }

  .band-3 ol::before {
    content: "";
    position: absolute;
    top: calc((var(--space-12) + var(--space-1)) / 2);
    right: 12%;
    left: 0;
    border-top: var(--border-rule) dashed var(--color-border-strong);
  }

  .page-service .screen-list:has(.screen-portrait) .screen:not(.screen-portrait) {
    grid-column: span 3;
  }

  .band-6,
  .page-service .band:last-child {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: var(--space-16);
  }

  .band-6 p:last-child,
  .page-service .band:last-child p:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  main {
    padding-top: var(--space-6);
  }

  .page-header {
    margin-bottom: var(--space-10);
  }
}

/* 7. Forced colours, print */

/* Forced colours: the system colours win. */
@media (forced-colors: active) {
  .wordmark path,
  .logo-accent {
    fill: CanvasText;
  }

  .page-home .page-header::before {
    border-color: CanvasText;
  }

  .theme-toggle[aria-pressed="true"]::before {
    background: CanvasText;
    border-color: CanvasText;
  }

  .button {
    border-color: ButtonText;
  }

  .skip-link,
  .form-summary,
  .form-failed,
  .form-success {
    border-color: CanvasText;
  }
}

@media print {
  /* Paper and ink whatever the screen theme: the system colours of a light page replace the tokens. */
  :root:root {
    color-scheme: light;
    --color-bg: Canvas;
    --color-surface: Canvas;
    --color-surface-alt: Canvas;
    --color-text: CanvasText;
    --color-muted: CanvasText;
    --color-border: GrayText;
    --color-border-strong: CanvasText;
    --color-accent: CanvasText;
    --color-accent-hover: CanvasText;
    --color-accent-text: CanvasText;
    --color-on-accent: Canvas;
    --color-mark: CanvasText;
    --color-selection: Canvas;
    --color-danger: CanvasText;
    --color-danger-bg: Canvas;
    --color-success: CanvasText;
    --color-success-bg: Canvas;
  }

  body {
    display: block;
    min-height: 0;
    font-size: var(--text-sm);
  }

  .skip-link,
  .site-nav,
  .header-tools,
  .breadcrumb,
  .actions,
  .contact-form-slot,
  .theme-toggle {
    display: none;
  }

  .site-header,
  .site-footer {
    padding-inline: 0;
  }

  main {
    max-width: none;
    padding-inline: 0;
  }

  .card,
  .fact-box,
  table tr,
  blockquote {
    break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }

  /* The address of an external link in the text follows it, so a printed page can still be followed. */
  main :where(p, li) a[href^="https://"]:not(.fact-box a)::after {
    content: " (" attr(href) ")";
    font-family: var(--font-mono);
    font-size: 0.85em;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 80em) {
  .header-tools .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 64em) {
  /* Why iffware: the photograph left, the reasons in two columns right. */
  .band-4 > .photo {
    position: relative;
    grid-column: 1;
    align-self: stretch;
    margin: var(--space-8) 0 0;
  }

  /* The photograph takes the height of the reasons beside it. */
  .band-4 > .photo img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .band-4 > ul {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Questions of the home page: the heading left, the questions right. */
  .band-5 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    column-gap: var(--space-16);
    align-items: start;
  }

  .band-5 > h2 {
    grid-row: 1 / span 6;
  }

  .band-5 > .faq {
    grid-column: 2;
  }

  .page-service .band:not(.section-1) ul:has(> li > strong) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* A fine frame set off behind the photograph. */
  .hero-photo {
    z-index: 0;
  }

  .hero-photo::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: var(--space-5) calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-5);
    width: auto;
    height: auto;
    background: none;
    border: var(--border-hairline) solid var(--color-inverse-border);
    border-radius: var(--radius-lg);
  }

  .hero-photo .hero-badge-1 {
    top: var(--space-8);
  }

  .hero-photo .hero-phone {
    width: 24%;
    bottom: calc(-1 * var(--space-10));
  }
}
