/* Webfonts: Google Fonts, SIL Open Font Licence. Cormorant Garamond 400/500/600 + italic 400/500; Instrument Sans 400/500/600; JetBrains Mono 400 (documentation only). Email falls back to Georgia and Helvetica/Arial. */
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/3d83f4b3.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ceaff056.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/96971c3f.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ff45343a.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dca264aa.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/3d83f4b3.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ceaff056.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/96971c3f.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ff45343a.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dca264aa.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/988f0944.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/11d986ed.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/8a9fd922.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/236f3437.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/f955d536.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/988f0944.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/11d986ed.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/8a9fd922.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/236f3437.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/f955d536.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/988f0944.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/11d986ed.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/8a9fd922.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/236f3437.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/f955d536.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/b9168fe6.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/a4feb2e2.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/b9168fe6.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/a4feb2e2.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/b9168fe6.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/a4feb2e2.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/89d48a98.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/14f9f7a3.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/51d2b12e.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/01f59910.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/b8d2f67d.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/54b51ebb.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Meritas colour tokens (v4: Jade black, Mist, Jade metal). Two colours and one accent,
   used about 60 / 30 / 10, inspired by the restraint of a black card: an almost-black
   ground with a jade tint, soft Mist type, and brushed Jade metal as the single accent
   (actions, links, focus, the key block in the logo). The site is dark by default;
   [data-theme="dark"] is a raised jade black used for night panels set on the page. */
