/* AlgoNest — site styles.
   Light, technical, drawing-board aesthetic. Warm paper, ink, one hot accent.
   No glassmorphism, no purple gradients, no floating orbs. */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --paper: #f4f2ed;
  --paper-2: #eceae3;
  --card: #ffffff;
  --ink: #14171c;
  --ink-2: #39414d;
  --muted: #6f7887;
  --line: #ddd8ce;
  --line-2: #c9c3b6;

  --orange: #ff5a1e;
  --orange-dark: #d4400b;
  --orange-wash: #fff1e9;
  --green: #0f8f6a;
  --green-wash: #e8f6f1;
  --blue: #2f68ea;
  --blue-wash: #ecf1ff;
  --steel: #171b22;

  --sh-1: 0 1px 1px rgba(20, 23, 28, .04), 0 2px 4px rgba(20, 23, 28, .05);
  --sh-2: 0 2px 3px rgba(20, 23, 28, .04), 0 8px 16px rgba(20, 23, 28, .06), 0 18px 36px rgba(20, 23, 28, .05);
  --sh-3: 0 4px 8px rgba(20, 23, 28, .05), 0 16px 30px rgba(20, 23, 28, .08), 0 40px 70px rgba(20, 23, 28, .09);
  --sh-hot: 0 10px 24px rgba(255, 90, 30, .28), 0 2px 4px rgba(212, 64, 11, .3);

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1220px;
  --r: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Graph-paper ground. Two grids: 8 mm fine, 40 mm coarse. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 23, 28, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 28, .045) 1px, transparent 1px),
    linear-gradient(rgba(20, 23, 28, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 28, .022) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3.7vw, 44px); }
h3 { font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tint { background: linear-gradient(180deg, transparent, var(--paper-2) 12%, var(--paper-2) 88%, transparent); }

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 0;
  border-top: 2px solid var(--orange);
}

.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.mono { font-family: var(--mono); }

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.2, .8, .3, 1), box-shadow .16s, background .16s;
  box-shadow: var(--sh-1);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn--hot { --btn-bg: var(--orange); --btn-fg: #fff; box-shadow: var(--sh-hot); }
.btn--hot:hover { --btn-bg: #ff6a33; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { background: #fff; }
.btn--big { padding: 16px 28px; font-size: 17px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: #fff;
  white-space: nowrap;
}
.tag--beta { color: var(--green); border-color: rgba(15, 143, 106, .35); background: var(--green-wash); }
.tag--soon { color: var(--orange-dark); border-color: rgba(255, 90, 30, .35); background: var(--orange-wash); }
.tag--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(8px);
  background: rgba(244, 242, 237, .82);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(20, 23, 28, .05); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--sh-1); }
.brand b { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .1em; display: block; margin-top: -3px; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { background: rgba(20, 23, 28, .05); color: var(--ink); }
.nav a.is-current { color: var(--orange-dark); }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }

/* Scroll-progress cut line under the header. */
.cutline { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.cutline i { position: absolute; inset: 0 100% 0 0; background: linear-gradient(90deg, var(--blue), var(--orange) 22%, var(--orange)); }

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

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* The kerf runs under the last words like a cut, with a pierce point where the
   torch fired. Same idea as the logo, without looking like a struck-out typo. */
.hero h1 .cut {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 0 7px;
  animation: kerf-cut 1.1s .55s cubic-bezier(.7, 0, .3, 1) forwards;
}
.hero h1 .cut::before {
  content: "";
  position: absolute;
  left: -16px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--orange);
  opacity: 0;
  animation: pierce .25s .4s forwards;
}
@keyframes kerf-cut { to { background-size: 100% 7px; } }
@keyframes pierce { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

.hero p.lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hero-facts span { display: flex; align-items: center; gap: 7px; }
.hero-facts span::before { content: ""; width: 5px; height: 5px; background: var(--green); border-radius: 50%; }

/* the plate viewport */
.plate-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-3);
  padding: 14px;
  transform-style: preserve-3d;
}
.plate-frame::after {
  content: "";
  position: absolute;
  inset: auto 18px -22px 18px;
  height: 40px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(20, 23, 28, .16), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.plate-frame svg { display: block; width: 100%; height: auto; border-radius: 8px; background: #0e1116; }
.plate-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 10px 4px 2px;
}
.plate-caption b { color: var(--ink); font-weight: 600; }

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

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--sh-1);
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s;
  position: relative;
}
.card:hover { box-shadow: var(--sh-2); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange-dark);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 14px;
}

/* pointer-tilt depth, applied by JS */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt > * { transform: translateZ(18px); }

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  box-shadow: var(--sh-1);
}
.stat b { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.03em; display: block; line-height: 1.1; }
.stat span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- algorithm section ---------- */

.algo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .algo-grid { grid-template-columns: 1fr; } }

.nfp-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-3);
  padding: 14px;
  position: sticky;
  top: 96px;
}
.nfp-stage canvas { display: block; width: 100%; height: auto; border-radius: 8px; background: #0e1116; cursor: grab; touch-action: none; }
.nfp-stage canvas:active { cursor: grabbing; }
.nfp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 12px 4px 2px; }
.nfp-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }

