:root {
  --ink: #11151b;
  --ink-soft: rgba(17, 21, 27, 0.72);
  --ink-muted: rgba(17, 21, 27, 0.56);
  --paper: #f8fbff;
  --paper-strong: #f1f7ff;
  --white: #ffffff;
  --soft: #eaf4ff;
  --line: rgba(18, 58, 104, 0.15);
  --line-strong: rgba(18, 58, 104, 0.28);
  --accent: #126ee8;
  --accent-dark: #0b4fae;
  --deep: #101a27;
  --deep-soft: #162438;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav {
  display: flex;
  gap: 30px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 760;
}

.nav a,
.footer-links a,
.back-link,
.project-link {
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.language-switcher {
  position: relative;
  width: 116px;
  flex: 0 0 116px;
}

.language-trigger {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  cursor: pointer;
  padding: 0 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  border-color: rgba(18, 110, 232, 0.42);
  background: var(--white);
}

.language-icon,
.language-chevron {
  display: inline-flex;
  align-items: center;
  color: rgba(17, 21, 27, 0.58);
}

.language-icon svg {
  display: block;
}

.flag {
  display: inline-block;
  width: 24px;
  height: 16px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(17, 21, 27, 0.18);
}

.flag-de {
  background: linear-gradient(to bottom, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}

.flag-fr {
  background: linear-gradient(to right, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66%);
}

.flag-it {
  background: linear-gradient(to right, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66%);
}

.flag-gb {
  background:
    linear-gradient(27deg, transparent 44%, #fff 44% 49%, #c8102e 49% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(153deg, transparent 44%, #fff 44% 49%, #c8102e 49% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(to bottom, transparent 38%, #fff 38% 45%, #c8102e 45% 55%, #fff 55% 62%, transparent 62%),
    linear-gradient(to right, transparent 34%, #fff 34% 42%, #c8102e 42% 58%, #fff 58% 66%, transparent 66%),
    #012169;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 178px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 6px;
  box-shadow: 0 18px 42px rgba(13, 30, 52, 0.14);
}

.language-menu[hidden] {
  display: none;
}

.language-menu-option {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.language-menu-option:hover,
.language-menu-option.active {
  background: rgba(18, 110, 232, 0.09);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 64%),
    var(--paper);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(36px, 7vw, 92px);
  padding: clamp(44px, 7vw, 76px) 0 34px;
}

.hero-logo-crop {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 0 clamp(34px, 6vw, 58px);
}

.hero-logo {
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 8.2vw, 108px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.03;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.12;
}

.hero-text {
  align-self: end;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.hero-text p,
.section-intro p,
.work-row p,
.case-copy,
.profile-text,
.legal-page .lead,
.contact-layout p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.72;
}

.hero-text p {
  margin-bottom: 0;
}

.hero-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 0 0 38px;
}

.hero-principles div {
  min-height: 126px;
  border-right: 1px solid var(--line);
  padding: 24px 28px 0 0;
}

.hero-principles div + div {
  padding-left: 28px;
}

.hero-principles div:last-child {
  border-right: 0;
}

.hero-principles span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-principles p {
  max-width: 270px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
}

.section {
  padding: clamp(72px, 9vw, 104px) 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(160px, 0.3fr) 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}

.works-section {
  background: var(--white);
}

.work-index {
  border-top: 1px solid var(--line-strong);
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(164px, 0.26fr);
  gap: 34px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.work-meta,
.case-meta,
.case-facts dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.work-row p,
.work-row h3 {
  max-width: 760px;
}

.work-row p {
  margin-bottom: 0;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.project-title h3 {
  margin-bottom: 0;
}

.project-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(13, 30, 52, 0.14);
}

.project-link {
  display: inline-flex;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 850;
}

.work-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--ink-muted);
  text-align: right;
}

.muted-row {
  margin: 0 -18px;
  border: 1px dashed rgba(18, 110, 232, 0.2);
  border-top: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(18, 110, 232, 0.045), rgba(18, 110, 232, 0) 62%),
    var(--white);
  padding-right: 18px;
  padding-left: 18px;
  color: rgba(17, 21, 27, 0.68);
}

.muted-row h3 {
  color: rgba(17, 21, 27, 0.74);
  font-size: clamp(22px, 2.3vw, 30px);
}

.muted-row .work-meta {
  color: rgba(18, 110, 232, 0.68);
}

.case-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--soft) 0%, #f4f9ff 100%);
}

