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

:root {
  /* Cheque-blue band, cool statement paper, thermal receipt paper. */
  --band: #1b2766;
  --band-deep: #121b4d;
  --band-ink: #f2f4fb;
  --band-muted: #b8c0e6;
  --page: #f3f5f9;
  --ink: #141b3a;
  --muted: #565e7a;
  --rule: #d3d9e6;
  --link: #2a3fbf;
  --paper: #fdfdfb;
  --thermal: #2a2a2e;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max: 72rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --band: #121a48;
    --band-deep: #0b1135;
    --page: #0e1330;
    --ink: #e6e9f3;
    --muted: #9ea6c4;
    --rule: #263058;
    --link: #9fb0ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f5c84c; outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-stretch: 125%; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-stretch: 110%; font-weight: 700; line-height: 1.2; }

/* ---------- Band (header, hero, contact, footer) ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band a { color: var(--band-ink); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.brand { font-weight: 800; font-stretch: 125%; font-size: 1.1rem; text-decoration: none; }
.top nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--band-muted); }
.top nav a:hover { color: var(--band-ink); }
.top nav .lang { color: var(--band-ink); border: 1px solid var(--band-muted); border-radius: 3px; padding: 0 0.4rem; }

.hero { display: grid; gap: 3rem; padding-top: 3rem; align-items: start; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-stretch: 125%; letter-spacing: -0.02em; max-width: 13ch; }
.hero .lead { color: var(--band-muted); font-size: 1.15rem; max-width: 34rem; margin: 1.5rem 0 2rem; }
.hero-copy { padding-bottom: 3rem; }
@media (min-width: 60rem) {
  .hero { grid-template-columns: 1fr 21rem; gap: 4rem; padding-top: 4.5rem; }
  .hero-copy { padding-bottom: 5rem; }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.3rem; border-radius: 4px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--band-ink);
}
.btn-solid { background: var(--band-ink); color: var(--band) !important; }
.btn-solid:hover { background: transparent; color: var(--band-ink) !important; }
.btn-line:hover { background: var(--band-ink); color: var(--band) !important; }

/* ---------- Receipt: the one loud element ---------- */
.printer { width: 100%; max-width: 21rem; margin: 0 auto; }
.printer-mouth {
  height: 22px; border-radius: 8px 8px 0 0;
  background: var(--band-deep);
  box-shadow: inset 0 -6px 0 #070b26;
}
.printer-feed { overflow: hidden; padding-bottom: 14px; }
.receipt {
  position: relative;
  margin: 0 10px;
  background: var(--paper);
  color: var(--thermal);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  text-transform: uppercase;
  padding: 1.25rem 1.1rem 2rem;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  animation: print 2.2s steps(22, end) 0.4s both;
}
@keyframes print { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .receipt { animation: none; } }

.receipt p { margin: 0; }
.receipt .head { text-align: center; padding-bottom: 0.75rem; }
.receipt .head strong { font-size: 1rem; letter-spacing: 0.05em; }
.receipt .block { border-top: 1px dashed currentColor; padding: 0.6rem 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 1rem; }
.receipt .row span:last-child { text-align: right; }
.receipt .total { font-weight: 700; font-size: 0.95rem; }
.receipt .stamp { background: var(--thermal); color: var(--paper); text-align: center; padding: 0.3rem; margin: 0.4rem 0; font-weight: 700; }
.receipt .foot { text-align: center; padding-top: 0.6rem; border-top: 1px dashed currentColor; }

/* ---------- Content sections ---------- */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--rule); }
.intro { color: var(--muted); max-width: 40rem; margin: 1rem 0 2.5rem; }

/* Services: heading left, text right */
.services { margin: 0; }
.service { display: grid; gap: 0.5rem 3rem; padding: 1.5rem 0; border-top: 2px solid var(--ink); }
.service p { margin: 0; color: var(--muted); max-width: 40rem; }
@media (min-width: 52rem) { .service { grid-template-columns: 20rem 1fr; } }

/* Products: read like statement lines */
.statement { width: 100%; border-collapse: collapse; }
.statement th { text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--muted); padding: 0 1rem 0.6rem 0; border-bottom: 2px solid var(--ink); }
.statement td { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.statement td:first-child { font-weight: 700; font-stretch: 112%; font-size: 1.1rem; white-space: nowrap; }
.statement td:nth-child(2) { color: var(--muted); }
.statement .amount, .statement th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.statement .amount { font-weight: 700; }
.statement .case { display: block; font-size: 0.88rem; margin-top: 0.3rem; }
@media (max-width: 46rem) {
  .statement thead { display: none; }
  .statement tr { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
  .statement td { display: block; padding: 0; border: 0; }
  .statement td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

/* Experience */
.experience { display: grid; gap: 3rem; }
.experience .bio p { margin: 0 0 1rem; max-width: 36rem; }
.stack { color: var(--muted); font-size: 0.95rem; max-width: 36rem; }
.jobs { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.job:first-child { border-top: 2px solid var(--ink); }
.job .when { font-weight: 700; font-size: 0.95rem; }
.job h3 { font-size: 1.1rem; }
.job .where { color: var(--muted); font-size: 0.95rem; }
.job ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.97rem; }
.job li { margin-bottom: 0.2rem; }
@media (min-width: 60rem) { .experience { grid-template-columns: 1fr 1.35fr; gap: 5rem; } }

/* Principles */
.principles { display: grid; gap: 2rem; }
.principles p { margin: 0.5rem 0 0; color: var(--muted); max-width: 32rem; }
@media (min-width: 52rem) { .principles { grid-template-columns: 1fr 1fr; gap: 2.5rem 5rem; } }

/* Contact */
.contact { padding-block: 5rem 3rem; }
.contact h2 { color: var(--band-ink); max-width: 16ch; }
.contact p { color: var(--band-muted); max-width: 36rem; margin: 1.25rem 0 2rem; }
.mail-big {
  display: inline-block; font-weight: 800; font-stretch: 125%;
  font-size: clamp(1.4rem, 5vw, 3rem); letter-spacing: -0.01em;
  text-decoration-thickness: 2px; margin-bottom: 2rem; word-break: break-all;
}

footer { border-top: 1px solid rgba(184, 192, 230, 0.25); padding: 1.5rem 0 2.5rem; font-size: 0.9rem; color: var(--band-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer a { color: var(--band-muted) !important; }

@media (max-width: 40rem) {
  .top nav a:not(.lang) { display: none; }
  section { padding: 3.25rem 0; }
}
