/* AML IT Services. Plain CSS, no external resources.
   Colors live only in :root. Naming rule checked by the tests: every --on-light-* color is readable
   (WCAG AA, 4.5:1) on every --light-* background, and every --on-dark-* color on every --dark-* background.
   Gradients under text are built only from --light-* tokens, so the same rule covers them.
   The --deco-*, --tone-*, --line-* and --shadow-* tokens are for graphics, borders and shadows, never for text.
   The blue and the red are those of the logo; the logo red is too pale for text, so --on-light-point is darker. */
:root {
  --light-page: #f8f3ea;
  --light-card: #fffdf9;
  --light-inset: #f5eee2;
  --light-tint: #e6e6f4;
  --light-plain: #ffffff;
  --light-glass: rgba(20, 30, 40, 0.05);
  --on-light-text: #231f1a;
  --on-light-muted: #5a5147;
  --on-light-accent: #0c0e8e;
  --on-light-point: #b02c0c;
  --dark-main: #0c0e8e;
  --dark-press: #080963;
  --dark-point: #d93b14;
  --on-dark-text: #ffffff;
  --line-band: #e6dccb;
  --line-glass: rgba(20, 30, 40, 0.14);
  --line-art: rgba(20, 30, 40, 0.18);
  --deco-main: #0c0e8e;
  --deco-point: #d93b14;
  --deco-line: #3b41c5;
  --deco-ink: #5d6672;
  --deco-panel: #ffffff;
  --deco-grid: rgba(20, 30, 40, 0.06);
  --deco-mark: rgba(20, 30, 40, 0.02);
  --deco-glow: rgba(40, 46, 180, 0.06);
  --deco-area: rgba(40, 46, 180, 0.14);
  --deco-dim: rgba(40, 50, 60, 0.28);
  --deco-soft: rgba(40, 50, 60, 0.6);
  --tone-1a: #24289f;
  --tone-1b: #0a0b5e;
  --tone-2a: #e0552f;
  --tone-2b: #a9290a;
  --tone-3a: #5a5f8f;
  --tone-3b: #34386a;
  --tone-4a: #24289f;
  --tone-4b: #0a0b5e;
  --shadow-tile: rgba(30, 40, 50, 0.1);
  --shadow-deep: rgba(30, 40, 50, 0.16);
  --mask-on: #000000;
  --radius: 1.25rem;
  --wrap: 70rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--light-card);
  color: var(--on-light-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--light-page);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.4rem);
  font-weight: 800;
  color: var(--on-light-accent);
  max-width: 18ch;
  text-wrap: balance;
}

h2 {
  font-size: 1.5rem;
  color: var(--on-light-accent);
}

h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-light-muted);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--on-light-accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--on-light-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--dark-main);
  color: var(--on-dark-text);
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Graphics: inline SVG, colored from the tokens above */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo {
  display: block;
  width: 12rem;
  max-width: 100%;
  height: auto;
}

.l-frame {
  fill: none;
  stroke: var(--deco-point);
  stroke-width: 3.6;
}

.l-text {
  fill: var(--deco-main);
}

.l-dot {
  fill: var(--deco-point);
}

.art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.a-glow {
  fill: var(--deco-glow);
}

.a-ring {
  fill: none;
  stroke: var(--deco-dim);
  stroke-width: 1.2;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
}

.a-panel {
  fill: var(--deco-panel);
  stroke: var(--line-art);
  stroke-width: 1.5;
}

.a-card {
  fill: var(--deco-panel);
  stroke: var(--line-art);
  stroke-width: 1.5;
}

.a-accent {
  fill: var(--light-tint);
  stroke: var(--deco-ink);
  stroke-width: 1.5;
}

.a-glass {
  fill: var(--light-glass);
}

.a-dim {
  fill: var(--deco-dim);
}

.a-soft {
  fill: var(--deco-soft);
}

.a-letter {
  fill: var(--on-light-text);
}

.a-point {
  fill: var(--deco-point);
}

.a-pale {
  fill: var(--deco-ink);
}

.a-second {
  fill: var(--deco-main);
}

.a-area {
  fill: var(--deco-area);
}

