*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
  /* Light theme (default) — gold logo background, deep maroon-crimson accents */
  :root {
    --background: 36 76% 76%;
    --foreground: 0 12% 11%;

    --card: 36 72% 82%;
    --card-foreground: 0 12% 11%;

    --popover: 36 72% 82%;
    --popover-foreground: 0 12% 11%;

    --primary: 0 100% 20%;
    --primary-foreground: 40 50% 97%;

    --secondary: 38 48% 90%;
    --secondary-foreground: 0 10% 15%;

    --muted: 38 48% 90%;
    --muted-foreground: 20 24% 24%;

    --accent: 38 52% 88%;
    --accent-foreground: 0 10% 15%;

    --destructive: 354 76% 34%;
    --destructive-foreground: 40 50% 97%;

    --border: 34 34% 70%;
    --input: 34 34% 70%;
    --ring: 0 100% 24%;

    --radius: 0.5rem;

    /* Brand crimson (light = deep logo maroon #670000, slightly lightened) */
    --crimson-50: 253 240 240;
    --crimson-100: 250 223 224;
    --crimson-200: 166 70 78;
    --crimson-300: 158 62 70;
    --crimson-400: 103 0 0;
    --crimson-500: 103 0 0;
    --crimson-600: 88 0 0;
    --crimson-700: 103 0 0;
    --crimson-800: 82 0 0;
    --crimson-900: 64 0 0;
    --crimson-950: 46 5 5;
  }

  /* Dark theme (toggled via .dark on <html>) */
  .\!dark {
    --background: 0 10% 8.5% !important;
    --foreground: 30 14% 92% !important;

    --card: 0 8% 13.5% !important;
    --card-foreground: 30 14% 92% !important;

    --popover: 0 10% 9% !important;
    --popover-foreground: 30 14% 92% !important;

    --primary: 356 72% 46% !important;
    --primary-foreground: 30 40% 98% !important;

    --secondary: 0 8% 16% !important;
    --secondary-foreground: 30 12% 90% !important;

    --muted: 0 8% 14% !important;
    --muted-foreground: 20 8% 68% !important;

    --accent: 0 12% 17% !important;
    --accent-foreground: 30 14% 94% !important;

    --destructive: 356 80% 54% !important;
    --destructive-foreground: 30 40% 98% !important;

    --border: 0 8% 18.5% !important;
    --input: 0 8% 18.5% !important;
    --ring: 356 72% 52% !important;

    /* Brand crimson (dark = original bright crimson — unchanged) */
    --crimson-50: 255 241 242 !important;
    --crimson-100: 255 223 225 !important;
    --crimson-200: 255 194 198 !important;
    --crimson-300: 250 154 160 !important;
    --crimson-400: 241 81 89 !important;
    --crimson-500: 224 53 63 !important;
    --crimson-600: 192 30 39 !important;
    --crimson-700: 158 31 31 !important;
    --crimson-800: 122 26 26 !important;
    --crimson-900: 90 21 21 !important;
    --crimson-950: 46 8 8 !important;
  }
  .dark {
    --background: 0 10% 8.5%;
    --foreground: 30 14% 92%;

    --card: 0 8% 13.5%;
    --card-foreground: 30 14% 92%;

    --popover: 0 10% 9%;
    --popover-foreground: 30 14% 92%;

    --primary: 356 72% 46%;
    --primary-foreground: 30 40% 98%;

    --secondary: 0 8% 16%;
    --secondary-foreground: 30 12% 90%;

    --muted: 0 8% 14%;
    --muted-foreground: 20 8% 68%;

    --accent: 0 12% 17%;
    --accent-foreground: 30 14% 94%;

    --destructive: 356 80% 54%;
    --destructive-foreground: 30 40% 98%;

    --border: 0 8% 18.5%;
    --input: 0 8% 18.5%;
    --ring: 356 72% 52%;

    /* Brand crimson (dark = original bright crimson — unchanged) */
    --crimson-50: 255 241 242;
    --crimson-100: 255 223 225;
    --crimson-200: 255 194 198;
    --crimson-300: 250 154 160;
    --crimson-400: 241 81 89;
    --crimson-500: 224 53 63;
    --crimson-600: 192 30 39;
    --crimson-700: 158 31 31;
    --crimson-800: 122 26 26;
    --crimson-900: 90 21 21;
    --crimson-950: 46 8 8;
  }
  * {
  border-color: hsl(var(--border));
}

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  body {
  background-color: hsl(var(--background));
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv01", "cv11";
    overflow-x: hidden;
}

  ::-moz-selection {
    background: hsl(356 72% 44% / 0.35);
    color: #fff;
  }

  ::selection {
    background: hsl(356 72% 44% / 0.35);
    color: #fff;
  }

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #efe7dc;
  }
  .\!dark ::-webkit-scrollbar-track {
    background: #0a0606 !important;
  }
  .dark ::-webkit-scrollbar-track {
    background: #0a0606;
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c01e27, #7a1a1a);
    border: 2px solid #efe7dc;
    border-radius: 999px;
  }
  .\!dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5a1515, #2e0808) !important;
    border: 2px solid #0a0606 !important;
  }
  .dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5a1515, #2e0808);
    border: 2px solid #0a0606;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9e1f1f, #5a1515);
  }
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}
@media (min-width: 1320px) {

  .container {
    max-width: 1320px;
  }
}
/* ---------- Typographic helpers ---------- */
.font-display {
    font-family: "Chakra Petch", sans-serif;
  }