:root, [data-theme="light"] {
  --brand-jade-black: #050E0F;
  --brand-mist: #B7C4C1;
  --brand-jade: #7FB5A8;
  --color-bg-base: #050E0F;
  --color-bg-surface: #0A1718;
  --color-bg-raised: #0F1F20;
  --color-bg-inverse: #E4EBE9;
  --color-bg-overlay: rgba(2, 7, 8, 0.75);
  --color-border-subtle: #172728;
  --color-border-strong: #3D5250;
  --color-text-primary: #E4EBE9;
  --color-text-secondary: #B7C4C1;
  --color-text-muted: #7F908D;
  --color-text-disabled: #4A5B59;
  --color-text-inverse: #050E0F;
  --color-text-display: #D3DDDA;
  --color-accent-default: #7FB5A8;
  --color-accent-hover: #9CCBBE;
  --color-accent-pressed: #5E9488;
  --color-accent-text: #8EC2B5;
  --color-accent-subtle: #12302B;
  --color-on-accent: #06201B;
  --color-fill-disabled: #142324;
  --color-focus: #A6D1C6;
  --color-success: #7FB5A8;
  --color-success-subtle: #12302B;
  --color-warning: #D9B26A;
  --color-warning-subtle: #2B2414;
  --color-danger: #E89A8A;
  --color-danger-subtle: #2E1716;
  --color-info: #A6C9D1;
  --color-info-subtle: #12262B;
  --jade-50: #E7F3F0;
  --jade-100: #CDE6DF;
  --jade-200: #A9D8CC;
  --jade-300: #7FB5A8;
  --jade-400: #5E9488;
  --jade-500: #4F8C80;
  --jade-600: #3A6B61;
  --jade-700: #26493F;
  --jade-800: #12302B;
  --jade-900: #050E0F;
  --mist-100: #E4EBE9;
  --mist-200: #D6DEDC;
  --mist-300: #B7C4C1;
  --mist-400: #8A9895;
  --mist-500: #6C7B78;
  --gradient-metal: linear-gradient(180deg, #A6D1C6 0%, #5A8F84 100%); /* @kind other */
  --gradient-metal-mist: linear-gradient(180deg, #D6DEDC 0%, #8A9895 100%); /* @kind other */
}
[data-theme="dark"] {
  --color-bg-base: #0A1819;
  --color-bg-surface: #0F2021;
  --color-bg-raised: #142829;
  --color-border-subtle: #1E3334;
  --color-border-strong: #4A6260;
  --color-text-secondary: #BFCBC8;
  --color-text-muted: #8A9A97;
}

/* Font families and type styles. Headings are a refined sans; the serif is kept only for occasional italic phrases (em in a heading). */
:root {
  --font-display: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* type styles */
.display { font-family: var(--font-display); font-size: 80px; line-height: 84px; font-weight: 500; letter-spacing: -0.01em; }
.h1 { font-family: var(--font-display); font-size: 56px; line-height: 60px; font-weight: 500; letter-spacing: -0.005em; }
.h2 { font-family: var(--font-display); font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: 0em; }
.h3 { font-family: var(--font-sans); font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.005em; }
.h4 { font-family: var(--font-sans); font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: 0em; }
.body-lg { font-family: var(--font-sans); font-size: 18px; line-height: 30px; font-weight: 400; letter-spacing: 0em; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 400; letter-spacing: 0em; }
.small { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; letter-spacing: 0.005em; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 400; letter-spacing: 0.01em; }
.eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.wordmark { font-family: var(--font-sans); font-size: 16px; line-height: 16px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.display-m { font-family: var(--font-display); font-size: 48px; line-height: 52px; font-weight: 500; letter-spacing: -0.01em; }
.h1-m { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.005em; }
.h2-m { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 500; letter-spacing: 0em; }
.h3-m { font-family: var(--font-sans); font-size: 21px; line-height: 28px; font-weight: 500; letter-spacing: 0em; }
.h4-m { font-family: var(--font-sans); font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: 0em; }
.body-lg-m { font-family: var(--font-sans); font-size: 17px; line-height: 28px; font-weight: 400; letter-spacing: 0em; }
.body-m { font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 400; letter-spacing: 0em; }
.small-m { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; letter-spacing: 0.005em; }
.caption-m { font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 400; letter-spacing: 0.01em; }
.eyebrow-m { font-family: var(--font-sans); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.wordmark-m { font-family: var(--font-sans); font-size: 14px; line-height: 14px; font-weight: 500; letter-spacing: 0.30em; text-transform: uppercase; }

/* Spacing (4px base), radius, strokes, layout */
:root {
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-circle: 50%;
  --stroke-hairline: 1px;
  --stroke-icon: 1.25px;
  --stroke-control: 1px;
  --stroke-focus: 2px;
  --layout-max-width: 1200px;
  --layout-measure: 640px;
  --layout-columns-desktop: 12; /* @kind other */
  --layout-columns-tablet: 8; /* @kind other */
  --layout-columns-mobile: 4; /* @kind other */
  --layout-gutter-desktop: 24px;
  --layout-gutter-mobile: 16px;
  --layout-margin-desktop: 48px;
  --layout-margin-mobile: 16px;
  --layout-nav-height: 72px;
}

/* Elevation and signature gradients */
:root {
  --shadow-none: none;
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.36);
  --shadow-overlay: 0 24px 64px rgba(0, 0, 0, 0.50);
  --shadow-accent: 0 0 0 1px rgba(127, 181, 168, 0.35), 0 10px 40px rgba(127, 181, 168, 0.18);
  --gradient-nocturne: linear-gradient(160deg, #132B2C 0%, #0C1D1E 45%, #071415 80%); /* @kind other */
  --gradient-horizon: linear-gradient(90deg, rgba(127, 181, 168, 0) 0%, #7FB5A8 50%, rgba(127, 181, 168, 0) 100%); /* @kind other */
  --gradient-glow: radial-gradient(60% 55% at 50% 38%, rgba(127, 181, 168, 0.16) 0%, rgba(127, 181, 168, 0.05) 45%, rgba(5, 14, 15, 0) 75%); /* @kind other */
  --mr-horizon: var(--gradient-horizon);
  --mr-hero-bg: var(--color-bg-base);
}

/* Motion: calm and precise, no overshoot */
:root {
  --motion-duration-instant: 80ms; /* @kind other */
  --motion-duration-fast: 140ms; /* @kind other */
  --motion-duration-base: 220ms; /* @kind other */
  --motion-duration-slow: 360ms; /* @kind other */
  --motion-duration-deliberate: 560ms; /* @kind other */
  --motion-ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --motion-ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1); /* @kind other */
  --motion-ease-exit: cubic-bezier(0.3, 0, 0.8, 0.15); /* @kind other */
  --motion-ease-linear: linear; /* @kind other */
}
@media (prefers-reduced-motion: reduce) {
  :root { --motion-duration-fast: 0ms; /* @kind other */ --motion-duration-base: 0ms; /* @kind other */ --motion-duration-slow: 0ms; /* @kind other */ --motion-duration-deliberate: 0ms; /* @kind other */ }
}

/* Meritas component styles (class prefix mr-). Ported verbatim from the source components/bundle.css (v2). */
/* ---------- base ---------- */
html, body { margin: 0; }
body { background: var(--color-bg-base); color: var(--color-text-primary); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
.mr-root, .mr-panel { font-family: var(--font-sans); color: var(--color-text-primary); }
.mr-root *, .mr-panel * { box-sizing: border-box; }
.mr-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.mr-panel { background: var(--color-bg-base); padding: var(--space-5); }
.mr-panel-label { display: block; font-size: 11px; line-height: 16px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.mr-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.mr-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.mr-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: butt; stroke-linejoin: miter; }
.mr-icon-24 { width: 24px; height: 24px; }
.mr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.mr-display { color: var(--color-text-display); font-family: var(--font-display); font-weight: 500; font-size: 80px; line-height: 84px; letter-spacing: -0.01em; margin: 0; }
.mr-h1 { color: var(--color-text-display); font-family: var(--font-display); font-weight: 500; font-size: 56px; line-height: 60px; letter-spacing: -0.005em; margin: 0; }
.mr-h2 { color: var(--color-text-display); font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 46px; margin: 0; }
.mr-h3 { font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -0.005em; margin: 0; }
.mr-h4 { font-weight: 600; font-size: 18px; line-height: 26px; margin: 0; }
.mr-body-lg { font-size: 18px; line-height: 30px; margin: 0; }
.mr-body { font-size: 16px; line-height: 26px; margin: 0; }
.mr-small { font-size: 14px; line-height: 22px; letter-spacing: 0.005em; margin: 0; }
.mr-caption { font-size: 12px; line-height: 18px; letter-spacing: 0.01em; margin: 0; }
.mr-eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; margin: 0; color: var(--color-text-secondary); }
.mr-wordmark { font-size: 16px; line-height: 16px; font-weight: 500; letter-spacing: 0.32em; margin-right: -0.32em; text-transform: uppercase; color: var(--color-text-primary); white-space: nowrap; }
.mr-secondary { color: var(--color-text-secondary); }
.mr-muted { color: var(--color-text-muted); }
.mr-num { font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 767px) {
  .mr-display { font-size: 48px; line-height: 52px; }
  .mr-h1 { font-size: 40px; line-height: 44px; }
  .mr-h2 { font-size: 32px; line-height: 38px; }
  .mr-h3 { font-size: 21px; line-height: 28px; }
}

/* ---------- logo slot ---------- */
.mr-logo-slot { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; color: var(--color-text-muted); font-size: 7px; letter-spacing: 0.14em; font-weight: 500; text-transform: uppercase; background:
  linear-gradient(currentColor, currentColor) 0 0 / 6px 1px no-repeat, linear-gradient(currentColor, currentColor) 0 0 / 1px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 100% 0 / 6px 1px no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / 1px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 0 100% / 6px 1px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 1px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 100% 100% / 6px 1px no-repeat, linear-gradient(currentColor, currentColor) 100% 100% / 1px 6px no-repeat; }
.mr-logo-slot.is-disc { border-radius: var(--radius-circle); background: var(--color-bg-raised); border: 1px dashed var(--color-border-strong); }
.mr-logo-slot.is-tile { border-radius: 22%; background: var(--color-bg-raised); border: 1px dashed var(--color-border-strong); }
.mr-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; } /* 14px = half the 28px mark: the clear-space rule */
/* ---------- logo (mark source: components/core/Logo.jsx) ---------- */
.mr-logo { display: block; flex: none; color: var(--color-text-primary); }
.mr-logo-wrap { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.mr-logo-disc, .mr-logo-tile { display: inline-flex; flex: none; align-items: center; justify-content: center; background: var(--color-bg-raised); }
.mr-logo-disc { border-radius: var(--radius-circle); }
.mr-logo-tile { border-radius: 22%; background: var(--gradient-nocturne); }

/* ---------- buttons ---------- */
.mr-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; padding: 0 22px; border-radius: var(--radius-none); border: 1px solid transparent; font: 500 14px/1 var(--font-sans); letter-spacing: 0.04em; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--motion-duration-fast) var(--motion-ease-standard), border-color var(--motion-duration-fast) var(--motion-ease-standard), color var(--motion-duration-fast) var(--motion-ease-standard); }
.mr-btn:focus-visible, .mr-btn.is-focus { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 2px; }
.mr-btn-primary { background: var(--color-accent-default); color: var(--color-on-accent); }
.mr-btn-primary:hover, .mr-btn-primary.is-hover { background: var(--color-accent-hover); }
.mr-btn-primary:active, .mr-btn-primary.is-active { background: var(--color-accent-pressed); }
.mr-btn-secondary { background: transparent; color: var(--color-text-primary); border-color: var(--color-border-strong); }
.mr-btn-secondary:hover, .mr-btn-secondary.is-hover { border-color: var(--color-text-secondary); background: var(--color-bg-surface); }
.mr-btn-secondary:active, .mr-btn-secondary.is-active { background: var(--color-bg-raised); border-color: var(--color-text-primary); }
.mr-btn-ghost { background: transparent; color: var(--color-text-primary); }
.mr-btn-ghost:hover, .mr-btn-ghost.is-hover { background: var(--color-bg-surface); }
.mr-btn-ghost:active, .mr-btn-ghost.is-active { background: var(--color-bg-raised); }
.mr-btn:disabled, .mr-btn.is-disabled { background: var(--color-fill-disabled); color: var(--color-text-disabled); border-color: transparent; cursor: not-allowed; }
.mr-btn-ghost:disabled, .mr-btn-ghost.is-disabled { background: transparent; }
.mr-btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.mr-link { color: var(--color-accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor; cursor: pointer; font-weight: 500;
  transition: text-underline-offset var(--motion-duration-fast) var(--motion-ease-standard); }
.mr-link:hover, .mr-link.is-hover { text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.mr-link:active, .mr-link.is-active { color: var(--color-text-primary); }
.mr-link:focus-visible, .mr-link.is-focus { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 3px; }
.mr-link.is-disabled { color: var(--color-text-disabled); text-decoration: none; cursor: not-allowed; }
.mr-state-grid { display: grid; grid-template-columns: 72px repeat(4, max-content); gap: var(--space-3) var(--space-4); align-items: center; }
.mr-state-grid > .mr-caption { color: var(--color-text-muted); }

/* ---------- form controls ---------- */
.mr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mr-label { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.02em; color: var(--color-text-secondary); }
.mr-input, .mr-select { width: 100%; height: 48px; padding: 0 14px; background: var(--color-bg-raised); color: var(--color-text-primary); border: 1px solid var(--color-border-strong); border-radius: var(--radius-none); font: 400 16px/24px var(--font-sans); appearance: none; -webkit-appearance: none;
  transition: border-color var(--motion-duration-fast) var(--motion-ease-standard); }
.mr-input::placeholder { color: var(--color-text-muted); }
.mr-input:hover, .mr-input.is-hover, .mr-select:hover { border-color: var(--color-text-secondary); }
.mr-input:focus-visible, .mr-input.is-focus, .mr-select:focus-visible { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 2px; border-color: var(--color-text-primary); }
.mr-input:disabled, .mr-input.is-disabled { background: var(--color-fill-disabled); color: var(--color-text-disabled); border-color: var(--color-fill-disabled); cursor: not-allowed; }
.mr-input.is-error, .mr-select.is-error { border-color: var(--color-danger); box-shadow: inset 0 0 0 1px var(--color-danger); }
.mr-help { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 18px; color: var(--color-text-muted); }
.mr-help.is-error { color: var(--color-danger); }
.mr-help .mr-icon { width: 16px; height: 16px; margin-top: 1px; }
.mr-select-wrap { position: relative; }
.mr-select-wrap .mr-icon { position: absolute; right: 14px; top: 14px; pointer-events: none; color: var(--color-text-secondary); }
.mr-select { padding-right: 44px; cursor: pointer; }
.mr-phone { display: grid; grid-template-columns: 84px 1fr; }
.mr-phone .mr-input:first-child { border-right: 0; }
.mr-check-row { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--color-text-primary); cursor: pointer; }
.mr-check { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--color-border-strong); border-radius: var(--radius-none); background: var(--color-bg-raised); cursor: pointer; }
.mr-check:hover, .mr-check.is-hover { border-color: var(--color-text-secondary); }
.mr-check:checked { background: var(--color-accent-default); border-color: var(--color-accent-default); }
.mr-check:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--color-on-accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.mr-check:focus-visible, .mr-check.is-focus { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 2px; }
.mr-check:disabled { background: var(--color-fill-disabled); border-color: var(--color-fill-disabled); cursor: not-allowed; }
.mr-check.is-error { border-color: var(--color-danger); }
.mr-toggle { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 24px; margin: 0; border: 1px solid var(--color-border-strong); border-radius: var(--radius-none); background: transparent; cursor: pointer;
  transition: background-color var(--motion-duration-base) var(--motion-ease-standard), border-color var(--motion-duration-base) var(--motion-ease-standard); }
.mr-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--color-text-secondary); transition: transform var(--motion-duration-base) var(--motion-ease-standard), background-color var(--motion-duration-base) var(--motion-ease-standard); }
.mr-toggle:hover, .mr-toggle.is-hover { border-color: var(--color-text-secondary); }
.mr-toggle:checked { background: var(--color-accent-default); border-color: var(--color-accent-default); }
.mr-toggle:checked::after { transform: translateX(20px); background: var(--color-on-accent); }
.mr-toggle:focus-visible, .mr-toggle.is-focus { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 2px; }
.mr-toggle:disabled { border-color: var(--color-fill-disabled); background: var(--color-fill-disabled); cursor: not-allowed; }
.mr-toggle:disabled::after { background: var(--color-text-disabled); }

/* ---------- badge ---------- */
.mr-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--radius-none); font-size: 11px; line-height: 1; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--color-border-subtle); color: var(--color-text-secondary); background: transparent; white-space: nowrap; }
.mr-badge .mr-icon { width: 14px; height: 14px; }
.mr-badge-accent { background: var(--color-accent-subtle); border-color: transparent; color: var(--color-accent-text); }
.mr-badge-success { background: var(--color-success-subtle); border-color: transparent; color: var(--color-success); }
.mr-badge-warning { background: var(--color-warning-subtle); border-color: transparent; color: var(--color-warning); }
.mr-badge-danger { background: var(--color-danger-subtle); border-color: transparent; color: var(--color-danger); }
.mr-badge-info { background: var(--color-info-subtle); border-color: transparent; color: var(--color-info); }
.mr-badge-sample { border-style: dashed; border-color: var(--color-border-strong); color: var(--color-text-secondary); }

