/* Viaalink — site styles. Brand book v1.0:
   paper 70 · ink 25 · blue 4 · green 1. Blue only where something connects. */

@import url("fonts/fonts.css");

:root {
  --paper: #F4F2EB;
  --ink: #14161D;
  --deep-ink: #0B0D13;
  --link: #0038FF;
  --link-300: #7D93FF;
  --peer: #00A868;
  --hairline: #DED9CA;
  --muted: #6B6F7C;
  --body-on-ink: #C6C9D2;
  --display: "Space Grotesk", sans-serif;
  --text: "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--link); color: var(--paper); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ————— links: blue and underlined — always. Nav links draw the
   underlink on hover, because that is a connection being made. ————— */
a {
  color: var(--link);
  text-decoration: none;
  background-image: linear-gradient(var(--link), var(--link));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
}
nav a, .brand-link {
  background-image: none;
}
nav a {
  background-image: linear-gradient(var(--link), var(--link));
  background-size: 0% 2px;
  transition: background-size 0.18s ease;
}
nav a:hover, nav a:focus-visible {
  background-size: 100% 2px;
}

/* ————— nav ————— */
.top-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.top-nav .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--ink); background: none; }
.brand-link:hover { background: none; }
.brand-link img { height: 26px; width: auto; display: block; }
.brand-link .wm { height: 15px; width: auto; display: block; }
.top-nav nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav nav a { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.top-nav nav a:hover { color: var(--link); }
.addr-chip {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 4px 12px; white-space: nowrap;
}
.addr-chip .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--peer); margin-right: 7px; vertical-align: 1px;
}
@media (max-width: 760px) { .addr-chip { display: none; } }
@media (max-width: 520px) {
  .top-nav .wrap { padding: 0 16px; }
  .top-nav .wm { display: none; }
  .top-nav nav { gap: 14px; }
}

/* ————— hero ————— */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--hairline); }
.hero .wrap { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
.hero-mark { width: 100%; max-width: 420px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-mark { max-width: 320px; }
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04; letter-spacing: -0.02em;
}
.hero h1 .u {
  background-image: linear-gradient(var(--link), var(--link));
  background-repeat: no-repeat; background-position: 0 96%; background-size: 100% 6px;
}
.hero .sub { margin-top: 22px; font-size: 20px; color: var(--ink); max-width: 34em; }
.hero .pillars { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hero .pillars b { color: var(--ink); font-weight: 600; }

/* The one motion on the page: the bronze mark arrives — a fade and a small
   rise. Progressive enhancement — the mark is fully visible by default (and
   always under prefers-reduced-motion); the motion only runs when allowed. */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark {
    animation: arrive 0.8s ease-out both;
  }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ————— terminal proof ————— */
.terminal {
  margin-top: 40px; background: var(--deep-ink); color: var(--body-on-ink);
  border-radius: 10px; padding: 22px 26px;
  font-family: var(--mono); font-size: 14px; line-height: 1.9;
  overflow-x: auto;
}
.terminal .prompt { color: var(--muted); }
.terminal .cmd { color: var(--paper); }
.terminal .live { color: var(--peer); }
.terminal .url { color: var(--link-300); }
.terminal .cm { color: var(--muted); }

/* ————— sections ————— */
section { padding: 72px 0; border-bottom: 1px solid var(--hairline); }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; max-width: 22em;
}
.lede { margin-top: 16px; max-width: 44em; color: var(--ink); }

/* ————— product rows: ruled list, no cards ————— */
.rows { margin-top: 44px; border-top: 1px solid var(--hairline); }
.row {
  display: grid; grid-template-columns: 64px 260px 1fr auto; gap: 24px;
  align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--hairline);
}
.row .no { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row h3 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.row .tag { color: var(--ink); }
.row .meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: right; }
.row .status { font-family: var(--mono); font-size: 12.5px; color: var(--peer); text-align: right; }
@media (max-width: 860px) {
  .row { grid-template-columns: 40px 1fr; }
  .row .tag { grid-column: 2; }
  .row .meta, .row .status { grid-column: 2; text-align: left; }
}