.tactical-label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--muted-foreground));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-400) / var(--tw-text-opacity, 1));
}
.\!dark .glow-text {
    text-shadow: 0 0 16px hsl(356 80% 50% / 0.55), 0 0 42px hsl(356 80% 45% / 0.3) !important;
  }
.dark .glow-text {
    text-shadow: 0 0 16px hsl(356 80% 50% / 0.55), 0 0 42px hsl(356 80% 45% / 0.3);
  }
/* ---------- Surfaces ---------- */
.panel {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(354 58% 62% / 0.22), transparent 60%),
      linear-gradient(155deg, hsl(37 74% 83%), hsl(36 70% 80%) 60%, hsl(34 66% 81%));
    border: 1px solid hsl(var(--border));
  }
.\!dark .panel {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(356 45% 15% / 0.65), transparent 60%),
      linear-gradient(155deg, hsl(0 10% 12% / 0.95), hsl(356 12% 9.5% / 0.95) 60%, hsl(356 20% 10.5% / 0.95)) !important;
  }
.dark .panel {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(356 45% 15% / 0.65), transparent 60%),
      linear-gradient(155deg, hsl(0 10% 12% / 0.95), hsl(356 12% 9.5% / 0.95) 60%, hsl(356 20% 10.5% / 0.95));
  }
.\!dark .card-grad {
    background:
      radial-gradient(130% 120% at 100% 0%, hsl(356 50% 18% / 0.55), transparent 65%),
      linear-gradient(160deg, hsl(0 10% 11.5% / 0.96), hsl(356 12% 9.5% / 0.96)) !important;
  }
.dark .card-grad {
    background:
      radial-gradient(130% 120% at 100% 0%, hsl(356 50% 18% / 0.55), transparent 65%),
      linear-gradient(160deg, hsl(0 10% 11.5% / 0.96), hsl(356 12% 9.5% / 0.96));
  }
.\!dark .card-grad:hover {
    background:
      radial-gradient(130% 120% at 100% 0%, hsl(356 60% 22% / 0.7), transparent 65%),
      linear-gradient(160deg, hsl(356 12% 14% / 0.98), hsl(356 15% 10.5% / 0.98)) !important;
  }
.dark .card-grad:hover {
    background:
      radial-gradient(130% 120% at 100% 0%, hsl(356 60% 22% / 0.7), transparent 65%),
      linear-gradient(160deg, hsl(356 12% 14% / 0.98), hsl(356 15% 10.5% / 0.98));
  }
.glow-corner {
    position: relative;
    overflow: hidden;
  }
.glow-corner::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    height: 80%;
    background: radial-gradient(closest-side, hsl(356 80% 45% / 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
  }
.glow-corner:hover::before {
    opacity: 1;
  }
.glow-corner > * {
    position: relative;
    z-index: 1;
  }
.panel-hover {
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  }
.panel-hover:hover {
    border-color: hsl(356 72% 44% / 0.55);
    transform: translateY(-3px);
    box-shadow:
      0 0 0 1px hsl(356 72% 44% / 0.22),
      0 28px 70px -30px hsl(356 80% 32% / 0.65);
  }
/* Corner brackets — tactical HUD frame */
.bracket {
    position: relative;
  }
.bracket::before,
  .bracket::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: hsl(356 72% 50% / 0.7);
    border-style: solid;
    pointer-events: none;
  }
.bracket::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
  }
.bracket::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
  }
.classified-tag {
  border-width: 1px;
  border-color: rgb(var(--crimson-700) / 0.5);
  background-color: rgb(var(--crimson-950) / 0.4);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-300) / var(--tw-text-opacity, 1));
}
:root:not(.dark) .classified-tag {
    color: #670000;
    background: hsl(354 55% 92% / 0.85);
    border-color: hsl(354 60% 30% / 0.45);
  }