/* ---------- divider ---------- */
.mr-divider { border: 0; height: 1px; background: var(--color-border-subtle); margin: 0; }
.mr-divider-label { display: flex; align-items: center; gap: var(--space-4); }
.mr-divider-label::before, .mr-divider-label::after { content: ""; flex: 1; height: 1px; background: var(--color-border-subtle); }
.mr-horizon { border: 0; height: 1px; margin: 0; background: var(--mr-horizon); }

/* ---------- card ---------- */
.mr-card { background: var(--color-bg-surface); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); padding: var(--space-5); transition: border-color var(--motion-duration-base) var(--motion-ease-standard); }
a.mr-card { display: block; color: inherit; text-decoration: none; }
a.mr-card:hover, .mr-card.is-hover { border-color: var(--color-border-strong); }
a.mr-card:focus-visible { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 2px; }
.mr-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.mr-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--space-4); font-size: 14px; line-height: 22px; }
.mr-meta dt { color: var(--color-text-muted); }
.mr-meta dd { margin: 0; color: var(--color-text-primary); }

/* ---------- toast, tooltip, modal ---------- */
.mr-toast { display: flex; gap: var(--space-3); align-items: flex-start; width: 100%; max-width: 400px; padding: 14px var(--space-4); background: var(--color-bg-raised); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); box-shadow: var(--shadow-float); font-size: 14px; line-height: 22px; }
.mr-toast-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; }
.mr-toast-icon.is-success { background: var(--color-success-subtle); color: var(--color-success); }
.mr-toast-icon.is-warning { background: var(--color-warning-subtle); color: var(--color-warning); }
.mr-toast-icon.is-danger { background: var(--color-danger-subtle); color: var(--color-danger); }
.mr-toast-icon.is-info { background: var(--color-info-subtle); color: var(--color-info); }
.mr-toast-body { flex: 1; min-width: 0; }
.mr-toast-title { font-weight: 500; }
.mr-tooltip { position: relative; display: inline-block; max-width: 240px; padding: 8px 10px; background: var(--color-bg-inverse); color: var(--color-text-inverse); font-size: 12px; line-height: 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-float); }
.mr-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--color-bg-inverse); transform: translateX(-50%) rotate(45deg); }
.mr-scrim { background: var(--color-bg-overlay); padding: var(--space-6) var(--space-4); display: flex; align-items: center; justify-content: center; }
.mr-modal { width: 100%; max-width: 440px; background: var(--color-bg-raised); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-overlay); padding: var(--space-6); }
.mr-modal-title { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 36px; margin: 0; }
.mr-modal-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-6); flex-wrap: wrap; }

