:root {
  color-scheme: light;
  --red: rgb(255 0 0);
  --matrix-background: rgb(255 0 0);
  --matrix-background-rgb: 255 0 0;
  --matrix-character: rgb(255 255 255 / 90%);
  --matrix-character-head: #ffffff;
  --line: rgb(255 0 0 / 42%);
  --page: #fffdfc;
  --header-height: 88px;
  --footer-height: 48px;
  --content-height: calc(100svh - var(--header-height) - var(--footer-height));
  --page-gutter: 24px;
  --text: 18px;
  --text-md: clamp(21px, 2.15vw, 30px);
  --text-lead: clamp(22px, 2vw, 31px);
  --text-lg: clamp(24px, 2.5vw, 40px);
  --nav-font-size: 17px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
body {
  margin: 0;
  color: var(--red);
  background: var(--page);
  font-family: "Basel Classic", Arial, Helvetica, sans-serif;
  font-size: var(--text);
  font-weight: 430;
  line-height: 1.5;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-main a { overflow-wrap: anywhere; }
:where(a, button, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
:where(a, button, summary) { -webkit-tap-highlight-color: rgb(255 0 0 / 16%); }

.container-fluid {
  width: 100%;
  padding-inline: var(--page-gutter);
}

.site-ornament {
  position: fixed;
  top: 6px;
  right: var(--page-gutter);
  z-index: 20;
  display: block;
  width: clamp(2.6rem, 5.1vw, 3.95rem);
  padding: 0;
  border: 0;
  background: transparent;
  user-select: none;
}
.site-ornament-image {
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--page);
  transition: transform .2s ease;
}
.site-header .container-fluid {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  gap: 28px;
}

.site-main {
  padding-bottom: var(--footer-height);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--page);
  font-size: var(--nav-font-size);
  transition: transform .2s ease;
}
.site-footer .container-fluid {
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding-block: 17px;
}
.site-footer-copy { flex-shrink: 0; }
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5em;
}
.language-switch {
  display: inline-flex;
  gap: 0.7em;
  flex-shrink: 0;
  margin-left: auto;
}

body.is-chrome-hidden .site-header { transform: translateY(-100%); }
body.is-chrome-hidden .site-footer { transform: translateY(100%); }
body.is-chrome-hidden:has(.site-ornament:hover) .site-header,
body.is-chrome-hidden:has(.site-header:hover) .site-header {
  transform: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo-image {
  height: clamp(22px, 2.6vw, 42px);
  width: auto;
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  flex: 1 1 0;
  font-size: var(--nav-font-size);
}
.desktop-nav--left { justify-content: flex-start; }
.desktop-nav--right { justify-content: flex-end; }
.desktop-nav a { text-decoration: none; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.no-underline,
.no-underline:hover { text-decoration: none; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

.matrix-surface { position: relative; isolation: isolate; background: var(--red); }
.matrix-surface canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100svh;
  margin: 0;
  pointer-events: none;
}
.hero-content,
.contact-content {
  position: relative;
  z-index: 1;
}

.hero-section { min-height: var(--content-height); }
.hero-content {
  display: flex;
  align-items: center;
  width: 52%;
  min-height: inherit;
  padding-block: 70px;
  color: #fff;
  background: linear-gradient(90deg, var(--red) 20%, rgb(255 0 0 / 88%) 72%, transparent);
}
.hero-content p {
  max-width: 570px;
  margin: 0;
  font-family: "Basel Classic", Arial, Helvetica, sans-serif;
  font-size: clamp(25px, 3.1vw, 50px);
  font-weight: 535;
  line-height: 1.08;
  text-transform: none;
}
.section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) 1.55fr;
  min-height: var(--content-height);
  padding-block: 80px;
  border-bottom: 1px solid var(--line);
}
.site-main p { margin: 0 0 1em; }
.hero-content p { margin: 0; }