.case-layout,
.profile-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 7vw, 92px);
}

.case-copy p {
  margin-bottom: 30px;
}

.case-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(18, 58, 104, 0.22);
}

.case-facts div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  border-bottom: 1px solid rgba(18, 58, 104, 0.16);
  padding: 18px 0;
}

.case-facts dd {
  margin: 0;
  color: var(--ink-soft);
}

.profile-section {
  background: var(--paper);
}

.profile-text {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.profile-text p:last-child {
  margin-bottom: 0;
}

.contact-section {
  background:
    linear-gradient(135deg, var(--deep) 0%, var(--deep-soft) 100%);
  color: var(--paper);
}

.contact-section .eyebrow {
  color: #7cb7ff;
}

.contact-section h2 {
  color: var(--white);
}

.contact-link {
  align-self: end;
  justify-self: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--paper);
  font-size: clamp(25px, 3.8vw, 44px);
  font-weight: 760;
  line-height: 1.12;
}

.contact-link:hover {
  border-color: #7cb7ff;
  color: #b9d9ff;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--deep);
  color: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-size: 14px;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.legal-main {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%),
    var(--paper);
}

.legal-page {
  width: min(100% - 48px, 900px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 76px) 0 clamp(76px, 10vw, 104px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 42px;
  border-bottom: 1px solid transparent;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 850;
}

.back-link:hover {
  border-color: currentColor;
}

.legal-page h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 72px);
}

.legal-page .lead {
  max-width: 680px;
  margin-bottom: 44px;
}

.legal-box {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 18px 34px;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.legal-box h2 {
  grid-column: 1;
  margin: 0;
  color: var(--accent-dark);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.legal-box p {
  grid-column: 2;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.legal-box p + p {
  margin-top: 4px;
}

.legal-box a {
  border-bottom: 1px solid rgba(18, 110, 232, 0.35);
  color: var(--accent-dark);
  font-weight: 760;
}

.legal-box a:hover {
  border-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-layout,
  .section-intro,
  .case-layout,
  .profile-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-text,
  .profile-text {
    border-left: 0;
    padding-left: 0;
  }

  .hero-principles {
    grid-template-columns: 1fr;
    padding-bottom: 30px;
  }

  .hero-principles div,
  .hero-principles div + div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .hero-principles div:last-child {
    border-bottom: 0;
  }

  .work-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-meta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .container,
  .legal-page {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 72px;
    gap: 14px;
  }

  .brand {
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  .language-switcher {
    width: 104px;
    flex-basis: 104px;
  }

  .language-trigger {
    min-height: 38px;
    gap: 6px;
    padding: 0 9px;
    font-size: 12px;
  }

  .language-menu {
    right: -2px;
    width: 168px;
  }

  .hero-layout {
    padding-top: 34px;
  }

  .hero-logo-crop {
    margin-bottom: 28px;
  }

  h1 {
    font-size: 47px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 25px;
  }

  .hero-text p,
  .section-intro p,
  .work-row p,
  .case-copy,
  .profile-text,
  .legal-page .lead,
  .contact-layout p {
    font-size: 16px;
    line-height: 1.66;
  }

  .hero-principles p {
    font-size: 16px;
  }

  .section {
    padding: 62px 0;
  }

  .section-intro {
    gap: 14px;
    margin-bottom: 28px;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .work-meta {
    grid-column: auto;
  }

  .muted-row {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .project-title {
    align-items: flex-start;
  }

  .project-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .case-facts div,
  .legal-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-box h2,
  .legal-box p {
    grid-column: 1;
  }

  .legal-box p + p {
    margin-top: 0;
  }

  .contact-link {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
