:root {
  color-scheme: light;
  --ink: #181818;
  --muted: #5f5f5f;
  --line: #bcbcbc;
  --line-dark: #777;
  --paper: #fff;
  --field: #f3f3f3;
  --chrome: #d8d8d8;
  --accent: #111;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    var(--chrome);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Liberation Mono", Menlo, monospace;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page-frame {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  max-width: 1060px;
  height: calc(100vh - 56px);
  margin: 24px auto;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  padding: 24px 18px;
  background: var(--field);
  border-right: 1px solid var(--line);
}

.brand {
  display: block;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav a {
  display: block;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: #fff;
  background: var(--accent);
  outline: none;
}

.sidebar-actions {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
}

.contact-button,
.imprint-button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  font: inherit;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.language-switcher {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 8px;
}

.language-button {
  display: inline-flex;
  position: relative;
  width: 24px;
  height: 16px;
  background: transparent;
  opacity: 0.5;
  text-decoration: none;
  filter: saturate(0.7);
  transition: opacity 140ms ease, box-shadow 140ms ease;
}

.contact-icon,
.imprint-icon {
  display: block;
  flex: 0 0 auto;
  width: 1.12em;
  height: 1.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-flag {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

.imprint-icon {
  transform: translateY(-0.08em);
}

.contact-button .contact-icon,
.inline-contact-button .contact-icon {
  transform: translateY(-0.025em);
}

.contact-button:hover,
.contact-button:focus-visible,
.imprint-button:hover,
.imprint-button:focus-visible,
.imprint-button[aria-current="page"] {
  color: #fff;
  background: var(--accent);
  outline: none;
}

.language-button:hover,
.language-button:focus-visible {
  opacity: 1;
  filter: none;
  outline: none;
}

.language-button:focus-visible .language-flag {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accent);
}

.language-button[aria-current="true"] {
  opacity: 1;
  filter: none;
}

.language-button[aria-current="true"]::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: -5px;
  left: 5px;
  height: 2px;
  background: var(--accent);
}

.inline-contact-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.4rem 0 0;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}

.inline-contact-button:hover,
.inline-contact-button:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: none;
}

.content {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(28px, 6vw, 72px);
}

.hero,
.page-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.1;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  letter-spacing: -0.08em;
}

h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem;
}

.lede {
  max-width: 620px;
  color: #2c2c2c;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 20px;
  background: var(--field);
  border: 1px solid var(--line-dark);
  box-shadow: inset 2px 2px 0 #fff;
}

.card-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.pillar-card a {
  align-self: flex-start;
  display: inline-block;
  margin-top: auto;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
}

.pillar-card a::before {
  content: "»";
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.92em;
}

.pillar-card a:hover,
.pillar-card a:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: none;
}

.capability-section,
.problem-strip,
.work-section,
.note-box {
  margin-top: clamp(24px, 4vw, 44px);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.capability-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line-dark);
  box-shadow: inset 2px 2px 0 var(--field);
}

.capability-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3c3c3c;
}

.capability-card li {
  margin-bottom: 0.45rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.panel {
  min-height: 190px;
  padding: 18px;
  background: var(--field);
  border: 1px solid var(--line-dark);
  box-shadow: inset 2px 2px 0 #fff;
}

.panel p,
.pillar-card p,
.page-copy p {
  color: #3c3c3c;
}

.note-box {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line-dark);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin-top: 22px;
}

.product-card {
  --product-logo-size: 128px;
  display: grid;
  grid-template-columns: var(--product-logo-size) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--field);
  border: 1px solid var(--line-dark);
  box-shadow: inset 2px 2px 0 #fff;
}

.product-logo-panel {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--product-logo-size);
  aspect-ratio: 1 / 1;
  padding: 10px;
  background: hsl(221,14%,9%);
  border: 1px solid hsl(221,14%,9%);
}

.product-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: var(--product-logo-size);
}

.product-logo {
  display: block;
  width: 100%;
  height: auto;
}

.page-copy .product-card h2 {
  margin: 0 0 8px;
}

.product-card p {
  margin-bottom: 0;
}

.product-card a {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
}

.product-card a::before {
  content: "»";
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.92em;
}

.product-card a:hover,
.product-card a:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: none;
}

.page-copy h2 {
  margin-top: 2rem;
}

.page-copy ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: #3c3c3c;
}

.page-copy li {
  margin-bottom: 0.45rem;
}

@media (max-width: 780px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .page-frame {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    margin: 0;
    border-width: 0;
    box-shadow: none;
    overflow: visible;
  }

  .content {
    overflow-y: visible;
  }

  .sidebar {
    row-gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    width: 100%;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .contact-button {
    margin-top: 0;
  }

  .pillar-grid,
  .capability-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .product-card {
    --product-logo-size: 96px;
    grid-template-columns: 1fr;
  }

  .product-logo-panel {
    width: 96px;
  }
}
