/* Gerber Software Engineering & Consulting — 2026
   Contemporary: large regular-weight grotesk, generous space, one cobalt accent,
   rounded surfaces with a clear size hierarchy. Everything is served locally. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations"),
       url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --muted: #eceff3;
  --ink: #0f141a;
  --ink-2: #4d5866;
  --line: #dde2e8;
  --accent: #2d5bff;
  --accent-ink: #ffffff;
  --accent-soft: #e4eaff;
  --green-soft: #d9f2e2;
  --amber-soft: #fcebc4;
  --night: #0f141a;
  --night-2: #1a222c;
  --night-line: rgba(255, 255, 255, 0.12);
  --night-ink: #f2f4f7;
  --night-ink-2: #9aa6b4;

  --ui-bg: #ffffff;
  --ui-line: #e8ebef;
  --ui-fill: #e3e7ec;
  --ui-fill-2: #f1f3f6;
  --ui-strong: #0f141a;
  --ui-accent: #2d5bff;
  --ui-img: #eef1fe;
  --ui-tint-a: #dbe2ff;
  --ui-tint-b: #d9f2e2;
  --ui-tint-c: #fcebc4;
  --stage-bg: var(--night);
  --stage-dots: var(--night-line);
  --stage-ink: var(--night-ink);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --rhythm: clamp(80px, 10vw, 144px);
  --max: 80rem;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e12;
    --surface: #141920;
    --muted: #11161c;
    --ink: #eef1f5;
    --ink-2: #9aa6b4;
    --line: #252d37;
    --accent: #7391ff;
    --accent-ink: #0b0e12;
    --accent-soft: #1d2748;
    --green-soft: #18352a;
    --amber-soft: #3a2f16;
    --night: #161f33;
    --night-2: #1f2a42;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48em) {
  body { font-size: 1.125rem; }
}

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

p, ul, ol, dl, address, figure { margin: 0; }
p { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-color: currentColor; }

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

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { top: 0.75rem; }

/* ---------- Pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.75rem;
  padding: 0.6em 1.3em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.pill--accent { background: var(--accent); color: var(--accent-ink); }
.pill--accent:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.pill--dark { background: var(--ink); color: var(--bg); }
.pill--dark:hover { background: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.pill--ghost { border-color: var(--line); color: var(--ink); }
.pill--ghost:hover { border-color: var(--ink); }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  text-decoration: none;
}
.brand__name {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand__line {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  font-size: 0.6875rem;
  line-height: 1.25;
  color: var(--ink-2);
}

.nav ul {
  display: flex;
  gap: 0.25rem;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--muted); }

.masthead__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.langswitch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.langswitch__item {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2rem;
  padding-inline: 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  text-decoration: none;
}
.langswitch__item.is-current { background: var(--muted); color: var(--ink); }
a.langswitch__item:hover { color: var(--ink); }

@media (max-width: 55.99em) {
  .masthead { position: static; }
  .masthead__inner { flex-wrap: wrap; padding-block: 0.75rem; }
  .nav { order: 3; width: 100%; margin-inline: -0.85rem; }
  .masthead__cta { display: none; }
}
@media (max-width: 30em) {
  .brand__line { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }

.hero__title {
  font-size: clamp(3rem, 8.4vw, 7.75rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 15ch;
}

.hero__row {
  display: grid;
  gap: 2rem 4rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.hero__lead {
  max-width: 36rem;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-self: end;
}

@media (min-width: 60em) {
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* The stage: what we build, as three small product windows. */
.stage {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(20px, 3.5vw, 48px);
  border-radius: var(--r-xl);
  background-color: var(--stage-bg);
  background-image: radial-gradient(var(--stage-dots) 1px, transparent 1px);
  background-size: 22px 22px;
}
@media (max-width: 47.99em) {
  /* Small screens: swipe through the three windows instead of stacking them. */
  .stage {
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .stage::-webkit-scrollbar { display: none; }
  .stage__item { scroll-snap-align: start; }
}
@media (min-width: 48em) {
  .stage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.stage__item figcaption {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stage-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .stage__item {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .stage__item:nth-child(2) { animation-delay: 0.12s; }
  .stage__item:nth-child(3) { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
}

.ui {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--ui-bg);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}
.ui__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ui-line);
}
.ui__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ui-fill); }
.ui__url { flex: 1; height: 12px; margin-left: 10px; border-radius: 999px; background: var(--ui-fill-2); }
.ui__body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 9px; }