.section-heading :is(h1, h2),
.red-panel :is(h1, h2),
.contact-content :is(h1, h2),
.news-detail-copy h1,
.text-prose :is(h1, h2) {
  margin: 0 0 1em;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.specializations-section,
.text-section,
.news-detail.matrix-surface {
  --matrix-background: var(--page);
  --matrix-background-rgb: 255 253 252;
  --matrix-character: rgb(255 0 0 / 28%);
  --matrix-character-head: rgb(255 0 0 / 72%);
  min-height: var(--content-height);
  background: var(--page);
}
.specializations-section.matrix-surface > canvas,
.text-section.matrix-surface > canvas,
.news-detail.matrix-surface > canvas {
  left: 52%;
  width: 48%;
}
.specializations-layout {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding-block: 80px;
}
.practice-list { max-width: 920px; }
.practice-item {
  --practice-arrow-left: 14px;
  --practice-arrow-size: 16px;
  --practice-arrow-width: calc(var(--practice-arrow-size) * 0.866);
  --practice-gap: 15px;
  --practice-indent: calc(var(--practice-arrow-left) + var(--practice-arrow-width) + var(--practice-gap));
  --practice-summary-pad: 14px;
  color: var(--red);
}
.practice-item summary {
  position: relative;
  padding: var(--practice-summary-pad) 24px var(--practice-summary-pad) var(--practice-indent);
  font-size: var(--text-md);
  font-weight: 430;
  cursor: pointer;
}
.practice-item summary::-webkit-details-marker,
.practice-item summary::marker { display: none; content: none; }
.practice-item summary::before {
  content: "";
  position: absolute;
  top: calc(var(--practice-summary-pad) + (1lh - var(--practice-arrow-size)) / 2);
  left: var(--practice-arrow-left);
  width: var(--practice-arrow-width);
  height: var(--practice-arrow-size);
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform-origin: center;
  transition: transform .18s ease-out;
}
.practice-item[open] summary {
  color: #fff;
  background: var(--red);
}
.practice-item[open] {
  color: #fff;
  background: var(--red);
}
.practice-item[open] summary::before {
  transform: rotate(90deg);
}
.practice-item-panel { overflow: hidden; }
.practice-item-body {
  padding: 0 24px 22px var(--practice-indent);
  font-size: var(--text);
}
.practice-item-body p {
  margin: 0 0 1em;
  font-size: inherit;
  line-height: 1.5;
}
.practice-item-body p:last-child { margin-bottom: 0; }

@media (hover: hover) and (pointer: fine) {
  .practice-item:hover summary {
    color: #fff;
    background: var(--red);
  }
}

.section-rain {
  position: absolute;
  top: 70px;
  right: 110px;
  color: rgb(255 0 0 / 14%);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 18px;
  pointer-events: none;
}

.news-detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 70px;
  align-items: start;
}
.news-detail-copy time {
  display: block;
  margin-bottom: 12px;
}
.news-detail-copy h1 {
  width: min-content;
  max-width: 100%;
}
.news-detail-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-detail-images figure { margin: 0; }
.news-detail-images img { width: 100%; height: auto; }
.news-attachments {
  margin: 1.5em 0 0;
  padding: 0;
  list-style: none;
}
.news-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.news-attachment svg { flex: none; }

.red-panel { color: #fff; background: var(--red); }

.about-intro,
.about-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: var(--content-height);
}
.about-copy {
  min-height: var(--content-height);
  padding-block: 80px;
}
.about-copy p,
.about-assistants .section-heading + p,
.assistants-section .section-heading + p {
  margin: 0 0 1em;
}
.about-copy p:last-child { margin-bottom: 0; }
.lead {
  font-size: var(--text-lead);
}

.about-photo {
  position: relative;
  min-height: var(--content-height);
  margin: 0;
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo figcaption {
  position: absolute;
  left: var(--page-gutter);
  right: var(--page-gutter);
  bottom: var(--page-gutter);
  color: #fff;
}

.about-photo--framed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px var(--page-gutter);
}
.about-photo--framed img {
  position: static;
  width: min(440px, 100%);
  height: auto;
  max-height: calc(var(--content-height) - 180px);
  object-fit: contain;
}

.about-profile .about-photo--framed {
  justify-content: flex-start;
  padding-top: calc(80px + 0.7lh);
}

.about-assistants {
  min-height: var(--content-height);
  padding-block: 80px;
}
.assistants-section { display: block; }
.assistants-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 70px; margin-top: 60px; }
.assistant-card { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 24px; align-items: start; }
.assistant-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.assistant-card h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.assistant-card p { margin: 0 0 1em; }
.assistant-card p:last-child { margin-bottom: 0; }

