:root {
  --paper: #f2f0e9;
  --ink: #151513;
  --muted: #676862;
  --line: #aaa9a1;
  --shell: min(100% - 48px, 1480px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
sup { font-size: .55em; line-height: 0; vertical-align: .55em; }
h1, h2, h3 { overflow-wrap: normal; hyphens: manual; }
.js.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delay, 0ms);
}
.js.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.shell { width: var(--shell); margin-inline: auto; }
.logo { width: 126px; height: auto; }

.header {
  height: 92px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}
.header > a { transition: opacity .2s ease; }
.header > a:hover { opacity: .62; }
.header nav { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 14px; }
.header nav a { border-bottom: 1px solid transparent; }
.header nav a:hover { border-color: var(--ink); }
.header a:focus-visible,
.button:focus-visible,
.compact-accordion summary:focus-visible,
.language-menu summary:focus-visible,
.contact-form button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.language-menu { position: relative; }
.language-menu summary {
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .08em;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary i { font-size: 14px; font-style: normal; transition: transform .2s ease; }
.language-menu[open] summary i { transform: rotate(45deg); }
.language-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  min-width: 82px;
  padding: 7px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 12px 30px rgb(21 21 19 / 10%);
}
.language-options a {
  display: block;
  padding: 7px 9px;
  border: 0;
  font-size: 12px;
  letter-spacing: .08em;
  transition: background .18s ease;
}
.language-options a:hover { border: 0; background: rgb(21 21 19 / 7%); }
.language-options a[aria-current="page"] { font-weight: 700; }

.hero {
  min-height: calc(100svh - 92px);
  padding: 64px 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero h1 {
  max-width: 1320px;
  margin: 0;
  font-size: clamp(4.6rem, 9.25vw, 8.7rem);
  line-height: 1;
  letter-spacing: -.07em;
  font-weight: 400;
  text-wrap: balance;
}
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
}
.hero-bottom p {
  margin: 0;
  font-size: clamp(1.25rem, 1.9vw, 1.9rem);
  line-height: 1.22;
  text-wrap: pretty;
}
.text-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-width: 220px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
}
.text-link span { font-size: 20px; }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: fit-content;
  min-width: 250px;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.button:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.button span { display: inline-flex; align-items: center; font-size: 19px; line-height: 1; transition: transform .22s ease; }
.button:hover span { transform: translateX(4px); }

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.services > *, .visual-feature > *, .collaboration > *, .open-source > *, .contact > * { min-width: 0; }
.services > article {
  padding: 36px;
  display: grid;
  grid-template-rows: auto 260px 110px auto;
  align-content: start;
}
.services > article + article { border-left: 1px solid var(--ink); }
.index { font-size: 12px; }
.services h2 {
  max-width: 650px;
  margin: 0 0 25px;
  align-self: start;
  padding-top: 70px;
  font-size: clamp(3.2rem, 5.6vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 400;
  text-wrap: balance;
}
.services > article > p { max-width: 650px; margin: 0 0 38px; color: var(--muted); font-size: 19px; align-self: start; }
.compact-accordion { border-top: 1px solid var(--ink); }
.compact-accordion details { border-bottom: 1px solid var(--line); }
.compact-accordion summary {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
}
.compact-accordion summary::-webkit-details-marker { display: none; }
.compact-accordion summary i { font-size: 18px; font-style: normal; transition: transform .2s; }
.compact-accordion summary span { transition: transform .2s ease; }
.compact-accordion summary:hover span { transform: translateX(4px); }
.compact-accordion details[open] summary i { transform: rotate(45deg); }
.compact-accordion details p { max-width: 580px; margin: 0; padding: 2px 32px 18px 0; color: var(--muted); font-size: 14px; }
.compact-accordion details[open] > p { animation: accordion-in .28s ease both; }

@keyframes accordion-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.visual-feature {
  padding: 110px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}
.visual-feature figure { margin: 0; min-height: 570px; display: grid; place-items: center; background: none; overflow: hidden; }
.visual-feature img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.visual-feature figure:hover img { transform: scale(1.018); }
.visual-feature h2, .stack h2 {
  margin: 0 0 38px;
  font-size: clamp(3.2rem, 5.5vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 400;
  text-wrap: balance;
}
.visual-feature p, .stack p { max-width: 650px; margin: 0; color: var(--muted); font-size: 21px; text-wrap: pretty; }

.section { padding: 120px 0; }
.section > h2,
.collaboration h2,
.open-source h2,
.contact h2 {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 6rem);
  line-height: .9;
  letter-spacing: -.07em;
  font-weight: 400;
  text-wrap: balance;
}

.section > h2 { margin-bottom: 75px; }
.examples { border-top: 1px solid var(--ink); }
.examples article {
  display: grid;
  grid-template-columns: 180px minmax(260px, .8fr) 1fr;
  gap: 35px;
  align-items: center;
  min-height: 128px;
  border-bottom: 1px solid var(--ink);
}
.examples span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.examples h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 3rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 400;
  text-wrap: balance;
  transition: transform .25s ease;
}
.examples p { margin: 0; color: var(--muted); text-wrap: pretty; }
.examples article:hover h3 { transform: translateX(7px); }

