:root {
  --al: #ffffff;        /* page */
  --deep: #10297d;      /* blueprint: header, hero, footer */
  --face: #e6edfc;      /* light blue: alternate band */
  --ink: #1a1d22;       /* graphite: text */
  --blue: #1b3fa8;      /* layout fluid: lines, links, buttons */
  --pa: #3b3f45;        /* sintered nylon: SLS band */
  --muted: #59606a;
  --origin: #f26a1b;    /* work zero: logo dot and drawing origin only */
  --rule: rgba(26, 29, 34, .16);
  --display: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--al);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--origin); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--deep); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.top .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 72px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto;
  background: #0a0b0d; color: #fff; padding: 7px 16px 7px 11px; border-radius: 3px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85);
}
.brand svg { width: 30px; height: 30px; }
.brand-name { font-weight: 600; letter-spacing: .14em; font-size: 17px; white-space: nowrap; }
.brand-name span { font-weight: 400; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a, .lang {
  text-decoration: none; font-size: 15px; font-weight: 500; color: #fff;
  background: #0a0b0d; padding: 7px 14px; border-radius: 3px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85);
}
.lang { font-weight: 600; }
.nav a:hover, .lang:hover { background: #fff; color: #0a0b0d; }

/* Hero */
.hero {
  padding: 72px 0 96px; color: #fff;
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: center top;
}
.hero .btn { background: #fff; color: var(--deep); }
.hero .btn:hover { background: #dfe6f7; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
h1 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(50px, 7.4vw, 104px); line-height: .9; letter-spacing: .004em;
  margin: 0 0 28px;
}
.lead { font-size: clamp(18px, 1.7vw, 21px); max-width: 34em; margin: 0 0 32px; }
.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 17px; padding: 14px 24px; border-radius: 3px;
}
.btn:hover { background: #142f80; }

.envelope { margin: 0; }
.envelope figcaption { font-size: 15px; color: rgba(255, 255, 255, .78); margin-top: 8px; }
.envelope svg { width: 100%; height: auto; overflow: visible; }
.envelope .ln { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.envelope .hid { fill: none; stroke: #fff; stroke-width: 1.3; stroke-dasharray: 7 6; opacity: .55; }
.envelope .f-al { fill: rgba(255, 255, 255, .22); }
.envelope .f-al.side { fill: rgba(255, 255, 255, .07); }
.envelope .f-al.front { fill: rgba(255, 255, 255, .14); }
.envelope .f-pa { fill: #9399a3; }
.envelope .f-pa.side { fill: #5d626b; }
.envelope .f-pa.front { fill: #777c86; }
.envelope text { font-family: var(--display); font-weight: 600; font-size: 24px; fill: #fff; }
.envelope text.name { font-size: 27px; font-weight: 800; }
.envelope .zero { fill: var(--origin); }

@media (prefers-reduced-motion: no-preference) {
  .envelope .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; }
  .envelope .pa .ln { animation-delay: .55s; }
  .envelope .late { opacity: 0; animation: show .5s ease-out 1.3s forwards; }
  .envelope .hid.late { animation-name: show-hid; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@keyframes show-hid { to { opacity: .55; } }

/* Technology bands */
.tech { padding: 84px 0; }
.tech .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px 72px; align-items: start; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.8vw, 62px); line-height: 1; margin: 0 0 20px; }
.tech p { margin: 0 0 24px; max-width: 34em; }
.takes { margin: 0; padding: 0; list-style: none; }
.takes li { padding: 12px 0; border-top: 1px solid var(--rule); }
.takes li:last-child { border-bottom: 1px solid var(--rule); }

.machine { margin: 0; padding: 28px; border-radius: 3px; }
.machine h3 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; margin: 0 0 4px; }
.machine .kind { margin: 0 0 18px; font-size: 16px; }
.spec { margin: 0; }
.spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.spec dt { font-size: 16px; }
.spec dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }

.tech-al {
  background-color: var(--al);
}
.tech-al .machine { background: var(--al); border: 1.5px solid var(--blue); box-shadow: 0 24px 48px -28px rgba(16, 41, 125, .45); }
.tech-al .kind, .tech-al .spec dt { color: var(--muted); }

.tech-pa { background: #0b1c58; color: #fff; --rule: rgba(255, 255, 255, .22); }
.tech-pa .machine { background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .35); }
.tech-pa .kind, .tech-pa .spec dt { color: #c9d4f2; }
.tech-pa :focus-visible { outline-color: #fff; }

/* Photos */
.shot { margin: 0; grid-column: 1 / -1; }
.shot img { width: 100%; height: auto; border-radius: 3px; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.tech-al .shot img { aspect-ratio: 5 / 2; object-fit: cover; object-position: center 45%; }
.tech-pa .shot { background: #fff; padding: 20px 24px 16px; border-radius: 3px; }
.tech-pa .shot figcaption { color: #59606a; }

/* Ordering steps */
.order { padding: 84px 0; }
.order .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.order .shot { grid-column: auto; }
.order .shot img { aspect-ratio: 4 / 3; object-fit: cover; }
.steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--blue); padding-top: 12px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--blue); display: block; }
.steps h3 { font-size: 20px; font-weight: 600; margin: 8px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }

/* Contact: drawing title block */
.order { background: var(--face); }
.contact { padding: 84px 0; }
.contact > .wrap > p { max-width: 34em; margin: 0 0 28px; }
.titleblock { margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; border: 2px solid var(--blue); background: var(--blue); }
.titleblock div { padding: 14px 18px 16px; background: var(--al); min-width: 0; }
.titleblock dt { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.titleblock dd { margin: 0; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.titleblock a { color: var(--blue); text-underline-offset: 3px; }

.foot { background: var(--deep); padding: 28px 0; font-size: 15px; color: rgba(255, 255, 255, .82); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero .wrap, .tech .wrap, .order .wrap { grid-template-columns: 1fr; }
  .order .wrap { gap: 32px; }
  .tech-al .shot img { aspect-ratio: 16 / 9; }
  .titleblock { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .top .wrap { padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; }
  .hero { padding: 36px 0 48px; }
  .tech, .order { padding: 56px 0; }
  .contact { padding: 56px 0; }
  .machine { padding: 20px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .titleblock { grid-template-columns: 1fr; }
  .envelope text { font-size: 28px; }
  .envelope text.name { font-size: 31px; }
}
