/* Precinct, dark system (Paper "Precinct Website Sandbox": Heros › Hero Finals / Hero Primary,
   Design System › Type · Hierarchy and Color Palette, 11/21/2026).
   #18181B ground, #F2F1F0 ink, faded cartography at 15%, three families only:
   HV KANDA (wordmark, CTA, section marks), Suisse Intl 500 (all text), JetBrains Mono 400 10px (labels, readouts).
   Square corners. Desktop boards are 1440x820; the mobile layout runs below 768px. */

@font-face { font-family: "HV KANDA"; src: url("/fonts/hv-kanda-400.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Suisse Intl"; src: url("/fonts/suisse-intl-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ground: #18181B;
  --ink: #F2F1F0;
  --text: #D9D8D5;      /* bubble text */
  --soft: #A3A3A8;      /* replies, body copy that is not the lead */
  --muted: #8B8B90;     /* second statement, nav labels, footer */
  --dim: #6E6E74;       /* brackets, readouts, resting pixel icons */
  --bubble: #2A2A2F;
  --line: rgba(242, 241, 240, .12);
  --line-2: rgba(242, 241, 240, .18);
  --handle: #C9C8C6;
  --teal: #99F1B5;
  --error: #EB5428;     /* Dark Yellow from the palette */
  --display: "HV KANDA", "Arial Black", sans-serif;
  --sans: "Suisse Intl", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --travel: cubic-bezier(0.45, 0, 0.1, 1);
  --arrive: cubic-bezier(0.25, 0.8, 0.25, 1);
  --roll: cubic-bezier(0.23, 1, 0.32, 1);
  --pad-top: 34px;
  --pad-bottom: 30px;
}
@media (max-width: 767px) { :root { --pad-top: 26px; --pad-bottom: 24px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); }
html, body { min-height: 100%; }
body {
  background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 22px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { border: 0; padding: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--teal); color: var(--ground); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-weight: 400; font-size: 10px; line-height: 13px; letter-spacing: .04em; text-transform: uppercase; }
.teal { color: var(--teal); } .dim { color: var(--dim); } .muted { color: var(--muted); }

/* ---------- the faded cartography behind every page ---------- */
.carto { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url("/img/hero/contours.svg") center / cover no-repeat; opacity: .15; }

/* ---------- page frame: wordmark top, footer bottom, the content centred between ---------- */
.page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
        padding: calc(var(--pad-top) + env(safe-area-inset-top, 0px)) 20px calc(var(--pad-bottom) + env(safe-area-inset-bottom, 0px)); }
.wordmark { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 34px; color: var(--ink); text-transform: uppercase; letter-spacing: 0; }   /* live size, John 11/21 */
@media (max-width: 767px) { .wordmark { font-size: 26px; line-height: 26px; } }
.page__main { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 0; }
.footer { font-family: var(--mono); font-weight: 400; font-size: 10px; line-height: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.footer { display: flex; align-items: center; justify-content: center; gap: 20px; }
.footer a { color: var(--dim); transition: color .2s ease; }
.footer a:hover, .footer a:focus-visible { color: var(--ink); }
.close { position: fixed; z-index: 40; top: 45px; right: 64px; width: 22px; height: 22px; display: block; color: var(--ink); transition: color .2s ease, transform .3s var(--roll); }
.close svg { display: block; width: 100%; height: 100%; }
.close:hover { color: var(--teal); transform: rotate(90deg); }
@media (max-width: 767px) { .close { top: calc(32px + env(safe-area-inset-top, 0px)); right: 20px; width: 18px; height: 18px; } }

/* ---------- pixel nav: Info, Services, Work, Initiate ---------- */
.nav { position: fixed; z-index: 30; right: 32px; bottom: var(--pad-bottom); display: flex; align-items: flex-end; gap: 14px; }
.nav a { width: 63px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted);
         font-family: var(--mono); font-weight: 400; font-size: 10px; line-height: 12px; letter-spacing: .04em; text-transform: uppercase; transition: color .2s ease; }
.nav .ic { width: 63px; height: 42px; display: flex; align-items: center; justify-content: center; }
.nav svg { display: block; width: 39px; height: 39px; }
.nav svg .f { fill: var(--dim); transition: fill .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a:hover svg .f { fill: var(--muted); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] svg .f { fill: var(--ink); }
@media (max-width: 767px) {
  .nav { right: 50%; transform: translateX(50%); gap: 6px; bottom: calc(var(--pad-bottom) + env(safe-area-inset-bottom, 0px)); }
  .nav a { width: 58px; }
  .has-nav { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Start a project: the bracket link ---------- */
.cta { display: inline-flex; align-items: center; gap: 12px; height: 40px; color: var(--ink); white-space: nowrap; }
.cta__b { color: var(--dim); font-size: 14px; line-height: 18px; transition: transform .25s var(--roll), color .2s ease; }
.cta__t { font-family: var(--display); font-size: 14px; line-height: 18px; text-transform: uppercase; letter-spacing: .04em; transition: color .2s ease; }
.cta svg { flex-shrink: 0; transition: transform .25s var(--roll); }
.cta:hover .cta__t { color: var(--teal); }
.cta:hover .cta__b:first-child { transform: translateX(-3px); color: var(--ink); }
.cta:hover .cta__b:last-child { transform: translateX(3px); color: var(--ink); }
.cta:hover svg { transform: translate(1px, -1px); }
.cta-pin { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: 22px; }
@media (max-width: 767px) { .cta-pin { bottom: calc(118px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- selection box: the agent's mark, used on hover across the site ---------- */
.sel { position: absolute; inset: -6px -10px; border: 1px solid var(--muted); opacity: 0; pointer-events: none; transition: opacity .2s var(--arrive); }
.sel i { position: absolute; width: 7px; height: 7px; background: var(--handle); }
.sel i:nth-child(1) { left: -4px; top: -4px; } .sel i:nth-child(2) { right: -4px; top: -4px; }
.sel i:nth-child(3) { left: -4px; bottom: -4px; } .sel i:nth-child(4) { right: -4px; bottom: -4px; }
.sel__meta { position: absolute; left: calc(100% + 14px); top: -1px; display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }

/* ---------- section eyebrow: mono, numbered ---------- */
.eyebrow { display: flex; gap: 14px; color: var(--muted); }
.eyebrow b { font-weight: 400; color: var(--teal); }

/* ---------- Services list: HV KANDA caps, the live site's composition; hover draws the agent's box ---------- */
.svc-list { display: flex; flex-direction: column; align-items: center; gap: 6px; list-style: none; }
.svc-list a { position: relative; display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 24px; text-transform: uppercase; letter-spacing: 0;
              white-space: nowrap; color: rgba(242, 241, 240, .3); transition: color .25s ease; }
.svc-list .sel { inset: -3px -10px; }
.svc-list a:hover, .svc-list a:focus-visible { color: var(--ink); outline: none; }
.svc-list a:hover .sel, .svc-list a:focus-visible .sel { opacity: 1; }
.svc-list .sel__meta { opacity: 0; transition: opacity .3s var(--arrive) .08s; }
.svc-list a:hover .sel__meta, .svc-list a:focus-visible .sel__meta { opacity: 1; }
/* a service that isn't open yet: same type, no link; its box and readout hover in the palette's dark yellow */
.svc-soon { position: relative; display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 24px; text-transform: uppercase; letter-spacing: 0;
            white-space: nowrap; color: rgba(242, 241, 240, .3); cursor: default; transition: color .25s ease; }
.svc-soon .sel { inset: -3px -10px; border-color: var(--error); }
.svc-soon .sel i { background: var(--error); }
.svc-soon .sel__meta .mono { color: var(--error); }
.svc-soon:hover { color: rgba(242, 241, 240, .55); }
.svc-soon:hover .sel { opacity: 1; }
.svc-soon .sel__meta { opacity: 0; transition: opacity .3s var(--arrive) .08s; }
.svc-soon:hover .sel__meta { opacity: 1; }
.svc-soon__chip { display: none; }
@media (max-width: 767px) {
  .svc-list a, .svc-soon { font-size: 18px; line-height: 22px; } .svc-list .sel__meta { display: none; }
  /* phones have no hover, so the service that isn't open yet says so over its own name, which is blurred (John 11/21) */
  .svc-soon__name { filter: blur(2.5px); opacity: .7; }
  .svc-soon__chip { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px 6px; font-size: 9px; line-height: 11px; white-space: nowrap; color: var(--ground); background: var(--error); border-radius: 2px; }
  /* a service page's name stays on one line, cut short before the close button */
  .svc__name { align-self: flex-start; padding-right: 44px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Service page: HV KANDA ticker behind the copy, softened where they overlap ---------- */
.svc { overflow: hidden; }
.svc__name { position: relative; z-index: 2; }
.ticker { position: absolute; left: 0; right: 0; top: 50%; height: 132px; margin-top: -66px; overflow: hidden; pointer-events: none; z-index: 0; }
.ticker__band { display: flex; gap: 60px; padding-right: 60px; width: max-content; animation: ticker 60s linear infinite; }
.ticker__band span { font-family: var(--display); font-size: 132px; line-height: 132px; text-transform: uppercase; letter-spacing: 0; color: #212125; white-space: pre; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(var(--loop, -50%)); } }
.ticker-soft { position: absolute; left: 50%; top: 50%; width: 600px; height: 172px; margin: -86px 0 0 -300px; overflow: hidden; background: var(--ground);
               -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
                       mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
               pointer-events: none; z-index: 1; }
.ticker-soft .ticker { top: 20px; margin: 0; left: calc(300px - 50vw); right: auto; width: 100vw; filter: blur(2px); opacity: .5; }
.svc__body { position: relative; z-index: 2; width: 468px; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }
.svc__copy { color: var(--soft); }
.svc__copy p:first-child { color: var(--ink); }
.svc__copy p + p { margin-top: 16px; }
.svc__foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.svc__pager { display: flex; gap: 18px; }
.svc__pager a { color: var(--dim); transition: color .2s ease; }
.svc__pager a:hover { color: var(--ink); }
.svc__pager a[aria-current="page"] { color: var(--teal); }
@media (max-width: 767px) {
  .ticker { height: 80px; margin-top: -40px; }
  .ticker__band { gap: 36px; padding-right: 36px; }
  .ticker__band span { font-size: 80px; line-height: 80px; }
  .ticker-soft { width: 100%; left: 0; margin: -60px 0 0; height: 120px; }
  .ticker-soft .ticker { top: 20px; left: 0; }
  .svc__body { width: 100%; max-width: 350px; }
  .svc__copy { font-size: 15px; line-height: 21px; }
}
@media (prefers-reduced-motion: reduce) { .ticker__band { animation: none; } }

/* ---------- Info: an article with a mood-board cover ---------- */
.page--info .page__main { justify-content: flex-start; padding: 130px 0 160px; }
.info { width: 468px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; }
.info__cover { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.info__cover img { display: block; width: 100%; height: 280px; object-fit: cover; border-radius: 4px; }
.info__cover figcaption { color: var(--dim); }
.info__copy { color: var(--soft); }
.info__copy p + p { margin-top: 16px; }
.info__copy b, .info__copy strong { font-weight: 500; color: var(--ink); }
.fade { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none;
        background: linear-gradient(180deg, rgba(24,24,27,0) 0%, rgba(24,24,27,.92) 50%, #18181B 100%); }
@media (max-width: 767px) {
  .page--info .page__main { padding: 56px 0 140px; }
  .info { width: 350px; gap: 22px; }
  .info__cover img { height: 220px; }
  .info__copy { font-size: 15px; line-height: 21px; }
  .fade { height: 200px; }
}

/* ---------- reveal on load ---------- */
.rise { opacity: 0; transform: translateY(6px); animation: rise .52s var(--roll) forwards; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } }

/* ---------- nav letter roll (labs.ramp.com: 520ms cubic-bezier(0.23,1,0.32,1), 28ms per letter) ---------- */
.roll { display: inline-flex; height: 12px; overflow: hidden; }
.roll .ch { display: inline-block; height: 12px; overflow: hidden; }
.roll .reel { display: flex; flex-direction: column; transition: transform 520ms var(--roll); }
.roll .reel b { display: block; height: 12px; font-weight: 400; }
.nav a:hover .reel, .nav a:focus-visible .reel { transform: translateY(-60px); transition-delay: var(--d); }
@media (prefers-reduced-motion: reduce) { .roll .reel { transition: none; } .nav a:hover .reel { transform: none; } }

/* ---------- page transitions (John 11/21): page content crossfades; the wordmark and nav never move or fade ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .42s; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
.wordmark { view-transition-name: wordmark; }
.nav { view-transition-name: nav; }
/* the wordmark and nav are static between pages (John 11/21): no morph, no fade, the new page's copy simply holds */
::view-transition-group(wordmark), ::view-transition-group(nav) { animation: none; }
::view-transition-old(wordmark), ::view-transition-old(nav) { display: none; }
::view-transition-new(wordmark), ::view-transition-new(nav) { animation: none; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
html, body { overflow-x: clip; }   /* a 1 px spill on small phones (Services, 360 wide) never scrolls the page sideways */

/* ---------- Terms of Service and Privacy Policy ---------- */
.legal { width: 468px; max-width: 100%; display: flex; flex-direction: column; gap: 26px; }
.legal__head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.legal__title { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 26px; text-transform: uppercase; letter-spacing: 0; color: var(--ink); }
.legal__date { color: var(--dim); }
.legal__s { display: flex; flex-direction: column; gap: 8px; }
.legal__s h2 { color: var(--teal); }
.legal__s p, .legal__s li { color: var(--soft); font-size: 14px; line-height: 21px; }
.legal__list { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0; }
.legal__list li { display: grid; grid-template-columns: 28px 1fr; }
.legal__k { color: inherit; }
.page--legal .page__main { justify-content: flex-start; padding-top: 72px; }
@media (max-width: 767px) { .legal { width: 350px; gap: 22px; } .page--legal .page__main { padding-top: 48px; } }
/* phones: the footer row sits under the nav (John 11/21), so the nav rises by the row's height */
@media (max-width: 767px) {
  .has-nav > .footer, .hero > .footer { position: fixed; z-index: 31; left: 0; right: 0; bottom: calc(var(--pad-bottom) + env(safe-area-inset-bottom, 0px)); }
  .nav { bottom: calc(var(--pad-bottom) + 27px + env(safe-area-inset-bottom, 0px)); }
  .has-nav { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); z-index: auto; }   /* so the fixed footer can sit above the bottom fade */
  .page--legal .wordmark { align-self: flex-start; padding-right: 44px; }   /* a long page name wraps left of the close button, as on a service page */
}

/* ---------- the visitor's pointer (cursor.js): the agents' arrow and tag, reading USER or what it is over (John 11/21) ---------- */
.has-ucursor, .has-ucursor * { cursor: none !important; }
.has-ucursor :is(input:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]), textarea, [contenteditable]) { cursor: text !important; }
.ucursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
           opacity: 0; transition: opacity .2s ease; will-change: transform; }
.ucursor.on { opacity: 1; }
.ucursor.is-text { opacity: 0; }          /* text fields show the system I-beam instead */
.ucursor svg { display: block; transition: transform .12s ease; transform-origin: 1px 1px; }
.ucursor svg path { fill: var(--ink); }  /* the agents' colour */
.ucursor.down svg { transform: scale(.88); }
.ucursor__chip { display: inline-flex; margin-left: 14px; padding: 3px 7px; border-radius: 2px; background: var(--ink); color: var(--ground);
                 font-size: 10px; line-height: 13px; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.ucursor__chip .uc { display: inline-block; height: 13px; overflow: hidden; margin-right: .04em; transition: width 520ms var(--roll); transition-delay: var(--d, 0ms); }
.ucursor__chip .ur { display: flex; flex-direction: column; transition: transform 520ms var(--roll); transition-delay: var(--d, 0ms); }
.ucursor__chip .ur b { display: block; height: 13px; font-weight: 400; text-align: center; }
.ucursor__chip .uc.go .ur { transform: translateY(-65px); }

/* ---------- no visible scrollbar anywhere; pages still scroll (John 11/21) ---------- */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