/* ---------- Atmosphere ---------- */
.bg-grid {
    background-image:
      linear-gradient(hsl(32 35% 35% / 0.05) 1px, transparent 1px),
      linear-gradient(90deg, hsl(32 35% 35% / 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
  }
.\!dark .bg-grid {
    background-image:
      linear-gradient(hsl(356 40% 40% / 0.045) 1px, transparent 1px),
      linear-gradient(90deg, hsl(356 40% 40% / 0.045) 1px, transparent 1px) !important;
  }
.dark .bg-grid {
    background-image:
      linear-gradient(hsl(356 40% 40% / 0.045) 1px, transparent 1px),
      linear-gradient(90deg, hsl(356 40% 40% / 0.045) 1px, transparent 1px);
  }
.\!dark .bg-grid-fine {
    background-image:
      linear-gradient(hsl(356 40% 40% / 0.06) 1px, transparent 1px),
      linear-gradient(90deg, hsl(356 40% 40% / 0.06) 1px, transparent 1px) !important;
  }
.dark .bg-grid-fine {
    background-image:
      linear-gradient(hsl(356 40% 40% / 0.06) 1px, transparent 1px),
      linear-gradient(90deg, hsl(356 40% 40% / 0.06) 1px, transparent 1px);
  }
.grain::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
.scanlines::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      hsl(0 0% 0% / 0.18) 3px,
      transparent 4px
    );
    opacity: 0.12;
  }
.\!dark .scanlines::before {
    opacity: 0.4 !important;
  }
.dark .scanlines::before {
    opacity: 0.4;
  }
.vignette {
    box-shadow: inset 0 0 200px 60px hsl(28 30% 78% / 0.45);
  }
.\!dark .vignette {
    box-shadow: inset 0 0 200px 60px hsl(0 30% 2% / 0.9) !important;
  }
.dark .vignette {
    box-shadow: inset 0 0 200px 60px hsl(0 30% 2% / 0.9);
  }
.rule {
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      hsl(356 60% 40% / 0.5),
      transparent
    );
  }
.text-balance {
    text-wrap: balance;
  }