/* ---------- product patterns ---------- */
.mr-mail { background: var(--color-bg-surface); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); overflow: hidden; }
.mr-mail-head { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border-subtle); }
.mr-mail-fields { display: grid; grid-template-columns: 56px 1fr; gap: 2px var(--space-3); font-size: 13px; line-height: 20px; }
.mr-mail-fields dt { color: var(--color-text-muted); }
.mr-mail-fields dd { margin: 0; color: var(--color-text-secondary); }
.mr-mail-msg { padding: var(--space-5); }
.mr-mail-msg + .mr-mail-msg { border-top: 1px solid var(--color-border-subtle); }
.mr-mail-from { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.mr-mail-body { max-width: var(--layout-measure); font-size: 15px; line-height: 24px; }
.mr-mail-body p { margin: 0 0 14px; }
.mr-chat { width: 100%; max-width: 380px; background: var(--color-bg-base); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.mr-chat-head { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-4); border-bottom: 1px solid var(--color-border-subtle); background: var(--color-bg-surface); }
.mr-chat-log { display: flex; flex-direction: column; gap: 10px; padding: var(--space-4); }
.mr-msg { max-width: 84%; padding: 10px 14px; font-size: 15px; line-height: 22px; border-radius: var(--radius-md); }
.mr-msg-in { align-self: flex-start; background: var(--color-bg-surface); border: 1px solid var(--color-border-subtle); border-bottom-left-radius: 0; }
.mr-msg-out { align-self: flex-end; background: var(--color-bg-raised); color: var(--color-text-primary); border: 1px solid var(--color-border-strong); border-bottom-right-radius: 0; }
.mr-msg-time { display: block; margin-top: 4px; font-size: 11px; line-height: 14px; color: var(--color-text-muted); }
.mr-option { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; padding: 8px 0; border-top: 1px solid var(--color-border-subtle); }
.mr-option:first-of-type { margin-top: 8px; }
.mr-option b { font-weight: 600; }
.mr-progress { position: relative; height: 4px; background: var(--color-border-subtle); }
.mr-progress > span { position: absolute; inset: 0 auto 0 0; background: var(--color-accent-default); }
.mr-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: var(--space-3); }
.mr-route .mr-code { font-family: var(--font-display); font-size: 40px; line-height: 40px; font-weight: 500; letter-spacing: 0.02em; }
.mr-rule-list { list-style: none; margin: 0; padding: 0; }
.mr-rule-list li { display: flex; justify-content: space-between; gap: var(--space-4); padding: 10px 0; border-top: 1px solid var(--color-border-subtle); font-size: 14px; line-height: 22px; }
.mr-rule-list li:last-child { border-bottom: 1px solid var(--color-border-subtle); }

