/* security.armohub.ch: ArMoHub's security initiatives, in the "Noir Champagne" brand of the LinkedIn page.
   Near-black, one champagne accent (a signal, never a fill), Instrument Serif headlines, Inter Tight text,
   JetBrains Mono labels, thin gold rules instead of boxes. Fonts: /fonts/security.css. */

:root {
  --obsidian: #07080b;
  --graphite: #111318;
  --slate: #1a1d24;
  --line: #262a33;
  --gold: #d4b26a;
  --gold-hi: #ecdcae;
  --gold-lo: #9c7d3c;
  --ivory: #f2eee6;
  --text: #cfccc4;
  --muted: #8e919b;
  --signal: #47d7ff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --gold-grad: linear-gradient(100deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  --nav: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 12px);
  background: var(--obsidian);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  background:
    radial-gradient(70% 50% at 85% 0%, rgb(212 178 106 / 0.12), transparent 60%),
    radial-gradient(60% 50% at 0% 60%, rgb(71 215 255 / 0.04), transparent 60%),
    var(--obsidian);
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* A faint grid, strongest near the top right. */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 75% 20%, #000, transparent);
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

img, svg, video {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--obsidian);
}

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

.wrap {
  width: min(1180px, 100% - 2 * clamp(20px, 5vw, 56px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--obsidian);
}

/* ── Type ── */
.mono,
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
}

.serif,
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3rem, 1.6rem + 5.4vw, 6.4rem);
  line-height: 0.98;
}

h2 {
  max-width: 22ch;
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.8rem);
  line-height: 1.04;
}

h1 em,
h2 em,
.gold-em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  color: var(--ivory);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  max-width: 58ch;
  margin-top: 24px;
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.3rem);
  line-height: 1.55;
}

