/* ==========================================================================
   Algoritmi — shared stylesheet
   Replaces the per-page inline styles + [style*=…] responsive retrofit that
   the single-page version used. Every page loads this one file.
   ========================================================================== */

:root {
  --ink:        #14171f;
  --ink-2:      #363d4a;
  --ink-3:      #4d5666;
  --muted:      #6b7688;
  --muted-2:    #97a1b3;
  --line:       #dbe0e9;
  --line-2:     #eceff4;
  --tint:       #fafbfc;
  --indigo:     #474aff;
  --indigo-d:   #3538e6;
  --indigo-t:   #eef0ff;
  --indigo-b:   #9fa2ff;
  --blue:       #479ef1;
  --blue-d:     #2b87dd;
  --cyan:       #47bef1;
  --cyan-l:     #8ec6f7;
  --coral:      #ff6a70;
  --coral-l:    #ff9a9e;
  --night:      #0b0d12;

  --sans: var(--font-sans), 'Roboto', system-ui, -apple-system, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;

  --wrap: 1200px;
  --pad: 48px;
  --header-h: 72px;
}

/* ---------- reset / base ---------- */

html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); }
img { max-width: 100%; }
* { box-sizing: border-box; }

.site {
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-d); }

/* ---------- layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); width: 100%; }

.sec { padding: 120px 0; scroll-margin-top: 84px; background: #fff; position: relative; }
.sec--tint  { background: var(--tint); }
.sec--wash  { background: var(--indigo-t); }
.sec--dark  { background: var(--night); color: #fff; overflow: hidden; }
.sec--tight { padding: 84px 0; }
.sec--flush-top { padding-top: 0; }

.sec--dark .lead,
.sec--dark .body { color: rgba(255, 255, 255, .68); }
.sec--dark .eyebrow { color: var(--cyan); }
.sec--dark .small { color: rgba(255, 255, 255, .5); }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--indigo-d);
  margin: 0 0 18px;
}
.eyebrow--sm { font-size: 11.5px; letter-spacing: .12em; margin-bottom: 14px; }

.h1 {
  margin: 0;
  font-size: clamp(38px, 6.6vw, 74px);
  font-weight: 700; line-height: 1.02; letter-spacing: -.035em;
  text-wrap: balance;
}
.h2 {
  margin: 0 0 16px;
  font-size: clamp(29px, 4.4vw, 46px);
  font-weight: 600; line-height: 1.12; letter-spacing: -.025em;
  text-wrap: balance;
}
.h3 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600; line-height: 1.25; letter-spacing: -.015em;
}
.h4 { margin: 0 0 8px; font-size: 17.5px; font-weight: 600; line-height: 1.3; }

.lead {
  margin: 0 0 48px;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6; color: var(--ink-3); max-width: 760px;
}
.body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-3); }
.body + .body { margin-top: 14px; }
.small { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted-2); }

.mono { font-family: var(--mono); }
.accent { color: var(--indigo); }
.sec--dark .accent { color: var(--cyan); }
.nowrap { white-space: nowrap; }

.pull {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600; line-height: 1.35; letter-spacing: -.02em;
  color: var(--ink); text-wrap: pretty;
}
.sec--dark .pull { color: #fff; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.sec--dark .rule { border-top-color: rgba(255, 255, 255, .14); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 8px 28px rgba(71, 74, 255, .28);
}
.btn--primary:hover { background: var(--indigo-d); color: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.btn--ghost:hover { background: var(--tint); color: var(--ink); }
.sec--dark .btn--ghost,
.hero .btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.sec--dark .btn--ghost:hover,
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 14px; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- grids ---------- */

.grid { display: grid; gap: 24px; }
/* Grid/flex items default to min-width:auto, so a wide child (the 520px-min
   pricing table) forces its track past the viewport. Let tracks shrink and
   leave the scrolling to .tbl-scroll. */
.grid > *, .stack > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--side { grid-template-columns: 1.25fr 1fr; gap: 44px; }
.grid--tight { gap: 16px; }
.grid--start { align-items: start; }
.grid--center { align-items: center; }