.pointer-events-none {
  pointer-events: none;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.inset-x-0 {
  left: 0px;
  right: 0px;
}
.inset-x-3 {
  left: 0.75rem;
  right: 0.75rem;
}
.-bottom-px {
  bottom: -1px;
}
.-top-1\/3 {
  top: -33.333333%;
}
.bottom-0 {
  bottom: 0px;
}
.left-0 {
  left: 0px;
}
.left-1\/2 {
  left: 50%;
}
.top-0 {
  top: 0px;
}
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.z-\[60\] {
  z-index: 60;
}
.-mx-1 {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mt-14 {
  margin-top: 3.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-0\.5 {
  height: 0.125rem;
}
.h-10 {
  height: 2.5rem;
}
.h-11 {
  height: 2.75rem;
}
.h-12 {
  height: 3rem;
}
.h-16 {
  height: 4rem;
}
.h-3 {
  height: 0.75rem;
}
.h-3\.5 {
  height: 0.875rem;
}
.h-4 {
  height: 1rem;
}
.h-40 {
  height: 10rem;
}
.h-9 {
  height: 2.25rem;
}
.h-\[50vh\] {
  height: 50vh;
}
.h-\[70vh\] {
  height: 70vh;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.min-h-\[70vh\] {
  min-height: 70vh;
}
.min-h-screen {
  min-height: 100vh;
}
.w-10 {
  width: 2.5rem;
}
.w-11 {
  width: 2.75rem;
}
.w-12 {
  width: 3rem;
}
.w-16 {
  width: 4rem;
}
.w-3 {
  width: 0.75rem;
}
.w-3\.5 {
  width: 0.875rem;
}
.w-4 {
  width: 1rem;
}
.w-8 {
  width: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.w-\[120vw\] {
  width: 120vw;
}
.w-\[50vw\] {
  width: 50vw;
}
.w-full {
  width: 100%;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-sm {
  max-width: 24rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.origin-left {
  transform-origin: left;
}
.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-x-0 {
  --tw-scale-x: 0;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.resize {
  resize: both;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-10 {
  gap: 2.5rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.625rem * var(--tw-space-y-reverse));
}
.overflow-hidden {
  overflow: hidden;
}
.text-balance {
  text-wrap: balance;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: var(--radius);
}
.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-border {
  border-color: hsl(var(--border));
}
.border-border\/40 {
  border-color: hsl(var(--border) / 0.4);
}
.border-border\/50 {
  border-color: hsl(var(--border) / 0.5);
}
.border-border\/60 {
  border-color: hsl(var(--border) / 0.6);
}
.border-border\/70 {
  border-color: hsl(var(--border) / 0.7);
}
.border-border\/80 {
  border-color: hsl(var(--border) / 0.8);
}
.border-crimson-500 {
  --tw-border-opacity: 1;
  border-color: rgb(var(--crimson-500) / var(--tw-border-opacity, 1));
}
.border-crimson-800\/40 {
  border-color: rgb(var(--crimson-800) / 0.4);
}
.border-transparent {
  border-color: transparent;
}
.bg-background {
  background-color: hsl(var(--background));
}
.bg-background\/95 {
  background-color: hsl(var(--background) / 0.95);
}
.bg-card {
  background-color: hsl(var(--card));
}
.bg-card\/10 {
  background-color: hsl(var(--card) / 0.1);
}
.bg-card\/40 {
  background-color: hsl(var(--card) / 0.4);
}
.bg-crimson-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--crimson-500) / var(--tw-bg-opacity, 1));
}
.bg-crimson-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--crimson-700) / var(--tw-bg-opacity, 1));
}
.bg-crimson-950\/20 {
  background-color: rgb(var(--crimson-950) / 0.2);
}
.bg-crimson-950\/40 {
  background-color: rgb(var(--crimson-950) / 0.4);
}
.bg-primary {
  background-color: hsl(var(--primary));
}
.bg-transparent {
  background-color: transparent;
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-crimson-700 {
  --tw-gradient-from: rgb(var(--crimson-700) / 1) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(var(--crimson-700) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-crimson-500 {
  --tw-gradient-to: rgb(var(--crimson-500) / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(var(--crimson-500) / 1) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.to-crimson-300 {
  --tw-gradient-to: rgb(var(--crimson-300) / 1) var(--tw-gradient-to-position);
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.p-1\.5 {
  padding: 0.375rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-14 {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.pb-24 {
  padding-bottom: 6rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-32 {
  padding-top: 8rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.text-center {
  text-align: center;
}
.font-display {
  font-family: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
}
.font-mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-\[0\.58rem\] {
  font-size: 0.58rem;
}
.text-\[0\.62rem\] {
  font-size: 0.62rem;
}
.text-\[0\.65rem\] {
  font-size: 0.65rem;
}
.text-\[0\.72rem\] {
  font-size: 0.72rem;
}
.text-\[1\.05rem\] {
  font-size: 1.05rem;
}
.text-\[clamp\(1\.9rem\2c 4vw\2c 3rem\)\] {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.text-\[clamp\(2rem\2c 4\.5vw\2c 3\.4rem\)\] {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}
.text-\[clamp\(3rem\2c 10vw\2c 7rem\)\] {
  font-size: clamp(3rem, 10vw, 7rem);
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.uppercase {
  text-transform: uppercase;
}
.leading-\[0\.98\] {
  line-height: 0.98;
}
.leading-\[1\.02\] {
  line-height: 1.02;
}
.leading-none {
  line-height: 1;
}
.leading-relaxed {
  line-height: 1.625;
}
.tracking-tactical {
  letter-spacing: 0.18em;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-tightest {
  letter-spacing: -0.04em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.text-crimson-300 {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-300) / var(--tw-text-opacity, 1));
}
.text-crimson-400 {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-400) / var(--tw-text-opacity, 1));
}
.text-crimson-500 {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-500) / var(--tw-text-opacity, 1));
}
.text-crimson-600 {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-600) / var(--tw-text-opacity, 1));
}
.text-foreground {
  color: hsl(var(--foreground));
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-muted-foreground\/40 {
  color: hsl(var(--muted-foreground) / 0.4);
}
.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.opacity-30 {
  opacity: 0.3;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-80 {
  opacity: 0.8;
}
.shadow-\[0_0_12px_hsl\(356_80\%_50\%_\/_0\.6\)\] {
  --tw-shadow: 0 0 12px hsl(356 80% 50% / 0.6);
  --tw-shadow-colored: 0 0 12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300 {
  transition-duration: 300ms;
}
.duration-500 {
  transition-duration: 500ms;
}
@keyframes enter {

  from {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
  }
}
@keyframes exit {

  to {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
  }
}
.duration-300 {
  animation-duration: 300ms;
}
.duration-500 {
  animation-duration: 500ms;
}
.running {
  animation-play-state: running;
}

/* Glitch effect for hero wordmark */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glitch::before {
  color: hsl(186 80% 55% / 0.7);
  animation: glitch-x 4.5s infinite steps(2, end);
  clip-path: inset(0 0 55% 0);
}
.glitch::after {
  color: hsl(356 90% 55% / 0.8);
  animation: glitch-y 3.7s infinite steps(2, end);
  clip-path: inset(55% 0 0 0);
}
@keyframes glitch-x {
  0%, 92%, 100% { transform: translate(0); }
  93% { transform: translate(-2px, 1px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 0); }
}
@keyframes glitch-y {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(2px, -1px); }
  94% { transform: translate(-2px, 1px); }
  96% { transform: translate(1px, 0); }
}

/* Flowing circuit dashes for hero background */
@keyframes dash-flow {
  to {
    stroke-dashoffset: -1000;
  }
}
.flow {
  stroke-dasharray: 4 14;
  animation: dash-flow 26s linear infinite;
}
.flow-fast {
  stroke-dasharray: 3 10;
  animation: dash-flow 14s linear infinite;
}

/* Subtle alternating section bands in light mode (dark stays uniform) */
:root:not(.dark) main > section:nth-of-type(even) {
  background-color: hsl(41 72% 88% / 0.6);
}

/* Faint the neon insignia glow in light mode (dark keeps the full pulse) */
:root:not(.dark) .animate-node-glow {
  animation: none;
  filter: drop-shadow(0 0 4px rgba(103, 0, 0, 0.3));
}

/* Alternate light-mode section bands for gentle separation between sections */
:root:not(.dark) main > section:nth-of-type(even) {
  background-color: hsl(33 58% 72% / 0.45);
}

/* ---------------------------------------------------------------
   Text glitch — matches the hero insignia glitch (red-only, torn
   horizontal slices, two bursts on the same 3s loop).
   Usage: <p class="glitch-text" data-text="...">...</p>
   --------------------------------------------------------------- */
.glitch-text {
  position: relative;
  display: inline-block;
  animation: cn-glitch-text-shift 3s steps(1, end) infinite;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform, clip-path, opacity;
}
.glitch-text::before {
  color: #ff1e3c;
  animation: cn-glitch-text-a 3s steps(1, end) infinite;
}
.glitch-text::after {
  color: #670000;
  animation: cn-glitch-text-b 3s steps(1, end) infinite;
}

@keyframes cn-glitch-text-shift {
  0%, 63.9%, 100% { transform: translate3d(0, 0, 0); }
  64% { transform: translate3d(-3px, 0, 0); }
  67% { transform: translate3d(3px, 0, 0); }
  70% { transform: translate3d(-1px, 0, 0); }
  73% { transform: translate3d(2px, 0, 0); }
  76% { transform: translate3d(0, 0, 0); }
  84% { transform: translate3d(4px, 0, 0); }
  87% { transform: translate3d(-2px, 0, 0); }
  90% { transform: translate3d(0, 0, 0); }
}

@keyframes cn-glitch-text-a {
  0%, 63.9%, 100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: translate3d(0, 0, 0); }
  64% { opacity: 1; clip-path: inset(0 0 72% 0);   transform: translate3d(-8px, 0, 0); }
  67% { opacity: 1; clip-path: inset(40% 0 30% 0); transform: translate3d(7px, 0, 0); }
  70% { opacity: 1; clip-path: inset(66% 0 6% 0);  transform: translate3d(-5px, 0, 0); }
  73% { opacity: 1; clip-path: inset(20% 0 58% 0); transform: translate3d(5px, 0, 0); }
  76% { opacity: 0; }
  84% { opacity: 1; clip-path: inset(24% 0 54% 0); transform: translate3d(9px, 0, 0); }
  87% { opacity: 1; clip-path: inset(70% 0 4% 0);  transform: translate3d(-6px, 0, 0); }
  90% { opacity: 1; clip-path: inset(46% 0 30% 0); transform: translate3d(4px, 0, 0); }
  93% { opacity: 0; }
}

@keyframes cn-glitch-text-b {
  0%, 63.9%, 100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: translate3d(0, 0, 0); }
  64% { opacity: 1; clip-path: inset(22% 0 58% 0); transform: translate3d(7px, 0, 0); }
  67% { opacity: 1; clip-path: inset(54% 0 26% 0); transform: translate3d(-8px, 0, 0); }
  70% { opacity: 1; clip-path: inset(8% 0 74% 0);  transform: translate3d(5px, 0, 0); }
  73% { opacity: 1; clip-path: inset(74% 0 4% 0);  transform: translate3d(-4px, 0, 0); }
  76% { opacity: 0; }
  84% { opacity: 1; clip-path: inset(44% 0 34% 0); transform: translate3d(-9px, 0, 0); }
  87% { opacity: 1; clip-path: inset(2% 0 82% 0);  transform: translate3d(6px, 0, 0); }
  90% { opacity: 1; clip-path: inset(64% 0 12% 0); transform: translate3d(-4px, 0, 0); }
  93% { opacity: 0; }
}

/* ---------------------------------------------------------------
   Hero insignia glitch — horizontal slice tearing + RGB split.
   Fires in two short bursts every ~6.5s, otherwise perfectly still.
   --------------------------------------------------------------- */
.glitch-logo {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.glitch-logo__base {
  animation: cn-glitch-shift 3s steps(1, end) infinite;
}
.glitch-logo__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  pointer-events: none;
  opacity: 0;
  will-change: transform, clip-path, opacity;
}
.glitch-logo__layer--a {
  filter: drop-shadow(3px 0 0 rgba(255, 30, 60, 0.95));
  animation: cn-glitch-a 3s steps(1, end) infinite;
}
.glitch-logo__layer--b {
  filter: drop-shadow(-3px 0 0 rgba(103, 0, 0, 0.95));
  animation: cn-glitch-b 3s steps(1, end) infinite;
}

/* Base plate: hard horizontal kicks during the bursts.
   Each torn frame holds ~90ms so the glitch reads slower, not faster. */
@keyframes cn-glitch-shift {
  0%, 63.9%, 100% { transform: translate3d(0, 0, 0); }
  64% { transform: translate3d(-18px, 0, 0) scaleX(1.03); }
  67% { transform: translate3d(15px, 0, 0) scaleX(0.97); }
  70% { transform: translate3d(-9px, 0, 0); }
  73% { transform: translate3d(11px, 0, 0); }
  76% { transform: translate3d(0, 0, 0); }
  84% { transform: translate3d(22px, 0, 0) scaleX(1.04); }
  87% { transform: translate3d(-16px, 0, 0); }
  90% { transform: translate3d(7px, 0, 0); }
  93% { transform: translate3d(0, 0, 0); }
}

/* Bright red channel: torn slices thrown hard */
@keyframes cn-glitch-a {
  0%, 63.9%, 100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: translate3d(0, 0, 0); }
  64% { opacity: 1; clip-path: inset(6% 0 80% 0);  transform: translate3d(-42px, 0, 0); }
  67% { opacity: 1; clip-path: inset(34% 0 48% 0); transform: translate3d(38px, 0, 0); }
  70% { opacity: 1; clip-path: inset(62% 0 22% 0); transform: translate3d(-30px, 0, 0); }
  73% { opacity: 1; clip-path: inset(18% 0 66% 0); transform: translate3d(26px, 0, 0); }
  76% { opacity: 0; }
  84% { opacity: 1; clip-path: inset(20% 0 64% 0); transform: translate3d(48px, 0, 0); }
  87% { opacity: 1; clip-path: inset(70% 0 16% 0); transform: translate3d(-36px, 0, 0); }
  90% { opacity: 1; clip-path: inset(44% 0 40% 0); transform: translate3d(24px, 0, 0); }
  93% { opacity: 0; }
}

/* Deep crimson channel: opposite slices, opposite throw */
@keyframes cn-glitch-b {
  0%, 63.9%, 100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: translate3d(0, 0, 0); }
  64% { opacity: 1; clip-path: inset(24% 0 60% 0); transform: translate3d(36px, 0, 0); }
  67% { opacity: 1; clip-path: inset(54% 0 32% 0); transform: translate3d(-40px, 0, 0); }
  70% { opacity: 1; clip-path: inset(10% 0 76% 0); transform: translate3d(28px, 0, 0); }
  73% { opacity: 1; clip-path: inset(76% 0 10% 0); transform: translate3d(-22px, 0, 0); }
  76% { opacity: 0; }
  84% { opacity: 1; clip-path: inset(46% 0 38% 0); transform: translate3d(-46px, 0, 0); }
  87% { opacity: 1; clip-path: inset(2% 0 86% 0);  transform: translate3d(34px, 0, 0); }
  90% { opacity: 1; clip-path: inset(66% 0 20% 0); transform: translate3d(-26px, 0, 0); }
  93% { opacity: 0; }
}

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


/* ---------------------------------------------------------------------------
 * Additive layer on top of the landing page's index.css, which is imported
 * verbatim and never edited. Everything here is either (a) the CSS half of the
 * vanilla-JS motion that replaced framer-motion, or (b) styling for Ghost's
 * rendered post body, which the landing page never needed.
 * ------------------------------------------------------------------------- */

/* ---------- Reveal (replaces framer-motion in Reveal.tsx) ---------------- */
/* Values mirror the original exactly: 22px rise, 0.7s, [0.22,1,0.36,1]. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
/* If JS never runs, content must still be visible — never leave it at opacity 0. */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Scroll progress bar sits at scaleX(0) until JS updates it. */
[data-scroll-progress] {
  transition: transform 0.1s linear;
}

/* ---------- Post body ---------------------------------------------------
 * Scoped to .post-content so it can never leak into the site chrome.
 */
.post-content {
  font-size: 1rem;
  line-height: 1.5rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.post-content > * + * {
  margin-top: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: "Chakra Petch", sans-serif;
    font-family: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: hsl(var(--foreground));
  }
.post-content h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
  line-height: 2rem;
}
@media (min-width: 768px) {

  .post-content h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
.post-content h3 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
}
@media (min-width: 768px) {

  .post-content h3 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}
.post-content h4 {
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.post-content p {
  line-height: 1.625;
}

.post-content a {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-400) / var(--tw-text-opacity, 1));
  text-decoration-line: underline;
  text-decoration-color: rgb(var(--crimson-700) / 0.5);
  text-underline-offset: 4px;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.post-content a:hover {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-300) / var(--tw-text-opacity, 1));
  text-decoration-color: rgb(var(--crimson-500) / 1);
}

.post-content strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.post-content ul > :not([hidden]) ~ :not([hidden]),
.post-content ol > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
}
.post-content ul {
  list-style-type: disc;
}
.post-content ol {
  list-style-type: decimal;
}
.post-content li::marker {
  color: hsl(356 72% 50% / 0.8);
}

.post-content blockquote {
  border-left-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(var(--crimson-700) / var(--tw-border-opacity, 1));
  padding-left: 1.25rem;
  font-style: italic;
  color: hsl(var(--foreground) / 0.9);
}

.post-content hr {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, hsl(356 60% 40% / 0.5), transparent);
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Inline code */
.post-content :not(pre) > code {
  border-radius: 0.25rem;
  border-width: 1px;
  border-color: rgb(var(--crimson-800) / 0.3);
  background-color: rgb(var(--crimson-950) / 0.2);
  padding-left: 0.375rem;
  padding-right: 0.375rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85em;
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-300) / var(--tw-text-opacity, 1));
}
:root:not(.dark) .post-content :not(pre) > code {
  color: #670000;
  background: hsl(354 55% 92% / 0.7);
  border-color: hsl(354 60% 30% / 0.35);
}

/* Code blocks — Ghost ships no syntax highlighting, so these are plain but
   styled as a HUD panel to match the rest of the design language. */
.post-content pre {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(354 58% 62% / 0.22), transparent 60%),
      linear-gradient(155deg, hsl(37 74% 83%), hsl(36 70% 80%) 60%, hsl(34 66% 81%));
    border: 1px solid hsl(var(--border));
  }