/* ---------- site ---------- */
.mr-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); height: var(--layout-nav-height); padding: 0 var(--space-6); border-bottom: 1px solid var(--color-border-subtle); background: var(--color-bg-base); }
.mr-nav-links { display: flex; gap: var(--space-6); font-size: 14px; letter-spacing: 0.02em; }
.mr-nav-links a { color: var(--color-text-secondary); text-decoration: none; padding: 6px 0; position: relative; }
.mr-nav-links a:hover { color: var(--color-text-primary); }
.mr-nav-links a[aria-current] { color: var(--color-text-primary); }
.mr-nav-links a[aria-current]::after { content: ""; position: absolute; left: -8px; right: -8px; bottom: -2px; height: 1px; background: var(--mr-horizon); }
.mr-nav-actions { display: flex; gap: var(--space-2); align-items: center; }
.mr-hero { position: relative; padding: var(--space-9) var(--space-7) var(--space-8); background: var(--mr-hero-bg); overflow: hidden; }
.mr-hero-inner { max-width: 760px; }
.mr-footer { padding: var(--space-8) var(--space-6) var(--space-5); border-top: 1px solid var(--color-border-subtle); background: var(--color-bg-base); }
.mr-footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-6); }
.mr-footer h4 { margin: 0 0 var(--space-3); }
.mr-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mr-footer a { color: var(--color-text-secondary); text-decoration: none; }
.mr-footer a:hover { color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 4px; }
.mr-legal { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); font-size: 12px; color: var(--color-text-muted); }
@media (max-width: 767px) {
  .mr-nav { padding: 0 var(--space-4); height: 60px; }
  .mr-nav-links { display: none; }
  .mr-hero { padding: var(--space-8) var(--space-4) var(--space-7); }
  .mr-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- documentation helpers (preview cards only) ---------- */
.mr-doc-swatch { height: 56px; border: 1px solid var(--color-border-subtle); }
.mr-doc-mono { font-family: var(--font-mono); font-size: 11px; line-height: 16px; color: var(--color-text-muted); }
.mr-do, .mr-dont { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.mr-do { color: var(--color-success); }
.mr-dont { color: var(--color-danger); }

.mr-panel[data-theme="light"] { order: -1; }
/* ---------- landing page ---------- */
.mr-center { text-align: center; }
.mr-hero-flank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); gap: var(--space-6); align-items: center; max-width: 1280px; margin: 0 auto; }
.mr-hero-side { display: flex; flex-direction: column; gap: var(--space-6); }
.mr-hero-side > :nth-child(odd) { align-self: flex-end; }
.mr-hero-side > :nth-child(even) { align-self: flex-start; }
.mr-hero-side:last-child > :nth-child(odd) { align-self: flex-start; }
.mr-hero-side:last-child > :nth-child(even) { align-self: flex-end; }
.mr-float-card { width: 220px; max-width: 100%; padding: var(--space-4); background: var(--color-bg-raised); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); }
@media (max-width: 1100px) { .mr-hero-flank { grid-template-columns: minmax(0, 1fr); } .mr-hero-side { display: none; } }
.mr-hero-stack { max-width: 1120px; margin: 0 auto; padding: var(--space-9) var(--space-5) var(--space-8); box-sizing: border-box; }
.mr-hero-copy { position: relative; max-width: 760px; margin: 0 auto; }
.mr-hero-copy .mr-h1 { margin: var(--space-5) 0; }
.mr-hero-copy .mr-h1 span { display: block; }
.mr-hero-copy .mr-body-lg { max-width: 600px; margin: 0 auto; text-wrap: pretty; }
.mr-hero-copy .mr-btn { margin-top: var(--space-6); }
.mr-handled { margin-top: var(--space-9); }
.mr-handled > .mr-eyebrow { color: var(--color-text-muted); margin-bottom: var(--space-5); }
.mr-handled-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.mr-handled-card { display: flex; flex-direction: column; padding: var(--space-5); background: var(--color-bg-raised); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); }
.mr-handled-card > .mr-eyebrow { display: flex; align-items: center; gap: var(--space-2); }
.mr-handled-card > .mr-eyebrow::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--color-accent-default); }
.mr-handled-value { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 32px; margin: var(--space-4) 0 var(--space-1); }
.mr-handled-card .mr-caption { margin-bottom: var(--space-3); }
.mr-handled-card .mr-progress { margin-top: auto; }
@media (max-width: 1023px) { .mr-handled-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .mr-hero-stack { padding: var(--space-8) var(--space-4) var(--space-7); } .mr-handled { margin-top: var(--space-8); } .mr-hero-copy .mr-h1 span { display: inline; } }
@media (max-width: 479px) { .mr-handled-grid { grid-template-columns: minmax(0, 1fr); } .mr-hero-stack .mr-spark { display: none; } }
.mr-spark { position: absolute; width: 8px; height: 8px; background: var(--gradient-metal); box-shadow: 0 0 12px rgba(127, 181, 168, 0.5); pointer-events: none; }
.mr-spark-teal { background: var(--gradient-metal-mist); box-shadow: none; }
.mr-spark-pale { background: var(--jade-200); box-shadow: none; }
.mr-spark-mint { background: var(--mist-400); box-shadow: none; }
.mr-night { position: relative; overflow: hidden; padding: var(--space-6); border-radius: var(--radius-md); background: var(--gradient-nocturne); color: var(--color-text-primary); }
.mr-feed-row { display: grid; grid-template-columns: 96px 1fr; gap: 4px var(--space-4); padding: 18px 0; border-top: 1px solid var(--color-border-subtle); }
.mr-feed-row > :first-child { padding-top: 4px; font-size: 12px; line-height: 18px; color: var(--color-text-muted); font-variant-numeric: tabular-nums lining-nums; }
.mr-request { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: 8px 8px 8px 20px; background: var(--color-bg-raised); border: 1px solid var(--color-border-strong); border-radius: var(--radius-none); }
.mr-request > :first-child { flex: 1; min-width: 0; margin: 0; }
.mr-request-go { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; background: var(--color-accent-default); color: var(--color-on-accent); }
.mr-pick { display: block; width: 100%; min-height: 44px; padding: var(--space-4) 20px; text-align: left; background: var(--color-bg-surface); color: var(--color-text-primary); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-none); font: 500 16px/24px var(--font-sans); cursor: pointer;
  transition: border-color var(--motion-duration-fast) var(--motion-ease-standard), background-color var(--motion-duration-fast) var(--motion-ease-standard); }
.mr-pick:hover, .mr-pick.is-hover { border-color: var(--color-border-strong); }
.mr-pick.is-on, .mr-pick[aria-pressed="true"] { background: var(--color-bg-raised); border-color: var(--color-text-primary); }
.mr-pick:focus-visible, .mr-pick.is-focus { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 2px; }
.mr-step { background: var(--color-bg-surface); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); padding: var(--space-6); }
.mr-step-num { display: block; margin: 0 0 40px; font-family: var(--font-display); font-weight: 500; font-size: 80px; line-height: 84px; color: var(--color-accent-text); font-variant-numeric: tabular-nums lining-nums; }
.mr-faq { border-top: 1px solid var(--color-border-subtle); }
.mr-faq:last-of-type { border-bottom: 1px solid var(--color-border-subtle); }
.mr-faq summary { display: flex; align-items: center; gap: 20px; min-height: 44px; padding: 22px 4px; list-style: none; cursor: pointer; }
.mr-faq summary::-webkit-details-marker { display: none; }
.mr-faq summary:focus-visible { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 2px; }
.mr-faq summary > :nth-child(2) { flex: 1; }
.mr-faq-sign { transition: transform var(--motion-duration-base) var(--motion-ease-standard); }
.mr-faq[open] .mr-faq-sign { transform: rotate(45deg); }
.mr-faq > p { margin: 0; padding: 0 4px 24px 46px; color: var(--color-text-secondary); }