.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- cards ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 1px 2px rgba(20, 23, 31, .06);
}
.card--tint  { background: var(--tint); box-shadow: none; }
.card--wash  { background: var(--indigo-t); border-color: var(--indigo-b); box-shadow: none; }
.card--dark  { background: var(--night); border-color: transparent; color: #fff; }
.card--flush { padding: 0; overflow: hidden; }
.card--lg    { padding: 38px 40px; border-radius: 20px; }
.card--sm    { padding: 22px; }

.card--dark .body,
.card--dark .h4 + .body { color: rgba(255, 255, 255, .66); }

.sec--dark .card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}
.sec--dark .card .body { color: rgba(255, 255, 255, .66); }
.sec--dark .card .h3,
.sec--dark .card .h4 { color: #fff; }

/* clickable card */
a.card { color: inherit; display: block; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a.card:hover {
  color: inherit;
  border-color: var(--indigo-b);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 23, 31, .08);
}
.sec--dark a.card:hover { border-color: rgba(255, 255, 255, .32); box-shadow: none; }

/* ---------- stats ---------- */

.stat { display: flex; flex-direction: column; gap: 10px; }
.stat__n {
  font-family: var(--mono);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 500; line-height: 1; letter-spacing: -.03em;
  color: var(--ink);
}
.sec--dark .stat__n { color: #fff; }
.stat__n--accent { color: var(--indigo); }
.sec--dark .stat__n--accent { color: var(--cyan); }
.stat__n--sm { font-size: clamp(28px, 3.2vw, 38px); }
.stat__label { font-size: 15px; font-weight: 600; line-height: 1.35; }
.stat__note { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: -4px; }
.sec--dark .stat__note { color: rgba(255, 255, 255, .55); }

.statbar {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* ---------- pills / tags ---------- */

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: var(--indigo-t); color: var(--indigo-d);
}
.pill--blue  { background: #eff6fe; color: var(--blue-d); }
.pill--live  { background: #e7f7ee; color: #17794a; }
.pill--quiet { background: var(--line-2); color: var(--muted); }
.pill--solid { background: var(--indigo); color: #fff; }
.sec--dark .pill { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .82); }
.sec--dark .pill--solid { background: var(--indigo); color: #fff; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* The industry is the identity on the home and index cards — customers are
   not named there, so the vertical carries the heading weight. */
.vertical {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 600; line-height: 1.12; letter-spacing: -.025em;
}
.vertical--lg { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }

/* Compact vertical cards (5-across on the home proof grid). Flex column so a
   two-line industry name ("Construction supply") doesn't leave that card
   taller than its neighbours — the figures line pins to the bottom instead.
   Needs two classes to outrank a.card's `display:block`. */
.card.card--sm { display: flex; flex-direction: column; }
.card--sm .figures {
  margin: 0; padding-top: 16px; margin-top: auto;
  font-family: var(--mono); font-size: 13.5px;
  white-space: nowrap; color: #fff;
}

.tag {
  display: inline-block;
  font-size: 13.5px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px;
  background: var(--indigo-t); color: var(--indigo-d);
}
.tag--blue { background: #eff6fe; color: var(--blue-d); }

/* ---------- numbered / bordered lists ---------- */

.marks { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mark { display: flex; flex-direction: column; gap: 7px; }
.mark__n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--blue); }
.mark__t { font-size: 16.5px; font-weight: 600; }
.mark__d { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.sec--dark .mark__d { color: rgba(255, 255, 255, .58); }

.edge { border-left: 2px solid var(--indigo); padding-left: 26px; }
.edge--blue { border-left-color: var(--blue); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ticks li {
  position: relative; padding-left: 30px;
  font-size: 15.5px; line-height: 1.55; color: var(--ink-2);
}
.ticks li::before {
  content: ''; position: absolute; left: 4px; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--indigo);
}
.ticks--muted li::before { background: var(--muted-2); }
.sec--dark .ticks li { color: rgba(255, 255, 255, .74); }

/* strike-through list — "what you never set up" */
.gone { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.gone li {
  position: relative; padding-left: 26px;
  font-size: 15px; line-height: 1.5;
  color: var(--muted); text-decoration: line-through;
  text-decoration-color: rgba(107, 118, 136, .5);
}
.gone li::before {
  content: '—'; position: absolute; left: 0; top: 0;
  color: var(--muted-2); text-decoration: none;
}

/* code-ish token list — the six-app foundation */
.tokens { display: grid; gap: 9px; }
.token {
  font-family: var(--mono); font-size: 13.5px;
  padding: 10px 14px; border-radius: 8px;
  background: var(--indigo-t); color: var(--indigo-d);
  border: 1px solid rgba(71, 74, 255, .16);
}

/* ---------- flow (step chains) ---------- */

.flow { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.flow__step {
  flex: 1; min-width: 172px;
  background: var(--tint); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
}
.flow__step--flag {
  background: rgba(255, 106, 112, .09);
  border: 1.5px solid var(--coral-l);
}
.flow__arrow { align-self: center; color: var(--muted-2); font-size: 18px; }
.flow__n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--blue-d); }
.flow__t { margin-top: 8px; font-size: 17px; font-weight: 600; }
.flow__d { margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.sec--dark .flow__step { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.sec--dark .flow__step--flag { background: rgba(255, 106, 112, .12); border-color: var(--coral-l); }
.sec--dark .flow__n { color: var(--cyan-l); }
.sec--dark .flow__d { color: rgba(255, 255, 255, .55); }

/* vertical numbered chain — the flywheel */
.chain { display: grid; gap: 12px; counter-reset: chain; }
.chain__row {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--tint); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 24px;
}
.chain__n {
  flex: none; font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  color: var(--indigo-d); padding-top: 2px; min-width: 26px;
}
.chain__t { font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.chain__d { margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- comparison / table ---------- */

.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.tbl th {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.tbl td:first-child { font-weight: 600; }
.tbl td.num { font-family: var(--mono); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
/* Short two-column tables (company facts) — no min-width, so they fit inside a card
   on a phone instead of forcing the .tbl-scroll rail. */
.tbl--compact { min-width: 0; }
.tbl--compact th, .tbl--compact td { padding: 11px 0; }
.tbl--compact td:first-child { width: 7.5em; color: var(--muted); font-weight: 500; }
/* On a phone the label column leaves too little for the value, and an address breaks at
   its hyphens ("七日町1-56-" / "1"). Stack the label above instead — the value then gets
   the full card width. */
@media (max-width: 520px) {
  .tbl--compact, .tbl--compact tbody, .tbl--compact tr, .tbl--compact td { display: block; width: auto; }
  .tbl--compact tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl--compact tr:last-child { border-bottom: 0; }
  .tbl--compact td { padding: 0; border-bottom: 0; }
  .tbl--compact td:first-child { width: auto; margin-bottom: 3px; font-size: 12.5px; }
}
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }

/* ---------- quotes ---------- */

.quote { display: flex; flex-direction: column; gap: 22px; }
.quote__text { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--ink); }
.quote__text--lg { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.quote__by { display: flex; align-items: center; gap: 13px; }
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.quote__avatar--img { padding: 0; overflow: hidden; background: none; }
.quote__avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote__name { font-size: 15.5px; font-weight: 700; }
.quote__role { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 156px 0 118px;
  min-height: min(100vh, 860px);
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 22px;
}
.hero__sub {
  margin: 26px 0 0; max-width: 660px;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.55;
  color: rgba(255, 255, 255, .68);
}
.hero__cta { margin-top: 36px; }
.hero__marks { margin-top: 52px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* compact hero for interior pages */
.hero--page { min-height: 0; padding: 148px 0 84px; }
.hero--page .h1 { font-size: clamp(34px, 5.2vw, 58px); }

.orb { position: absolute; pointer-events: none; will-change: transform; }
.orb__fill { width: 100%; height: 100%; border-radius: 50%; filter: blur(30px); }
.orb--a { right: -160px; top: -130px; width: 680px; height: 680px; }
.orb--a .orb__fill {
  background: var(--gradient-brand, linear-gradient(110deg, #474aff, #479ef1 55%, #47bef1));
  opacity: .2; animation: orbA 16s ease-in-out infinite;
}
.orb--b { left: -170px; bottom: 40px; width: 470px; height: 470px; }
.orb--b .orb__fill {
  background: radial-gradient(circle, #479ef1, transparent 68%);
  opacity: .16; animation: orbB 22s ease-in-out infinite;
}

@keyframes orbA { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(-46px,34px) scale(1.09) } }
@keyframes orbB { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(42px,-30px) scale(1.13) } }

/* ---------- ticker ---------- */

.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 56px; display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(11, 13, 18, .4);
}
.ticker__track {
  display: flex; gap: 36px; white-space: nowrap; padding-left: 36px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em;
  color: rgba(255, 255, 255, .5);
  animation: marquee 34s linear infinite;
}
.ticker__track > span { flex: none; }
.ticker b { font-weight: 400; color: rgba(255, 255, 255, .78); }
.ticker i { font-style: normal; color: var(--indigo); }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- site header ---------- */

.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(11, 13, 18, 0);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.hdr.is-solid {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-2);
  box-shadow: 0 1px 2px rgba(20, 23, 31, .06);
}
.hdr__brand { display: flex; align-items: center; gap: 10px; }
.hdr__brand img { height: 23px; }
.hdr__word {
  font-size: 18px; font-weight: 600; letter-spacing: -.01em;
  color: #fff; transition: color .35s ease;
}
.hdr.is-solid .hdr__word { color: var(--ink); }

.hdr__nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.hdr__link { color: rgba(255, 255, 255, .78); transition: color .35s ease; }
.hdr__link:hover, .hdr__link.is-active { color: #fff; }
.hdr.is-solid .hdr__link { color: var(--ink-3); }
.hdr.is-solid .hdr__link:hover,
.hdr.is-solid .hdr__link.is-active { color: var(--ink); }
.hdr__link.is-active { font-weight: 600; }

/* Language switcher. Bordered in currentColor so the pill tracks the header's own
   light/dark state without needing a second rule for .is-solid. */
.hdr__lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, .78); transition: color .35s ease;
}
.hdr__lang:hover { color: #fff; }
.hdr__lang svg { display: block; flex: none; }
.hdr.is-solid .hdr__lang { color: var(--ink-3); }
.hdr.is-solid .hdr__lang:hover { color: var(--ink); }

.hdr__toggle {
  display: none; background: none; border: 0; padding: 8px; margin: -8px -6px;
  cursor: pointer; color: #fff; line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition: color .35s ease;
}
.hdr.is-solid .hdr__toggle { color: var(--ink); }
.hdr__toggle svg { display: block; width: 26px; height: 26px; overflow: visible; }
.hdr__toggle svg line { transition: transform .25s ease, opacity .2s ease; transform-origin: center; transform-box: fill-box; }
.hdr__toggle.is-open svg line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hdr__toggle.is-open svg line:nth-child(2) { opacity: 0; }
.hdr__toggle.is-open svg line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  transition: width .12s linear;
}

/* ---------- site footer ---------- */

.ftr { background: var(--night); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); padding: 64px 0 40px; }
.ftr__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.ftr__brand { max-width: 330px; }
.ftr__mark { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ftr__mark img { height: 24px; }
.ftr__mark span { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.ftr__blurb { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .55); }
.ftr__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.ftr__col { display: flex; flex-direction: column; gap: 12px; }
.ftr__h {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .4); margin-bottom: 2px;
}
.ftr__col a { font-size: 14.5px; color: rgba(255, 255, 255, .7); }
.ftr__col a:hover { color: #fff; }
.ftr__base {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.ftr__base span { font-size: 13px; color: rgba(255, 255, 255, .42); }
.ftr__base .mono { font-size: 12px; letter-spacing: .06em; }

/* ---------- industry page bits ---------- */

.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.crumb a { color: rgba(255, 255, 255, .6); }
.crumb a:hover { color: #fff; }
.crumb span { color: rgba(255, 255, 255, .35); margin: 0 8px; }

.meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--mono); font-size: 13px; }
.meta div { color: rgba(255, 255, 255, .55); }
.meta b { font-weight: 500; color: #fff; }

/* Case-study photography */
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.sec--dark .shot { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot__cap { padding: 14px 18px; }
.shot__cap .h4 { margin-bottom: 2px; }

.apps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.app {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  background: #fff; font-size: 15.5px; font-weight: 500; line-height: 1.4;
}
.app--more {
  border-style: dashed; color: var(--muted); font-family: var(--mono);
  font-size: 14px; display: flex; align-items: center; justify-content: center;
}

.nextnav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 30px; margin-top: 12px;
}

/* ---------- reveal ---------- */

[data-reveal] { opacity: 1; }
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .orb__fill, .ticker__track { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* nav collapses before the layout so the 5-item nav never crowds the logo */
@media (max-width: 900px) {
  .hdr__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hdr__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 20px;
    background: rgba(11, 13, 18, .97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
    display: none;
  }
  .hdr__nav.is-open { display: flex; }
  .hdr__nav .hdr__link {
    display: block; padding: 15px 2px; font-size: 16px;
    color: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  /* In the drawer the switcher reads as another row, not a pill. */
  .hdr__nav .hdr__lang,
  .hdr.is-solid .hdr__nav .hdr__lang {
    border: 0; border-radius: 0; gap: 8px;
    padding: 15px 2px; font-size: 16px;
    color: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .hdr__nav .hdr__lang svg { width: 15px; height: 15px; }
  .hdr.is-solid .hdr__nav .hdr__link { color: rgba(255, 255, 255, .86); }
  .hdr__nav .btn {
    margin-top: 16px; text-align: center; font-size: 16px;
    padding: 15px 18px; box-shadow: none;
  }
}

@media (max-width: 1000px) {
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--side { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }

  .sec { padding: 68px 0; }
  .sec--tight { padding: 52px 0; }
  .hero { padding: 118px 0 96px; min-height: 0; }
  .hero--page { padding: 112px 0 60px; }

  .grid { gap: 16px; }
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }

  .card { padding: 24px; }
  .card--lg { padding: 26px 24px; }

  .flow__arrow { display: none; }
  .flow__step { min-width: 0; }

  .edge { padding-left: 18px; }
  .chain__row { padding: 18px; gap: 12px; }

  .ftr__cols { gap: 32px; }
  .ftr__top { gap: 34px; }
  .ftr__base { margin-top: 34px; }

  .meta { gap: 8px 18px; }
}

@media (max-width: 420px) {
  .statbar { grid-template-columns: 1fr; }
}