.dark .post-content pre {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(356 45% 15% / 0.65), transparent 60%),
      linear-gradient(155deg, hsl(0 10% 12% / 0.95), hsl(356 12% 9.5% / 0.95) 60%, hsl(356 20% 10.5% / 0.95));
  }
.post-content pre {
    position: relative;
  }
.post-content pre::before,.post-content pre::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: hsl(356 72% 50% / 0.7);
    border-style: solid;
    pointer-events: none;
  }
.post-content pre::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
  }
.post-content pre::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
  }
.post-content pre {
  overflow-x: auto;
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.875rem;
  line-height: 1.25rem;
  line-height: 1.625;
}
.post-content pre code {
  color: hsl(var(--foreground) / 0.9);
  background: none;
  border: 0;
  padding: 0;
}

.post-content img {
  border-radius: var(--radius);
  border-width: 1px;
  border-color: hsl(var(--border) / 0.6);
}

.post-content figure {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.post-content figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--muted-foreground));
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.post-content th,
.post-content td {
  border-width: 1px;
  border-color: hsl(var(--border) / 0.6);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: left;
}
.post-content th {
  background-color: hsl(var(--card) / 0.5);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--foreground));
}

/* ---------- Koenig cards ------------------------------------------------ */
.post-content .kg-card {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.post-content .kg-image-card img,
.post-content .kg-gallery-image img {
  border-radius: var(--radius);
}

@media (min-width: 1024px) {

  .post-content .kg-width-wide {
    margin-left: -4rem;
    margin-right: -4rem;
  }

  .post-content .kg-width-full {
    margin-left: -8rem;
    margin-right: -8rem;
  }
}

.post-content .kg-bookmark-card a.kg-bookmark-container {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(354 58% 62% / 0.22), transparent 60%),
      linear-gradient(155deg, hsl(37 74% 83%), hsl(36 70% 80%) 60%, hsl(34 66% 81%));
    border: 1px solid hsl(var(--border));
  }

