/* Corporate look: a navy top part with a WebGL scene, then white and light grey sections. */
:root {
  --paper: #ffffff;
  --tint: #f3f6f9;
  --navy: #081a30;
  --navy-2: #0d2542;
  --ink: #0e1b2b;
  --ink-soft: #4a5b6e;
  --seal: #0b7d6d;
  --seal-bright: #35d0b4;
  --amber: #96590a;
  --line: #d7dfe7;
  --card: #ffffff;
  --screen: #0a0e14;
  --display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-text-size-adjust: 100%; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--seal); }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.wrap.wide { width: min(1320px, 100% - 40px); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(20px, calc((100% - 1320px) / 2)); background: rgba(8, 26, 48, 0.94); border-bottom: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 600 18px/1 var(--display); letter-spacing: 0.01em; color: #fff; text-decoration: none; }
.top nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.top nav a { font-size: 14.5px; color: #b9c7d8; text-decoration: none; white-space: nowrap; padding: 10px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { color: #fff; border-bottom-color: var(--seal-bright); }

.menu { flex: none; position: relative; display: none; align-items: center; gap: 9px; min-height: 40px; padding: 0 12px; background: none; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 4px; font: 500 14.5px/1 var(--body); color: #fff; cursor: pointer; }
.menu svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.menu .x, .top.open .menu .bars { display: none; }
.top.open .menu .x { display: block; }

/* Type */
.eyebrow { margin: 0 0 14px; font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--seal); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -0.012em; max-width: 18ch; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.01em; max-width: 24ch; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }
.lead { margin-top: 26px; max-width: 66ch; font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ink-soft); }
.section-lead { margin-top: 16px; max-width: 66ch; color: var(--ink-soft); }
.note { margin-top: 20px; max-width: 70ch; font-size: 15.5px; color: var(--ink-soft); }

section { padding: clamp(64px, 9vw, 112px) 0; }
section.tint { background: var(--tint); border-block: 1px solid var(--line); }

/* Top part: navy, with the WebGL scene behind the text */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(150px, 17vw, 250px); background: radial-gradient(120% 90% at 78% 8%, var(--navy-2) 0%, var(--navy) 62%); color: #fff; }
.hero #field { position: absolute; top: 0; right: 0; width: 50%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 62% 58% at 58% 46%, #000 38%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 58% 46%, #000 38%, transparent 100%); }
.hero .lead, .hero h1 { max-width: min(100%, 600px); }
@media (max-width: 1180px) { .hero #field { width: 100%; opacity: 0.22; } .hero .lead, .hero h1 { max-width: 66ch; } }
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--seal-bright); }
.hero .lead { color: #c3cfde; }
.hero :focus-visible, .top :focus-visible, .foot :focus-visible { outline-color: var(--seal-bright); }

/* The film overlaps the top part */
.film { padding: 0 0 clamp(56px, 7vw, 88px); }
.film .screen { margin-top: clamp(-190px, -12.5vw, -110px); position: relative; }

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 30px 0 0; padding: 0; }
.facts li { padding: 8px 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 3px; font-size: 15px; color: #c3cfde; }
.facts b { font-weight: 600; color: #fff; }

/* The application window: the picture goes to each edge of its frame */
.screen { margin: clamp(36px, 5vw, 60px) 0 0; }
.screen video, .screen img { width: 100%; background: var(--screen); border: 1px solid #1c2c40; border-radius: 8px; box-shadow: 0 30px 70px -30px rgba(8, 26, 48, 0.6); }
.screen figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
.screen.shot { margin-top: clamp(40px, 5vw, 64px); }

/* One record */
.strip { margin-top: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: 0 1px 2px rgba(8, 26, 48, 0.05); overflow: hidden; }
.strip-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--tint); }
.strip-tabs button { flex: 1 0 auto; padding: 14px 18px; border: 0; border-right: 1px solid var(--line); background: none; font: 500 15px/1.2 var(--body); color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.strip-tabs button:last-child { border-right: 0; }
.strip-tabs button:hover { color: var(--ink); }
.strip-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.strip-tabs button:focus-visible { outline-offset: -3px; }
.stage { padding: clamp(20px, 3vw, 34px); }
.stage p { margin-top: 20px; max-width: 70ch; color: var(--ink-soft); }
.bytes { margin: 0; padding: 20px 22px; overflow-x: auto; background: var(--tint); border: 1px solid var(--line); border-radius: 4px; font: 500 clamp(14px, 1.9vw, 21px)/1.75 var(--mono); color: var(--ink); white-space: pre; }
.bytes .f1 { background: #cdeee6; box-shadow: 0 0 0 4px #cdeee6; border-radius: 2px; }
.bytes .f2 { background: #f6e4c2; box-shadow: 0 0 0 4px #f6e4c2; border-radius: 2px; }
.bytes.sealed { background: var(--navy); border-color: var(--navy); color: #bfeee4; font-size: clamp(13px, 1.5vw, 17px); }

/* Process: a real order, so the steps have numbers */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--navy); border-left: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 22px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 16px; font: 500 14px/1 var(--mono); color: var(--seal); }
.steps p, .grid p { margin-top: 8px; font-size: 15.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { margin-top: 34px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: 0 1px 2px rgba(8, 26, 48, 0.05); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 12.5px/1.2 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); background: var(--tint); border-bottom-color: var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td:nth-child(2) { font-family: var(--mono); font-weight: 500; color: var(--seal); white-space: nowrap; }

/* Grids */
.grid { display: grid; gap: 18px; margin-top: 36px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid article { padding: 22px 22px 24px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--navy); border-radius: 0 0 6px 6px; }
.grid.agents { margin-top: 18px; }
.agent { border-top-color: var(--seal) !important; }
.tag { display: inline-block; margin: 0 0 12px !important; padding: 4px 9px; font: 500 12px/1.2 var(--mono) !important; letter-spacing: 0.05em; text-transform: uppercase; color: var(--seal) !important; background: #dcf3ee; border-radius: 2px; }
.tag.amber { color: var(--amber) !important; background: #f8ead0; }
.figure { margin: 0 0 14px !important; font: 600 46px/1 var(--display) !important; color: var(--ink) !important; }
.figure.mono { font: 500 24px/1.9 var(--mono) !important; color: var(--seal) !important; }
@media (max-width: 960px) { .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

/* Definitions */
.defs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 36px 0 0; border-top: 2px solid var(--navy); }
.defs div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.defs dt { font: 600 19px/1.25 var(--display); }
.defs dd { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-soft); }
@media (max-width: 720px) { .defs { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding: 48px 0 56px; background: var(--navy); color: #fff; }
.foot p { margin-top: 12px; font: 500 22px/1.3 var(--display); }
.foot p.brand { margin-top: 0; font-size: 18px; }
.foot .small { font: 400 14px/1.5 var(--body); color: #9fb0c4; }

/* Small screens: the section links go to a second row. On a phone the bar does not stay on the screen. */
@media (max-width: 900px) {
  .top { flex-wrap: wrap; gap: 0 24px; padding-block: 10px 4px; }
  .top nav { flex: 1 0 100%; justify-content: space-between; gap: 4px 18px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 64px; }
  .hero #field { opacity: 0.14; }
  .top { padding-block: 8px; gap: 0 12px; }
  .brand { font-size: 17px; }
  .js .menu { display: inline-flex; justify-content: center; width: 42px; min-height: 42px; padding: 0; }
  .menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .js .top nav { display: none; }
  .js .top.open nav { display: flex; }
  .top nav { flex-direction: column; gap: 0; margin-top: 8px; overflow: visible; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .top nav a { padding: 14px 0; font-size: 16px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .top nav a:last-child { border-bottom: 0; }
  .top nav a:hover { border-bottom-color: rgba(255, 255, 255, 0.08); color: var(--seal-bright); }
  .strip-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .strip-tabs button { white-space: normal; border-bottom: 1px solid var(--line); min-height: 48px; }
  .strip-tabs button:nth-child(even) { border-right: 0; }
  .strip-tabs button:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .bytes { padding: 16px; font-size: 13px; }
  .bytes.hex { white-space: pre-wrap; font-size: 15px; }
  /* The table becomes one block for each algorithm. */
  table { min-width: 0; }
  table, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, tbody td { padding: 2px 0; border: 0; }
  tbody td { white-space: normal !important; }
  tbody td::before { display: inline-block; width: 92px; font: 500 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
  tbody td:nth-child(2)::before { content: "Algorithm"; }
  tbody td:nth-child(3)::before { content: "Standard"; }
  tbody td:nth-child(4)::before { content: "Kind"; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
