/* Homepagev6 homepage stylesheet.
   Generated verbatim from the <helmet> <style> blocks of
   Homepagev6/Bookify Technology Homepage.html, in source order:
   colour tokens, typography tokens, design-system global styles,
   Montserrat faces, page styles. Bundled font blob URLs now point at
   the identical woff2 files in ./fonts. No declarations changed. */
/* Bookify Technology — Color Tokens */

:root {
  /* ── Primary (Brand Orange-Red) ── */
  --color-primary-50:  #FFF3EF;
  --color-primary-100: #FFE2D5;
  --color-primary-200: #FFC4A8;
  --color-primary-300: #FF9E72;
  --color-primary-400: #FF773D;
  --color-primary-500: #FF551A;
  --color-primary-600: #E03D06;
  --color-primary-700: #B83000;
  --color-primary-800: #8F2500;
  --color-primary-900: #661A00;

  /* ── Neutral ── */
  --color-neutral-0:   #FFFFFF;
  --color-neutral-50:  #F8F8F7;
  --color-neutral-100: #F0EFEE;
  --color-neutral-200: #E0DFDD;
  --color-neutral-300: #C4C3C0;
  --color-neutral-400: #A3A19D;
  --color-neutral-500: #7E7C78;
  --color-neutral-600: #5E5C58;
  --color-neutral-700: #403E3A;
  --color-neutral-800: #282622;
  --color-neutral-900: #16140F;
  --color-neutral-950: #0C0B08;

  /* ── Semantic ── */
  --color-success-50:  #F0FDF4;
  --color-success-100: #DCFCE7;
  --color-success-500: #16A34A;
  --color-success-700: #15803D;

  --color-warning-50:  #FFFBEB;
  --color-warning-100: #FEF3C7;
  --color-warning-500: #D97706;
  --color-warning-700: #B45309;

  --color-error-50:    #FFF1F2;
  --color-error-100:   #FFE4E6;
  --color-error-500:   #E11D48;
  --color-error-700:   #BE123C;

  --color-info-50:     #EFF6FF;
  --color-info-100:    #DBEAFE;
  --color-info-500:    #2563EB;
  --color-info-700:    #1D4ED8;

  /* ── Brand Aliases ── */
  --color-brand:         var(--color-primary-500);
  --color-brand-hover:   var(--color-primary-600);
  --color-brand-active:  var(--color-primary-700);
  --color-brand-subtle:  var(--color-primary-50);
  --color-brand-muted:   var(--color-primary-100);

  /* ── Foreground ── */
  --color-fg-1:         var(--color-neutral-900);
  --color-fg-2:         var(--color-neutral-700);
  --color-fg-3:         var(--color-neutral-500);
  --color-fg-4:         var(--color-neutral-400);
  --color-fg-disabled:  var(--color-neutral-300);
  --color-fg-inverse:   var(--color-neutral-0);
  --color-fg-brand:     var(--color-primary-500);

  /* ── Background ── */
  --color-bg-body:    var(--color-neutral-0);
  --color-bg-subtle:  var(--color-neutral-50);
  --color-bg-muted:   var(--color-neutral-100);
  --color-bg-overlay: rgba(22, 20, 15, 0.5);

  /* ── Border ── */
  --color-border:        var(--color-neutral-200);
  --color-border-strong: var(--color-neutral-300);
  --color-border-focus:  var(--color-primary-500);
}

/* Bookify Technology — Typography Tokens */
/* ⚠️ Font substitution: using Google Fonts equivalents.
   - "Space Grotesk" ≈ display/heading (geometric sans)
   - "DM Sans" ≈ body copy (humanist sans)
   - "JetBrains Mono" ≈ monospace
   Please supply brand font files to replace these. */

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-italic-latin-ext.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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-italic-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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/jetbrains-mono-normal-cyrillic-ext.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/jetbrains-mono-normal-cyrillic.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/jetbrains-mono-normal-greek.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/jetbrains-mono-normal-vietnamese.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/jetbrains-mono-normal-latin-ext.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/jetbrains-mono-normal-latin.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-cyrillic-ext.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-cyrillic.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-greek.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-vietnamese.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-latin-ext.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}