.dark .post-content .kg-bookmark-card a.kg-bookmark-container {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(356 45% 15% / 0.65), transparent 60%),
      linear-gradient(155deg, hsl(0 10% 12% / 0.95), hsl(356 12% 9.5% / 0.95) 60%, hsl(356 20% 10.5% / 0.95));
  }

.post-content .kg-bookmark-card a.kg-bookmark-container {
    position: relative;
  }

.post-content .kg-bookmark-card a.kg-bookmark-container::before,.post-content .kg-bookmark-card a.kg-bookmark-container::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: hsl(356 72% 50% / 0.7);
    border-style: solid;
    pointer-events: none;
  }

.post-content .kg-bookmark-card a.kg-bookmark-container::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
  }

.post-content .kg-bookmark-card a.kg-bookmark-container::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
  }

.post-content .kg-bookmark-card a.kg-bookmark-container {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration-line: none;
}
.post-content .kg-bookmark-content {
  padding: 1.25rem;
}
.post-content .kg-bookmark-title {
    font-family: "Chakra Petch", sans-serif;
    font-family: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    color: hsl(var(--foreground));
  }
.post-content .kg-bookmark-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}
.post-content .kg-bookmark-metadata {
  margin-top: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.post-content .kg-callout-card {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(354 58% 62% / 0.22), transparent 60%),
      linear-gradient(155deg, hsl(37 74% 83%), hsl(36 70% 80%) 60%, hsl(34 66% 81%));
    border: 1px solid hsl(var(--border));
  }