.rule {
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: clamp(20px, 4vw, 48px);
  background: rgb(7 8 11 / 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand .word {
  font: 400 1.6rem/1 var(--serif);
}

.brand .word i {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand .mono {
  color: var(--muted);
  font-size: 0.7rem;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav nav a,
.nav .back {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.nav nav a:hover,
.nav .back:hover {
  color: var(--gold-hi);
}

.nav .back {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Buttons, chips, badges ── */
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-gold {
  background: var(--gold-grad);
  color: var(--obsidian);
  box-shadow: 0 18px 40px -20px rgb(212 178 106 / 0.8);
}

.btn-line {
  border: 1px solid rgb(212 178 106 / 0.55);
  color: var(--gold-hi);
}

.btn-quiet {
  border: 1px solid var(--line);
  color: var(--text);
}

a.btn:hover {
  transform: translateY(-2px);
}

.btn-line:hover,
.btn-quiet:hover {
  background: rgb(212 178 106 / 0.08);
}

.btn[aria-disabled="true"] {
  cursor: default;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 500 0.72rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.chip-plain::before {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(100deg, rgb(236 220 174 / 0.16), rgb(212 178 106 / 0.06));
  box-shadow: inset 0 0 0 1.5px var(--gold);
  color: var(--gold-hi);
  font: 600 0.78rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge::before {
  content: "★";
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--nav) + clamp(56px, 9vw, 120px)) 0 clamp(64px, 8vw, 110px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}

.crumbs {
  margin-bottom: 26px;
  color: var(--muted);
}

.crumbs a {
  color: var(--gold);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--gold-hi);
}

.tagline {
  max-width: 34ch;
  margin-top: 22px;
  color: var(--ivory);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

.quote {
  max-width: 52ch;
  margin-top: 22px;
  padding-left: 18px;
  border-left: 1px solid var(--gold);
  color: var(--text);
  font: italic 400 1.35rem/1.4 var(--serif);
}

.hero-mark {
  justify-self: center;
  width: min(420px, 80%);
  filter: drop-shadow(0 0 60px rgb(212 178 106 / 0.18));
}

/* ── Sections ── */
.section {
  padding-block: clamp(72px, 9vw, 130px);
  border-top: 1px solid rgb(255 255 255 / 0.04);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.section-head .lead {
  margin-top: 0;
}

/* Cards in a grid: one idea each. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 255 255 / 0.018);
}

.card .num {
  font: 400 2.2rem/1 var(--serif);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card p,
.card li {
  color: var(--text);
  font-size: 1rem;
}

.card ul {
  display: grid;
  gap: 6px;
  padding-left: 1.1em;
}

.card li::marker {
  color: var(--gold);
}

/* The problem → the missing piece. */
.pp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pp > div {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.pp > div:last-child {
  border-color: rgb(212 178 106 / 0.55);
  box-shadow: 0 0 60px -30px var(--gold);
}

.pp .mono {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
}

.pp > div:last-child .mono {
  color: var(--gold);
}

.pp p {
  color: var(--ivory);
  font-size: 1.2rem;
  line-height: 1.45;
}

/* Numbered steps. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ivory);
  font-weight: 600;
}

.steps li::before {
  content: counter(step);
  font: 400 2.4rem/1 var(--serif);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps li span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Without / with. */
.compare {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.compare > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare > div + div {
  border-top: 1px solid var(--line);
}

.compare p {
  padding: 18px 24px;
  font-size: 1rem;
}

.compare p + p {
  border-left: 1px solid var(--line);
  color: var(--ivory);
}

.compare .head p {
  color: var(--muted);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare .head p + p {
  color: var(--gold);
}

.verdicts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.verdicts li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font: 500 0.8rem/1.2 var(--mono);
}

/* Illustrations (diagrams, not screenshots). */
.art {
  width: 100%;
  height: auto;
  overflow: visible;
}

.art .box {
  fill: rgb(17 19 24 / 0.9);
  stroke: var(--line);
  stroke-width: 1.4;
}

.art .hot {
  stroke: var(--gold);
}

.art .wire {
  fill: none;
  stroke: rgb(212 178 106 / 0.7);
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
  animation: march 1.6s linear infinite;
}

.art .t {
  fill: var(--ivory);
  font: 600 13px var(--sans);
}

.art .s {
  fill: var(--muted);
  font: 400 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art .g {
  fill: var(--gold-hi);
}

.art .dot {
  fill: var(--gold);
}

@keyframes march {
  to {
    stroke-dashoffset: -22;
  }
}

/* The film: a cover with a play button; the video loads only on request. */
.film {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.film video {
  display: block;
  width: 100%;
  height: 100%;
}

.film-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  cursor: pointer;
  color: var(--ivory);
  font: inherit;
  background: linear-gradient(180deg, rgb(7 8 11 / 0.2), rgb(7 8 11 / 0.65)), url("cribldesigner/media/poster-1920.webp") center / cover;
}

.film-cover[hidden] {
  display: none;
}

.film-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--obsidian);
  box-shadow: 0 0 0 10px rgb(212 178 106 / 0.18);
  transition: transform 0.2s var(--ease);
}

.film-cover:hover .film-play,
.film-cover:focus-visible .film-play {
  transform: scale(1.06);
}

.film-play svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.film-label {
  display: grid;
  gap: 4px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgb(7 8 11 / 0.7);
  backdrop-filter: blur(6px);
  text-align: center;
}

.film-label span {
  color: var(--muted);
  font-size: 0.9rem;
}

.film-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Hub: initiatives, episodes, LinkedIn posts, founders ── */
.initiatives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.initiative {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgb(255 255 255 / 0.018);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.initiative:hover {
  border-color: rgb(212 178 106 / 0.6);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -36px rgb(212 178 106 / 0.5);
}

.initiative.featured {
  border-color: rgb(212 178 106 / 0.55);
  background: linear-gradient(160deg, rgb(212 178 106 / 0.09), rgb(255 255 255 / 0.015) 55%);
}

.initiative h3 {
  font: 400 clamp(1.9rem, 1.4rem + 1.2vw, 2.5rem)/1.05 var(--serif);
}

.initiative h3 i {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.initiative p {
  color: var(--text);
}

.initiative .go {
  margin-top: 6px;
  color: var(--gold-hi);
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.initiative .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.initiative .mono {
  color: var(--muted);
  font-size: 0.7rem;
}

.initiative .badge {
  font-size: 0.68rem;
  padding: 8px 14px;
}

.initiative .go {
  align-self: end;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tile {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.018);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.tile:hover {
  border-color: rgb(212 178 106 / 0.6);
  transform: translateY(-3px);
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--obsidian);
}

.tile.wide img {
  aspect-ratio: 16 / 9;
}

.tile div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 22px 24px;
}

.tile .mono {
  color: var(--gold);
  font-size: 0.7rem;
}

.tile p {
  color: var(--ivory);
  font-weight: 600;
  line-height: 1.4;
}

.tile span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.episodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.founders {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.founder {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ivory);
  text-decoration: none;
}

.founder img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--obsidian), 0 0 0 4.5px var(--gold);
}

.founder strong {
  display: block;
  font-weight: 600;
}

.founder span {
  color: var(--muted);
  font-size: 0.95rem;
}

.founder:hover strong {
  color: var(--gold-hi);
}

/* Small print: honest scope, trademarks. */
.note {
  max-width: 80ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.callout {
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgb(212 178 106 / 0.45);
  border-radius: 28px;
  background: radial-gradient(80% 120% at 100% 0%, rgb(212 178 106 / 0.12), transparent 60%), rgb(255 255 255 / 0.015);
}

/* ── Footer ── */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot a {
  color: var(--text);
  text-decoration: none;
}

.foot a:hover {
  color: var(--gold-hi);
}

/* ── Smaller screens ── */
@media (max-width: 960px) {
  .hero-grid,
  .pp,
  .initiatives,
  .episodes,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .cards,
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-mark {
    width: min(260px, 60%);
    order: -1;
  }
}

@media (max-width: 760px) {
  .nav nav,
  .brand .mono {
    display: none;
  }

  .cards,
  .tiles {
    grid-template-columns: 1fr;
  }

  .compare > div {
    grid-template-columns: 1fr;
  }

  .compare p + p {
    border-left: 0;
    border-top: 1px dashed var(--line);
  }

  .compare .head {
    display: none;
  }

  .initiative,
  .card {
    padding: 24px;
  }
}

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

  .art .wire {
    animation: none;
  }

  .btn,
  .initiative,
  .tile {
    transition: none;
  }
}