:root {
  /* ── Font Families ── */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* ── Font Sizes ── */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  30px;
  --text-4xl:  36px;
  --text-5xl:  48px;
  --text-6xl:  60px;
  --text-7xl:  72px;

  /* ── Font Weights ── */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ── Line Heights ── */
  --leading-none:    1;
  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;
  --leading-loose:   1.8;

  /* ── Letter Spacing ── */
  --tracking-tight:  -0.03em;
  --tracking-snug:   -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;
  --tracking-widest:  0.12em;

  /* ── Semantic Type Roles ── */
  --type-display-font:   var(--font-display);
  --type-display-weight: var(--weight-bold);
  --type-display-tracking: var(--tracking-tight);

  --type-heading-font:   var(--font-display);
  --type-heading-weight: var(--weight-semibold);

  --type-body-font:      var(--font-sans);
  --type-body-weight:    var(--weight-regular);
  --type-body-leading:   var(--leading-normal);

  --type-label-font:     var(--font-sans);
  --type-label-weight:   var(--weight-medium);
  --type-label-tracking: var(--tracking-wide);

  --type-mono-font:      var(--font-mono);
  --type-mono-weight:    var(--weight-regular);
}

/* Bookify Technology — Design System Global Styles
   Entry point: import this single file to consume the full token set. */

/* Bookify Technology — Color Tokens */

:root {
  /* ── Primary (Brand Orange-Red) ── */
  --color-primary-50:  #FFF3EF;
  --color-primary-100: #FFE2D5;
  --color-primary-200: #FFC4A8;
  --color-primary-300: #FF9E72;
  --color-primary-400: #FF773D;
  --color-primary-500: #FF551A;
  --color-primary-600: #E03D06;
  --color-primary-700: #B83000;
  --color-primary-800: #8F2500;
  --color-primary-900: #661A00;

  /* ── Neutral ── */
  --color-neutral-0:   #FFFFFF;
  --color-neutral-50:  #F8F8F7;
  --color-neutral-100: #F0EFEE;
  --color-neutral-200: #E0DFDD;
  --color-neutral-300: #C4C3C0;
  --color-neutral-400: #A3A19D;
  --color-neutral-500: #7E7C78;
  --color-neutral-600: #5E5C58;
  --color-neutral-700: #403E3A;
  --color-neutral-800: #282622;
  --color-neutral-900: #16140F;
  --color-neutral-950: #0C0B08;

  /* ── Semantic ── */
  --color-success-50:  #F0FDF4;
  --color-success-100: #DCFCE7;
  --color-success-500: #16A34A;
  --color-success-700: #15803D;

  --color-warning-50:  #FFFBEB;
  --color-warning-100: #FEF3C7;
  --color-warning-500: #D97706;
  --color-warning-700: #B45309;

  --color-error-50:    #FFF1F2;
  --color-error-100:   #FFE4E6;
  --color-error-500:   #E11D48;
  --color-error-700:   #BE123C;

  --color-info-50:     #EFF6FF;
  --color-info-100:    #DBEAFE;
  --color-info-500:    #2563EB;
  --color-info-700:    #1D4ED8;

  /* ── Brand Aliases ── */
  --color-brand:         var(--color-primary-500);
  --color-brand-hover:   var(--color-primary-600);
  --color-brand-active:  var(--color-primary-700);
  --color-brand-subtle:  var(--color-primary-50);
  --color-brand-muted:   var(--color-primary-100);

  /* ── Foreground ── */
  --color-fg-1:         var(--color-neutral-900);
  --color-fg-2:         var(--color-neutral-700);
  --color-fg-3:         var(--color-neutral-500);
  --color-fg-4:         var(--color-neutral-400);
  --color-fg-disabled:  var(--color-neutral-300);
  --color-fg-inverse:   var(--color-neutral-0);
  --color-fg-brand:     var(--color-primary-500);

  /* ── Background ── */
  --color-bg-body:    var(--color-neutral-0);
  --color-bg-subtle:  var(--color-neutral-50);
  --color-bg-muted:   var(--color-neutral-100);
  --color-bg-overlay: rgba(22, 20, 15, 0.5);

  /* ── Border ── */
  --color-border:        var(--color-neutral-200);
  --color-border-strong: var(--color-neutral-300);
  --color-border-focus:  var(--color-primary-500);
}

