@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --ink: #292523;
  --secondary: #524d49;
  --red: #b7232a;
  --paper: #fffcf6;
  --desk: #e9e7e2;
  --card-radius: clamp(16px, 2vw, 24px);
  --tile-radius: clamp(9px, 1vw, 12px);
  --card-gap: clamp(24px, 4vw, 48px);
  --card-inset: clamp(21px, 4vw, 58px);
  color: var(--ink);
  background: var(--desk);
  font: 100%/1.5 "DM Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body, h1, h2, p, dl, dd { margin: 0; }
body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  background: radial-gradient(ellipse at 29% 14%, #f5f4f0, transparent 70%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .24em; }
a { touch-action: manipulation; }
a:focus-visible { outline: 3px solid #095b94; outline-offset: 4px; }
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--card-gap);
  min-width: 0;
  width: min(1050px, calc(100% - 88px));
  margin: clamp(45px, 8vh, 105px) auto;
}
.card {
  position: relative;
  isolation: isolate;
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: 0 1px 1px #33201350, 0 5px 8px -6px #38221980, 0 20px 46px -18px #3a241c38;
}
.intro-card, .company-details {
  overflow: clip;
}
.intro-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  z-index: -1;
  width: min(33%, 295px);
  aspect-ratio: 1.65;
  background: url("slovakia.svg") center 70% / cover no-repeat;
  opacity: .53;
  mask-image: linear-gradient(to right, transparent, #000 32%), linear-gradient(to bottom, #000 48%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}
.identity, .face { padding-inline: clamp(26px, 4vw, 58px); }
.identity { padding-top: clamp(26px, 3.6vw, 52px); display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.65vw, 24px); }
h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(39px, 4.2vw, 64px); font-weight: 650; letter-spacing: -.075em; line-height: 1.05; }
h1 img { width: .89em; height: .89em; }
h1 small { font-size: .29em; font-weight: 500; letter-spacing: -.055em; white-space: nowrap; }
.brand-flag { width: clamp(39px, 4vw, 54px); height: auto; box-shadow: 0 0 0 1px #0002; }
.face {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  container-type: inline-size;
  padding-block-start: 35px;
}
.hero-picture { display: contents; }
.trade, .study { grid-area: 1 / 1; }
.trade h2 { margin-top: clamp(8px, 1.2vw, 16px); text-align: right; }
.trade .work-link { margin-bottom: 12px; }
h2 { font-size: clamp(30px, 3vw, 44px); font-weight: 500; line-height: 1.06; letter-spacing: -.06em; margin-bottom: 20px; }
.trade p { color: var(--secondary); font-size: 1rem; line-height: 1.52; text-align: justify; text-align-last: right; }
.trade p + p { margin-top: 10px; }
.study {
  display: block;
  width: 56%;
  height: auto;
  place-self: end;
}
/* Trace the cap, neck and jacket from the bottom edge of the 3:2 illustration. */
@media (min-width: 601px) {
  .trade::before {
    content: "";
    float: right;
    width: 56%;
    height: 100%;
    min-height: max(clamp(19rem, 34rem - 24cqi, 25rem), 37.333cqi);
    shape-margin: 8px;
    shape-outside: polygon(29% 0, 100% 0, 100% 100%, 8% 100%,
      6% calc(100% - 4.7cqi), 3% calc(100% - 11.2cqi),
      4% calc(100% - 14.9cqi), 6% calc(100% - 16.8cqi),
      14% calc(100% - 19.6cqi), 16% calc(100% - 22.4cqi),
      20% calc(100% - 23.3cqi), 20% calc(100% - 24.3cqi),
      11% calc(100% - 25.8cqi), 11% calc(100% - 26.3cqi),
      17% calc(100% - 29.8cqi), 18% calc(100% - 32.7cqi),
      22% calc(100% - 35.5cqi), 29% calc(100% - 37.3cqi));
  }
}
.contact {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.24fr 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 21px clamp(26px, 4vw, 58px) 25px;
  border: 2px solid #111;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--red);
  color: white;
  font-style: normal;
}
.contact-paper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* One sheet is 1em high, matching the paper on an equipment card. */
  font-size: clamp(192px, calc(157px + 13.2vw), 316px);
  filter: brightness(.83);
}
.contact span { display: block; font-size: .875rem; margin-bottom: 3px; color: #ffebe8; }
.contact a { display: inline-block; font-size: clamp(17px, 1.8vw, 25px); letter-spacing: -.04em; font-weight: 500; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.contact a:focus-visible { outline-color: white; }
.contact .chat { font-size: 1rem; letter-spacing: -.025em; background: white; color: var(--red); border: 1px solid white; border-radius: 3px; padding: 11px 20px; }
.contact .chat:hover { background: var(--paper); color: #861821; text-decoration: underline; }
.contact-footer { text-align: center; }
.contact-button {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 3px;
  background: var(--red);
  color: white;
  font-weight: 650;
  text-decoration: none;
}
.contact-button:hover { background: #921b23; }
.company-details { display: grid; grid-template-columns: minmax(0, 1fr) clamp(210px, 23%, 250px); scroll-margin-top: 24px; }
.company-record { padding: clamp(26px, 3.2vw, 42px) var(--card-inset); }
.company-record h2 { margin: 0 0 .45em; font: 600 clamp(2.6rem, 5vw, 4rem)/1 "Barlow Condensed", sans-serif; letter-spacing: -.025em; }
.office-and-team, .registration { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 28px; }
.company-record h3, .registration dt { margin: 0 0 6px; color: var(--secondary); font: 500 .875rem/1.4 "DM Sans", sans-serif; }
.office-address { font-style: normal; line-height: 1.55; }
.office-address strong { font-weight: 650; }
.team-languages { display: grid; gap: 5px; width: fit-content; margin: 0; padding: 0; list-style: none; }
.team-languages li { display: grid; grid-template-columns: 24px 1fr 2ch; gap: 10px; align-items: center; }
.team-languages img { display: block; box-shadow: 0 0 0 1px #0002; }
.team-languages strong { color: #962029; font: 700 1.1rem/1.2 Consolas, monospace; }
.registration { margin-top: 23px; padding-top: 15px; border-top: 1px solid #d6cec2; }
.registration dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.registration a { text-decoration-color: #aa9289; }
.registration a:hover { color: var(--red); text-decoration-color: currentColor; }
.contact-slip {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px 18px;
  border-left: 2px dashed #fffcf6a8;
  color: white;
  background: var(--red);
}
.contact-slip .contact-paper { font-size: 154px; }
.contact-slip figure { margin: 0; text-align: center; }
.contact-slip img { display: block; width: 168px; height: auto; }
.contact-slip figcaption { margin-top: 9px; font-size: .84rem; }
.contact-slip .save { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; background: var(--paper); color: #861b25; font-weight: 650; text-decoration: none; }
.contact-slip .save:hover { color: var(--ink); text-decoration: underline; }
.contact-slip .save:focus-visible { outline-color: white; }
@media (max-width: 760px) {
  .company-details { grid-template-columns: 1fr; }
  .contact-slip { display: block; padding: 0; border-left: 0; border-top: 2px dashed #fffcf6a8; }
  .contact-slip figure { display: none; }
  .contact-slip .save { display: flex; flex-direction: row-reverse; justify-content: space-between; min-height: 54px; padding-inline: var(--card-inset); color: white; background: transparent; }
  .contact-slip .save:focus-visible { outline-offset: -5px; }
}
@media (max-width: 520px) {
  .office-and-team { grid-template-columns: 1fr; }
  .registration { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.work-link, .samples-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--red);
  font-weight: 550;
}
.work-link { margin-top: 6px; }
.work-link:hover, .samples-header a:hover { color: #861821; }
.work-samples { padding: var(--card-inset); }
.samples-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; }
.samples-header h2, .scope h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 0; }
.scope dl { margin-top: 22px; }
.scope dl > div { display: grid; grid-template-columns: minmax(9rem, 1fr) 2fr; gap: 12px 30px; border-top: 1px solid #d5cec2; padding-block: 15px; }
.scope dl > div:last-child { padding-bottom: 0; }
.scope dt { font-weight: 650; }
.scope dd { max-width: 62ch; color: var(--secondary); }
@media (max-width: 600px) {
  .scope dl > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) {
  .desk { width: calc(100% - 40px); }
  .identity, .face { padding-inline: 25px; }
  .identity { justify-content: flex-start; }
  .contact { padding-inline: 25px; gap: 12px; }
  .contact .chat { padding-inline: 12px; }
}
@media (max-width: 600px) {
  body { align-content: start; }
  .desk { width: min(calc(100% - 28px), 435px); margin-block: 22px; }
  .intro-card::before { width: 24%; }
  .identity { padding-top: 24px; }
  .identity, .face { padding-inline: 21px; }
  h1 { font-size: clamp(34px, 9.5vw, 45px); gap: 7px; }
  .face { display: grid; grid-template-columns: minmax(0, 1fr); padding-block-start: 20px; }
  .study { grid-row: 2; float: none; width: min(100%, 330px); justify-self: center; }
  .trade { grid-row: 1; }
  .trade h2 { margin-top: 0; text-align: left; }
  .trade .work-link { margin-bottom: 17px; }
  h2 { font-size: 31px; margin-bottom: 12px; }
  h2 br { display: none; }
  .trade p { font-size: 1rem; line-height: 1.45; text-align: left; text-align-last: auto; }
  .contact { padding: 6px clamp(9px, 3vw, 18px); grid-template-columns: minmax(0, 1fr) auto; gap: 0 6px; }
  .contact > div { grid-column: 1; }
  .contact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .contact a { display: inline-flex; align-items: center; min-height: 28px; font-size: clamp(.9375rem, 4vw, 1.0625rem); line-height: 1.25; }
  .contact .chat { grid-area: 1 / 2 / span 2; min-height: 44px; padding: 0 9px; font-size: .875rem; }
}
@media print {
  body { display: block; background: white; }
  .desk { width: 100%; margin: 0; }
  .card { box-shadow: none; }
  .contact { background: white; color: var(--ink); border-top: 1px solid; }
  .contact-paper { display: none; }
  .contact span { color: inherit; }
  .contact-slip { display: none; }
  .company-details { grid-template-columns: 1fr; }
}