.sk { display: block; height: 9px; border-radius: 999px; background: var(--ui-fill); }
.sk--h { height: 16px; width: 72%; background: var(--ui-strong); }
.sk--l { width: 88%; }
.sk--m { width: 64%; }
.sk--s { width: 48%; }
.sk--btn { width: 30%; height: 18px; margin-top: 4px; background: var(--ui-accent); }
.sk--img { flex: 1; min-height: 30px; margin-top: 6px; border-radius: 8px; background: var(--ui-img); }

.ui--crm .ui__body { gap: 0; padding-block: 6px; }
.row {
  display: grid;
  grid-template-columns: 22px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding-block: 9px;
  border-bottom: 1px solid var(--ui-line);
}
.row:last-child { border-bottom: 0; }
.av { width: 22px; height: 22px; border-radius: 50%; background: var(--ui-tint-a); }
.row:nth-child(2) .av { background: var(--ui-tint-b); }
.row:nth-child(4) .av { background: var(--ui-tint-c); }
.chip { display: block; height: 16px; border-radius: 999px; }
.chip--a { background: var(--ui-tint-a); }
.chip--b { background: var(--ui-tint-b); }
.chip--c { background: var(--ui-tint-c); }

.search { display: block; height: 22px; border-radius: 999px; border: 1px solid var(--ui-fill); }
.docs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.doc {
  border-radius: 6px;
  background: var(--ui-fill-2);
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.doc.is-sel { background: var(--ui-accent); }

/* ---------- Sections ---------- */

.section { padding-block: var(--rhythm); }
.section--muted { background: var(--muted); }

.section__head {
  display: grid;
  gap: 1rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section__head h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.section__head p {
  max-width: 34rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
}
@media (min-width: 60em) {
  .section__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}

/* Services bento */
.bento {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
}
@media (min-width: 60em) {
  .bento { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .tile--tall { grid-row: span 2; }
}

.tile {
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.tile h3 {
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  letter-spacing: -0.03em;
}
.tile > p { margin-top: 0.9rem; max-width: 34rem; color: var(--ink-2); }

.tile--dark {
  border-color: transparent;
  background: var(--night);
  color: var(--night-ink);
}
.tile--dark > p { color: var(--night-ink-2); }

.focus {
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--night-line);
}
.focus li {
  display: grid;
  gap: 0.2rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--night-line);
}
.focus strong { font-size: 1.1875rem; font-weight: 550; letter-spacing: -0.01em; }
.focus span { color: var(--night-ink-2); font-size: 1rem; }
@media (min-width: 40em) {
  .focus li { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; }
}
.tile__note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--night-ink-2); }

.ticks {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1rem;
}
.ticks li + li { margin-top: 0.55rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.32em;
  width: 0.45rem;
  height: 0.75rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Life cycle: a real sequence, so it is numbered. */
.steps {
  display: grid;
  gap: 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 650;
}
.steps h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.steps p { margin-top: 0.5rem; max-width: 18rem; font-size: 1rem; color: var(--ink-2); }

@media (min-width: 40em) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: 3.25rem;
    right: 0.75rem;
    height: 1px;
    background: color-mix(in srgb, var(--accent) 40%, var(--line));
  }
}

.split {
  display: grid;
  gap: 2.5rem 5rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}
.split__title {
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.035em;
}
.split__text p { max-width: 34rem; color: var(--ink-2); }
.split__text p + p { margin-top: 1rem; }
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