/* Bookify Technology — Typography Tokens */
/* ⚠️ Font substitution: using Google Fonts equivalents.
   - "Space Grotesk" ≈ display/heading (geometric sans)
   - "DM Sans" ≈ body copy (humanist sans)
   - "JetBrains Mono" ≈ monospace
   Please supply brand font files to replace these. */

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-italic-latin-ext.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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-italic-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.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/jetbrains-mono-normal-cyrillic-ext.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/jetbrains-mono-normal-cyrillic.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/jetbrains-mono-normal-greek.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/jetbrains-mono-normal-vietnamese.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/jetbrains-mono-normal-latin-ext.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/jetbrains-mono-normal-latin.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-cyrillic-ext.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-cyrillic.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-greek.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-vietnamese.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-latin-ext.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: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-vietnamese.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin-ext.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-normal-latin.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;
}


:root {
  /* ── Font Families ── */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* ── Font Sizes ── */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  30px;
  --text-4xl:  36px;
  --text-5xl:  48px;
  --text-6xl:  60px;
  --text-7xl:  72px;

  /* ── Font Weights ── */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ── Line Heights ── */
  --leading-none:    1;
  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;
  --leading-loose:   1.8;

  /* ── Letter Spacing ── */
  --tracking-tight:  -0.03em;
  --tracking-snug:   -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;
  --tracking-widest:  0.12em;

  /* ── Semantic Type Roles ── */
  --type-display-font:   var(--font-display);
  --type-display-weight: var(--weight-bold);
  --type-display-tracking: var(--tracking-tight);

  --type-heading-font:   var(--font-display);
  --type-heading-weight: var(--weight-semibold);

  --type-body-font:      var(--font-sans);
  --type-body-weight:    var(--weight-regular);
  --type-body-leading:   var(--leading-normal);

  --type-label-font:     var(--font-sans);
  --type-label-weight:   var(--weight-medium);
  --type-label-tracking: var(--tracking-wide);

  --type-mono-font:      var(--font-mono);
  --type-mono-weight:    var(--weight-regular);
}

/* Bookify Technology — Spacing Tokens */
/* Base unit: 4px. Scale: 1×, 2×, 3×, 4×, 5×, 6×, 8×, 10×, 12×, 16×, 20×, 24× */

:root {
  --space-0:  0px;
  --space-px: 1px;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;
  --space-48: 192px;

  /* ── Semantic Spacing ── */
  --gap-xs:   var(--space-1);   /* 4px  — tight inline gap */
  --gap-sm:   var(--space-2);   /* 8px  — sibling elements */
  --gap-md:   var(--space-4);   /* 16px — default component gap */
  --gap-lg:   var(--space-6);   /* 24px — section-level gap */
  --gap-xl:   var(--space-8);   /* 32px — layout gap */
  --gap-2xl:  var(--space-12);  /* 48px — major section gap */

  --padding-xs:  var(--space-2);   /* 8px */
  --padding-sm:  var(--space-3);   /* 12px */
  --padding-md:  var(--space-4);   /* 16px */
  --padding-lg:  var(--space-6);   /* 24px */
  --padding-xl:  var(--space-8);   /* 32px */
  --padding-2xl: var(--space-12);  /* 48px */
}

/* Bookify Technology — Border Radius Tokens */

:root {
  --radius-none: 0px;
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-3xl:  32px;
  --radius-full: 9999px;
}

/* Bookify Technology — Shadow Tokens */

:root {
  --shadow-xs:  0 1px 2px rgba(22, 20, 15, 0.04);
  --shadow-sm:  0 1px 3px rgba(22, 20, 15, 0.06), 0 1px 2px rgba(22, 20, 15, 0.04);
  --shadow-md:  0 4px 8px rgba(22, 20, 15, 0.06), 0 2px 4px rgba(22, 20, 15, 0.04);
  --shadow-lg:  0 10px 24px rgba(22, 20, 15, 0.08), 0 4px 8px rgba(22, 20, 15, 0.04);
  --shadow-xl:  0 20px 48px rgba(22, 20, 15, 0.10), 0 8px 16px rgba(22, 20, 15, 0.06);
  --shadow-2xl: 0 32px 64px rgba(22, 20, 15, 0.14), 0 16px 32px rgba(22, 20, 15, 0.08);

  /* Brand glow — use sparingly on interactive primary elements */
  --shadow-brand-sm: 0 0 0 3px rgba(255, 85, 26, 0.15);
  --shadow-brand-md: 0 4px 16px rgba(255, 85, 26, 0.25);
  --shadow-brand-focus: 0 0 0 3px rgba(255, 85, 26, 0.3);
}


