/* tridi landing — original tridi identity (tridi.io, 2022): black/white base, #ff5252 as the only accent */
:root {
  --black: #111111;
  --white: #ffffff;
  --paper: #f2f2f2;
  --accent: #ff5252;
  --grey-on-dark: #b5b5b5;  /* AA on --black */
  --grey-on-light: #555555; /* AA on --white and --paper */
  --line-dark: #2b2b2b;
  --line-light: #d4d4d4;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --body: "Space Grotesk", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.light { background: var(--white); color: var(--black); }
.cream { background: var(--paper); color: var(--black); }
.dark  { background: var(--black); color: var(--white); }

/* Fine white grid, as in the 2022 posts */
.grid-bg {
  background-color: var(--black);
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Type */
h1, h2 {
  font-family: var(--pixel);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(36px, 9vw, 76px); color: var(--white); max-width: 14ch; }
h2 { font-size: clamp(30px, 7vw, 54px); margin-bottom: 28px; max-width: 18ch; }
.dark h2 { color: var(--accent); }
.call h2 { max-width: 22ch; color: var(--white); }

.kicker, .label {
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 16px;
}
.kicker, .dark .label { color: var(--accent); }
.light .label, .cream .label { color: var(--grey-on-light); }

h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.sub-h {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 40px 0 14px;
}
p + p { margin-top: 14px; }
p { max-width: 62ch; }
.big { font-size: clamp(21px, 3.4vw, 28px); font-weight: 500; line-height: 1.3; margin-bottom: 18px; }
.big em { font-style: normal; color: var(--accent); }
.note { margin-top: 24px; font-size: 15px; color: var(--grey-on-light); }
.dark .note { color: var(--grey-on-dark); }
small { font-size: .82em; font-weight: 400; }

/* Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand img { height: 28px; width: auto; }
.toplink { font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--accent); padding: 6px 0 2px; }
.toplink:hover { color: var(--accent); }
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 32px; padding-bottom: 72px; }
.lede { margin-top: 28px; color: var(--grey-on-dark); max-width: 52ch; }
.lede strong { color: var(--white); }

.btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 36px;
  padding: 14px 22px;
  min-height: 48px;
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 16px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.btn:hover, .btn:focus-visible { background: var(--white); }

/* Steps */
.steps { list-style: none; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.n, .ph {
  font-weight: 700;
  font-size: 52px;
  line-height: .9;
  color: var(--accent);
}

/* Actor cards */
.cards { display: grid; gap: 16px; }
.card { background: var(--white); padding: 22px 20px; border-top: 4px solid var(--accent); }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card h3 small { display: block; font-weight: 500; font-size: 14px; color: var(--grey-on-light); }
.card dt { font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--grey-on-light); margin-top: 10px; }
.card dd { font-size: 16px; }

/* Stat */
.stat { display: grid; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.stat-n { font-weight: 700; font-size: clamp(64px, 16vw, 110px); line-height: .9; color: var(--accent); letter-spacing: -.03em; }
.stat-t { color: var(--grey-on-dark); max-width: 46ch; }

/* Node standard */
.grid { display: grid; gap: 22px; }
.item { border-left: 3px solid var(--accent); padding-left: 14px; }
.item p { font-size: 16px; }

.sla, .goals { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sla li, .goals li { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.sla li { background: var(--paper); }
.goals li { border: 1px solid var(--line-dark); }
.sla b, .goals b { font-weight: 700; font-size: 30px; line-height: 1.1; }
.goals b { color: var(--accent); }
.sla span, .goals span { font-size: 15px; line-height: 1.35; }
.goals span { color: var(--grey-on-dark); }

/* Modules */
.modules { display: grid; gap: 16px; }
.mod { background: var(--black); color: var(--white); padding: 22px 20px; }
.mod h3 { font-size: 26px; line-height: 1.1; margin-bottom: 10px; }
.mod h3 span { color: var(--accent); }
.mod p { font-size: 16px; color: var(--grey-on-dark); }

/* Money */
.bar { display: flex; height: 28px; margin: 28px 0 18px; gap: 2px; }
.bar span { display: block; }
.b-node { background: var(--black); }
.b-des  { background: var(--accent); }
.b-plat { background: #6b6b6b; }
.b-pay  { background: #a8a8a8; }
.b-res  { background: #d4d4d4; }
.money { width: 100%; border-collapse: collapse; font-size: 16px; }
.money td { padding: 10px 0; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.money td:nth-child(2), .money td:nth-child(3) { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.money td:nth-child(2) { font-weight: 700; }
.money i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.money small { display: block; padding-left: 20px; color: var(--grey-on-light); }

/* Phases */
.phases { list-style: none; display: grid; gap: 26px; }
.phases li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; }
.phases p { font-size: 16px; }
.phases .out { margin-top: 6px; font-weight: 700; }

/* Footer */
.foot {
  border-top: 1px solid var(--line-dark);
  padding: 22px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--grey-on-dark);
}
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .brand img { height: 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .sla { grid-template-columns: repeat(4, 1fr); }
  .goals { grid-template-columns: repeat(5, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; }
  .phases { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}

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

/* Designs catalogue (designs/) */
.toplinks { display: flex; gap: 18px; align-items: center; }
.toplink.current { color: var(--accent); }
.hero-short { min-height: 0; }
.hero-short .hero-body { padding-top: 40px; padding-bottom: 56px; }
.hero-short h1 { font-size: clamp(30px, 7vw, 56px); }
.catalogue { min-height: 0; align-items: start; padding: 48px 0 72px; }
.designs { display: grid; gap: 20px; margin-top: 8px; }
.design { background: var(--paper); display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
.design img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e6e6e6; }
.design-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.design .cat { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-on-light); margin-bottom: 6px; }
.design h3 { font-size: 21px; }
.design .blurb { font-size: 15px; color: var(--grey-on-light); margin-top: 4px; }
.specs { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 14px; margin: 14px 0 0; font-size: 14px; }
.specs dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-on-light); }
.specs dd { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.design .price { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-light); font-size: 15px; }
.design .price b { font-size: 24px; font-weight: 700; margin-right: 8px; }
.design .price span { color: var(--grey-on-light); font-size: 13px; }
.design .credit { font-size: 13px; color: var(--grey-on-light); margin-top: 8px; }
.design .credit a { color: var(--black); text-decoration-color: var(--accent); }
.design .credit abbr { text-decoration: none; border-bottom: 1px dotted var(--grey-on-light); cursor: help; }
.btn-s { margin-top: 16px; padding: 12px 18px; font-size: 14px; min-height: 44px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.hero-links .btn { margin-top: 36px; }
.textlink { margin-top: 36px; font-weight: 500; color: var(--white); text-decoration: none; border-bottom: 2px solid var(--accent); padding: 6px 0 2px; }
.textlink:hover { color: var(--accent); }
@media (min-width: 560px) { .designs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .designs { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