/* Product-pattern and marketing details that lived as card-local CSS in the source; prefixed mr- here. */
.mr-rule-list li > span{display:inline-flex;gap:8px;align-items:center}
.mr-ok{color:var(--color-success);display:inline-flex;gap:6px;align-items:center}
.mr-warn{color:var(--color-warning);display:inline-flex;gap:6px;align-items:center}
.mr-big{display:flex;align-items:baseline;gap:10px;margin:24px 0 10px}
.mr-big .mr-num{font-family:var(--font-display);font-size:64px;line-height:56px;font-weight:500}
.mr-rule-list .mr-icon.is-16{width:16px;height:16px}
.mr-route .mr-icon{color:var(--color-text-secondary);margin-bottom:14px}
.mr-feature .mr-icon{color:var(--color-text-secondary)}
.mr-quote{margin:0}
.mr-quote blockquote{font-family:var(--font-display);font-style:italic;font-weight:500;font-size:30px;line-height:38px;margin:20px 0;padding-top:20px;border-top:1px solid var(--color-border-subtle)}
.mr-quote figcaption{display:flex;flex-direction:column}
.mr-sig{border-collapse:collapse;font-family:"Instrument Sans",Helvetica,Arial,sans-serif}
.mr-sig td{padding:0}
.mr-sig-name{font-size:13px;line-height:18px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--color-text-primary)}
.mr-sig-role{font-size:13px;line-height:20px;color:var(--color-text-secondary)}
.mr-sig-contact{font-size:13px;line-height:20px;color:var(--color-text-muted)}
.mr-sig-contact a{color:var(--color-accent-text);text-decoration:none}
.mr-sig-line{padding-top:12px!important;font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;font-size:15px;line-height:20px;color:var(--color-text-secondary);border-top:1px solid var(--color-border-subtle)}
.mr-av{display:inline-flex;flex:none;width:32px;height:32px;align-items:center;justify-content:center;border-radius:50%;background:var(--color-bg-raised);border:1px solid var(--color-border-subtle);font-size:13px;color:var(--color-text-secondary)}
.mr-snip{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mr-mail-msg.is-collapsed{padding-top:14px;padding-bottom:14px;cursor:pointer}
.mr-opt{display:grid;grid-template-columns:28px 1fr;padding:8px 0;border-top:1px solid var(--color-border-subtle)}
.mr-opt:last-of-type{border-bottom:1px solid var(--color-border-subtle)}
.mr-opt .mr-num{color:var(--color-accent-text);font-weight:600}
.mr-cals{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.mr-fg{display:grid;gap:16px}
.mr-fg-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:479px){.mr-fg-2{grid-template-columns:1fr}}

/* phones: keep the nav inside the screen; Sign in stays reachable from the footer or a menu later */
@media (max-width: 479px) { .mr-nav-actions .mr-btn-ghost { display: none; } }

/* ---------- motion ----------
   CSS only, no script: animates transform and opacity alone, which the browser
   runs on the compositor without re-layout. Switched off for reduced motion. */
@keyframes mr-drift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 1; }
  50% { transform: translate3d(6px, -10px, 0); opacity: 0.7; }
}
.mr-spark { animation: mr-drift 9s ease-in-out infinite; }
.mr-spark:nth-of-type(2n) { animation-duration: 11s; animation-direction: reverse; animation-delay: -3s; }
.mr-spark:nth-of-type(3n) { animation-duration: 13s; animation-delay: -6s; }
.mr-spark:nth-of-type(4n) { animation-duration: 10s; animation-delay: -8s; }

@keyframes mr-msg-in {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: none; }
}
.mr-chat { transition: transform var(--motion-duration-slow) var(--motion-ease-standard), box-shadow var(--motion-duration-slow) var(--motion-ease-standard), border-color var(--motion-duration-slow) var(--motion-ease-standard); }
.mr-chat:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--shadow-float); border-color: var(--color-border-strong); }
.mr-chat-log .mr-msg { animation: mr-msg-in var(--motion-duration-deliberate) var(--motion-ease-enter) both; }
.mr-chat-log .mr-msg:nth-child(2) { animation-delay: 180ms; }
.mr-chat-log .mr-msg:nth-child(3) { animation-delay: 360ms; }
.mr-chat-log .mr-msg:nth-child(4) { animation-delay: 540ms; }

@media (prefers-reduced-motion: reduce) {
  .mr-spark, .mr-chat-log .mr-msg { animation: none; }
  .mr-chat, .mr-chat:hover { transition: none; transform: none; }
}

/* ---------- site chrome ----------
   Spaced uppercase nav, pill calls to action in brushed jade, and a split hero:
   an oversized sans headline on the left, jade-seamed product cards on the right. */
body { background: var(--color-bg-base); }
a { color: var(--color-accent-text); }
a:hover { color: var(--color-accent-hover); }
::selection { background: var(--brand-jade); color: var(--brand-jade-black); }
.mr-nav { background: rgba(5, 14, 15, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mr-nav .mr-wordmark { letter-spacing: 0.42em; margin-right: -0.42em; }
.mr-nav-links { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.mr-nav-links a[aria-current]::after { left: 0; right: 0; }
.mr-btn-outline { background: transparent; color: var(--color-text-primary); border-color: rgba(238, 243, 239, 0.7); border-radius: 999px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.mr-btn-outline:hover { border-color: var(--color-accent-default); color: var(--color-accent-text); background: rgba(127, 181, 168, 0.06); }
.mr-btn-outline:focus-visible { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 2px; }
.mr-btn-outline .mr-arrow { transition: transform var(--motion-duration-fast) var(--motion-ease-standard); }
.mr-btn-outline:hover .mr-arrow { transform: translateX(3px); }
.mr-btn-primary:hover { box-shadow: var(--shadow-accent); }
.mr-eyebrow { color: var(--color-text-muted); }
.mr-eyebrow.is-accent { color: var(--color-accent-text); }
.mr-accent-phrase { color: var(--color-accent-text); font-style: italic; }

.mr-hero-split { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; max-width: 1240px; margin: 0 auto; padding: var(--space-9) var(--space-6) var(--space-9); box-sizing: border-box; }
.mr-hero-split .mr-display { font-size: 96px; line-height: 92px; letter-spacing: -0.015em; margin: var(--space-5) 0 var(--space-5); text-wrap: balance; }
.mr-hero-split .mr-display em { display: block; font-style: italic; color: var(--color-accent-text); text-shadow: 0 0 32px rgba(127, 181, 168, 0.28); }
.mr-hero-split .mr-body-lg { max-width: 520px; text-wrap: pretty; }
.mr-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.mr-hero-strap { margin-top: var(--space-7); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--color-text-muted); }
.mr-hero-strap span { white-space: nowrap; display: inline-block; }
.mr-hero-strap span + span::before { content: "·"; margin: 0 10px; color: var(--color-accent-text); }

.mr-seam { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); padding: var(--space-6) 0; }
.mr-seam::before { content: ""; position: absolute; inset: -12% -18%; background: var(--gradient-glow); pointer-events: none; }
.mr-seam svg.mr-seam-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mr-seam-lines path { fill: none; stroke: var(--brand-jade); stroke-width: 1.25; stroke-dasharray: 3 5; opacity: 0.65; }
.mr-seam-lines circle { fill: var(--brand-jade); filter: drop-shadow(0 0 4px rgba(127, 181, 168, 0.9)); }
.mr-seam .mr-handled-card { position: relative; background: rgba(15, 31, 32, 0.88); border-color: rgba(127, 181, 168, 0.22); box-shadow: var(--shadow-float); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mr-seam .mr-handled-card:nth-child(odd) { transform: translateY(18px); }
.mr-seam .mr-handled-value { color: var(--color-text-display); }
.mr-handled-card > .mr-eyebrow::before { box-shadow: 0 0 8px rgba(127, 181, 168, 0.8); }
.mr-plinth { position: absolute; left: 8%; right: 8%; bottom: -6px; height: 28px; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(127, 181, 168, 0.35), rgba(127, 181, 168, 0) 70%); filter: blur(6px); pointer-events: none; }
.mr-progress > span { box-shadow: 0 0 8px rgba(127, 181, 168, 0.6); }

.mr-step-num { color: var(--color-accent-text); }
.mr-night { box-shadow: inset 0 0 0 1px var(--color-border-subtle); }
.mr-msg-out { border-color: rgba(127, 181, 168, 0.4); }
.mr-pick.is-on, .mr-pick[aria-pressed="true"] { border-color: var(--color-accent-default); box-shadow: inset 3px 0 0 var(--color-accent-default); }
.mr-footer p[style*="font-display"] { color: var(--color-text-display); }

@media (max-width: 1023px) {
  .mr-hero-split { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-8); }
  .mr-hero-split .mr-display { font-size: 72px; line-height: 70px; }
}
@media (max-width: 767px) {
  .mr-hero-split { padding: var(--space-7) var(--space-4) var(--space-8); gap: var(--space-5); }
  .mr-hero-split .mr-display { font-size: 52px; line-height: 52px; }
  .mr-seam .mr-handled-card:nth-child(odd) { transform: none; }
}
@media (max-width: 479px) {
  .mr-seam { grid-template-columns: minmax(0, 1fr); }
  .mr-seam svg.mr-seam-lines, .mr-hero-split .mr-spark { display: none; }
  .mr-nav-actions .mr-btn-outline { padding: 0 12px; letter-spacing: 0.14em; }
}

/* ---------- obligations ledger and trust ramp ---------- */
.mr-ledger { max-width: 1120px; margin: 0 auto; padding: var(--space-10) var(--space-5) 0; box-sizing: border-box; }
.mr-ledger-head { max-width: 680px; }
.mr-ledger-head .mr-h2 { margin: var(--space-3) 0 var(--space-4); font-size: 52px; line-height: 56px; }
.mr-ledger-head .mr-h2 em { font-style: italic; color: var(--color-accent-text); }
.mr-ledger-grid { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-border-subtle); border-left: 1px solid var(--color-border-subtle); }
.mr-ledger-grid li { position: relative; padding: var(--space-5); border-right: 1px solid var(--color-border-subtle); border-bottom: 1px solid var(--color-border-subtle); transition: background-color var(--motion-duration-base) var(--motion-ease-standard); }
.mr-ledger-grid li::before { content: ""; display: block; width: 6px; height: 6px; margin-bottom: var(--space-4); background: var(--color-accent-default); box-shadow: 0 0 8px rgba(127, 181, 168, 0.7); }
.mr-ledger-grid li:hover { background: var(--color-bg-surface); }
.mr-ledger-grid .mr-small { margin-top: var(--space-2); }
.mr-ledger-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-7); }
.mr-ledger-num { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 34px; color: var(--color-text-display); }
.mr-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.mr-trust-grid .mr-step { display: flex; flex-direction: column; }
.mr-trust-grid .mr-step-num { margin-bottom: var(--space-6); font-size: 56px; line-height: 60px; }
.mr-trust-tag { margin: auto 0 0; padding-top: var(--space-5); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); }
.mr-chat-log .mr-msg:nth-child(5) { animation-delay: 720ms; }
@media (max-width: 1023px) {
  .mr-ledger-grid, .mr-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mr-ledger-facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}