/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-italic-cyrillic-ext.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: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-italic-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-italic-vietnamese.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: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-italic-latin-ext.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: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-italic-latin.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: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-normal-vietnamese.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: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin.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: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-normal-vietnamese.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: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin.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: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-normal-vietnamese.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: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin.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: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-normal-vietnamese.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: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin.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: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/montserrat-normal-vietnamese.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: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin.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: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/montserrat-normal-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/montserrat-normal-vietnamese.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: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin-ext.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: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/montserrat-normal-latin.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;
}


    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { background: #fff; font-family: 'Montserrat', sans-serif; color: #0D0D0D; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
    a { color: inherit; text-decoration: none; }
    .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #0D0D0D; margin-bottom: 24px; display: block; }
    @keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

    /* ── RESPONSIVE ── */
    .r-nav-links { display: flex; gap: 32px; align-items: center; }
    .r-nav-cta { display: inline-flex; }
    .r-hero-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
    .r-hero-img { display: flex; align-items: center; justify-content: center; animation: float 5s ease-in-out infinite; }
    .r-hero-img img { width: auto; height: 560px; }
    .r-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
    .r-2col-center { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
    .r-4col { display: grid; grid-template-columns: repeat(4,1fr); }
    .r-svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
    .r-3col { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
    .r-2col-cta { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
    .r-footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.4fr; gap: 64px; }
    .r-section-pad { padding: 112px 56px; }
    .r-section-pad-sm { padding: 96px 56px; }
    .r-hero-section { padding: 80px 56px; }
    .r-sticky { position: sticky; top: 84px; }
    .r-watermark { display: block; }
    @media (max-width: 1024px) {
      .r-hero2 { flex-direction: column; align-items: stretch !important; min-height: 0 !important; padding: 0 !important; }
      .r-hero2-inner { padding: 64px 40px 24px !important; }
      .r-nav-inner { padding: 0 40px !important; }
      .r-hero2-copy { max-width: none !important; }
      .r-hero2-img { display: block; order: 2; margin: 0 !important; position: static !important; width: 100% !important; max-width: 100% !important; height: auto !important; -webkit-mask-image: linear-gradient(180deg,transparent 0%,#000 12%) !important; mask-image: linear-gradient(180deg,transparent 0%,#000 12%) !important; }
    }
    .r-hero-phones { position: relative; display: flex; align-items: center; justify-content: center; height: 580px; }

    @media (max-width: 1024px) {
      .r-hero-grid { grid-template-columns: 1fr; gap: 32px; flex-direction: column-reverse; display: flex; }
      .r-hero-img { order: -1; width: 100%; }
      .r-hero-img img { height: auto; width: 100%; }
      .r-admin-img { order: -1; width: 100%; }
      .r-app-img { order: -1; width: 100%; }
      .r-hero-phones { height: 380px; }
      .r-2col { grid-template-columns: 1fr; gap: 40px; }
      .r-2col-center { grid-template-columns: 1fr; gap: 40px; }
      .r-4col { grid-template-columns: repeat(2,1fr); }
      .r-svc-grid { grid-template-columns: repeat(2,1fr); }
      .r-3col { grid-template-columns: repeat(2,1fr); }
      .r-projects-grid { grid-template-columns: 1fr 1fr; }
      .r-footer-grid { grid-template-columns: 1fr 1fr; }
      .r-sticky { position: static; }
      .r-section-pad { padding: 72px 40px; }
      .r-section-pad-sm { padding: 72px 40px; }
      .r-hero-section { padding: 56px 40px !important; }
      .r-2col-cta { flex-direction: column; align-items: flex-start; }
    }

    @media (max-width: 768px) {
      .r-nav-links { display: none; }
      .r-nav-cta-btn { display: none !important; }
      .r-menu-btn { display: flex !important; }
      .r-hero-grid { grid-template-columns: 1fr; flex-direction: column-reverse; display: flex; }
      .r-hero-img { order: -1; width: 100%; justify-content: center; }
      .r-hero-img img { height: auto; width: 100%; object-fit: contain; }
      .r-hero-phones { height: 320px; }
      .r-2col { grid-template-columns: 1fr; gap: 32px; }
      .r-2col-center { grid-template-columns: 1fr; gap: 32px; }
      .r-4col { grid-template-columns: 1fr 1fr; }
      .r-svc-grid { grid-template-columns: 1fr; }
      .r-3col { grid-template-columns: 1fr; }
      .r-projects-grid { grid-template-columns: 1fr !important; }
      .r-proj-tile { border-right: none !important; padding: 0 0 40px !important; border-bottom: 1px solid rgba(255,255,255,0.12) !important; margin-bottom: 40px; }
      .r-proj-tile:last-child { border-bottom: none !important; margin-bottom: 0; padding-bottom: 0 !important; }
      .r-proj-card { flex-direction: column; }
      .r-proj-img { width: 100% !important; border-right: none !important; border-bottom: 1px dashed #C4C3C0; }
      .r-proj-tile { aspect-ratio: auto !important; min-height: 420px; }
      .r-footer-grid { grid-template-columns: 1fr; gap: 40px; }
      .r-section-pad { padding: 64px 20px; }
      .r-section-pad-sm { padding: 64px 20px; }
      .r-hero-section { padding: 48px 0 !important; }
      .r-watermark { display: none; }
      .r-sticky { position: static; }
      .r-nav-inner { padding: 0 20px !important; }
      .r-overview-inner { padding: 0 20px !important; }
      .r-2col-admin-cards { grid-template-columns: 1fr !important; }
      section { overflow-x: hidden; }
      /* Unified mobile side gutter: every section/footer gets exactly 20px, inner wrappers add nothing */
      section, footer { padding-left: 20px !important; padding-right: 20px !important; }
      section.r-hero2 { padding: 0 !important; }
      .r-hero-line { display: inline !important; white-space: normal !important; }
      section.r-hero2 .r-hero2-inner { padding: 56px 20px 16px !important; }
      .r-inner { padding-left: 0 !important; padding-right: 0 !important; }
      .r-hero-grid { padding-left: 0 !important; padding-right: 0 !important; }
      .r-section-pad { padding-left: 20px !important; padding-right: 20px !important; }
    }

    @media (max-width: 480px) {
      .r-4col { grid-template-columns: 1fr; }
      .man-desktop { display: none !important; }
      .man-mobile { display: block !important; }
    }
    @media (max-width: 768px) {
      .r-4col { grid-template-columns: 1fr !important; }
      .r-4col > div { border-right: none !important; border-bottom: 1px solid #E0DFDD; }
      .r-4col > div:last-child { border-bottom: none; }
      .r-cta-row { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
      .r-cta-row a { width: 100%; justify-content: center; }
      .r-footer-cta-row { flex-direction: row; align-items: center !important; gap: 10px !important; }
      .r-footer-cta-row a:first-child { flex: 1 1 auto; text-align: center; }
      .r-footer-cta-row a:last-child { width: 44px !important; height: 44px !important; flex: 0 0 44px; }
      .r-testimonial-text { font-size: 14px !important; }
      .r-cta-buttons { min-width: 0 !important; max-width: none !important; }
      .r-hero-cta-row { flex-direction: column; align-items: stretch; }
      .r-hero-cta-row a { width: 100%; justify-content: center; }
      .r-hero-img img { width: 100% !important; height: auto !important; max-width: none; margin: 0 auto; }
    }

    @media (max-width: 768px) {
      .r-2col-admin-cards { grid-template-columns: 1fr !important; }
      .r-livenow-title { white-space: normal !important; }
    }

    .r-build-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
    .r-scroll-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 4px; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
    .r-scroll-row > div { flex: 0 0 212px; scroll-snap-align: start; }
    .r-scroll-row { scrollbar-width: none; -ms-overflow-style: none; }
    .r-scroll-row::-webkit-scrollbar { display: none; }
    .r-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
    .r-marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: r-marquee-scroll 42s linear infinite; }
    .r-marquee:hover .r-marquee-track { animation-play-state: paused; }
    @keyframes r-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
    @media (prefers-reduced-motion: reduce) { .r-marquee-track { animation: none; } .r-marquee { overflow-x: auto; } }
    .r-int-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
    @media (max-width: 1100px) {
      .r-logo-strip { display: flex !important; grid-template-columns: none !important; overflow-x: auto; gap: 34px; padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none; }
      .r-logo-strip::-webkit-scrollbar { display: none; }
      .r-logo-strip > span { flex: 0 0 auto; }
    }
    .r-steps { display: grid; grid-template-columns: repeat(6,1fr); gap: 0; }
    .r-steps > div:nth-child(6n) .r-step-line { display: none; }
    @media (max-width: 900px) { .r-oneline { white-space: normal !important; } .r-hero-h1, .r-hero-sub { text-wrap: balance; } }
    @media (max-width: 768px) {
      .r-hero-h1 { font-size: 34px !important; line-height: 1.1 !important; }
      .r-hero-sub { font-size: 24px !important; line-height: 1.3 !important; }
    }
    @media (max-width: 420px) {
      .r-hero-h1 { font-size: 30px !important; }
      .r-hero-sub { font-size: 21px !important; }
    }
    @media (max-width: 900px) { .r-agents-split { grid-template-columns: 1fr !important; gap: 36px !important; } .r-agents-img { order: 0 !important; aspect-ratio: 1/1; } }
    @media (max-width: 900px) { .r-why-split { grid-template-columns: 1fr !important; } .r-why-img { order: 0 !important; } }
    @media (max-width: 900px) {
      .r-head-row { align-items: flex-start !important; flex-wrap: wrap !important; gap: 22px !important; }
      .r-head-row > div:first-child { flex: 1 1 100%; width: 100%; }
      .r-head-row > div:first-child h2 { max-width: 100% !important; }
    }
    @media (max-width: 768px) { .r-cta-card { padding: 56px 24px !important; border-radius: 22px; } }
    .r-why { display: grid; grid-template-columns: repeat(2,1fr); column-gap: 56px; }
    .r-tst-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
    @media (max-width: 1100px) {
      .r-build-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
      .r-int-grid { grid-template-columns: repeat(2,1fr); }
      .r-steps { grid-template-columns: repeat(3,1fr); row-gap: 40px; }
      .r-steps > div:nth-child(6n) .r-step-line { display: block; }
      .r-steps > div:nth-child(3n) .r-step-line { display: none; }
      .r-tst-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      .r-build-grid { grid-template-columns: 1fr; }
      .r-int-grid { grid-template-columns: 1fr; }
      .r-steps { grid-template-columns: 1fr; row-gap: 0; }
      .r-steps > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 30px; position: relative; }
      .r-steps > div > div:first-child { display: block !important; margin-bottom: 0 !important; position: static; }
      .r-steps > div .r-step-line { display: block !important; position: absolute; left: 22px; top: 54px; bottom: 8px; width: 1px; height: auto !important; flex: none !important; transform: translateX(-50%); background: rgba(255,255,255,0.22) !important; }
      .r-steps > div:last-child { padding-bottom: 0; }
      .r-steps > div:last-child .r-step-line { display: none !important; }
      .r-steps > div > div:first-child { grid-row: 1 / span 3; }
      .r-steps > div h3, .r-steps > div p { padding-right: 0 !important; }
      .r-steps > div > div:nth-child(2) { align-self: center; }
      .r-why { grid-template-columns: 1fr; }
    }
    @media (max-width: 1024px) { section.r-hero2 { min-height: 56.25vw !important; } section.r-hero2 video { object-position: 85% center !important; } }
    @media (max-width: 768px) { section.r-hero2 { min-height: 100vh !important; min-height: 100svh !important; justify-content: center !important; } section.r-hero2 div.r-hero2-inner { padding-top: 80px !important; padding-bottom: 28.5vh !important; padding-bottom: 28.5svh !important; } section.r-hero2 video { object-position: center !important; } section.r-hero2 .r-hero-cta-row { align-self: stretch !important; width: 100% !important; flex-direction: column !important; } section.r-hero2 .r-hero-cta-row a { width: 100% !important; justify-content: center !important; box-sizing: border-box; } }
    @media (max-width: 1024px) { section.r-hero2 .r-hero2-inner { padding-top: 104px !important; padding-bottom: 48px !important; } }
    .bk-hero-mask { background: linear-gradient(to right, rgba(8,8,8,1) 0%, rgba(8,8,8,0.97) 24%, rgba(8,8,8,0.5) 40%, rgba(8,8,8,0.45) 50%, rgba(8,8,8,0.5) 60%, rgba(8,8,8,0.97) 76%, rgba(8,8,8,1) 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 63%, transparent 71%); mask-image: linear-gradient(to bottom, #000 0%, #000 63%, transparent 71%); }
    @media (max-width: 768px) { .bk-hero-mask { background: rgba(8,8,8,0.45); } }
    .bk-agents-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; }
    .bk-agent-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-top: 1px solid rgba(255,255,255,0.16); padding-top: 32px; }
    @media (max-width: 900px) { .bk-agents-row { grid-template-columns: 1fr; gap: 0; } .bk-agent-item { padding: 28px 0; } .bk-agent-item:last-child { padding-bottom: 0; } }
    .bk-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 56px; }
    .bk-why-head { padding-right: 24px; }
    .bk-why-item { position: relative; padding-top: 30px; cursor: default; }
    .bk-why-item::before, .bk-why-item::after, .bk-agent-item::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; transform-origin: left center; }
    .bk-why-item::before { background: #E0DFDD; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
    .bk-why-item::after { height: 2px; top: -0.5px; background: #0D0D0D; transform: scaleX(0); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
    .bk-why-item:hover::after { transform: scaleX(1); }
    .bk-why-icon { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(13,13,13,0.22); color: #0D0D0D; display: flex; align-items: center; justify-content: center; transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease; }
    .bk-why-item:hover .bk-why-icon { background: #0D0D0D; border-color: #0D0D0D; color: #fff; transform: rotate(-8deg); }
    .bk-why-item h3 { transition: transform .35s ease; }
    .bk-why-item:hover h3 { transform: translateX(4px); }
    .bk-agent-item { position: relative; }
    .bk-agent-item::after { background: #fff; height: 1px; top: -1px; transform: scaleX(0); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
    .bk-agent-item:hover::after { transform: scaleX(1); }
    .bk-rv { opacity: 0; transform: translateY(22px); transition: opacity .75s ease-out, transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: var(--bk-d, 0ms); }
    .bk-rv.bk-in { opacity: 1; transform: none; }
    .bk-why-item.bk-rv:not(.bk-in)::before { transform: scaleX(0); }
    .bk-why-item.bk-rv::before { transition-delay: calc(var(--bk-d, 0ms) + 150ms); }
    .r-build-grid > div, .r-scroll-row > div { transition: transform .35s ease, box-shadow .35s ease, opacity .8s cubic-bezier(.2,.7,.2,1); }
    .r-build-grid > div:hover, .r-scroll-row > div:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(22,20,15,0.08); }
    @media (prefers-reduced-motion: reduce) { .bk-rv { opacity: 1 !important; transform: none !important; transition: none !important; } }
    @media (max-width: 1024px) { .bk-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; } .bk-why-head { grid-column: span 2; padding-right: 0; } }
    @media (max-width: 640px) { .bk-why-grid { grid-template-columns: 1fr; gap: 0; } .bk-why-head { grid-column: span 1; margin-bottom: 36px; } .bk-why-item { padding: 26px 0; } .bk-why-item:last-child { padding-bottom: 0; } }
    @media (max-width: 768px) {
      .r-cta-card { padding: 48px 22px !important; }
      .r-cta-card h2 { font-size: 28px !important; font-weight: 800 !important; line-height: 1.1 !important; margin-bottom: 14px !important; }
      .r-cta-card > div:not(:first-child) { font-size: 16px !important; line-height: 1.65 !important; margin-bottom: 28px !important; }
      .r-cta-card > a, .r-head-row > a, .r-proj-tile > a { display: flex !important; width: 100% !important; justify-content: center !important; align-self: stretch !important; box-sizing: border-box; padding: 14px 24px !important; font-size: 15px !important; }
      .r-head-row > div { width: 100%; }
      .r-footer-cta-row > a:first-child { flex: 1; display: flex; justify-content: center; padding: 12px 20px !important; }
    }
    @keyframes bkLineIn { from { opacity: 0; transform: translateY(20%); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
    .r-hero-line { animation: bkLineIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
    .r-hero-line + .r-hero-line { animation-delay: .18s; }
    .r-hero2-copy { will-change: transform, opacity; }
    section.r-hero2 video { transform-origin: 50% 40%; }
    h2.bk-rv { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter 1s cubic-bezier(.2,.7,.2,1); }
    h2.bk-rv:not(.bk-in) { filter: blur(6px); transform: translateY(24px); }
    .eyebrow.bk-rv { transition: opacity .9s ease, transform .9s ease, letter-spacing 1.1s cubic-bezier(.2,.7,.2,1); }
    .eyebrow.bk-rv:not(.bk-in) { letter-spacing: 0.28em; }
    .bk-why-item.bk-rv .bk-why-icon { transition: background .35s ease, color .35s ease, border-color .35s ease, transform .7s cubic-bezier(.34,1.56,.64,1) calc(var(--bk-d, 0ms) + 200ms), opacity .5s ease calc(var(--bk-d, 0ms) + 200ms); }
    .bk-why-item.bk-rv:not(.bk-in) .bk-why-icon { transform: scale(.75) rotate(-15deg); opacity: 0; }
    .r-steps > .bk-rv .r-step-line { transform-origin: left center; transition: transform 1.2s cubic-bezier(.2,.7,.2,1) calc(var(--bk-d, 0ms) + 250ms); }
    .r-steps > .bk-rv:not(.bk-in) .r-step-line { transform: scaleX(0); }
    .r-hero2-copy a, .r-cta-card > a, .r-head-row > a, .r-proj-tile > a { transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background .3s ease, color .3s ease; }
    .r-hero2-copy a:hover, .r-cta-card > a:hover, .r-head-row > a:hover, .r-proj-tile > a:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
    @media (prefers-reduced-motion: reduce) { .r-hero-line { animation: none; } h2.bk-rv { filter: none !important; } }
    .r-scroll-row { padding-top: 10px !important; padding-bottom: 30px !important; margin-top: -6px; margin-bottom: -26px; }
    @media (max-width: 768px) {
      .r-footer-grid > div:nth-child(2) { display: none !important; }
      .r-footer-grid > div:first-child img { margin-left: auto !important; margin-right: auto !important; }
    }
    .bk-why-h2 { font-size: clamp(30px, 3.25vw, 50px); }
    @media (max-width: 1024px) { .bk-why-h2 { font-size: clamp(30px, 5.2vw, 48px); } }
    @media (max-width: 768px) {
      .r-steps { counter-reset: bkstep; }
      .r-steps > div { grid-template-columns: 44px 1fr; }
      .r-steps > div > div:nth-child(2) { display: none !important; }
      .r-steps > div > div:first-child { grid-row: 1 / span 2 !important; }
      .r-steps > div > h3 { counter-increment: bkstep; align-self: center; min-height: 44px; display: flex; align-items: center; margin-bottom: 4px !important; }
      .r-steps > div > h3::before { content: counter(bkstep, decimal-leading-zero) "."; font-size: 13px; font-weight: 800; color: rgba(13,13,13,0.45); letter-spacing: 0.04em; margin-right: 10px; font-variant-numeric: tabular-nums; }
      .r-steps > div .r-step-line { background: rgba(13,13,13,0.15) !important; }
      .r-steps > .bk-rv .r-step-line { transform-origin: center top; transform: translateX(-50%); }
      .r-steps > .bk-rv:not(.bk-in) .r-step-line { transform: translateX(-50%) scaleY(0); }
      section:has(> .r-cta-card) { padding-top: 8px !important; }
      section:has(+ section > .r-cta-card) { padding-bottom: 48px !important; }
    }
    section:not(.r-hero2) h2 { font-size: clamp(28px, 3.1vw, 44px) !important; font-weight: 800 !important; line-height: 1.08 !important; letter-spacing: -0.03em !important; }
    section:not(.r-hero2) .eyebrow { font-size: 11px; }
    @media (min-width: 1101px) {
      .r-steps { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; column-gap: 36px !important; }
      .r-steps > div .r-step-line { margin-right: -36px; margin-left: 12px; }
      .r-steps > div h3, .r-steps > div p { padding-right: 0 !important; }
      .r-steps > div > div:nth-child(2) { margin-bottom: 10px !important; }
      .r-steps > div h3 { margin-bottom: 10px !important; }
      .r-steps > div p { line-height: 1.7 !important; }
    }


/* Native equivalent of the DC runtime's style-hover attribute
   (support.js createPseudoSheet: ".cls:hover{...!important}"). */
.v5-hover-color-white:hover { color: #fff !important; }
.v5-hover-bg-muted:hover { background: #F5F4F2 !important; }
.v5-hover-border-dark:hover { border-color: #0D0D0D !important; }
.v5-hover-social:hover { background: #fff !important; border-color: #fff !important; color: #0D0D0D !important; }

/* Integration: DC's sc-if renders nothing when closed; the CMS markup keeps the
   panel in the DOM with the hidden attribute, which must beat inline display. */
[data-v5-panel][hidden] { display: none !important; }