.faq { display: grid; gap: 10px; align-self: start; }
.faq details {
  border-radius: var(--r-md);
  background: var(--surface);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 1.4rem;
  font-weight: 550;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.1rem;
  border-radius: 50%;
  background: var(--muted);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-ink);
}
.faq details p {
  padding: 0 1.4rem 1.3rem;
  max-width: 36rem;
  color: var(--ink-2);
}

/* Products */
.products {
  display: grid;
  gap: 3rem clamp(16px, 2vw, 28px);
}
@media (min-width: 60em) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.product { display: flex; flex-direction: column; }
.product__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--muted);
}
.product__visual--water { background: var(--accent-soft); }
.product__visual--jobs { background: var(--green-soft); }
.product__visual--food { background: var(--amber-soft); }

.product__body { display: flex; flex-direction: column; flex: 1; padding-top: 1.5rem; }
.product h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -0.03em; }
.product__body > p { margin-top: 0.75rem; color: var(--ink-2); font-size: 1rem; }
.product__body > .product__meta { margin-top: 1rem; font-size: 0.875rem; color: var(--ink); font-weight: 500; }
.product__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 550;
  color: var(--accent);
}

.phscale { width: 100%; max-width: 20rem; position: relative; padding-top: 2.75rem; }
.phscale__bar {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f29a4a, #e9cf5b 25%, #5cc489 50%, #3f8fe0 75%, #4b4fd6);
}
.phscale__mark {
  position: absolute;
  left: 47.5%;
  top: 0;
  transform: translateX(-50%);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.phscale__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 1.35rem;
  transform: translateX(-50%);
  background: var(--ink);
}
.product__visual--water .phscale__ticks { color: var(--ink-2); }
.phscale__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.75rem;
}
.phscale__ticks b { font-weight: 500; }

.jobs { width: 100%; max-width: 19rem; display: grid; gap: 10px; }
.job {
  display: grid;
  grid-template-columns: 1fr 52px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ui-bg);
}
.job:nth-child(2) { transform: translateX(14px); }

.order {
  width: 100%;
  max-width: 15rem;
  padding: 18px;
  border-radius: 14px;
  background: var(--ui-bg);
  display: grid;
  gap: 12px;
}
.order__line { display: grid; grid-template-columns: 1.75rem 1fr; align-items: center; gap: 8px; }
.order__line b { font-size: 0.8125rem; font-weight: 600; color: var(--ui-strong); }
.order__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--ui-fill);
}
.order__track::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: calc(12px + 5px);
  height: 2px;
  background: linear-gradient(90deg, var(--ui-accent) 50%, var(--ui-fill) 50%);
}
.order__track i {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ui-fill);
}
.order__track i.on { background: var(--ui-accent); }

/* Contact */
.section--contact {
  background: var(--night);
  color: var(--night-ink);
}
.contact__title {
  max-width: 14ch;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.contact__lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--night-ink-2);
}
.contact__grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 60em) {
  .contact__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.contact__card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: var(--night-2);
  font-style: normal;
}
.contact__label { font-size: 0.875rem; color: var(--night-ink-2); }
.contact__value {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.contact__value a { text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); }
.contact__addr { line-height: 1.5; font-size: 1rem; }

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(3rem, 7vw, 6rem) var(--rhythm); }
.legal__inner { max-width: 46rem; }
.legal h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.legal h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.legal p { color: var(--ink-2); }
.legal p + p { margin-top: 0.85rem; }
.legal a { color: var(--ink); }
.legal__note {
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */

.footer {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
  padding-block: 2.5rem 3rem;
}
.footer__id { margin-right: auto; line-height: 1.5; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  list-style: none;
}
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media print {
  .masthead { position: static; backdrop-filter: none; }
  .nav, .masthead__end, .skip, .hero__actions, .stage { display: none; }
  .section--contact, .tile--dark { background: none; color: #000; }
  body { background: #fff; }
}