@media (max-width: 767px) {
  .mr-ledger { padding: var(--space-9) var(--space-4) 0; }
  .mr-ledger-head .mr-h2 { font-size: 36px; line-height: 40px; }
}
@media (max-width: 479px) {
  .mr-ledger-grid, .mr-trust-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v4: jade metal and sans headings ----------
   Headings are set in the sans, light and tightly tracked; an em inside a heading
   switches to the serif italic in jade, the one decorative phrase per section.
   Primary actions are pills in brushed jade metal. */
.mr-display, .mr-h1, .mr-h2 { font-weight: 400; letter-spacing: -0.028em; }
.mr-hero-split .mr-display { letter-spacing: -0.035em; line-height: 0.98; }
.mr-display em, .mr-h1 em, .mr-h2 em, .mr-accent-phrase { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; font-size: 1.06em; color: var(--color-accent-text); }
.mr-handled-value, .mr-step-num, .mr-ledger-num, .mr-big .mr-num, .mr-route .mr-code, .mr-modal-title { letter-spacing: -0.02em; font-weight: 400; }
.mr-quote blockquote { font-family: var(--font-serif); }
.mr-btn-primary, .mr-btn-outline { border-radius: 999px; }
.mr-btn-primary { background: var(--color-accent-default) var(--gradient-metal); color: var(--color-on-accent); border: 0; letter-spacing: 0.02em; }
.mr-btn-primary:hover, .mr-btn-primary.is-hover { background: var(--color-accent-hover) linear-gradient(180deg, #BFE0D7 0%, #6FA397 100%); box-shadow: var(--shadow-accent); }
.mr-btn-primary:active, .mr-btn-primary.is-active { background: var(--color-accent-pressed); }
.mr-btn-outline { border-color: rgba(183, 196, 193, 0.55); }
.mr-request-go { background: var(--gradient-metal); border-radius: 999px; }
.mr-progress > span { background: var(--gradient-metal); }
.mr-footer p[style*="font-display"] { font-weight: 400 !important; font-size: 28px !important; line-height: 34px !important; letter-spacing: -0.02em; }
.mr-logo-disc, .mr-logo-tile { box-shadow: inset 0 0 0 1px rgba(228, 235, 233, 0.08); }

/* ---------- logo: the key block drops into place ----------
   Once per visit, on the first page only (logo.js sets data-drop on the nav logo).
   Transform and opacity only; no overshoot; off for reduced motion. */
@keyframes mr-key-drop {
  0% { transform: translate3d(0, -220%, 0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
mr-logo[data-drop] .mr-logo-key { transform-box: fill-box; animation: mr-key-drop 820ms var(--motion-ease-enter) 380ms both; }
@media (prefers-reduced-motion: reduce) { mr-logo[data-drop] .mr-logo-key { animation: none; } }

/* ---------- QC fixes ---------- */
/* one brand focus ring for every link and control (nav and footer links fell back to the browser default) */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: var(--stroke-focus) solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
.mr-btn:focus-visible { border-radius: 999px; }
/* no orphaned last words in headings */
.mr-display, .mr-h1, .mr-h2, .mr-handled-value, .mr-join-word, .mr-post-title, .mr-cover-value { text-wrap: balance; }
@media (max-width: 767px) {
  .mr-chat-stage { padding: 12px !important; }
  .mr-trust-grid .mr-step-num { margin-bottom: var(--space-4); font-size: 44px; line-height: 48px; }
  .mr-footer-grid > :first-child { grid-column: 1 / -1; }
  .mr-footer p[style*="font-display"] { font-size: 24px !important; line-height: 30px !important; max-width: none !important; }
}

/* ---------- v5 motion: the site at work ----------
   One idea throughout: things arrive and settle the way Meritas handles a request,
   quietly and in order. The key block from the Hallmark is the signature: it drops
   into accent eyebrows and lights each item on the ledger.
   Rules: CSS only (no script, nothing to download); animate opacity and the
   individual transform properties (translate, scale) so existing transforms are
   kept and the compositor does the work; nothing moves layout, so no layout shift.
   Scroll reveals use scroll-driven animations where the browser supports them and
   simply show the content where it doesn't. All of it is off for reduced motion. */

@keyframes mr-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
@keyframes mr-rise-soft { from { opacity: 0.15; translate: 0 14px; } to { opacity: 1; translate: none; } }
@keyframes mr-key-in { 0% { opacity: 0; translate: 0 -160%; } 40% { opacity: 1; } 100% { opacity: 1; translate: none; } }
@keyframes mr-fill { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes mr-flow { to { stroke-dashoffset: -64; } }
@keyframes mr-handling { 0%, 100% { opacity: 0; } 8%, 18% { opacity: 1; } 30% { opacity: 0; } }
@keyframes mr-sheen { from { translate: -120% 0; } to { translate: 120% 0; } }
@keyframes mr-horizon-in { from { scale: 0 1; opacity: 0; } to { scale: 1 1; opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {

  /* Hero: the copy arrives line by line, then the week's cards settle in beside it.
     The headline starts slightly visible so it still counts as the page's main paint. */
  .mr-hero-copy-left > * { animation: mr-rise 700ms var(--motion-ease-enter) both; }
  .mr-hero-copy-left > .mr-display { animation-name: mr-rise-soft; animation-delay: 60ms; }
  .mr-hero-copy-left > .mr-body-lg { animation-delay: 180ms; }
  .mr-hero-copy-left > .mr-hero-actions { animation-delay: 260ms; }
  .mr-hero-copy-left > .mr-hero-strap { animation-delay: 340ms; }
  .mr-seam .mr-handled-card { animation: mr-rise 760ms var(--motion-ease-enter) both; }
  .mr-seam .mr-handled-card:nth-of-type(1) { animation-delay: 380ms; }
  .mr-seam .mr-handled-card:nth-of-type(2) { animation-delay: 480ms; }
  .mr-seam .mr-handled-card:nth-of-type(3) { animation-delay: 580ms; }
  .mr-seam .mr-handled-card:nth-of-type(4) { animation-delay: 680ms; }

  /* The CME bar fills to its value once the card has landed. */
  .mr-seam .mr-progress > span { transform-origin: left center; animation: mr-fill 1100ms var(--motion-ease-enter) 900ms both; }

  /* The seam carries work between the cards: its dashes flow, slowly and forever. */
  .mr-seam-lines path { animation: mr-flow 6s linear infinite; }
  .mr-seam-lines path + path { animation-duration: 8s; animation-direction: reverse; }

  /* Each card takes a turn being handled: a jade edge lights up, then rests.
     One card at a time, a 10 second loop, opacity only. */
  .mr-seam .mr-handled-card::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--color-accent-default); border-radius: inherit; box-shadow: 0 0 24px rgba(127, 181, 168, 0.22); opacity: 0; pointer-events: none; animation: mr-handling 10s var(--motion-ease-standard) infinite; }
  .mr-seam .mr-handled-card:nth-of-type(1)::after { animation-delay: 1.6s; }
  .mr-seam .mr-handled-card:nth-of-type(2)::after { animation-delay: 4.1s; }
  .mr-seam .mr-handled-card:nth-of-type(3)::after { animation-delay: 6.6s; }
  .mr-seam .mr-handled-card:nth-of-type(4)::after { animation-delay: 9.1s; }

  /* Primary buttons: a strip of light crosses the brushed metal on hover. */
  .mr-btn-primary { position: relative; overflow: hidden; isolation: isolate; }
  .mr-btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%); translate: -120% 0; pointer-events: none; }
  .mr-btn-primary:hover::after { animation: mr-sheen 900ms var(--motion-ease-standard) both; }
}

/* The key block in accent eyebrows ("A personal agent for physician leaders", "The obligations ledger"). */
.mr-eyebrow.is-accent::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.75em; vertical-align: 0.06em; background: var(--gradient-metal); box-shadow: 0 0 8px rgba(127, 181, 168, 0.7); }
@media (prefers-reduced-motion: no-preference) {
  .mr-hero-copy-left > .mr-eyebrow.is-accent::before { animation: mr-key-in 760ms var(--motion-ease-enter) 420ms both; }
}

/* Scroll: sections rise in as they enter the screen, and lists arrive in order. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main .mr-h2, main .mr-ledger-head > p, main .mr-faq, main .mr-ledger-facts > div,
    main .mr-trust-grid .mr-step, main .mr-believe-grid .mr-step, main .mr-feed-row,
    main .mr-ledger-grid li, main .mr-post, main .mr-name-card, main .mr-feature-post,
    main .mr-why .mr-body-lg, main .mr-team .mr-body-lg, main .mr-name-copy .mr-body-lg {
      animation: mr-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
    /* Grids arrive left to right: later columns start a little later. */
    main .mr-ledger-grid li:nth-child(4n+2), main .mr-trust-grid .mr-step:nth-child(2), main .mr-believe-grid .mr-step:nth-child(2), main .mr-post:nth-child(3n+2) { animation-range: entry 10% cover 32%; }
    main .mr-ledger-grid li:nth-child(4n+3), main .mr-trust-grid .mr-step:nth-child(3), main .mr-believe-grid .mr-step:nth-child(3), main .mr-post:nth-child(3n) { animation-range: entry 15% cover 36%; }
    main .mr-ledger-grid li:nth-child(4n), main .mr-trust-grid .mr-step:nth-child(4), main .mr-believe-grid .mr-step:nth-child(4) { animation-range: entry 20% cover 40%; }

    /* Each ledger item's key block drops in as the item arrives. */
    main .mr-ledger-grid li::before { animation: mr-key-in linear both; animation-timeline: view(); animation-range: entry 20% cover 38%; }
    /* Eyebrows outside the hero get their key block on arrival too. */
    main .mr-eyebrow.is-accent::before { animation: mr-key-in linear both; animation-timeline: view(); animation-range: entry 10% cover 25%; }
    .mr-hero-copy-left > .mr-eyebrow.is-accent::before { animation: mr-key-in 760ms var(--motion-ease-enter) 420ms both; animation-timeline: auto; }

    /* Horizon lines open from the centre. */
    main .mr-horizon { animation: mr-horizon-in linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
