@charset "UTF-8";


@property --mesh-pos-x1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}
@property --mesh-pos-y1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 15%;
}
@property --mesh-pos-x2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 82%;
}
@property --mesh-pos-y2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 78%;
}
@property --mesh-pos-x3 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 48%;
}
@property --mesh-pos-y3 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 52%;
}
@property --mesh-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 142deg;
}


:root {
  --ground: #0d0b0c;
  --surface: #171315;
  --surface-elevated: #211b1e;
  --surface-highlight: #2c2327;

  --hairline: #3a2d33;
  --hairline-light: #523f47;
  --brass: #c5a059;
  --brass-soft: rgba(197, 160, 89, 0.22);
  --brass-bright: #dfb96c;
  --garnet: #c0394b;
  --garnet-glow: rgba(192, 57, 75, 0.28);
  --garnet-subtle: rgba(192, 57, 75, 0.12);
  --ink: #f3edee;
  --ink-secondary: #d4c8cc;
  --ink-muted: #b3a4a9;
  --ink-tertiary: #7d6e74;


  --milu-caf: "Cinzel", Georgia, "Times New Roman", serif;
  --milu-80f: "IBM Plex Mono", Menlo, Consolas, monospace;
  --milu-e42: "IBM Plex Mono", Menlo, Consolas, monospace;


  --line-tight: 1.15;
  --line-snug: 1.35;
  --line-body: 1.62;

  --line-relaxed: 1.78;


  --type-display-hero: clamp(1.75rem, 5.5vw, 5.75rem);
  --type-display-1: clamp(1.35rem, 3.8vw, 3.4rem);
  --type-display-2: clamp(1.2rem, 2.7vw, 2.25rem);
  --type-display-3: clamp(1.05rem, 1.8vw, 1.55rem);
  --type-body-lg: clamp(0.96rem, 1.1vw, 1.08rem);
  --type-body: clamp(0.86rem, 0.95vw, 0.94rem);
  --type-body-sm: clamp(0.76rem, 0.85vw, 0.82rem);
  --type-body-xs: clamp(0.68rem, 0.75vw, 0.74rem);


  --shell-max: 1320px;
  --ledger-max: 1040px;
  --prose-max: 68ch;


  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --space-3xl: 7.5rem;


  --gutter: clamp(1.15rem, 3.8vw, 3.25rem);
  --scene-pad-y: clamp(3.75rem, 8.5vh, 7.5rem);


  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 4px;


  --dur-instant: 120ms;
  --dur-fast: 180ms;
  --dur-normal: 260ms;
  --dur-slow: 420ms;
  --dur-drift: 28s;


  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);


  --hairline-rule: 1px solid var(--hairline);
  --hairline-brass: 1px solid var(--brass);
  --hairline-garnet: 1px solid var(--garnet);
}


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


html {
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--milu-80f);
  font-size: 16px;
  line-height: var(--line-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}


body {
  min-height: 100vh;
  background-color: var(--ground);
  color: var(--ink);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}


img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}


button,
input,
optgroup,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}


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


table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}


ul,
ol { list-style: none; }


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--milu-caf);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: var(--line-tight);
  color: var(--ink);
  text-transform: uppercase;
}


h1 { font-size: var(--type-display-hero); }


h2 {
  font-size: var(--type-display-1);
  word-break: normal;
  overflow-wrap: break-word;
}


h3 { font-size: var(--type-display-2); }


h4 { font-size: var(--type-display-3); }


p {
  font-size: var(--type-body);
  line-height: var(--line-body);
  color: var(--ink-secondary);
  max-width: var(--prose-max);
}


p + p { margin-top: 1.15em; }


strong,
b {
  font-weight: 600;
  color: var(--ink);
}


small {
  font-size: var(--type-body-sm);
  color: var(--ink-muted);
}


code,
kbd,
samp,
pre {
  font-family: var(--milu-e42);

  font-size: 0.9em;
}


:focus { outline: none; }


:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}


.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  background: var(--brass);
  color: var(--ground);
  padding: 0.65rem 1.25rem;
  font-size: var(--type-body-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 9999;
  border-radius: var(--radius-xs);
  transition: top var(--dur-fast) var(--ease-out);
}


.skip-link:focus-visible { top: var(--space-sm); }


.shell-container {
  width: 100%;
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}


.ledger-container {
  width: 100%;
  max-width: var(--ledger-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}


.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  fill: currentColor;
  flex-shrink: 0;
}


.animated-mesh-bg {
  position: relative;
  background-color: var(--ground);
  background-image:
    radial-gradient(circle at var(--mesh-pos-x1) var(--mesh-pos-y1), rgba(192, 57, 75, 0.32) 0%, transparent 48%),
    radial-gradient(circle at var(--mesh-pos-x2) var(--mesh-pos-y2), rgba(197, 160, 89, 0.24) 0%, transparent 44%),
    conic-gradient(from var(--mesh-angle) at var(--mesh-pos-x3) var(--mesh-pos-y3), rgba(192, 57, 75, 0.16) 0deg, rgba(23, 19, 21, 0.85) 120deg, rgba(197, 160, 89, 0.14) 220deg, rgba(192, 57, 75, 0.16) 360deg),
    radial-gradient(circle at 50% 50%, #171315 0%, #0d0b0c 100%);
  animation: mesh-drift var(--dur-drift) ease-in-out infinite alternate;
}


@keyframes mesh-drift {
  0% {
    --mesh-pos-x1: 20%;
    --mesh-pos-y1: 15%;
    --mesh-pos-x2: 82%;
    --mesh-pos-y2: 78%;
    --mesh-pos-x3: 48%;
    --mesh-pos-y3: 52%;
    --mesh-angle: 142deg;
  }
  50% {
    --mesh-pos-x1: 32%;
    --mesh-pos-y1: 28%;
    --mesh-pos-x2: 70%;
    --mesh-pos-y2: 65%;
    --mesh-pos-x3: 56%;
    --mesh-pos-y3: 42%;
    --mesh-angle: 215deg;
  }
  100% {
    --mesh-pos-x1: 15%;
    --mesh-pos-y1: 22%;
    --mesh-pos-x2: 88%;
    --mesh-pos-y2: 84%;
    --mesh-pos-x3: 42%;
    --mesh-pos-y3: 60%;
    --mesh-angle: 322deg;
  }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animated-mesh-bg { animation: none !important; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