.dark .post-content .kg-callout-card {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(356 45% 15% / 0.65), transparent 60%),
      linear-gradient(155deg, hsl(0 10% 12% / 0.95), hsl(356 12% 9.5% / 0.95) 60%, hsl(356 20% 10.5% / 0.95));
  }

.post-content .kg-callout-card {
  display: flex;
  gap: 0.75rem;
  border-radius: var(--radius);
  padding: 1.25rem;
}
.post-content .kg-callout-emoji {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.post-content .kg-toggle-card {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(354 58% 62% / 0.22), transparent 60%),
      linear-gradient(155deg, hsl(37 74% 83%), hsl(36 70% 80%) 60%, hsl(34 66% 81%));
    border: 1px solid hsl(var(--border));
  }

.dark .post-content .kg-toggle-card {
    background:
      radial-gradient(120% 90% at 0% 0%, hsl(356 45% 15% / 0.65), transparent 60%),
      linear-gradient(155deg, hsl(0 10% 12% / 0.95), hsl(356 12% 9.5% / 0.95) 60%, hsl(356 20% 10.5% / 0.95));
  }

.post-content .kg-toggle-card {
  border-radius: var(--radius);
  padding: 1.25rem;
}
.post-content .kg-toggle-heading-text {
    font-family: "Chakra Petch", sans-serif;
    font-family: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    color: hsl(var(--foreground));
  }