.publications-section,
.news-section,
.news-detail {
  display: block;
  border-bottom: 0;
}
.text-section {
  display: block;
  border-bottom: 0;
}
.text-prose {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}
.text-prose :is(h3, h4) {
  margin: 1.4em 0 0.55em;
  font-size: var(--text-md);
  font-weight: 535;
  line-height: 1.2;
}
.text-prose :is(ul, ol) {
  margin: 0 0 1em;
  padding-left: 1.15em;
}
.text-prose a,
.news-detail-copy a {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.publication-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 55px; }
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 44px;
  row-gap: 72px;
  margin-top: 55px;
}
@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}
@supports (display: grid-lanes) {
  .news-grid {
    display: grid-lanes;
  }
}
.news-grid.is-masonry {
  display: block;
  position: relative;
}
.news-grid.is-masonry > .publication-card {
  margin: 0;
}
.publication-card { min-width: 0; }
.publication-image {
  aspect-ratio: 4 / 5;
  width: 90%;
  overflow: hidden;
}
.news-grid .news-image {
  aspect-ratio: 5 / 4;
  width: 100%;
  overflow: hidden;
  margin-block: 0.5lh;
}
.publication-image:empty { display: none; }
.publication-image img,
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.publication-card h3 {
  margin: 18px 0 0;
  font-size: var(--text);
  font-weight: 535;
}
.publication-card p {
  margin: 0;
  font-size: var(--text);
  line-height: 1.45;
}

