: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 / 70%);
  --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%; }

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

.site-ornament {
  position: fixed;
  top: 0;
  right: var(--page-gutter);
  z-index: 20;
  color: var(--red);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 430;
  line-height: 1;
  user-select: none;
}

.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;
  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;
  justify-content: space-between;
  gap: 24px;
  padding-block: 17px;
}

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 {
  font-size: clamp(24px, 2.3vw, 36px);
  font-weight: 430;
  letter-spacing: .14em;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  gap: 28px;
  font-size: var(--nav-font-size);
}
.desktop-nav a { text-decoration: none; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5em;
}
.no-underline,
.no-underline:hover { text-decoration: none; }
.language-switch {
  display: inline-flex;
  gap: 0.7em;
  flex-shrink: 0;
}
.menu-toggle { display: none; }
.mobile-menu { display: none; }

.matrix-surface { position: relative; isolation: isolate; overflow: hidden; background: var(--red); }
.matrix-surface canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.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: uppercase;
}
.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 h2,
.red-panel h2,
.contact-content h2,
.news-heading h2 {
  margin: 0 0 1em;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.specializations-section {
  --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 {
  inset: 0 0 0 52%;
  width: auto;
}
.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:hover summary,
.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; }

.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-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: var(--content-height);
  border-bottom: 1px solid var(--line);
}
.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: auto;
  height: auto;
  max-width: min(440px, 100%);
  max-height: calc(var(--content-height) - 180px);
  object-fit: contain;
}
.about-photo--framed figcaption {
  position: static;
  width: min(440px, 100%);
  margin-top: 12px;
  color: var(--red);
  text-align: center;
}

.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(140px, 220px) 1fr; gap: 24px; align-items: start; }
.assistant-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.assistant-card h3 { margin: 0 0 1em; font-size: inherit; font-weight: inherit; }
.assistant-card p { margin: 0 0 1em; }
.assistant-card p:last-child { margin-bottom: 0; }

.publications-section {
  display: block;
  border-bottom: 0;
}
.publication-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 55px; }
.publication-card { min-width: 0; }
.publication-image {
  height: 300px;
}
.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left 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;
}

.news-copy { min-height: inherit; padding-block: 76px; }
.news-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 54px; }
.news-heading span { font-size: 12px; }
.news-copy article { line-height: 1.5; }
.news-copy time { display: block; margin-bottom: 15px; font-size: 12px; text-transform: uppercase; }
.news-copy h3 { font-size: 23px; }
.news-image { display: grid; place-items: center; padding-block: 65px; }
.news-image img { max-width: 380px; max-height: 500px; object-fit: contain; }

.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: 900px) {
  :root {
    --header-height: 76px;
    --page-gutter: 16px;
    --text: 14px;
    --text-md: 19px;
    --text-lead: 18px;
    --text-lg: 23px;
    --nav-font-size: 14px;
  }
  .site-header .container-fluid { min-height: 76px; gap: 16px; }
  .site-logo { font-size: 25px; }
  .desktop-nav { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 28px;
    margin-left: auto;
    padding: 5px 0;
    border: 0;
    background: transparent;
  }
  .menu-toggle span { width: 16px; height: 1px; background: var(--red); }
  .mobile-menu {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 28px var(--page-gutter);
    color: var(--red);
    background: rgb(255 253 252 / 96%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-menu > button { align-self: end; border: 0; color: var(--red); background: transparent; font-size: 24px; }
  .mobile-menu p { margin: 18px 0 24px; font-size: 13px; }
  .mobile-menu nav { display: flex; flex-direction: column; gap: 0; }
  .mobile-menu nav a { padding: 13px 0; font-size: 15px; font-weight: 535; text-decoration: none; }
  .mobile-menu small { margin-top: auto; font-size: 9px; line-height: 1.4; }

  .hero-content { align-items: flex-start; width: 100%; min-height: inherit; padding-block: 58px; background: linear-gradient(var(--red) 0 30%, transparent 62%); }
  .hero-content p { width: 100%; margin-top: auto; font-size: 20px; }
  .site-footer .container-fluid { padding-block: 12px; }
  .section { display: block; min-height: auto; padding-block: 56px 70px; }
  .section-heading { margin-bottom: 38px; }
  .specializations-layout {
    min-height: auto;
    padding-block: 56px 70px;
  }
  .specializations-section.matrix-surface > canvas {
    inset: 0;
    opacity: .35;
  }
  .practice-item { --practice-summary-pad: 12px; }
  .practice-item summary { padding: var(--practice-summary-pad) 12px var(--practice-summary-pad) var(--practice-indent); }
  .practice-item-body { padding: 0 12px 18px var(--practice-indent); }
  .section-rain { display: none; }
  .about-intro, .about-profile, .news-section { display: flex; flex-direction: column; }
  .about-intro, .about-profile, .about-assistants { min-height: var(--content-height); }
  .about-copy { min-height: auto; padding-block: 45px; }
  .about-photo { min-height: 50svh; order: -1; }
  .about-intro .about-photo { order: 0; }
  .about-photo--framed {
    min-height: auto;
    padding: 36px var(--page-gutter);
  }
  .about-photo--framed img { max-width: 100%; max-height: none; }
  .about-assistants { padding-block: 56px 70px; }
  .assistants-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 0; }
  .assistant-card { grid-template-columns: 42% 1fr; gap: 16px; }
  .publication-grid { grid-template-columns: 1fr; gap: 35px; margin-top: 0; }
  .news-copy { min-height: auto; padding-block: 48px; }
  .news-heading { margin-bottom: 36px; }
  .news-copy h3 { font-size: 18px; }
  .news-copy article { font-size: 13px; }
  .news-image { min-height: 360px; padding-block: 35px; }
  .news-image img { max-height: 330px; }
  .contact-section { min-height: var(--content-height); }
  .contact-content {
    width: 100%;
    padding-block: 56px 70px;
    background: linear-gradient(var(--red) 0 42%, transparent 75%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .site-footer { transition: none; }
  .practice-item summary::before { transition: none; }
  .matrix-surface canvas { opacity: .65; }
}
