/* CALAVOIX — base shell. App injects IBM Plex + design tokens; this file must not fight them. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

body {
  margin: 0;
  padding: 0;
  background: #F4F1E8;
  color: #2B2B2B;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

#root {
  min-height: 100svh;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
  border: none;
  display: block;
}

.mono, [data-mono] {
  font-variant-numeric: tabular-nums;
}

button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible,
.facility-map-container:focus-visible {
  outline: 2px solid #3A6A8A;
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
.facility-map-container:focus:not(:focus-visible) {
  outline: none;
}

button {
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

* { scrollbar-width: thin; scrollbar-color: #8A7F6A transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C4BDA8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8A7F6A; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: #D8E8F0;
  color: #1A1510;
}

/* A restrained editorial identity, shared by the studies and simulation. */
body {
  background: #F7F5F0;
  color: #302F2B;
  font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}
h1, h2, h3 { font-weight: 400; }
button, [role="button"] { transition: background-color .18s ease, border-color .18s ease; }
button:focus-visible, [role="button"]:focus-visible, a:focus-visible,
.facility-map-container:focus-visible { outline: 2px solid #806B49; outline-offset: 4px; }
button:enabled:hover { filter: brightness(.94); }
button:disabled { cursor: not-allowed; opacity: .6; }
::selection { background: #DDD3C0; color: #292B28; }

.firm-landing { padding: 0 48px !important; border-top: 6px solid #30362F; }
.firm-landing > div:first-child { display: none; }
.firm-page { padding-bottom: 40px; }
.firm-introduction { padding-top: 34px !important; padding-bottom: 64px !important; }
.firm-introduction > div:first-child {
  font-size: 11px !important;
  letter-spacing: .19em !important;
  font-weight: 600 !important;
  padding-bottom: 24px;
  border-bottom: 1px solid #B9AE9A;
  margin-bottom: 42px !important;
}
.firm-introduction h1 {
  font-weight: 400 !important;
  font-size: clamp(40px, 7.8vw, 94px) !important;
  letter-spacing: .065em !important;
  line-height: 1.2 !important;
  margin: 0 0 20px !important;
}
.firm-introduction > div:nth-of-type(2) {
  font-family: 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(22px, 3vw, 33px) !important;
  letter-spacing: -.025em !important;
  color: #514E46 !important;
  margin-bottom: 12px !important;
}
.firm-introduction > div:nth-of-type(3) {
  font-size: 12px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  font-weight: 400 !important;
}
.firm-introduction > div:nth-of-type(4) {
  width: 100% !important;
  height: 1px !important;
  margin: 38px 0 44px !important;
  background: #D4CEC2 !important;
}
.firm-brief { margin-left: auto !important; }
.firm-brief > div:first-child {
  font-weight: 400 !important;
  text-align: left !important;
  font-size: clamp(24px, 3.2vw, 32px) !important;
  line-height: 1.4 !important;
}
.firm-brief > div:nth-child(2) { text-align: left !important; margin-bottom: 26px !important; }
.firm-brief > div:nth-child(n+3):nth-child(-n+5) {
  background: #FCFBF8 !important;
  border-left: 1px solid #A18C68 !important;
  border-radius: 0 !important;
  padding: 16px 22px !important;
  margin-bottom: 20px !important;
}
.firm-brief > div:nth-child(n+3):nth-child(-n+5) > div {
  color: #292B28 !important;
}
.firm-brief > div:nth-child(n+3):nth-child(-n+5) > div:first-child {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 5px !important;
}
.firm-brief > div:last-child { text-align: left !important; font-size: 16px !important; padding-top: 12px; }
.firm-studies { border-top: 1px solid #8A7554; padding-top: 32px; }
.firm-studies > div:first-child {
  text-align: left !important;
  font-weight: 400 !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  line-height: 1.4 !important;
}
.firm-studies > div:nth-child(2) { text-align: left !important; font-size: 16px !important; margin: 10px 0 32px !important; }
.firm-studies > div:last-child { gap: 28px !important; }
.firm-study { border-radius: 0 !important; border-color: #D4CEC2 !important; }
.firm-study:hover { border-color: #8A7554 !important; }
.firm-study > div:first-child {
  padding: 32px !important;
  border-right: 1px solid #D4CEC2;
}
.firm-study > div:last-child { padding: 32px !important; }
.firm-study > div:last-child > div:first-child {
  color: #786546 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px !important;
}
.firm-study > div:last-child > div:nth-child(2) { font-weight: 400 !important; font-size: 25px !important; line-height: 1.35 !important; }
.firm-study > div:last-child > div:nth-child(4) { font-size: 17px !important; }
.firm-study > div:last-child > div:nth-child(5) { border-top: 1px solid #D4CEC2; padding-top: 18px; }
.firm-study > div:last-child > div:nth-child(5) > div > div:last-child { font-weight: 400 !important; font-size: 20px !important; }
.firm-study > div:last-child > div:last-child {
  background: #343D35 !important;
  border-radius: 0 !important;
  justify-content: space-between !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 15px !important;
  letter-spacing: .025em;
  padding: 14px 20px;
  min-height: 50px !important;
}
.firm-study:hover > div:last-child > div:last-child { background: #505947 !important; }
.firm-page > div:last-child { border-top: 1px solid #D4CEC2; margin-top: 32px; padding-top: 24px; text-align: left !important; font-size: 13px !important; }
@media (max-width: 640px) {
  .firm-landing { padding: 0 22px !important; }
  .firm-introduction { padding-top: 22px !important; padding-bottom: 40px !important; }
  .firm-introduction > div:first-child { font-size: 10px !important; letter-spacing: .12em !important; margin-bottom: 30px !important; }
  .firm-introduction h1 { font-size: clamp(30px, 9vw, 50px) !important; letter-spacing: .035em !important; }
  .firm-study > div:first-child { border-right: 0; border-bottom: 1px solid #D4CEC2; padding: 24px !important; }
  .firm-study > div:first-child svg { max-width: 250px !important; }
  .firm-study > div:last-child { padding: 24px !important; }
}