.contact-section {
  min-height: var(--content-height);
  color: #fff;
}
.contact-content {
  position: relative;
  z-index: 1;
  width: 52%;
  min-height: inherit;
  padding-block: 80px;
  background: linear-gradient(90deg, var(--red) 20%, rgb(255 0 0 / 88%) 72%, transparent);
}
.contact-content address {
  margin: 0;
  font-size: var(--text);
  font-style: normal;
  line-height: 1.4;
}
.contact-content address p { margin: 0 0 1em; }
.contact-content address p:last-child { margin-bottom: 0; }
.contact-content address .contact-brand {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.15;
}
.contact-content address .contact-legal { margin: 0 0 1.5em; }
.contact-content a { text-decoration: none; }
.contact-content a:hover { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 1100px) {
  :root {
    --header-height: 72px;
    --footer-height: 0px !important;
    --page-gutter: clamp(16px, 3.2vw, 24px);
    --text: 16px;
    --text-md: 20px;
    --text-lead: clamp(19px, 3.2vw, 23px);
    --text-lg: clamp(23px, 4vw, 29px);
    --nav-font-size: 14px;
  }
  html,
  body { overflow-x: clip; }
  .site-main { padding-bottom: 0; }
  .site-footer {
    position: static;
    color: #fff;
    background: var(--red);
  }
  body:has(.site-main > :is(.hero-section, .specializations-section, .contact-section):last-child) .site-footer {
    color: var(--red);
    background: var(--page);
  }
  body.is-chrome-hidden .site-footer { transform: none; }
  .site-header .container-fluid { min-height: 72px; gap: 16px; }
  .site-ornament { width: clamp(2.6rem, 5.9vw, 4.6rem); cursor: pointer; }
  .site-logo-image { height: 24px; }
  .desktop-nav { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: -10px;
    padding: 0;
    border: 0;
    color: var(--red);
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { width: 20px; height: 2px; background: currentColor; }
  .mobile-menu {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding:
      max(20px, env(safe-area-inset-top))
      max(var(--page-gutter), env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom))
      max(var(--page-gutter), env(safe-area-inset-left));
    color: var(--red);
    background: rgb(255 253 252 / 98%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
  .mobile-menu-header {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .mobile-menu-header > button {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: -10px -10px 0 0;
    padding: 0 0 4px;
    border: 0;
    color: var(--red);
    background: transparent;
    font-size: 32px;
    font-weight: 430;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-menu nav { display: flex; flex-direction: column; gap: 0; margin-top: 22px; }
  .mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 535;
    line-height: 1.25;
    text-decoration: none;
  }
  .mobile-menu nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  .mobile-menu small { margin-top: auto; padding-top: 28px; font-size: 11px; line-height: 1.4; }

  .hero-section {
    --matrix-character: rgb(255 255 255 / 90%);
    min-height: max(420px, var(--content-height));
  }
  .hero-content {
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: inherit;
    padding-block: clamp(44px, 8svh, 64px);
    background: rgb(255 0 0 / 18%);
    text-align: center;
  }
  .hero-content p {
    width: 100%;
    max-width: 24ch;
    margin: 0 auto;
    font-size: clamp(22px, 5.6vw, 30px);
    line-height: 1.12;
    text-shadow: 0 0 10px var(--red), 0 0 20px var(--red);
  }
  .site-footer .container-fluid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1.25em;
    row-gap: 5px;
    padding-top: 9px;
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }
  .site-footer-copy { grid-column: 1; grid-row: 2; }
  .language-switch { grid-column: 2; grid-row: 2; margin-left: 0; }
  .site-footer-nav {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: space-between;
    width: 100%;
    gap: .25em .75em;
    line-height: 1.3;
  }
  .site-footer a,
  .site-footer strong { display: inline-flex; align-items: center; min-height: 24px; }
  .section {
    display: block;
    min-height: auto;
    padding-block: clamp(48px, 7vw, 68px) clamp(60px, 9vw, 82px);
  }
  .section-heading { margin-bottom: 32px; }
  .section-heading :is(h1, h2) { margin-bottom: 0; }
  .specializations-layout {
    min-height: auto;
    padding-block: clamp(48px, 7vw, 68px) clamp(60px, 9vw, 82px);
  }
  .specializations-section.matrix-surface > canvas,
  .text-section.matrix-surface > canvas {
    left: 0;
    width: 100%;
    opacity: .35;
  }
  .news-detail.matrix-surface > canvas {
    display: none;
  }
  .site-main [data-aos][data-aos="fade-left"] { transform: translate3d(24px, 0, 0); }
  .site-main [data-aos][data-aos="fade-up"] { transform: translate3d(0, 24px, 0); }
  .practice-item {
    --practice-arrow-left: 10px;
    --practice-arrow-size: 14px;
    --practice-gap: 12px;
    --practice-summary-pad: 13px;
  }
  .practice-item summary { padding: var(--practice-summary-pad) 12px var(--practice-summary-pad) var(--practice-indent); }
  .practice-item summary span { overflow-wrap: anywhere; }
  .practice-item-body { padding: 2px 12px 20px var(--practice-indent); }
  .section-rain { display: none; }
  .about-intro, .about-profile { display: flex; flex-direction: column; }
  .about-intro, .about-profile, .about-assistants { min-height: var(--content-height); }
  .about-copy { min-height: auto; padding-block: clamp(44px, 7vw, 64px); }
  .about-photo { min-height: clamp(320px, 50svh, 620px); order: -1; }
  .about-intro .about-photo { order: 0; }
  .about-photo--framed {
    min-height: auto;
    padding: clamp(32px, 6vw, 52px) var(--page-gutter);
  }
  .about-photo--framed img { max-width: min(100%, 440px); max-height: none; }
  .about-assistants { padding-block: clamp(48px, 7vw, 68px) clamp(60px, 9vw, 82px); }
  .assistants-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 0; }
  .assistant-card { grid-template-columns: minmax(180px, 38%) 1fr; gap: clamp(18px, 3vw, 28px); }
  .assistant-card > div:only-child { grid-column: 1 / -1; }
  .publication-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 0; }
  .publication-grid .publication-card {
    display: grid;
    grid-template-columns: minmax(180px, 38%) 1fr;
    gap: clamp(18px, 3vw, 28px);
    align-items: start;
  }
  .publication-grid .publication-card > div:only-child { grid-column: 1 / -1; }
  .publication-image { width: 100%; }
  .publication-grid .publication-card h3 { margin-top: 0; }
  .news-detail-layout { grid-template-columns: 1fr; }
  .contact-section { min-height: var(--content-height); }
  .contact-content {
    width: 100%;
    padding-block: clamp(48px, 7vw, 68px) clamp(60px, 9vw, 82px);
    background: linear-gradient(var(--red) 0 42%, transparent 75%);
  }
  .contact-content address { line-height: 1.5; }
  .contact-content a { text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 560px) {
  .assistant-card { display: block; }
  .assistant-card img {
    width: 100%;
    margin: 0 0 18px;
  }
  .publication-grid .publication-card { display: block; }
  .publication-image { margin: 0 0 18px; }
}

@media (max-width: 380px) {
  :root {
    --page-gutter: 14px;
    --nav-font-size: 13px;
  }
  .site-logo-image { height: 22px; }
  .site-footer-nav { column-gap: 1em; }
  .mobile-menu nav a { font-size: 17px; }
}

@media (max-width: 1100px) and (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-height: 64px;
  }
  .site-header .container-fluid { min-height: 64px; }
  .hero-section { min-height: 360px; }
  .hero-content { padding-block: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header,
  .site-footer,
  .mobile-menu { transition: none; }
  .practice-item summary::before { transition: none; }
  .matrix-surface canvas { opacity: .65; }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
