/* Tree Capital × ANVEN: design system.
   Black, with the tree mark's colours as light: peach is the one accent you press, wine and rose glow behind
   the 3D. Bricolage Grotesque, heavy and tight, carries the headlines; Instrument Sans the reading;
   Tektur, the square face that echoes the TREECAPITAL wordmark, the small labels and numbers; Red Hat Mono
   only real model output. Self-hosted; no inline styles anywhere (strict CSP). */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(../vendor/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Tektur"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/tektur-400.woff) format("woff"); }
@font-face { font-family: "Tektur"; font-weight: 500 700; font-display: swap; src: url(../vendor/fonts/tektur-500.woff) format("woff"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400 500; font-display: swap; src: url(../vendor/fonts/instrument-sans-400.woff) format("woff"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600 800; font-display: swap; src: url(../vendor/fonts/instrument-sans-700.woff) format("woff"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(../vendor/fonts/instrument-sans-400-italic.woff) format("woff"); }
@font-face { font-family: "Red Hat Mono"; font-weight: 400 700; font-display: swap; src: url(../vendor/fonts/red-hat-mono-400.woff) format("woff"); }
@font-face { font-family: "Caveat"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/caveat-regular.ttf) format("truetype"); }

:root {
  color-scheme: dark;

  /* the tree mark */
  --aubergine: #451952;
  --wine: #662549;
  --rose: #ae445a;
  --peach: #f39f5a;
  --peach-2: #f8bd88;
  --graphite: #8d8d8d;
  --night: #0e0514;
  --night-2: #1a0c21;

  /* what things are: the page, text, panels, hairlines, focus */
  --void: #000;
  --text: #f0f1f8;          /* the white of the wordmark */
  --panel: #09060b;
  --panel-text: var(--text);
  --float: #0d0910;
  --float-text: var(--text);
  --cta: var(--peach);
  --cta-ink: #170905;
  --raise: #17111b;
  --raise-text: var(--text);
  --hush: #110d14;
  --text-soft: #a19ca8;
  --hover-bg: #1c1420;
  --hover-text: var(--text);
  --danger: #ff7b7b;
  --hairline: rgba(240, 241, 248, .1);
  --field-line: rgba(240, 241, 248, .2);
  --focus: var(--peach);
  --round: 14px;
  --brand-fg: #e3c6ec;            /* aubergine, lifted for text on black */
  --brand-fg-2: var(--peach-2);
  --dim: #3a3640;                 /* headline words that are not active yet */
  --dim-2: #77727e;

  /* names the page stylesheets use, mapped onto the tokens above */
  --paper: var(--void);
  --paper-2: var(--hush);
  --sheet: var(--panel);
  --doc: #fbfaf6;
  --rule: var(--hairline);
  --rule-strong: rgba(240, 241, 248, .2);
  --ink: var(--text);
  --ink-2: #d4d1da;
  --ink-3: var(--text-soft);
  --on-dark: #f0f1f8;
  --on-dark-2: rgba(240, 241, 248, .8);
  --on-dark-3: rgba(240, 241, 248, .58);
  --on-dark-rule: rgba(240, 241, 248, .12);

  --ok: #43d193;     --ok-bg: rgba(67, 209, 147, .13);
  --flag: #f5b544;   --flag-bg: rgba(245, 181, 68, .13);
  --review: #93b3ff; --review-bg: rgba(147, 179, 255, .13);
  --esc: #ff8080;    --esc-bg: rgba(255, 128, 128, .13);
  --series-manual: #f39f5a;
  --series-agents: #c46fb6;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: "Tektur", "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --petal: 26px 6px 26px 6px;
  --petal-md: 18px 5px 18px 5px;
  --petal-sm: 12px 4px 12px 4px;
  --r: var(--round);
  --shadow-lift: 0 30px 60px -30px rgba(0, 0, 0, .9);
  --halo: 0 0 0 1px rgba(174, 68, 90, .35), 0 30px 80px -30px rgba(174, 68, 90, .55);

  --wrap: 1320px;
  --gutter: clamp(18px, 3.4vw, 44px);
  --nav-h: 76px;
  --section-y: clamp(64px, min(8vw, 12vh), 128px);   /* shorter on short screens, so no section opens on a blank band */
  --ease: cubic-bezier(.2, .75, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--void); }
body {
  margin: 0; background: var(--void); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: rgba(243, 159, 90, .35); color: #fff; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--peach-2); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance; }
h1, .h1 { font: 800 clamp(2.8rem, 6.4vw, 6rem)/.92 var(--font-display); letter-spacing: -.04em; }
h2, .h2 { font: 800 clamp(2.1rem, 4vw, 3.6rem)/.98 var(--font-display); letter-spacing: -.035em; }
h3, .h3 { font: 700 1.35rem/1.2 var(--font-display); letter-spacing: -.015em; }
h4 { font: 700 1.0625rem/1.35 var(--font-text); }
.display { font: 800 clamp(2.6rem, 5.6vw, 5.4rem)/.94 var(--font-display); letter-spacing: -.04em; max-width: 14ch; }
.label { font: 500 .72rem/1.3 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); max-width: 40rem; }
.muted { color: var(--text-soft); }
.small { font-size: .875rem; }
.tnum { font-variant-numeric: tabular-nums; }
.hand { font-family: var(--font-hand); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.tc-mark { width: 2em; height: 2em; flex: none; display: block; }

/* ------------------------------------------------------------------ 3D canvases (one per stage, see gl/engine.js) */
.gl-host { position: relative; isolation: isolate; }
.gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; opacity: 0; transition: opacity .9s ease; }
.gl-canvas.on { opacity: 1; }
[data-cursor="drag"] { cursor: grab; }
.is-dragging, .is-dragging [data-cursor="drag"] { cursor: grabbing; }
.is-hot [data-cursor="drag"], [data-cursor="drag"].is-hot { cursor: pointer; }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--sheet { background: var(--panel); border-block: 1px solid var(--hairline); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(28px, 3.5vw, 52px); max-width: 48rem; }
.section-head h2 { font: 800 clamp(2.3rem, 4.6vw, 4.2rem)/.96 var(--font-display); letter-spacing: -.04em; }
.on-dark { background: var(--night); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .lede, .on-dark .muted { color: var(--on-dark-2); }
main { display: block; min-height: 60vh; }
body:not([data-view="home"]) main { padding-top: var(--nav-h); }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--peach); color: var(--cta-ink); padding: 10px 14px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--cta-ink); }

/* ------------------------------------------------------------------ pill buttons (with a round arrow) */
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  min-height: 46px; padding: 0 6px 0 22px; border: 1px solid transparent; border-radius: 999px;
  font: 600 .9375rem/1 var(--font-text); letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.pill:not(:has(.pill__arrow)) { padding-right: 22px; }
.pill__arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background-color .2s; }
.pill__arrow .ico { width: 15px; height: 15px; stroke-width: 2; }
.pill:hover .pill__arrow { transform: rotate(45deg); }
.pill:active { transform: translateY(1px); }
.pill--peach { background: var(--peach); color: var(--cta-ink); }
.pill--peach .pill__arrow { background: var(--cta-ink); color: var(--peach); }
.pill--peach:hover { background: var(--peach-2); color: var(--cta-ink); }
.pill--light { background: var(--text); color: #0a080c; }
.pill--light .pill__arrow { background: #0a080c; color: var(--text); }
.pill--light:hover { background: #fff; color: #0a080c; }
.pill--line { border-color: rgba(240, 241, 248, .24); color: var(--text); background: rgba(0, 0, 0, .25); }
.pill--line .pill__arrow { border: 1px solid rgba(240, 241, 248, .24); }
.pill--line:hover { border-color: rgba(240, 241, 248, .55); color: #fff; }
.pill--sm { min-height: 40px; padding-left: 18px; font-size: .875rem; }
.pill--sm .pill__arrow { width: 28px; height: 28px; }
.pill--lg { min-height: 54px; padding-left: 26px; font-size: 1rem; }
.pill--lg .pill__arrow { width: 40px; height: 40px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; color: var(--text); font-weight: 600; text-decoration: none; }
.link-arrow .ico { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--peach-2); }
.link-arrow:hover .ico { transform: translate(2px, -2px); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(240, 241, 248, .2); background: rgba(0, 0, 0, .25); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: rgba(240, 241, 248, .5); }
.icon-btn .ico { width: 17px; height: 17px; }

/* the older button names used across the app pages, drawn as pills */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  font: 600 .9375rem/1.1 var(--font-text); letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn .ico { width: 1.1em; height: 1.1em; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-peach { background: var(--cta); color: var(--cta-ink); }
.btn-peach:hover:not(:disabled) { background: var(--peach-2); color: var(--cta-ink); }
.btn-primary { background: var(--text); color: #0a080c; }
.btn-primary:hover:not(:disabled) { background: #fff; color: #0a080c; }
.btn-line { background: rgba(0, 0, 0, .2); border-color: rgba(240, 241, 248, .24); color: var(--text); }
.btn-line:hover:not(:disabled) { border-color: rgba(240, 241, 248, .55); color: #fff; }
.on-dark .btn-line, .run .btn-line { border-color: rgba(240, 241, 248, .26); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--hover-bg); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }

/* ------------------------------------------------------------------ form controls */
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field > label, .field > .label { font: 600 .8125rem/1.3 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.field .hint { font-size: .75rem; color: var(--text-soft); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; background: rgba(255, 255, 255, .03); color: var(--text);
  border: 1px solid var(--field-line); border-radius: 12px; font-size: .9375rem; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: rgba(240, 241, 248, .4); }
.select { background-color: var(--float); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--peach); box-shadow: 0 0 0 3px rgba(243, 159, 90, .22); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--peach); flex: none; }

/* tabs */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--hush); border: 1px solid var(--hairline); }
.seg button { border: 1px solid transparent; background: transparent; padding: 8px 15px; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--text-soft); cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: #0a080c; }

kbd { font: 500 .6875rem/1 var(--font-label); letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--hairline); color: var(--text-soft); background: var(--hush); }
.spinner { display: inline-block; width: 1em; height: 1em; border-radius: 50%; vertical-align: -.125em; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* badge */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--hush); border: 1px solid var(--hairline); color: var(--ink-2); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.status .ico { width: 1em; height: 1em; }
.status--ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(67, 209, 147, .25); }
.status--flag { background: var(--flag-bg); color: var(--flag); border-color: rgba(245, 181, 68, .25); }
.status--review { background: var(--review-bg); color: var(--review); border-color: rgba(147, 179, 255, .25); }
.status--esc { background: var(--esc-bg); color: var(--esc); border-color: rgba(255, 128, 128, .25); }

/* the leaf-shaped icon tile (two rounded corners and two sharp, from the peach piece of the mark) */
.leaf-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 16px 4px 16px 4px; background: rgba(255, 255, 255, .04); border: 1px solid var(--hairline); color: var(--peach); }
.leaf-ico .ico { width: 21px; height: 21px; }
.on-dark .leaf-ico { background: rgba(255, 255, 255, .06); color: var(--peach); }