.a-line,
.a-rule,
.a-flow,
.a-link,
.a-spark,
.a-icon,
.a-icon-w {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.a-line {
  stroke: var(--deco-line);
  stroke-width: 3.5;
}

.a-rule {
  stroke: var(--line-glass);
  stroke-width: 1;
}

.a-flow {
  stroke: var(--deco-ink);
  stroke-width: 2;
  stroke-dasharray: 2 8;
}

.a-link {
  stroke: var(--deco-dim);
  stroke-width: 2;
}

.a-spark {
  stroke: var(--deco-ink);
  stroke-width: 2;
}

.a-icon,
.a-icon-w {
  stroke: var(--deco-ink);
  stroke-width: 2.4;
}

.a-icon-w {
  stroke: var(--on-light-text);
  stroke-width: 3;
}

.a-icon path,
.a-icon circle,
.a-icon-w path {
  vector-effect: non-scaling-stroke;
}

.a-icon .a-check,
.a-icon-w .a-check {
  stroke: var(--deco-main);
}

.a-float-1,
.a-float-2,
.a-float-3 {
  filter: drop-shadow(0 14px 18px var(--shadow-deep));
}

/* Icon tiles and their tones */
.tile,
.tone-1 {
  --tone-a: var(--tone-1a);
  --tone-b: var(--tone-1b);
}

.tone-2,
.tone-2 .tile {
  --tone-a: var(--tone-2a);
  --tone-b: var(--tone-2b);
}

.tone-3,
.tone-3 .tile {
  --tone-a: var(--tone-3a);
  --tone-b: var(--tone-3b);
}

.tone-4,
.tone-4 .tile {
  --tone-a: var(--tone-4a);
  --tone-b: var(--tone-4b);
}

.tile {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border: 1px solid var(--line-glass);
  border-radius: 1rem;
  background-color: var(--dark-main);
  background-image: linear-gradient(135deg, var(--tone-a), var(--tone-b));
  color: var(--on-dark-text);
  box-shadow: 0 0.6rem 1.2rem var(--shadow-tile);
}

.tile .icon {
  width: 1.6rem;
  height: 1.6rem;
}

/* Header */
.site-header {
  background: var(--light-card);
  color: var(--on-light-text);
  border-bottom: 1px solid var(--line-band);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

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

.site-header a:hover,
.site-header a[aria-current] {
  color: var(--on-light-text);
}

.brand {
  position: relative;
  display: block;
  max-width: 100%;
}

.site-header .brand {
  color: var(--on-light-text);
  margin-right: auto;
}

.main-nav ul,
.lang-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
}

.main-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  font-weight: 550;
}

.main-nav a[aria-current] {
  border-bottom-color: var(--deco-point);
}

.lang-nav ul {
  gap: 0.25rem;
  font-size: 0.9rem;
}

.lang-nav a {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--line-band);
  border-radius: 999px;
}

.lang-nav a[aria-current] {
  background: var(--light-tint);
  border-color: var(--light-tint);
  color: var(--on-light-text);
}

/* Hero: band with a grid pattern and a picture */
.hero,
.plain,
.about-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--light-page);
  background-image:
    radial-gradient(42rem 26rem at 88% -8%, var(--light-tint), transparent 70%),
    linear-gradient(140deg, var(--light-card) 0%, var(--light-page) 60%, var(--light-tint) 140%);
  color: var(--on-light-text);
}

.hero::before,
.plain::before,
.about-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--deco-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--deco-grid) 1px, transparent 1px);
  background-size: 3rem 3rem;
  -webkit-mask-image: radial-gradient(ellipse 75% 95% at 72% 35%, var(--mask-on) 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 95% at 72% 35%, var(--mask-on) 15%, transparent 78%);
}

.hero {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line-band);
}

.hero-home {
  padding: 4rem 0 9rem;
  border-bottom: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem 3rem;
}

.hero-home .hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.hero-copy::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.3rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: var(--dark-point);
}

.hero-small h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem);
}

.lead {
  font-size: 1.25rem;
  color: var(--on-light-muted);
  max-width: 40rem;
}

.hero-copy > :last-child {
  margin-bottom: 0;
}

.hero-art {
  width: 100%;
  max-width: 34rem;
  justify-self: end;
}

.hero-tiles {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1rem;
  padding: 0.5rem 1rem 1.75rem 0;
}

.hero-tiles span {
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  border: 1px solid var(--line-glass);
  border-radius: 1.4rem;
  background: var(--light-plain);
  color: var(--on-light-accent);
}

.hero-tiles span:nth-child(odd) {
  transform: translateY(1.25rem);
}

.hero-tiles span:nth-child(3n + 1) {
  color: var(--on-light-point);
}

.hero-tiles .icon {
  width: 2.1rem;
  height: 2.1rem;
  stroke-width: 1.6;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--light-tint);
  color: var(--on-light-text);
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: var(--light-tint);
}

.button-main {
  background: var(--dark-main);
  color: var(--on-dark-text);
  box-shadow: 0 0.8rem 1.8rem var(--shadow-deep);
}

.button-main:hover {
  background: var(--dark-press);
}

.button-ghost {
  background: var(--light-plain);
  border-color: var(--line-glass);
  color: var(--on-light-text);
}

.button-ghost:hover {
  background: var(--light-inset);
}

.button .icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 2;
}

.hero .button {
  margin-top: 1rem;
}

/* Sections */
.band {
  position: relative;
  background: var(--light-page);
}

/* Watermark: the brand letter, very faint, over the section; it stays in view while the section scrolls */
.band-mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
}

.watermark {
  position: sticky;
  top: 12vh;
  display: block;
  width: auto;
  max-width: 85%;
  height: min(100% - 3rem, 34rem);
  margin: 1.5rem max(1.25rem, calc((100% - var(--wrap)) / 2)) 0 auto;
  fill: var(--deco-mark);
}

.band-mark-start .watermark {
  margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2));
  margin-right: auto;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.card,