.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 28px; }
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--sh-1);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.step:hover { transform: translateX(4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-dark);
  background: var(--orange-wash);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-self: start;
  height: 30px;
}
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

/* ---------- strategy / savings ---------- */

.strategy { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.strat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s;
}
.strat:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.strat svg { display: block; width: 100%; height: auto; background: #0e1116; }
.strat__body { padding: 22px 24px 24px; }
.strat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.strat h3 { font-size: 19px; }
.strat p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

.calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.calc label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.calc .row { margin-bottom: 20px; }
.calc output { font-family: var(--display); font-weight: 600; color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--orange); height: 22px; }
.calc__out { background: var(--paper-2); border-radius: 12px; padding: 24px; border: 1px solid var(--line); }
.calc__big { font-family: var(--display); font-size: clamp(38px, 5vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--orange-dark); }
.calc__row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.calc__row:last-child { border-bottom: 0; }

/* ---------- feature table ---------- */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.fgroup { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); padding: 22px 24px; }
.fgroup h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fgroup h3 svg { width: 20px; height: 20px; flex: none; }
.fgroup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fgroup li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: baseline; font-size: 15.5px; color: var(--ink-2); }
.fgroup li::before { content: "—"; color: var(--line-2); font-family: var(--mono); }
.fgroup li[data-s="beta"]::before { content: "✓"; color: var(--green); font-weight: 700; }
.fgroup li[data-s="soon"]::before { content: "◔"; color: var(--orange); }

/* ---------- shots ---------- */

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 22px; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s; }
.shot:hover { transform: translateY(-5px) scale(1.006); box-shadow: var(--sh-3); }
.shot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); background: #0e1116; }
.shot figcaption { padding: 14px 18px 16px; font-size: 15px; color: var(--ink-2); }
.shot figcaption b { font-family: var(--display); display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- timeline ---------- */

.rail { display: grid; gap: 0; margin-top: 32px; }
.rail-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.rail-item:last-child { border-bottom: 1px solid var(--line); }
.rail-item time { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .04em; padding-top: 3px; }
.rail-item.is-now time { color: var(--orange-dark); font-weight: 600; }
.rail-item h4 { font-size: 18px; margin-bottom: 4px; }
.rail-item p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 620px) { .rail-item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- CTA band ---------- */

.band {
  background: var(--steel);
  color: #e7e9ee;
  border-radius: 20px;
  padding: clamp(32px, 5vw, 60px);
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
}
.band h2 { color: #fff; }
.band p { color: #aeb5c2; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(90% 120% at 90% 10%, #000, transparent 70%);
  pointer-events: none;
}
.band > * { position: relative; z-index: 1; }

/* ---------- forms ---------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 13.5px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }

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

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: start; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 14px; }
.price--hot { border-color: var(--orange); box-shadow: var(--sh-3); position: relative; }
.price--hot::before {
  content: "Most popular";
  position: absolute;
  top: -11px; left: 28px;
  background: var(--orange); color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.price__amount { font-family: var(--display); font-size: 42px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.price__amount small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; color: var(--ink-2); }
.price li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.price li::before { content: "✓"; color: var(--green); font-weight: 700; }
.price .btn { justify-content: center; margin-top: auto; }

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

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 48px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--orange-dark); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

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

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .3, 1), transform .7s cubic-bezier(.2, .8, .3, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero h1 .cut { animation: none; background-size: 100% 7px; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Badges inside the price cards must not stretch to the card width. */
.price > .tag { align-self: flex-start; }

/* Anchor jumps must clear the sticky header. */
section[id], [id] { scroll-margin-top: 92px; }

/* ---------- post-processor list ---------- */

.postbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 30px 0 18px; }
.postbar input {
  flex: 1 1 300px;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.postbar input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.postbar__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .03em;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.chip b { color: var(--ink); font-weight: 600; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-on b { color: #fff; }

.posttable { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); overflow-x: auto; }
.posttable table { border-collapse: collapse; width: 100%; min-width: 620px; }
.posttable th, .posttable td { text-align: left; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.posttable thead th {
  position: sticky;
  top: 70px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  z-index: 2;
}
.posttable tbody tr:last-child td { border-bottom: 0; }
.posttable tbody tr:hover { background: var(--paper); }
.posttable td.name { font-weight: 500; }
.posttable td.code { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); }
.posttable #post-empty { padding: 24px 18px; margin: 0; }

/* ---------- photography ---------- */

.photo {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: var(--card);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s;
}
.photo:hover { box-shadow: var(--sh-3); }
.photo img { display: block; width: 100%; height: auto; background: var(--paper-2); }
.photo figcaption {
  padding: 13px 18px 15px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.photo figcaption b { color: var(--ink); font-family: var(--display); font-weight: 600; }
.photo--band img { aspect-ratio: 24 / 8; object-fit: cover; }
.photo--wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.photo--tall img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 720px) {
  .photo--band img { aspect-ratio: 16 / 10; }
}

/* A photo sitting inside the dark call-to-action band. */
.band--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (max-width: 860px) { .band--split { grid-template-columns: 1fr; } }
.band .photo { border-color: #2b323d; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.band .photo figcaption { background: #1f242c; border-top-color: #2b323d; color: #9aa3b2; }
.band .photo figcaption b { color: #e7e9ee; }