/* card: near-black with a faint edge, and a soft brand glow on the important ones */
.card { background: var(--panel); border: 1px solid var(--hairline); border-radius: 20px; padding: 24px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note { font-size: .8125rem; line-height: 1.5; color: var(--text-soft); max-width: 62rem; }
.on-dark .note { color: var(--on-dark-3); }

/* ------------------------------------------------------------------ header: floats over the page */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h); pointer-events: none; }
.nav::before { content: ""; position: absolute; inset: 0 0 -28px; background: linear-gradient(180deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .5) 55%, transparent); pointer-events: none; }
.nav__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; padding: 0 var(--gutter); pointer-events: auto; }
.nav__logo { display: flex; align-items: center; flex: none; min-height: 40px; }
.nav__logo img { height: 32px; width: auto; display: block; }
.nav__tools { display: flex; align-items: center; gap: 10px; }
/* agent search, where the header used to show the time in Kuala Lumpur */
.search-pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 7px 0 14px; border-radius: 999px; border: 1px solid rgba(240, 241, 248, .2);
  background: rgba(0, 0, 0, .3); color: var(--text-soft); font: 500 .8125rem/1 var(--font-text); white-space: nowrap; cursor: pointer; transition: border-color .2s, color .2s; }
.search-pill:hover { border-color: rgba(240, 241, 248, .5); color: var(--text); }
.search-pill .ico { width: 16px; height: 16px; color: var(--text); }
.search-pill kbd { margin-left: 8px; }
.gpu { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; padding: 0 12px; height: 40px; border-radius: 999px; border: 1px solid var(--hairline); background: rgba(0, 0, 0, .3); }
.gpu__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); flex: none; }
.gpu[data-state="live"] .gpu__dot, [data-state="live"] > .gpu__dot, .gpu__dot[data-on="1"] { background: #43d193; box-shadow: 0 0 0 4px rgba(67, 209, 147, .16); }
.gpu[data-state="offline"] .gpu__dot, [data-state="offline"] > .gpu__dot { background: var(--peach); box-shadow: 0 0 0 4px rgba(243, 159, 90, .2); }
.burger { width: 16px; height: 10px; display: grid; align-content: space-between; margin-right: 10px; }
.burger i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.burger--x i:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger--x i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.nav__menu, .menu__close { padding-right: 8px; }
@media (max-width: 1060px) { .gpu .gpu__text { display: none; } .gpu { padding: 0; width: 40px; justify-content: center; } .search-pill kbd { display: none; } }
@media (max-width: 860px) { .search-pill { width: 40px; padding: 0; justify-content: center; } .search-pill__text { display: none; } }
@media (max-width: 760px) { .nav__cta { display: none; } }
@media (max-width: 420px) {
  .nav__logo img { height: 26px; }
  .nav__tools { gap: 8px; }
  /* phones and folded foldables: the menu button shows only its burger and keeps its name for screen readers */
  .nav__tools .nav__menu { width: 40px; padding: 0; gap: 0; }
  .nav__menu > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav__menu .burger { margin: 0; }
}
@media (max-width: 330px) {   /* the narrowest folded screens, such as the first Galaxy Fold at 280px */
  .nav__bar { gap: 8px; }
  .nav__logo img { height: 22px; }
  .nav__tools { gap: 6px; }
  .search-pill, .gpu, .nav__menu { width: 36px; height: 36px; min-height: 36px; }
}

/* ------------------------------------------------------------------ menu: a drawer from the right */
.menu {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, 100vw); height: 100dvh; max-width: 100vw; max-height: 100dvh;
  padding: 0; border: 0; border-left: 1px solid var(--hairline); background: #040205; color: var(--text); overflow: hidden;
}
.menu::backdrop { background: rgba(0, 0, 0, .74); }
.menu[open] { animation: menu-in .5s var(--ease); }
.menu[open]::backdrop { animation: fade-in .4s ease; }
@keyframes menu-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.menu__panel {
  height: 100%; display: flex; flex-direction: column; gap: 28px; padding: 18px clamp(22px, 3vw, 44px) 30px; overflow-y: auto;
  border-top: 3px solid var(--wine);
}
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.menu__logo { height: 28px; width: auto; display: block; }
.menu__links { display: grid; gap: 2px; margin-top: 4vh; }
.menu__links a { display: flex; align-items: baseline; gap: 18px; padding: 2px 0; font: 800 clamp(2rem, 5.2vh, 3.1rem)/1.04 var(--font-display); letter-spacing: -.035em; color: var(--text); text-decoration: none; transition: color .2s, transform .35s var(--ease); }
.menu__links a:hover { transform: translateX(8px); color: #fff; }
.menu__links a[aria-current="page"] { color: var(--peach); }
.menu__n { font: 500 .7rem/1 var(--font-label); letter-spacing: .12em; color: var(--text-soft); width: 2.2em; transform: translateY(-.9em); }
.menu__more { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid var(--hairline); margin-top: auto; }
.menu__more > div { display: grid; gap: 9px; align-content: start; }
.menu__h { font: 500 .7rem/1.3 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 4px; }
.menu__more a, .menu__search { color: var(--ink-2); text-decoration: none; font-size: .9375rem; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.menu__more a:hover, .menu__search:hover { color: #fff; }
.menu__cta { align-self: flex-start; }
@media (max-width: 420px) { .menu__more { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ footer */
.footer { position: relative; overflow: hidden; background: #000; color: var(--on-dark-2); padding: clamp(40px, 5vw, 72px) 0 28px; border-top: 1px solid var(--hairline); isolation: isolate; }
.footer__logo { display: block; height: clamp(30px, 2.8vw, 40px); width: auto; margin-bottom: clamp(22px, 2.6vw, 36px); }
.footer__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer__sky::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 52%;
  background: repeating-linear-gradient(90deg, rgba(174, 68, 90, .3) 0 1px, transparent 1px 90px), repeating-linear-gradient(0deg, rgba(174, 68, 90, .3) 0 1px, transparent 1px 46px);
  transform: perspective(480px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 65%); mask-image: linear-gradient(180deg, transparent, #000 65%);
}
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: clamp(32px, 4.5vw, 64px); }
.footer__tag { display: grid; font: 800 clamp(2.3rem, 5.4vw, 5.2rem)/.95 var(--font-display); letter-spacing: -.04em; color: var(--text); max-width: 18ch; }
.footer__tag span + span { color: var(--dim-2); font-size: .5em; letter-spacing: -.02em; line-height: 1.12; margin-top: .45em; max-width: 26ch; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 36px; padding-top: 36px; border-top: 1px solid var(--on-dark-rule); }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand .lockup { display: flex; align-items: center; gap: 12px; color: #fff; font: 800 1.35rem/1 var(--font-display); letter-spacing: -.02em; }
.footer__brand .tc-mark { width: 38px; height: 38px; }
.footer__line { max-width: 30rem; font-size: .9375rem; }
.footer__h { font: 500 .7rem/1.3 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 12px; }
.footer nav, .footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a { color: var(--on-dark-2); text-decoration: none; font-size: .9375rem; overflow-wrap: anywhere; }
.footer__grid a:hover { color: #fff; }
.footer__ic { display: inline-flex; align-items: center; gap: 10px; }
.footer__ic .ico { width: 30px; height: 30px; padding: 7px; border-radius: 50%; border: 1px solid var(--on-dark-rule); }
.footer__addr { font-size: .9375rem; line-height: 1.5; white-space: pre-line; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--on-dark-rule); font: 500 .68rem/1.5 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ the opening (components/intro.js) */
.intro { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: #000; overflow: hidden;
  animation: intro-failsafe .01s linear 6s forwards; transition: opacity .7s ease; }
.intro.is-js { animation: none; }
.intro.is-out { opacity: 0; pointer-events: none; }
.intro.is-fast { transition-duration: .3s; }
.intro__threads { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro__lockup { --logo-w: clamp(220px, 28vw, 400px); position: relative; display: grid; justify-items: start; padding-left: clamp(0px, 4vw, 60px); transition: transform .9s var(--ease); }
.intro__logo { width: var(--logo-w); height: auto; opacity: 0; transform: scale(.94); filter: blur(10px);
  transition: opacity .9s var(--ease), transform 1.3s var(--ease), filter .9s var(--ease); }
.intro__by { margin: clamp(18px, 2.6vw, 32px) 0 0 calc(var(--logo-w) * .2425 + 2px); font: 500 clamp(.8rem, 1.1vw, 1rem)/1 var(--font-label); letter-spacing: .3em; text-transform: uppercase; color: var(--text-soft); }
.intro__name { margin: 6px 0 0 calc(var(--logo-w) * .2425 - .04em); font: 800 clamp(3.8rem, 10.5vw, 9.4rem)/.84 var(--font-display); letter-spacing: -.05em; color: var(--text); }
.intro__by, .intro__name { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.intro__name { transition-delay: .08s; }
.intro.is-logo .intro__logo { opacity: 1; transform: none; filter: none; }
.intro.is-name .intro__by, .intro.is-name .intro__name { opacity: 1; transform: none; }
.intro.is-out .intro__lockup { transform: scale(1.05); }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
/* the timed steps run as CSS animations, so a busy main thread (a phone compiling the 3D) cannot hold them back */
.intro.is-play .intro__logo { animation: intro-o .9s var(--ease) .45s both, intro-s 1.3s var(--ease) .45s both, intro-b .9s var(--ease) .45s both; }
.intro.is-play .intro__by { animation: intro-o .8s var(--ease) 1.05s both, intro-y 1s var(--ease) 1.05s both; }
.intro.is-play .intro__name { animation: intro-o .8s var(--ease) 1.13s both, intro-y 1s var(--ease) 1.13s both; }
@keyframes intro-o { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-s { from { transform: scale(.94); } to { transform: none; } }
@keyframes intro-b { from { filter: blur(10px); } to { filter: none; } }
@keyframes intro-y { from { transform: translateY(26px); } to { transform: none; } }
/* reduced motion (an iPhone with Reduce Motion on): the same opening, still, fading in and out without movement */
@media (prefers-reduced-motion: reduce) {
  .intro:not(.is-js) { display: none; }
  .intro__lockup, .intro.is-out .intro__lockup { transform: none; transition: none; }
  .intro__logo, .intro__by, .intro__name { transform: none; filter: none; }
  /* fades only; these outrank the site-wide rule below that cuts every other animation short */
  .intro.is-play .intro__threads { animation: intro-o .6s ease both !important; }
  .intro.is-play .intro__logo { animation: intro-o .6s ease .15s both !important; }
  .intro.is-play .intro__by, .intro.is-play .intro__name { animation: intro-o .6s ease .45s both !important; }
  .intro.is-js { transition: opacity .5s ease !important; }
}

/* ------------------------------------------------------------------ ring cursor (desktop only) */
.cursor { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor.on { opacity: 1; }
.cursor__ring, .cursor__dot, .cursor__label { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__ring::before { content: ""; position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(240, 241, 248, .55);
  transition: inset .3s var(--ease), width .3s var(--ease), height .3s var(--ease), left .3s var(--ease), top .3s var(--ease), background-color .25s, border-color .25s; }
.cursor__dot::before { content: ""; position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--text); }
.cursor__label { translate: -50% -50%; font: 500 .62rem/1 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--peach-2); }
.cursor[data-mode="press"] .cursor__ring::before { left: -26px; top: -26px; width: 52px; height: 52px; border-color: rgba(243, 159, 90, .8); }
.cursor[data-mode="drag"] .cursor__ring::before, .cursor[data-mode="open"] .cursor__ring::before { left: -38px; top: -38px; width: 76px; height: 76px; border-color: rgba(243, 159, 90, .7); background: rgba(243, 159, 90, .1); }
.cursor[data-mode="drag"] .cursor__dot, .cursor[data-mode="open"] .cursor__dot { opacity: 0; }
.cursor.down .cursor__ring::before { transform: scale(.86); }

/* ------------------------------------------------------------------ command palette, in a dialog */
.palette { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 32px)); margin-top: 12vh; color: var(--text); }
.palette::backdrop { background: rgba(0, 0, 0, .74); }
.palette__box { background: var(--float); border: 1px solid var(--hairline); border-radius: 22px; box-shadow: 0 40px 90px rgba(0, 0, 0, .7), var(--halo); overflow: hidden; }
.palette__field { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--hairline); color: var(--text-soft); }
.palette__field input { flex: 1; border: 0; outline: 0; min-height: 60px; font-size: 1.0625rem; background: transparent; color: var(--text); }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: min(60vh, 460px); overflow-y: auto; }
.palette__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.palette__list li[aria-selected="true"] { background: var(--hover-bg); }
.palette__list .pi { width: 36px; height: 36px; border-radius: 13px 3px 13px 3px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--hairline); color: var(--peach); flex: none; }
.palette__list li[aria-selected="true"] .pi { background: var(--peach); color: var(--cta-ink); border-color: var(--peach); }
.palette__list .pt { font-weight: 600; font-size: .9375rem; }
.palette__list .ps { font-size: .8125rem; color: var(--text-soft); }
.palette__list .pk { margin-left: auto; font-size: .75rem; color: var(--text-soft); white-space: nowrap; }
.palette__empty { padding: 20px 12px; color: var(--text-soft); font-size: .9375rem; }

/* ------------------------------------------------------------------ toast (bottom right) */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 160; max-width: min(420px, calc(100vw - 40px)); background: var(--float); color: var(--text); border: 1px solid var(--hairline); padding: 14px 18px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); font-size: .9375rem; }
.boot { min-height: 70vh; display: grid; place-items: center; color: var(--text-soft); font: 500 .75rem var(--font-label); letter-spacing: .16em; text-transform: uppercase; }
.noscript-note { padding: 140px 0 64px; }

/* page change: the new page comes in through horizontal slats, like the bars in the wordmark's E */
@property --slat { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
::view-transition-old(root) { animation: vt-out .35s ease both; }
::view-transition-new(root) {
  animation: vt-in .6s var(--ease) both;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - var(--slat)), transparent calc(100% - var(--slat)));
  mask-image: linear-gradient(180deg, #000 calc(100% - var(--slat)), transparent calc(100% - var(--slat)));
  -webkit-mask-size: 100% 18px; mask-size: 100% 18px;
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { --slat: 100%; } to { --slat: 0%; } }

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

/* ------------------------------------------------------------------ contact form */
.form-card { background: rgba(6, 3, 8, .92); color: var(--text); border: 1px solid var(--hairline); border-radius: 24px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; box-shadow: var(--shadow-lift); }
.form-card h3 { color: var(--text) !important; font: 800 1.6rem/1.05 var(--font-display); letter-spacing: -.03em; }
.on-dark .form-card .note, .on-dark .form-card .muted { color: var(--text-soft); }
.on-dark .form-card a:not(.btn) { color: var(--peach-2); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form-card .estimate-box { background: var(--hush); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; font-size: .875rem; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: .9375rem; }
.form-msg.err { color: var(--esc); }
.form-done { display: grid; gap: 10px; }
.form-done .ico { width: 30px; height: 30px; color: var(--ok); }
@media (max-width: 520px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ phones, foldables and touch screens */
/* iOS zooms the whole page when a field under 16px gets focus, so fields are 16px on touch screens */
@media (pointer: coarse) {
  html .input, html .select, html .textarea, html .chat-find input, html .inds__find input, html .agent-picker select,
  html .agent-table input[type="number"] { font-size: 16px; }
  html .agent-table input[type="number"] { width: 72px; }
}
select { max-width: 100%; }
@media (max-width: 480px) {
  .btn { white-space: normal; padding-block: 8px; text-align: center; }   /* long labels wrap instead of widening the page */
}