.service,
.point,
.contact > div {
  background: var(--light-card);
  border: 1px solid var(--line-band);
  border-radius: var(--radius);
  box-shadow: 0 1.2rem 2.5rem var(--shadow-tile);
}

/* Home cards: they overlap the hero */
.cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: -9rem;
}

.card {
  padding: 1.75rem;
}

.card h2 {
  margin-top: 1.25rem;
  font-size: 1.3rem;
}

.card h2 a {
  color: var(--on-light-accent);
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--on-light-accent);
  text-decoration: underline;
}

.card p {
  margin: 0;
  color: var(--on-light-muted);
}

/* Services */
.services {
  display: grid;
  gap: 1.75rem;
}

.service {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 2.25rem 2.25rem 2.6rem;
  scroll-margin-top: 1rem;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.4rem;
  background-image: linear-gradient(var(--tone-a), var(--tone-b));
}

.service-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.service .summary {
  font-size: 1.125rem;
  max-width: 50rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-grid > div {
  padding: 1.35rem 1.5rem;
  border-radius: 1rem;
  background: var(--light-inset);
}

.service-grid p {
  margin: 0;
}

.checks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.4rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2.5px solid var(--on-light-accent);
  border-bottom: 2.5px solid var(--on-light-accent);
  transform: rotate(-45deg);
}

.service > h3 {
  margin-top: 2rem;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 3.9rem;
  background: var(--light-inset);
  border-radius: 1rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--dark-main);
  color: var(--on-dark-text);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  color: var(--on-light-muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2rem 3rem;
}

.points {
  display: grid;
  gap: 1.25rem;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
}

.point p {
  margin: 0;
  font-size: 1.125rem;
}

.about-art {
  z-index: 3;
  padding: 1.5rem;
  border: 1px solid var(--line-band);
  border-radius: 1.75rem;
  box-shadow: 0 1.5rem 3rem var(--shadow-deep);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.contact > div {
  padding: 1.75rem;
}

.contact dt {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-light-muted);
}

.contact dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

/* Call to action band above the footer */
.cta-band {
  position: relative;
  margin-top: auto;
  overflow: hidden;
  background-color: var(--light-page);
  background-image: linear-gradient(115deg, var(--light-card), var(--light-page));
  color: var(--on-light-text);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  border: 1px solid var(--line-glass);
  border-radius: 50%;
  background: var(--light-glass);
}

.cta-band::before {
  right: -6rem;
  top: -12rem;
}

.cta-band::after {
  left: -9rem;
  bottom: -15rem;
}

.cta-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.cta-text {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.35rem, 1rem + 1.5vw, 1.9rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-band);
  background: var(--light-card);
  color: var(--on-light-muted);
  font-size: 0.9375rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.footer-row p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.footer-brand .logo {
  width: 9rem;
}

.footer-row a {
  color: var(--on-light-text);
}

/* Entry and not-found pages */
.plain {
  display: grid;
  place-items: center;
  padding: 4rem 0;
}

.plain .wrap {
  max-width: 44rem;
}

.plain .logo {
  width: 15rem;
  margin-bottom: 1.5rem;
}

.plain p {
  color: var(--on-light-muted);
}

.plain h2 {
  margin-top: 3rem;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 56rem) {
  .hero-home {
    padding-top: 3rem;
  }

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

  .hero-art {
    max-width: 28rem;
    justify-self: center;
  }

  .about-art {
    width: 100%;
    max-width: 30rem;
    justify-self: center;
  }
}

@media (max-width: 40rem) {
  .header-row {
    gap: 0.5rem 1rem;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero-home {
    padding-bottom: 8rem;
  }

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

  .hero-tiles {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 0.6rem;
    padding: 0;
  }

  .hero-tiles span {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
  }

  .hero-tiles span:nth-child(odd) {
    transform: none;
  }

  .hero-tiles .icon {
    width: 1.6rem;
    height: 1.6rem;
  }

  .cards {
    margin-top: -6.5rem;
  }

  .service {
    padding: 1.5rem 1.25rem 1.5rem 1.6rem;
  }

  .point {
    gap: 1rem;
    padding: 1.25rem;
  }
}

/* The logo stands a little to the right of the text edge where the menu is in the same row */
@media (min-width: 56.01rem) {
  .site-header .brand {
    margin-left: 3rem;
  }
}

/* Movement only for visitors who have not asked for less of it */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .a-flow {
    animation: flow 1.6s linear infinite;
  }

  .a-float-1 {
    animation: bob 7s ease-in-out infinite;
  }

  .a-float-2 {
    animation: bob 6s ease-in-out -2s infinite;
  }

  .a-float-3 {
    animation: bob 8s ease-in-out -4s infinite;
  }

  .card,
  .button {
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .card:hover,
  .button:hover {
    transform: translateY(-3px);
  }

  @keyframes flow {
    to {
      stroke-dashoffset: -20;
    }
  }

  @keyframes bob {
    50% {
      transform: translateY(-7px);
    }
  }
}