/* ————— floor plan ————— */
.plan { margin-top: 44px; border: 1px solid var(--hairline); border-radius: 10px; padding: 28px; background: #fff; }
.plan svg { width: 100%; height: auto; display: block; }
.plan .cap { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.step { padding: 20px 0; border-top: 1px solid var(--hairline); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--link); }
.step h4 { font-family: var(--display); font-weight: 500; font-size: 18px; margin: 6px 0 4px; }
.step p { font-size: 15px; color: var(--muted); }
.step code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: var(--hairline); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ————— forge ————— */
.forge-note { margin-top: 16px; max-width: 44em; color: var(--muted); }

/* ————— dark band ————— */
.band-ink { background: var(--deep-ink); color: var(--body-on-ink); border-bottom: none; }
.band-ink h2 { color: var(--paper); }
.band-ink a { color: var(--link-300); background-image: linear-gradient(var(--link-300), var(--link-300)); }
.band-ink .kicker { color: var(--muted); }

/* ————— footer ————— */
footer { padding: 56px 0 40px; }
footer .big {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(24px, 3vw, 34px); color: var(--ink);
}
footer .big .u {
  background-image: linear-gradient(var(--link), var(--link));
  background-repeat: no-repeat; background-position: 0 96%; background-size: 100% 4px;
}
footer .cols { margin-top: 28px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
footer p, footer li { font-size: 14.5px; color: var(--muted); }
footer ul { list-style: none; }
footer li { padding: 2px 0; }
footer .fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--hairline); font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }

/* ————— brand page ————— */
.swatches { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.swatch { border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }
.swatch .chip { height: 92px; }
.swatch .info { padding: 12px 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.swatch .info b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(2, 1fr); } }

.logo-tiles { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { border-radius: 10px; padding: 44px 32px; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.tile.paper { background: var(--paper); border: 1px solid var(--hairline); }
.tile.ink { background: var(--deep-ink); }
.tile img { max-width: 100%; height: auto; }
.tile .dl { margin-top: 18px; text-align: center; font-family: var(--mono); font-size: 12px; }
@media (max-width: 760px) { .logo-tiles { grid-template-columns: 1fr; } }

table.names { width: 100%; margin-top: 36px; border-collapse: collapse; }
table.names th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-align: left; font-weight: 600;
  padding: 10px 14px; border-bottom: 1px solid var(--ink);
}
table.names td { padding: 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; font-size: 15px; }
table.names td:first-child { font-family: var(--display); font-weight: 500; font-size: 17px; white-space: nowrap; }
table.names td .was { color: var(--muted); font-family: var(--mono); font-size: 12px; }
table.names td .mono { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) {
  table.names, table.names tbody, table.names tr, table.names td { display: block; width: 100%; }
  table.names td { border-bottom: none; padding: 8px 0; }
  table.names tr { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  table.names td:first-child { padding-top: 14px; }
}

.type-sample { margin-top: 36px; border: 1px solid var(--hairline); border-radius: 10px; padding: 32px; }
.type-sample .face { font-size: 15px; color: var(--muted); font-family: var(--mono); margin-bottom: 8px; }
.type-sample .d500 { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -0.01em; }
.type-sample .d700 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.01em; }
.type-sample .mono-sample { font-family: var(--mono); font-size: 15px; }

.dodont { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dodont .col { border: 1px solid var(--hairline); border-radius: 10px; padding: 24px 26px; }
.dodont h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.dodont .do h4 { color: var(--peer); }
.dodont .dont h4 { color: var(--ink); }
.dodont li { font-size: 15px; padding: 5px 0; color: var(--ink); }
.dodont ul { list-style: none; }
@media (max-width: 760px) { .dodont { grid-template-columns: 1fr; } }

.back-link { font-family: var(--mono); font-size: 13px; }