.post-content .kg-button-card a.kg-btn {
  display: inline-flex;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--primary));
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--primary-foreground));
  text-decoration-line: none;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.post-content .kg-button-card a.kg-btn:hover {
  background-color: hsl(var(--primary) / 0.9);
}
.selection\:bg-crimson-500\/30 *::-moz-selection {
  background-color: rgb(var(--crimson-500) / 0.3);
}
.selection\:bg-crimson-500\/30 *::selection {
  background-color: rgb(var(--crimson-500) / 0.3);
}
.selection\:bg-crimson-500\/30::-moz-selection {
  background-color: rgb(var(--crimson-500) / 0.3);
}
.selection\:bg-crimson-500\/30::selection {
  background-color: rgb(var(--crimson-500) / 0.3);
}
.hover\:border-border:hover {
  border-color: hsl(var(--border));
}
.hover\:border-crimson-500:hover {
  --tw-border-opacity: 1;
  border-color: rgb(var(--crimson-500) / var(--tw-border-opacity, 1));
}
.hover\:border-crimson-500\/50:hover {
  border-color: rgb(var(--crimson-500) / 0.5);
}
.hover\:border-crimson-500\/60:hover {
  border-color: rgb(var(--crimson-500) / 0.6);
}
.hover\:bg-crimson-950\/20:hover {
  background-color: rgb(var(--crimson-950) / 0.2);
}
.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}
.hover\:text-crimson-300:hover {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-300) / var(--tw-text-opacity, 1));
}
.hover\:text-crimson-400:hover {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-400) / var(--tw-text-opacity, 1));
}
.hover\:text-crimson-500:hover {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-500) / var(--tw-text-opacity, 1));
}
.hover\:text-foreground:hover {
  color: hsl(var(--foreground));
}
.group:hover .group-hover\:scale-105 {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group:hover .group-hover\:scale-x-100 {
  --tw-scale-x: 1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group:hover .group-hover\:text-crimson-300 {
  --tw-text-opacity: 1;
  color: rgb(var(--crimson-300) / var(--tw-text-opacity, 1));
}
.dark\:block:is(.dark *) {
  display: block;
}
.dark\:opacity-100:is(.dark *) {
  opacity: 1;
}
@media (min-width: 640px) {

  .sm\:block {
    display: block;
  }

  .sm\:inline-flex {
    display: inline-flex;
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-start {
    align-items: flex-start;
  }
}
@media (min-width: 768px) {

  .md\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .md\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .md\:col-start-7 {
    grid-column-start: 7;
  }

  .md\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}
@media (min-width: 1024px) {

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