.collaboration {
  padding: 120px 0;
  border-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.collaboration-copy { font-size: 22px; line-height: 1.32; }
.collaboration-copy p { max-width: 700px; margin: 0 0 34px; }
.collaboration-copy p + p { color: var(--muted); }
.collaboration-copy .button { margin-top: 12px; }

.stack {
  padding: 100px 0;
  border-top: none;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
  align-items: center;
}
.stack img { width: 100%; max-height: 400px; object-fit: contain; }

.open-source {
  padding: 90px 0;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.open-source p { max-width: 700px; margin: 0; font-size: 22px; }
.open-source .button { margin-top: 35px; }

.contact {
  padding: 100px 0;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
}
.contact h2 { max-width: 1250px; }
.contact-intro p { max-width: 580px; margin: 45px 0 0; color: var(--muted); font-size: 20px; }
.contact-form { border-top: 1px solid var(--ink); padding-top: 28px; }
.contact-form label { display: block; margin-bottom: 28px; font-size: 13px; }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: 0;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-bottom-width: 1px;
  box-shadow: inset 0 -1px 0 var(--ink);
  outline: 0;
}
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: #8b2f28; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form button {
  width: auto;
  min-width: 230px;
  min-height: 54px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
  line-height: 1;
}
.contact-form button span { display: inline-flex; align-items: center; font-size: 20px; line-height: 1; }
.contact-form button:hover { background: transparent; color: var(--ink); }
.contact-form button span { transition: transform .22s ease; }
.contact-form button:hover span { transform: translateX(4px); }
.contact-form button:disabled { opacity: .48; cursor: wait; }
.form-status { min-height: 1.45em; margin: 18px 0 0; font-size: 14px; }
.form-status span, .form-status small { display: block; }
.form-status small { max-width: 560px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.form-status.is-success { color: #285a35; }
.form-status.is-error { color: #8b2f28; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.footer {
  min-height: 180px;
  padding: 38px 0 22px;
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.footer p { margin: 0; font-size: 12px; }

.cookie-notice {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  width: min(440px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 18px 50px rgb(21 21 19 / 16%);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.cookie-notice > div { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.cookie-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: background .2s ease, color .2s ease;
}
.cookie-button:hover { background: transparent; color: var(--ink); }
.cookie-button-secondary { background: transparent; color: var(--ink); }
.cookie-button-secondary:hover { background: rgb(21 21 19 / 7%); }
.cookie-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 850px) {
  :root { --shell: min(100% - 28px, 1480px); }
  .header { height: 76px; align-items: flex-end; padding-bottom: 18px; }
  .header nav { gap: 16px; margin-top: 0; }
  .header nav > a:not(.contact-link) { display: none; }
  .hero { min-height: calc(100svh - 76px); padding-top: 44px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 35px; }
  .hero-bottom .text-link { max-width: 280px; }
  .services, .collaboration, .open-source, .contact, .visual-feature, .stack { grid-template-columns: 1fr; }
  .services { border-top: 0; border-bottom: 0; }
  .services > article { padding: 32px 0; grid-template-rows: auto 220px 100px auto; }
  .services h2 { padding-top: 42px; }
  .services > article + article { border-left: 0; border-top: 0; }
  .services .compact-accordion { border-top: 0; padding-top: 14px; }
  .visual-feature { gap: 55px; }
  .visual-feature figure { min-height: 0; overflow: visible; }
  .visual-feature img { height: auto; min-height: 0; object-fit: contain; }
  .examples article { grid-template-columns: 130px 1fr; padding: 24px 0; }
  .examples p { grid-column: 2; }
  .collaboration, .open-source { gap: 55px; }
}

@media (max-width: 540px) {
  .logo { width: 106px; }
  .hero h1 { font-size: clamp(3.5rem, 6vw, 4rem); margin-bottom: 1.75rem; }
  .hero-bottom p { font-size: 19px; }
  .services > article { grid-template-rows: auto 190px 120px auto; }
  .services h2 { padding-top: 34px; }
  .visual-feature { padding: 80px 0; }
  .stack { padding: 80px 0; }
  .section { padding: 85px 0; }
  .section > h2 { margin-bottom: 50px; }
  .examples article { grid-template-columns: 1fr; gap: 10px; }
  .examples p { grid-column: auto; }
  .collaboration, .open-source { padding: 85px 0; }
  .collaboration-copy, .open-source p { font-size: 19px; }
  .contact { padding: 80px 0; gap: 60px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer { min-height: 150px; flex-direction: column; gap: 40px; }
  .cookie-notice { right: 14px; bottom: 14px; width: calc(100% - 28px); }
  .cookie-notice > div { justify-content: stretch; }
  .cookie-button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js.reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
