/* Antomation Investor Data Room
   Design language: International Typographic Style (Swiss).
   Light paper surface, grotesque type, mono micro-labels, hairline rules,
   square geometry, one accent color. No gradients, no glow, no pills.
   Fonts are self-hosted: no third-party requests from this site. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Archivo-400.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/Archivo-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/Archivo-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/Archivo-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/Archivo-800.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexMono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/IBMPlexMono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/IBMPlexMono-600.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --card: #ffffff;
  --ink: #17150f;
  --ink-2: #4d4a42;
  --muted: #85816f;
  --hair: #d9d6cb;
  --hair-2: #c8c4b6;
  --accent: #1f3ac6;
  --good: #0a7a2f;
  --warn: #a05a00;
  --critical: #b3261e;
  /* chart tokens (dataviz light mode) */
  --chart-surface: #fcfcfb;
  --series-1: #2a78d6;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { color: var(--ink); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); margin: 0 0 .8rem; }
h2 {
  font-size: 1.05rem; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .08em;
  border-top: 2px solid var(--ink); padding-top: .5rem; display: inline-block;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 2.4rem 1.4rem 5rem; }
main.wide { max-width: 1280px; }
section { margin: 3.2rem 0; }
footer {
  border-top: 1px solid var(--hair-2); color: var(--muted); font-family: var(--mono);
  font-size: .72rem; padding: 1.1rem 1.4rem; text-align: left;
}
.lede { font-size: 1.12rem; max-width: 44em; color: var(--ink-2); }
.secsub { color: var(--muted); max-width: 46em; margin-bottom: 1.2rem; }
.fine { color: var(--muted); font-size: .82rem; }
.crumb { margin-bottom: 1.2rem; font-family: var(--mono); font-size: .8rem; }

/* nav */
.nav {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  padding: .8rem 1.4rem; border-bottom: 1px solid var(--hair-2);
  position: sticky; top: 0; background: rgba(244, 243, 239, .96); backdrop-filter: blur(6px); z-index: 10;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 800; letter-spacing: .04em; }
