/* Fonts, served from our own domain */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/caveat-0.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; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-1.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; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geist-1.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; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/geist-1.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; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/geist-1.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; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/geist-1.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; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-mono-2.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; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geist-mono-2.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; }

/* Resolve site styles, shared by every page. The homepage's own sections are in home.css.
   Dark drafting-board look. Red is the brand, cream marks anything that's been sorted out. */
:root {
  --bg: #0a0a0b;
  --panel: #121214;
  --panel-2: #18181c;
  --line: rgba(242, 240, 233, .09);
  --grid: rgba(242, 240, 233, .055);
  --paper: #f1ede4;
  --ink: #12110f;
  --text: #f2f0e9;
  --dim: rgba(242, 240, 233, .7);
  --faint: rgba(242, 240, 233, .55);
  --red-rgb: 255, 68, 51;   /* brand red */
  --red: rgb(var(--red-rgb));
  --red-ink: #c7321f;       /* red for text on cream or white, dark enough to read */
  --hi-rgb: 242, 240, 233;  /* highlight for finished or sorted states */
  --hi: rgb(var(--hi-rgb));
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --nav: 4.2rem;
}

*, *::before, *::after { box-sizing: border-box; }
/* Anything marked hidden stays hidden, even if a class gives it a display value */
[hidden] { display: none !important; }
/* Root size grows a little with the screen. Everything is in rem, so it all scales together. */
html { font-size: clamp(15px, 13px + .24vw, 19px); scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body {
  margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* The grid only covers <main>. On the homepage, script.js pads main to a whole number of squares,
   so the last row ends exactly on the footer's top line. */
main {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 4rem 4rem; background-position: center top;
}
main { overflow-x: clip; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
/* Lists and other body text avoid ending on a lone word too. The longhand leaves any white-space: nowrap alone. */
li, dd, summary, figcaption, blockquote { text-wrap-style: pretty; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.wrap { width: min(72rem, 100% - 32px); margin-inline: auto; }
/* Read by screen readers, not shown */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.logo { font-weight: 900; font-size: 1.45rem; letter-spacing: -.05em; line-height: 1; text-decoration: none; white-space: nowrap; }
/* The "o" in the logo is a focus reticle, drawn to match Geist Black */
.reticle { width: .648em; height: .6em; vertical-align: -.016em; overflow: visible; margin: 0 -.058em 0 .008em; }
.reticle .ring { fill: none; stroke: var(--red); stroke-width: 128; stroke-dasharray: 320 44.4; stroke-dashoffset: 342.2; }
.reticle .dot { fill: var(--red); }

/* Buttons have card-like corners, never a pill: 14px, and 12px on the small one */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85em 1.6em; border-radius: 14px; border: 1.5px solid transparent;
  background: var(--red); color: #0a0a0b; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(var(--red-rgb), .6); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(242, 240, 233, .25); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-small { padding: .55em 1.15em; border-radius: 12px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
/* Small outlined label: studio badges and the homepage CRM demo's "Demo" tag. A small card, not a pill. */
.badge { font: 600 .58rem var(--mono); color: #5c5c5c; border: 1px solid #c9c9c9; border-radius: 4px; padding: .1em .55em; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav); background: rgba(10, 10, 11, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

/* Cream card: policies, proposals, invoices and the homepage's process section */
.paper { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(1.6rem, 4vw, 3.4rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 1.4rem; overflow: hidden; background: var(--bg); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; color: var(--faint); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
