/* Jordan Labs, LLC — instrument-monograph identity.
   Drafting-bone paper, Fraunces editorial display, IBM Plex body/mono,
   a single brass-amber signal — the color of value moving between agents. */

:root {
  --paper: #EFEDE7;
  --panel: #F5F3ED;
  --card: #FCFBF8;
  --ink: #191A1C;
  --ink-soft: #3B3D42;
  --slate: #64666E;
  --line: #DCD7CB;
  --line-2: #CBC5B6;
  --signal: #A85F14;
  --signal-bright: #C6892F;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 70rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

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

a { color: inherit; }
.nowrap { white-space: nowrap; }

/* Accessibility: skip link + visible focus */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Shared eyebrow / mono label — the monograph voice */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7ch;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 540;
  font-size: 1.12rem;
  letter-spacing: -0.005em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
}
.brand-suffix { color: var(--slate); font-weight: 440; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 1.9rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--slate);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); border-color: var(--signal); }

/* ---------- Stage: hero fills the viewport so the page reads as intentional ---------- */
.stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 4.25rem);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Hero ---------- */
.hero { text-align: center; }
.hero .eyebrow { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.hero-title {
  font-family: var(--display);
  font-weight: 460;
  font-size: clamp(2.6rem, 1.7rem + 4.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0 auto;
  max-width: 16ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 460;
  color: var(--signal);
}
.hero-lead {
  font-size: clamp(1.075rem, 1rem + 0.55vw, 1.32rem);
  color: var(--slate);
  margin: 1.25rem auto 0;
  max-width: 42ch;
}

/* ---------- Signature: the instrument plate ---------- */
.artifact {
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  max-width: 760px;
}
.plate {
  position: relative;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--line) 55%, transparent) 23px 24px) padding-box;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(25, 26, 28, 0.02), 0 18px 40px -32px rgba(25, 26, 28, 0.4);
}
.plate-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
}
.plate-id { color: var(--ink); font-weight: 500; }
.plate-label { color: var(--slate); }
.plate-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55ch;
  color: var(--signal);
}
.plate-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal-bright) 70%, transparent);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal-bright) 55%, transparent); }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.plate-body {
  position: relative;
  padding: clamp(0.75rem, 3vw, 1.75rem) clamp(0.75rem, 3vw, 1.75rem) clamp(0.5rem, 2vw, 1rem);
}

/* Corner registration ticks */
.tick {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-2);
}
.tick--tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.tick--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.tick--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.tick--br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.net {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.artifact figcaption {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--slate);
}

/* Figure elements: dark agents, amber value */
.edge-ring { fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 3 4.5; stroke-linejoin: round; }
.edge-spoke { stroke: var(--line-2); stroke-width: 1.1; }
.edge-exchange { stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; }
.edge-return { fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 2 6.5; stroke-linecap: round; opacity: 0.45; }
.node-sat { fill: var(--ink); stroke: var(--card); stroke-width: 1.5; }
.node-hub-ring { fill: var(--card); stroke: var(--signal); stroke-width: 2.4; }
.node-hub-core { fill: var(--signal); }

/* Value tokens travelling the exchange edges — the quiet economy */
.token { fill: var(--signal-bright); }
.token--a { offset-path: path("M 270 200 L 380 200"); animation: flow 2.6s linear infinite; }
.token--b { offset-path: path("M 520 200 L 630 200"); animation: flow 2.6s linear infinite; animation-delay: 0.8s; }
.token--c { offset-path: path("M 665 260.6 Q 450 400 235 260.6"); animation: flow 4.8s linear infinite; animation-delay: 1.4s; }
@keyframes flow {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}

/* ---------- Sections below the fold ---------- */
.section {
  padding-block: clamp(3.75rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--panel); }

.section-title {
  font-family: var(--display);
  font-weight: 480;
  font-size: clamp(1.95rem, 1.5rem + 2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.014em;
  margin: 0 0 1.5rem;
}

/* Focus cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
  margin-top: 2.5rem;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 1.6rem 1.5rem 1.65rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--signal) 55%, var(--line-2));
  box-shadow: 0 16px 34px -26px rgba(25, 26, 28, 0.55);
}
.card-siglum {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.card p { margin: 0; color: var(--slate); font-size: 0.97rem; }

/* About + founder */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-copy p:not(.eyebrow) { color: var(--ink-soft); max-width: 56ch; }
.about-copy p + p { margin-top: 1.1rem; }

.founder-card {
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 1.75rem 1.6rem;
  background: var(--card);
}
.founder-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.founder-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -0.005em;
  margin: 0;
}
.founder-role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0.3rem 0 1rem;
}
.founder-bio { margin: 0; color: var(--slate); font-size: 0.95rem; }

/* Contact */
.contact-lead { color: var(--ink-soft); max-width: 48ch; margin: 0 0 1.5rem; }
.contact-mail {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  font-weight: 460;
  letter-spacing: -0.01em;
  margin: 0;
}
.contact-mail a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--signal) 40%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.contact-mail a:hover { border-color: var(--signal); }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem;
  background: var(--paper);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--slate);
}
.foot-brand { color: var(--ink); }
.foot-meta a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot-meta a:hover { border-color: var(--signal); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 0.09s);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 46rem) {
  .about-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
}
@media (max-width: 32rem) {
  .site-nav { display: none; }
  .eyebrow { font-size: 0.68rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .token { animation: none; offset-distance: 55%; }
  .plate-dot { animation: none; }
  .card { transition: none; }
}