.brand img { height: 26px; width: 26px; }
.brand em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.navlinks { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.navlinks a {
  color: var(--ink-2); font-family: var(--mono); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .06em; padding: .25rem 0; border-bottom: 2px solid transparent;
}
.navlinks a:hover { color: var(--ink); text-decoration: none; }
.navlinks a.on { color: var(--ink); border-bottom-color: var(--accent); }
.navuser { color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.callform { margin-left: auto; }
.callform button { background: var(--accent); border-color: var(--accent); color: #fff; padding: .45rem .9rem; font-size: .72rem; }
.callform button:hover { background: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) { .callform { margin-left: 0; } }

/* auth cards */
.authwrap { display: flex; justify-content: center; padding: 7vh 1rem 4rem; }
.authcard {
  background: var(--card); border: 1px solid var(--hair-2);
  padding: 2.6rem 2.4rem; max-width: 460px; width: 100%; text-align: left;
  border-top: 4px solid var(--ink);
}
.ndacard { max-width: 680px; }
.authlogo { width: 44px; height: 44px; margin-bottom: 1rem; }
.authcard h1 { font-size: 1.6rem; letter-spacing: .02em; }
.authcard .sub { color: var(--ink-2); margin: .6rem 0 1.6rem; }
.authcard form { display: flex; flex-direction: column; gap: .8rem; }
.authcard label { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
input[type=email], input[type=text], input:not([type]) {
  background: var(--card); color: var(--ink); border: 1px solid var(--hair-2);
  padding: .7rem .8rem; font-size: 1rem; width: 100%; font-family: var(--sans); border-radius: 0;
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button {
  background: var(--ink); color: var(--paper); font-weight: 600; border: 1px solid var(--ink);
  padding: .75rem 1.2rem; font-size: .92rem; cursor: pointer; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .06em; border-radius: 0;
}
button:hover { background: var(--accent); border-color: var(--accent); }
button.mini { padding: .3rem .7rem; font-size: .72rem; }
button.danger { background: none; border: 1px solid var(--critical); color: var(--critical); }
button.danger:hover { background: var(--critical); color: #fff; }
.btn {
  display: inline-block; background: var(--card); border: 1px solid var(--ink);
  color: var(--ink); padding: .5rem 1rem; font-size: .8rem; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .05em;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.alert { border: 1px solid; padding: .7rem 1rem; font-size: .9rem; }
.alert.bad { border-color: var(--critical); color: var(--critical); background: #fdf3f2; }
.alert.ok { border-color: var(--good); color: var(--good); background: #f2f9f4; }
.ndabox {
  background: var(--paper); border: 1px solid var(--hair);
  padding: 1.1rem 1.3rem; max-height: 320px; overflow-y: auto; margin-bottom: 1.2rem; font-size: .9rem;
}
.ndabox p { margin-bottom: .7rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--ink-2); font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.check input { margin-top: .3rem; }

/* hero + stats */
.hero { margin-top: 1.2rem; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 2rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--hair-2);
}
.stat { padding: 1rem 1.1rem 1.2rem .9rem; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .v { color: var(--ink); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.stat .l { color: var(--muted); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.45; margin-top: .3rem; }

/* latest */
.latest { list-style: none; padding: 0; border-top: 2px solid var(--ink); max-width: 60em; }
.latest li { border-bottom: 1px solid var(--hair); padding: .7rem 0; font-size: .95rem; display: flex; gap: 1.2rem; }
.latest .ld { color: var(--accent); font-family: var(--mono); font-size: .78rem; font-weight: 600; white-space: nowrap; padding-top: .15rem; min-width: 5.2em; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.2rem; }
.tile {
  background: var(--card); border: 1px solid var(--hair-2);
  overflow: hidden; color: var(--ink-2); display: flex; flex-direction: column;
  transition: border-color .12s ease;
}
.tile:hover { border-color: var(--ink); text-decoration: none; }
.tilepic { aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--paper); border-bottom: 1px solid var(--hair); }
.tilepic.noimg { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.tilepic.noimg img { height: 40px; opacity: .35; }
.tilepic.noimg span { color: var(--muted); font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.tilebody { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.tilehead { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.tilebody h3 { font-size: 1.12rem; font-weight: 700; }
.cust { color: var(--muted); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.tilebody p { font-size: .9rem; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: .22rem .55rem; border: 1px solid var(--hair-2); color: var(--ink-2);
  background: var(--card);
}
.badge .bi { font-size: .8em; }
.badge.good { border-color: var(--good); color: var(--good); }
.badge.warn { border-color: var(--warn); color: var(--warn); }

/* stage bar */
.stages { display: flex; gap: 3px; margin-top: .3rem; }
.stg { flex: 1; text-align: left; }
.stg i { display: block; height: 4px; background: var(--hair); }
.stg.done i { background: var(--ink); }
.stg.now i { background: var(--accent); }
.stg b { font-weight: 500; font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); display: block; margin-top: .3rem; white-space: nowrap; }
.stg.now b { color: var(--accent); font-weight: 600; }
.stg.done b { color: var(--ink-2); }
.stagenote { margin-top: .9rem; color: var(--ink-2); max-width: 46em; }

/* model steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--hair-2); background: var(--card); margin: 1.2rem 0; }
.step { padding: 1rem 1.1rem 1.2rem; font-size: .88rem; border-left: 1px solid var(--hair); }
.step:first-child { border-left: 0; }
.step b { display: block; color: var(--accent); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; margin-bottom: .45rem; }

/* partners */
.logos { display: flex; gap: 2.4rem; align-items: center; flex-wrap: wrap; padding: 1.2rem 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.logos img { height: 30px; width: auto; filter: grayscale(1); opacity: .72; mix-blend-mode: multiply; }
.logos img.inv { filter: grayscale(1) invert(1); }
.tile .stg b { display: none; }
.tile .stg.now b { display: block; }

/* project page */
.projhead .badge { margin: .5rem 0 .9rem; }
.hl { padding-left: 1.2rem; display: grid; gap: .4rem; max-width: 50em; }
.outlook { background: var(--card); border: 1px solid var(--hair-2); border-left: 4px solid var(--accent); padding: 1.3rem 1.5rem; max-width: 60em; }
.outlook h2 { border-top: 0; padding-top: 0; color: var(--accent); }
.callout { background: var(--card); border: 1px solid var(--hair-2); padding: 1.3rem 1.5rem; max-width: 60em; }
.callout.good { border-left: 4px solid var(--good); }
.callout h2 { border-top: 0; padding-top: 0; text-transform: none; letter-spacing: 0; font-size: 1.15rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.med { background: var(--card); border: 1px solid var(--hair-2); overflow: hidden; }
.med video, .med img { width: 100%; display: block; background: #111; }
.med figcaption { padding: .55rem .8rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); border-top: 1px solid var(--hair); }
.med a.zoom { display: block; cursor: zoom-in; }
.med a.zoom:hover img { opacity: .92; }

/* lightbox */
#lightbox[hidden] { display: none; }
#lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(23, 21, 15, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem 1.2rem; cursor: zoom-out; }
#lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; background: #111; border: 1px solid #444; }
#lightbox .lb-cap { color: #c3c2b7; font-family: var(--mono); font-size: .78rem; margin-top: .8rem; max-width: 70em; text-align: center; }
#lightbox .lb-close { position: absolute; top: .6rem; right: 1rem; background: transparent; border: 0; color: #f4f3ef; font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* docs */
.docs { list-style: none; padding: 0; max-width: 56em; border-top: 2px solid var(--ink); }
.docs li { border-bottom: 1px solid var(--hair); padding: .55rem .2rem; display: flex; justify-content: space-between; gap: 1rem; }
.fmeta { color: var(--muted); font-family: var(--mono); font-size: .72rem; white-space: nowrap; }
.doctree details { border: 1px solid var(--hair-2); margin: .4rem 0; padding: 0 1rem; background: var(--card); }
.doctree summary { cursor: pointer; padding: .55rem 0; color: var(--ink); font-weight: 600; font-size: .95rem; }
.doctree .docs { margin: .4rem 0 1rem; border-top: 1px solid var(--hair); }
.doctree details details { background: var(--paper); }

/* team */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.person { background: var(--card); border: 1px solid var(--hair-2); border-top: 4px solid var(--ink); padding: 1.4rem 1.5rem; }
.person .role { color: var(--accent); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: .7rem; }
.person .joined { color: var(--muted); font-weight: 400; margin-left: .5rem; }
.person p { font-size: .92rem; }
.plinks { margin-top: 1rem; display: flex; gap: .7rem; }
.btn.ghost { border-color: var(--hair-2); }

/* tables */
.tablewrap { overflow-x: auto; max-width: 62em; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .5rem .8rem .5rem 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { color: var(--muted); font-family: var(--mono); font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); }
td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.inline { display: flex; gap: .7rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.rowbtns { display: inline-block; margin-right: .4rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.totalrow td { border-top: 2px solid var(--ink); border-bottom: 0; }
.inline input { max-width: 250px; }

/* deck */
.deck { display: grid; gap: 1.2rem; }
.deck img { width: 100%; border: 1px solid var(--hair-2); }

/* chart (financials) */
.viz-root { background: var(--chart-surface); border: 1px solid var(--hair-2); padding: 1.4rem 1.6rem 1.2rem; max-width: 62em; }
.viz-root h2 { border-top: 0; padding-top: 0; }
.chart {
  display: flex; align-items: flex-end; gap: 10%; height: 300px;
  padding: 0 4%; border-bottom: 2px solid var(--baseline); position: relative;
  margin-bottom: 2.2rem;
}
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; position: relative; cursor: default; }
.bar i { width: 100%; max-width: 76px; background: var(--series-1); border-radius: 4px 4px 0 0; display: block; }
.bar .bv { color: var(--ink); font-size: .88rem; font-weight: 600; margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.bar .bl { position: absolute; bottom: -1.8rem; color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.bar:hover::after, .bar:focus::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + .5rem); left: 50%; transform: translateX(-50%);
  background: var(--card); color: var(--ink-2); border: 1px solid var(--hair-2);
  padding: .55rem .75rem; font-size: .78rem; width: 240px; z-index: 5; box-shadow: 0 2px 8px rgba(23, 21, 15, .08);
}
.tbl summary { color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: .78rem; }
.tbl { margin-top: .6rem; }
.viz-root svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.lg { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
.lg i { width: 12px; height: 12px; display: inline-block; }

@media (max-width: 640px) {
  .navuser { display: none; }
  .stg b { display: none; }
  .chart { gap: 6%; height: 220px; }
  .stat { padding-left: .7rem; }
}
