/* Brightsmith. Tokens come from ../../../DESIGN.md; change them there first. */

@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --canvas: #010102;
  --surface-1: #0f1011;
  --surface-2: #141516;
  --hairline: #23252a;
  --hairline-strong: #34343a;
  --field-line: #62666d;
  --ink: #f7f8f8;
  --ink-muted: #d0d6e0;
  --ink-subtle: #8a8f98;
  --bright: var(--ink-muted);      /* a finished face, a spark. No accent colour (Bohdan, 2026-11-27) */
  --font: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --track-display: -0.028em;
  --gutter: clamp(20px, 5vw, 72px);
  --bar: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section: clamp(72px, 9vw, 128px);
  /* The scroll engine's own tokens (css/scrollcraft.css), pointed at ours. */
  --sc-canvas: var(--canvas); --sc-surface: var(--surface-1); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-subtle);
  --sc-accent: var(--ink); --sc-accent-ink: var(--canvas); --sc-font-text: var(--font); --sc-font-display: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.5 var(--font); letter-spacing: normal; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(247, 248, 248, .22); color: var(--ink); }

.skip { position: fixed; left: 12px; top: -80px; z-index: 30; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--canvas); font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons: light on dark, the only filled control. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; background: var(--ink); color: var(--canvas); font-size: 16px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; transition: background-color .18s var(--ease), transform .18s var(--ease); border: 0; font-family: inherit; cursor: pointer; }
.btn:hover { background: #fff; }
.btn:active { background: var(--ink-muted); transform: translateY(1px); }
/* the button that sends the contact form: the same shape, a thin line, no fill */
.btn--quiet, .btn--quiet:active { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.btn--quiet:hover { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--ink-subtle); }
.btn--bar { position: relative; min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--bar::before { content: ""; position: absolute; inset: -4px 0; }      /* a 44px target for a finger */

/* Top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 32px; padding: 0 max(var(--gutter), calc((100% - 1296px) / 2)); background: rgba(1, 1, 2, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(247, 248, 248, .06); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; text-decoration: none; }
.bar__links { display: flex; gap: 28px; }
.bar__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-subtle); font-size: 14px; letter-spacing: 0.005em; text-decoration: none; transition: color .18s var(--ease); }
.bar__links a:hover { color: var(--ink); }

/* Symbol: solid faces, one of them bright. */
.symbol { flex: none; }
.symbol__tone { fill: var(--ink); }
.symbol__bright { fill: var(--bright); }

/* Hero */
.hero { position: relative; min-height: max(100svh, 620px); display: grid; place-items: center; padding: calc(var(--bar) + 24px) var(--gutter) 96px; overflow: hidden; isolation: isolate; text-align: center; }
/* The field: the wheel's rings and sparks on a canvas (js/hero.js). The first screen, the
   connect part, and the page end each have one. */
.field, .hero__still { position: absolute; inset: 0; z-index: -1; width: 100%; max-width: none; height: 100%; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.hero__still { fill: none; stroke: rgba(247, 248, 248, .15); }
.js .hero__still { display: none; }
h1 { margin: 0 auto; max-width: 16ch; font-size: clamp(2.5rem, 1.15rem + 4.5vw, 4.5rem); font-weight: 500; line-height: 1.04; letter-spacing: var(--track-display); text-wrap: balance; }
.hero__lede { max-width: 31em; margin: 24px auto 0; color: var(--ink-subtle); font-size: 18px; line-height: 1.5; text-wrap: pretty; }

/* Plates: a headline, at most two sentences, and one figure. */
.wrap { width: 100%; max-width: calc(1296px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.plate { padding-block: var(--section); }
.plate__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 48px; align-items: center; }
.plate__grid--text { row-gap: 24px; }
.plate__grid--text > :last-child { margin-top: 0; }
.plate--rule { padding-top: 0; }
.plate--rule > .wrap::before { content: ""; height: 1px; margin-bottom: clamp(24px, 6vw, 80px); background: var(--hairline); }
#problem, #workflows { padding-bottom: 24px; }      /* the next part brings its own air: a figure plate, then the pinned stage */
#security { padding-top: 24px; }
@media (min-width: 901px) {
  .plate__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .plate__copy { grid-column: 1 / span 5; }
  .plate__grid > .fig { grid-column: 7 / -1; }
  .plate__grid--flip > .plate__copy { grid-column: 8 / -1; grid-row: 1; }
  .plate__grid--flip > .fig { grid-column: 1 / span 6; grid-row: 1; }
  .plate__grid--text { align-items: start; }
  .plate__grid--text > h2 { grid-column: 1 / span 5; }
  .plate__grid--text > :last-child { grid-column: 7 / -1; }
  .plate--rule > .wrap::before { grid-column: 1 / -1; }
}
h2 { margin: 0; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.022em; text-wrap: balance; }
.plate p, .connect p { max-width: 31em; margin: 20px 0 0; color: var(--ink-muted); font-size: 18px; text-wrap: pretty; }
.plate .source { margin-top: 12px; color: var(--ink-subtle); font-size: 14px; letter-spacing: 0.005em; }

/* Figures: one line style. Rough (r) is dashed and dim; finished (f) is solid. js/site.js
   gives each part --k, 0 to 1. Without it, every part shows finished. */
.fig { position: relative; margin: 0; }
.fig svg { width: 100%; height: auto; overflow: visible; }
.fig__art { position: relative; }
.fig__tag { position: absolute; color: var(--ink-subtle); font: 400 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; opacity: var(--k, 1); pointer-events: none; }
.fig__tag--r { transform: translateX(-100%); }
.fig__tag--t { transform: translate(-50%, -100%); }      /* centred over the end of its leader line */
.fig__tag--b { transform: translateX(-50%); }            /* centred under it */
.fig figcaption { margin-top: 20px; color: var(--ink-subtle); font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.fig .r { fill: none; stroke: rgba(247, 248, 248, .17); stroke-width: 1.25; stroke-dasharray: 2.5 3.5; stroke-linejoin: round; stroke-linecap: round; }
.fig .f { fill: none; stroke: rgba(247, 248, 248, .46); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.fig .occ { fill: var(--canvas); }
.fig .bright { fill: var(--bright); stroke: var(--bright); stroke-width: 1.25; stroke-linejoin: round; }
.fig [data-draw] { stroke-dasharray: var(--len, none); stroke-dashoffset: calc(var(--len, 0px) * (1 - var(--k, 1))); opacity: calc(var(--k, 1) * 100); }
.fig .bright[data-at], .fig .slab, .fig .fade { opacity: var(--k, 1); }
.fig .slab { transform: translateY(calc((1 - var(--k, 1)) * 5px)); }
.fig .tick { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; opacity: calc(.16 + .5 * var(--k, 1)); }
.fig .mark { fill: none; stroke: var(--bright); stroke-width: 2; stroke-linecap: round; opacity: var(--k, 1); }
.fig .cut { fill: none; stroke: var(--canvas); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }      /* a check cut into a bright face */
.fig .lead { fill: none; stroke: rgba(247, 248, 248, .3); stroke-width: 1; opacity: var(--k, 1); }
/* A live line: a short bright dash that keeps travelling once the figure is finished. */
.fig .live { fill: none; stroke: var(--bright); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 97; animation: travel 4s linear infinite; transition: opacity .5s var(--ease); }
.is-live:not(.is-done) .live { opacity: 0; }
@keyframes travel { from { stroke-dashoffset: 3; } to { stroke-dashoffset: -97; } }
.spark { fill: var(--bright); opacity: 0; }
.spark__glow { opacity: .45; filter: blur(5px); }

/* How we work: the one pin. Five steps in a row, each with its own small figure on one floor.
   The scroll finishes them in order, and a step's text brightens when its turn comes.
   The pin needs room for the row. On a narrow or low window, and with reduced motion, the
   engine's pin is switched off here and the steps flow, so a window can change size without
   a reload. js/site.js has the same limits (FLOW). */
.how__stage { padding-block: var(--section); }
@media (min-width: 1100px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  .how.sc-act--pinned .how__stage { display: grid; align-items: center; padding-block: var(--bar) 0; }
}
@media (max-width: 1099px), (max-height: 679px), (prefers-reduced-motion: reduce) {
  .how.sc-act--pinned { height: auto !important; }
  .how .sc-stage { position: static; height: auto; overflow: visible; }
}
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.step__fig svg { display: block; }
/* the line under the figures: rough, and solid once the step is reached */
.step__rule { position: relative; display: block; height: 1px; margin: 16px 0 18px; background: repeating-linear-gradient(90deg, rgba(247, 248, 248, .2) 0 2.5px, transparent 2.5px 6px); }
.step__rule::after { content: ""; position: absolute; inset: 0; background: rgba(247, 248, 248, .46); transform-origin: left; transform: scaleX(var(--k, 1)); }
.label, .step__n, .how__label { margin: 0; color: var(--ink-subtle); font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.how__label { margin-top: 36px; }
.step h3 { margin: 12px 0 0; text-wrap: balance; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -0.005em; transition: color .3s var(--ease); }
.step p:not(.step__n) { max-width: 31em; margin: 6px 0 0; color: var(--ink-muted); font-size: 17px; text-wrap: pretty; transition: color .3s var(--ease); }
.step.is-live:not(.is-on) :is(h3, p:not(.step__n)) { color: var(--ink-subtle); }
@media (max-width: 1099px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .step { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .step__rule { display: none; }
}
@media (max-width: 640px) {
  .step { display: block; }
  .step__fig { max-width: 200px; margin-left: -16px; }
}

/* Questions */
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 12px 0; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -0.005em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--ink-subtle); font-size: 20px; font-weight: 400; transition: color .18s var(--ease); }
.faq summary:hover::after { color: var(--ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { max-width: 34em; margin: 0 0 24px; font-size: 17px; }

/* Connect: the wheel again, on the right, behind one question and the one button. */
.connect { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(104px, 13vw, 184px); }
.connect .field { -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.connect h2 { max-width: 18ch; }
.connect .btn { margin-top: 36px; }
.connect .form .btn { margin-top: 0; }

/* Footer: labelled blocks. The line and "Ask an AI" stand on the left; the security line and
   the link columns stand on the right. */
.foot { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--hairline); padding-top: 64px; }
.foot .field { -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 72%, transparent 97%); mask-image: linear-gradient(transparent, #000 30%, #000 72%, transparent 97%); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; }
.foot__grid > * { grid-column: 1 / -1; }
.foot__line { max-width: 19em; margin: 20px 0 0; font-size: 24px; line-height: 1.3; letter-spacing: -0.012em; text-wrap: balance; }
.foot__say { max-width: 26em; margin: 16px 0 0; color: var(--ink-muted); font-size: 18px; text-wrap: pretty; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 6vw, 88px); }
.foot__col { display: grid; align-content: start; justify-items: start; }
.foot__col .label { margin-bottom: 10px; }
.foot__col > a { padding: 8px 0; color: var(--ink-muted); text-decoration: none; transition: color .18s var(--ease); }
.foot__col > a:hover { color: var(--ink); }
@media (min-width: 901px) {
  .foot__grid > .foot__lead { grid-column: 1 / span 5; }
  .foot__grid > :is(.foot__security, .foot__nav) { grid-column: 7 / -1; }
  .foot__grid > .foot__ask { grid-column: 1 / span 5; grid-row: 2; }
}
.ask { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ask__btn { display: grid; place-items: center; width: 48px; height: 48px; background: var(--canvas); border: 1px solid var(--hairline-strong); border-radius: 8px; color: var(--ink); transition: background-color .18s var(--ease); }
.ask__btn:hover { background: var(--surface-2); }

/* The page end: the name. It stands as a rough dashed outline until it comes on screen;
   then the finished name fades in, and a band of light crosses it every 7 seconds. With
   JavaScript off or with reduced motion the finished name stands still. */
.end { padding: clamp(48px, 6vw, 88px) 0 28px; }
/* On a wide screen the top of the letters stands just under the last footer link. The
   name's box reaches 12px into the columns, so the columns stay on top and stay clickable. */
@media (min-width: 901px) {
  .foot > .wrap { position: relative; z-index: 1; }
  .end { margin-top: -12px; padding-top: 0; }
}
.end__name .name { vector-effect: non-scaling-stroke; }
.name { font-family: var(--font); font-weight: 500; }
/* The letters are solid canvas under their tint, so the wheel's arcs and sparks pass behind
   the name. The rough dashed outline shows only until the finished name fades in. */
.name--rough { fill: var(--canvas); }
.end.is-live .name--rough { stroke: rgba(247, 248, 248, .22); stroke-width: 1; stroke-dasharray: 2.5 3.5; transition: stroke-opacity 1s var(--ease); }
.end.is-on .name--rough { stroke-opacity: 0; }
.name--fin { fill: url(#end-tone); }
.end.is-on .name--fin { transition: opacity 1s var(--ease); }
.end.is-live:not(.is-on) .name--fin { opacity: 0; }
.name--glint { display: none; }
.end.is-on .name--glint { display: inline; }
/* The band of light crosses the name in about 3.2 seconds, then waits for the rest of the 7. */
.end.is-on .name__band { animation: glint 7s linear infinite; }
@keyframes glint { from { transform: translateX(-380px); } 45%, to { transform: translateX(1580px); } }
.end__legal { margin: 8px 0 0; color: var(--ink-subtle); font-size: 14px; letter-spacing: 0.005em; }

/* Text pages: one reading column in the middle of the page, after tribe.ai's privacy page.
   A title, numbered section headings, and plain text. No figure and no motion. */
.page { padding: calc(var(--bar) + clamp(56px, 8vw, 112px)) 0 var(--section); }
.doc { max-width: calc(720px + 2 * var(--gutter)); }
.doc h1 { margin: 0; max-width: none; }
.doc h2 { margin-top: clamp(56px, 7vw, 88px); }
.doc :is(p, ul) { margin: 20px 0 0; color: var(--ink-muted); line-height: 1.7; text-wrap: pretty; }
.doc h1 + p { margin-top: 32px; }
.doc .doc__date { color: var(--ink-subtle); font-size: 14px; letter-spacing: 0.005em; }
.doc ul { padding: 0; list-style: none; }
.doc li { padding-left: 20px; border-left: 1px solid var(--hairline-strong); }      /* a point stands on a thin rule, not on a bullet */
.doc li + li { margin-top: 14px; }
.doc a:not(.btn) { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.doc .btn { margin-top: 12px; }
.foot__legal { margin: 64px 0 28px; }

/* The contact form: a panel of glass beside the call in the connect part, over the hub of the
   rings. The rings show through it, and the sparks drift behind it.
   The line around a field is field-line, 3.6:1 on the canvas, so a field can be seen
   without its label; it brightens under the pointer and with the focus. */
.connect .wrap { display: grid; gap: 56px clamp(40px, 7vw, 112px); align-items: center; }
@media (min-width: 901px) { .connect .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); } }
.form { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); border: 1px solid; border-color: rgba(247, 248, 248, .2) rgba(247, 248, 248, .1) rgba(247, 248, 248, .06); border-radius: 12px; background: radial-gradient(120% 90% at 0% 0%, rgba(247, 248, 248, .09), transparent 62%), linear-gradient(rgba(247, 248, 248, .045), rgba(247, 248, 248, .02)); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.form h3 { margin: 0 0 2px; font-size: 18px; font-weight: 500; letter-spacing: -0.005em; }
.form__pair { display: grid; gap: 20px 16px; }
@media (min-width: 521px) { .form__pair { grid-template-columns: 1fr 1fr; } }
.form label, .form legend { display: grid; gap: 8px; padding: 0; color: var(--ink-muted); font-size: 14px; letter-spacing: 0.005em; }
.form :is(input[type="text"], input[type="email"], textarea) { width: 100%; min-height: 44px; padding: 9px 14px; border: 1px solid var(--field-line); border-radius: 8px; background: rgba(1, 1, 2, .28); color: var(--ink); font: 400 16px/1.5 var(--font); transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.form :is(input, textarea):hover { border-color: var(--ink-subtle); }
.form :is(input, textarea):focus { border-color: var(--ink); background: rgba(1, 1, 2, .5); }
.form :is(input, textarea):focus-visible { outline-offset: 2px; border-radius: 8px; }
.form textarea { min-height: 96px; resize: vertical; }
/* one choice out of four, as a row of small buttons */
.form__pick { min-width: 0; margin: 0; padding: 0; border: 0; }
.form__pick div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 400px) { .form__pick div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form__pick legend { display: block; margin-bottom: 8px; }
.form__pick legend span { margin-left: 6px; color: var(--ink-subtle); }
.form__pick label { position: relative; cursor: pointer; }
.form__pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.form__pick label span { display: flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--field-line); border-radius: 8px; color: var(--ink-muted); font-size: 15px; transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease); }
.form__pick label:hover span { border-color: var(--ink-subtle); color: var(--ink); }
.form__pick input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--canvas); font-weight: 500; }
.form__pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.form :is(.form__status, .form__note) { max-width: none; margin: 0; font-size: 14px; }
.form .form__status { color: var(--ink); }
.form .form__status:empty { display: none; }
.form .form__note { flex: 1 1 12em; color: var(--ink-subtle); }
.form a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .bar__links { display: none; }
  .hero { padding-bottom: 20svh; }
  .hero__lede { font-size: 17px; }
}

/* Load: the copy settles in. The field has its own entrance in js/hero.js. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: settle .7s var(--ease) backwards; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  @keyframes settle { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .ask__btn, .step h3, .step p, .form :is(input, textarea), .form__pick label span { transition: none; }
  .fig .live { animation: none; opacity: 0; }
}
