/* Safi · sections */

main > section {
  position: relative;
  padding: clamp(6rem, 13vw, 11rem) var(--gut);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  padding-top: clamp(6.5rem, 12vh, 9rem);
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    'meta meta'
    'title stage'
    'lede stage'
    'ctas stage'
    'note stage';
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-content: start;
}
.hero__meta {
  grid-area: meta;
  display: flex;
  gap: 2rem;
  color: var(--mute);
  padding-bottom: 1.2rem;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
  border-bottom: 1px solid var(--line);
}
.hero__meta span:first-child {
  color: var(--acc);
}
.hero__title {
  grid-area: title;
  font-size: clamp(3.4rem, 7.9vw, 9rem);
  font-variation-settings: 'wdth' 78;
}
.hero__title .stamped {
  white-space: nowrap;
}
.hero__title .line {
  display: block;
}
.hero__lede {
  grid-area: lede;
  max-width: 34ch;
  margin-top: clamp(1.5rem, 3vh, 2.4rem);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.45;
}
.hero__ctas {
  grid-area: ctas;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.hero__note {
  grid-area: note;
  align-self: end;
  max-width: 54ch;
  margin-top: 2.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  color: var(--mute);
  line-height: 1.7;
}
.hero__note b {
  color: var(--fg);
  font-weight: 600;
}
.hero__stage {
  grid-area: stage;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 0;
}
.hero__scroll {
  position: absolute;
  right: var(--gut);
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--mute);
}
.hero__scroll i {
  width: 1px;
  height: 2.6rem;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  animation: drip 2s var(--ease-io) infinite;
}
@keyframes drip {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* the phone */
.phone {
  --w: clamp(210px, 21vw, 300px);
  width: var(--w);
  aspect-ratio: 71.5 / 147.5;
  perspective: 1400px;
  flex: none;
}
.phone__body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.17);
  padding: calc(var(--w) * 0.035);
  background: linear-gradient(145deg, #2a2b2f, #0b0b0d 40%, #1f2024 70%, #0b0b0d);
  box-shadow:
    inset 0 0 0 1.5px #3c3d42,
    inset 0 0 0 4px #0a0a0b,
    0 40px 80px -30px rgba(14, 15, 11, 0.55),
    0 18px 30px -18px rgba(14, 15, 11, 0.5);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
}
.phone:hover .phone__body {
  transform: rotateY(-6deg) rotateX(3deg) rotateZ(1deg);
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.135);
  background: #000;
}
.phone__island {
  position: absolute;
  left: 50%;
  top: calc(var(--w) * 0.07);
  width: 32%;
  height: calc(var(--w) * 0.085);
  translate: -50% 0;
  border-radius: 99px;
  background: #000;
}
.phone__stamp {
  position: absolute;
  left: -26%;
  bottom: 10%;
  width: 62%;
  height: auto;
  aspect-ratio: 1;
  color: var(--stamp);
  -webkit-mask: var(--ink-mask);
  mask: var(--ink-mask);
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.purge {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 13rem;
  flex: none;
}
.purge__btn {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.3s var(--ease);
}
.purge__btn:active {
  transform: scale(0.96);
}
.purge__btn svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.purge__track {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.purge__ring {
  fill: none;
  stroke: var(--acc);
  stroke-width: 4;
  stroke-dasharray: 182.2;
  stroke-dashoffset: 182.2;
}
.purge__label {
  font-family: var(--f-mono);
  font-variation-settings: 'wdth' 87;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 6em;
  text-align: center;
  line-height: 1.35;
}
.purge__readout {
  margin: 0;
  border-top: 1px solid var(--line);
}
.purge__readout div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.purge__readout dt {
  color: var(--mute);
}
.purge__readout dd {
  margin: 0;
  font-weight: 600;
  transition: color 0.3s;
}
.purge__readout dd.is-pass {
  color: var(--acc);
}
.purge__readout dd.is-gone {
  color: var(--alarm);
  text-decoration: line-through;
}

/* ---------- name ---------- */
.name {
  padding-top: clamp(3rem, 8vw, 7rem);
}
.name__entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.name__ar {
  margin: 0;
  font-family: var(--f-ar);
  font-weight: 700;
  font-size: clamp(7rem, 22vw, 20rem);
  line-height: 1;
  color: var(--acc);
  text-align: center;
  direction: rtl;
}
.name__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.name__head b {
  font-family: var(--f-display);
  font-weight: 820;
  font-variation-settings: 'wdth' 110;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}
.name__head .mono {
  color: var(--mute);
  text-transform: none;
}
.name__def ol {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}
.name__def li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.35;
}
.name__def li .mono {
  color: var(--acc);
  padding-top: 0.35em;
}
.name__echo {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 95;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- the claim ---------- */
.sentence__intro {
  max-width: 22ch;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.claim {
  list-style: none;
  margin: 0;
  padding: 0;
}
.claim__row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(1.2rem, 2.4vw, 2rem) 0;
  border-top: 1px solid var(--line);
}
.claim__row:last-child {
  border-bottom: 1px solid var(--line);
}
.claim__words {
  font-size: clamp(2.5rem, 7.4vw, 8rem);
  line-height: 0.92;
  color: color-mix(in oklab, var(--fg) 14%, transparent);
  background: linear-gradient(90deg, var(--fg) 0 50%, transparent 50% 100%) 100% 0 / 200% 100%
    no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  --fill: 0;
  background-position: calc(100% - var(--fill) * 100%) 0;
}
.claim__row p {
  max-width: 40ch;
  color: var(--mute);
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}
.never {
  margin-top: clamp(5rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 4rem;
}
.never .eyebrow {
  grid-column: 1 / -1;
}
.never__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.never__list li {
  font-family: var(--f-display);
  font-weight: 760;
  font-variation-settings: 'wdth' 80;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--mute);
}
.never__list span {
  position: relative;
  display: inline-block;
}
.never__list span::after {
  content: '';
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  top: 52%;
  height: 0.09em;
  background: var(--alarm);
  transform: scaleX(var(--strike, 0)) rotate(-1.5deg);
  transform-origin: left;
}
.never__why {
  align-self: end;
  max-width: 36ch;
  font-size: 1.1rem;
}

/* ---------- the line ---------- */
.line-sec {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.line-sec__head {
  padding: 0 var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  column-gap: 4rem;
  align-items: end;
}
.line-sec__head .eyebrow {
  grid-column: 1 / -1;
}
.line-sec__lede {
  max-width: 38ch;
  color: var(--mute);
}
.track {
  --rail: 30svh;
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  height: 100svh;
  overflow: hidden;
}
.track__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--rail);
  height: 2px;
  background: var(--line);
  z-index: 2;
}
.track__progress {
  position: absolute;
  inset: 0;
  background: var(--acc);
  transform-origin: left;
  transform: scaleX(0);
}
.track__token {
  position: absolute;
  top: 50%;
  left: var(--gut);
  width: 26px;
  height: 46px;
  margin-top: -23px;
  border-radius: 7px;
  background: var(--fg);
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
}
.track__token i {
  width: 18px;
  height: 36px;
  border-radius: 4px;
  background: var(--acc);
  transition: background 0.3s;
}
.track__steps {
  list-style: none;
  margin: 0;
  padding: 0 var(--gut);
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.step {
  position: relative;
  width: clamp(320px, 33vw, 500px);
  padding: calc(var(--rail) + 3.4rem) 2.5rem 3rem 0;
  flex: none;
}
.step__n {
  position: absolute;
  top: calc(var(--rail) - 2.4rem);
  left: 0;
  color: var(--mute);
}
.step__dot {
  position: absolute;
  top: calc(var(--rail) - 6px);
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--fg);
  z-index: 3;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.step.is-on .step__dot {
  background: var(--acc);
  border-color: var(--acc);
}
.step__name {
  font-family: var(--f-display);
  font-weight: 840;
  font-variation-settings: 'wdth' 70;
  font-size: clamp(3.4rem, 7.5vw, 7.6rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg) 16%, transparent);
  transition: color 0.5s var(--ease);
}
.step.is-on .step__name {
  color: var(--fg);
}
.step__what {
  margin-top: 1.2rem;
  max-width: 30ch;
  font-size: 1.02rem;
}
.step__state {
  position: absolute;
  left: 0;
  bottom: 9svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mute);
  transition: color 0.4s;
}
.step__state span {
  font-weight: 500;
  font-size: 0.62rem;
}
.step.is-on .step__state {
  color: var(--acc);
}
.gatecol {
  position: relative;
  flex: none;
  width: 17.5rem;
  margin-right: 3rem;
  padding-top: calc(var(--rail) + 3.4rem);
}
.boom {
  position: absolute;
  left: 1.2rem;
  top: calc(var(--rail) - 7.6rem);
  width: 14px;
  height: 7.6rem;
  z-index: 4;
}
.boom__post {
  position: absolute;
  left: -5px;
  top: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fg);
  z-index: 1;
}
.boom__arm {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: calc(7.6rem + 1.4rem);
  border-radius: 3px;
  transform-origin: 7px 0;
  background: repeating-linear-gradient(180deg, var(--alarm) 0 18px, var(--paper) 18px 36px);
  box-shadow:
    inset 0 0 0 1.5px var(--ink),
    0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
.gate {
  position: relative;
  border: 1px solid var(--fg);
  background: var(--bg);
  padding: 0.9rem 1rem 1rem;
  border-radius: var(--r);
  transition: border-color 0.4s;
}
.gatecol.is-on .gate {
  border-color: var(--acc);
}
.gate__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.gate__head b {
  font-family: var(--f-display);
  font-weight: 850;
  font-variation-settings: 'wdth' 80;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.gate__verdict {
  padding: 0.25em 0.55em;
  border-radius: 3px;
  background: var(--fg);
  color: var(--bg);
  transition: background 0.3s;
}
.gatecol.is-on .gate__verdict {
  background: var(--acc);
  color: var(--paper);
}
.gate ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.35;
}
.gate li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.gate li::before {
  content: '·';
  position: absolute;
  left: 0.2rem;
  color: var(--mute);
}
.gatecol.is-on .gate li::before {
  content: '✓';
  left: 0;
  font-size: 0.75rem;
  color: var(--acc);
}

/* ---------- bench ---------- */
.bench {
  --acc: var(--stamp-soft);
}
.bench__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  column-gap: 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.bench__head .eyebrow {
  grid-column: 1 / -1;
}
.bench__head p {
  color: var(--mute);
  max-width: 40ch;
}
.bench__rig {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(0.9rem, 2vw, 1.6rem);
  background: color-mix(in oklab, var(--paper) 3%, transparent);
}
.bench__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--mute);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.bench__agent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper);
}
.bench__agent i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4be08a;
}
.bench__agent.is-down {
  color: var(--alarm);
}
.bench__agent.is-down i {
  background: var(--alarm);
}
.bench__grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: clamp(4px, 0.6vw, 9px);
  transition: filter 0.3s;
}
.bench__grid.is-frozen {
  filter: grayscale(1) brightness(0.55);
}
.slot {
  position: relative;
  aspect-ratio: 0.66;
  border-radius: clamp(4px, 0.6vw, 8px);
  border: 1px solid color-mix(in oklab, var(--paper) 14%, transparent);
  background: color-mix(in oklab, var(--paper) 4%, transparent);
  overflow: hidden;
  font-family: var(--f-mono);
  font-variation-settings: 'wdth' 80;
}
.slot__fill {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.09s linear;
  background: var(--c, transparent);
  opacity: 0.22;
}
.slot__led {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 18%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--c, color-mix(in oklab, var(--paper) 18%, transparent));
  box-shadow: 0 0 10px var(--c, transparent);
}
.slot__n,
.slot__s {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(0.42rem, 0.62vw, 0.6rem);
  letter-spacing: 0.02em;
}
.slot__n {
  bottom: 6%;
  color: color-mix(in oklab, var(--paper) 45%, transparent);
}
.slot__s {
  top: 42%;
  color: var(--paper);
  font-weight: 600;
}
.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.45rem;
  background: var(--c);
}
.led--id,
.slot[data-s='id'] {
  --c: #c9c6bc;
}
.led--test,
.slot[data-s='test'] {
  --c: var(--amber);
}
.led--wipe,
.slot[data-s='wipe'] {
  --c: var(--stamp-soft);
}
.led--ok,
.slot[data-s='ok'] {
  --c: #4be08a;
}
.led--q,
.slot[data-s='q'] {
  --c: var(--alarm);
}
.slot[data-s='restart'] {
  --c: var(--alarm);
  animation: blink 0.5s steps(2) 4;
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}
.bench__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.bench__stats {
  display: flex;
  gap: clamp(1.2rem, 3vw, 3rem);
  margin: 0;
}
.bench__stats dt {
  color: var(--mute);
}
.bench__stats dd {
  margin: 0.2rem 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 70;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.bench__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.2rem 0 0;
  color: var(--mute);
}
.bench__toast {
  position: absolute;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  margin: 0;
  padding: 0.9rem 1.2rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r);
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
  max-width: min(30rem, 86%);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
.bench__toast b {
  color: var(--alarm);
}
.bench__fine {
  max-width: 62ch;
  margin-top: 2rem;
  color: var(--mute);
  font-size: 0.95rem;
}
.bench__fine code {
  color: var(--paper);
}

/* ---------- certificate ---------- */
.cert-sec {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.cert-sec__copy {
  position: sticky;
  top: 7rem;
}
.cert-sec__copy > p {
  max-width: 42ch;
  margin-top: 1.5rem;
}
.cert-sec__small {
  color: var(--mute);
  font-size: 0.92rem;
}
.verdict {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r);
  background: var(--acc);
  color: var(--paper);
  transition: background 0.35s var(--ease);
}
.verdict b {
  display: block;
  font-family: var(--f-display);
  font-weight: 820;
  font-variation-settings: 'wdth' 90;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.verdict .mono {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
}
.verdict__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  flex: none;
}
.verdict.is-bad {
  background: var(--alarm);
  color: var(--ink);
}
.verdict.is-bad .verdict__dot {
  background: var(--ink);
  animation: blink 0.6s steps(2) infinite;
}
.verdict.is-wait {
  background: var(--line);
  color: var(--fg);
}
.cert {
  position: relative;
  background: #f8f5ee;
  color: var(--ink);
  border-radius: 3px;
  padding: clamp(1.3rem, 3vw, 2.6rem);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 30px 60px -30px rgba(14, 15, 11, 0.4),
    0 8px 20px -12px rgba(14, 15, 11, 0.2);
  transform: rotate(1.2deg);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(46, 55, 230, 0.05) 27px 28px),
    radial-gradient(circle at 100% 0, rgba(46, 55, 230, 0.06), transparent 40%);
}
.cert::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(14, 15, 11, 0.12);
  pointer-events: none;
}
.cert__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.cert__kicker {
  color: rgba(14, 15, 11, 0.55);
  margin: 0 0 0.3rem;
}
.cert__id {
  margin: 0;
  font-size: clamp(0.85rem, 1.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cert__sim {
  border: 1.5px solid var(--alarm);
  color: var(--alarm);
  padding: 0.3em 0.6em;
  transform: rotate(4deg);
  font-weight: 700;
}
.cert__claim {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 88;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 1.1rem 0 1.3rem;
  max-width: 30ch;
}
.cert__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}
.cert h4 {
  color: var(--stamp);
  margin: 0.9rem 0 0.4rem;
}
.cert dl {
  margin: 0;
}
.cert dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dotted rgba(14, 15, 11, 0.25);
  font-size: 0.86rem;
}
.cert dt {
  color: rgba(14, 15, 11, 0.6);
}
.cert dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.f {
  outline: none;
  border-bottom: 1.5px solid var(--stamp);
  padding: 0 1px;
  cursor: text;
  transition: background 0.2s;
  min-width: 1ch;
  display: inline-block;
}
.f:hover,
.f:focus {
  background: rgba(46, 55, 230, 0.1);
}
.f.is-changed {
  background: rgba(255, 74, 28, 0.16);
  border-color: var(--alarm);
}
.f--big {
  font-family: var(--f-display);
  font-weight: 850;
  font-size: 1.4rem;
  line-height: 1;
}
.cert__disc p {
  margin: 0;
  font-size: 0.86rem;
}
.cert__gates {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0;
  margin: 1.4rem 0;
}
.cert__gates li {
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 0.45rem 0.5rem;
  font-size: 0.56rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-transform: uppercase;
}
.cert__gates b {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.cert__gates i {
  font-style: normal;
  color: var(--stamp);
  font-weight: 700;
}
.cert__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: end;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.cert__sig p {
  margin: 0 0 0.45rem;
  display: flex;
  flex-direction: column;
  font-size: 0.6rem;
}
.cert__sig span {
  color: rgba(14, 15, 11, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cert__sig b {
  font-weight: 600;
  word-break: break-all;
  line-height: 1.4;
}
.cert__sig b.is-bad {
  color: var(--alarm);
}
.cert__qr {
  width: 92px;
  height: 92px;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
}
.cert__qr i {
  background: var(--ink);
}
.cert__qr i.o {
  background: transparent;
}
.cert__seal {
  position: absolute;
  right: 18%;
  bottom: 9%;
  width: clamp(110px, 13vw, 170px);
  height: clamp(110px, 13vw, 170px);
  color: var(--stamp);
  -webkit-mask: var(--ink-mask);
  mask: var(--ink-mask);
  mix-blend-mode: multiply;
  transform: rotate(-14deg);
  pointer-events: none;
  transition:
    color 0.4s,
    opacity 0.4s;
}
.cert.is-bad .cert__seal {
  color: var(--alarm);
  opacity: 0.35;
}

/* ---------- log ---------- */
.log {
  --acc: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 100svh;
}
.log__copy > p {
  max-width: 40ch;
  margin-top: 1.5rem;
  color: color-mix(in oklab, var(--fg) 82%, transparent);
}
.log .eyebrow,
.log .eyebrow span {
  color: color-mix(in oklab, var(--fg) 70%, transparent);
}
.log__hint {
  text-transform: none;
  letter-spacing: 0;
  border-left: 2px solid currentColor;
  padding-left: 1rem;
}
.log__tree svg {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--f-mono);
}
.mk-edge {
  stroke: color-mix(in oklab, var(--fg) 35%, transparent);
  stroke-width: 1.2;
  fill: none;
  transition:
    stroke 0.3s,
    stroke-width 0.3s;
}
.mk-edge.is-path {
  stroke: var(--paper);
  stroke-width: 2.4;
}
.mk-node rect {
  fill: var(--bg);
  stroke: color-mix(in oklab, var(--fg) 45%, transparent);
  stroke-width: 1.2;
  transition:
    fill 0.3s,
    stroke 0.3s;
}
.mk-node text {
  fill: var(--fg);
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: fill 0.3s;
}
.mk-node.is-path rect {
  fill: var(--paper);
  stroke: var(--paper);
}
.mk-node.is-path text {
  fill: var(--stamp-deep);
  font-weight: 700;
}
.mk-node.is-sib rect {
  stroke: var(--paper);
  stroke-dasharray: 3 3;
  stroke-width: 1.6;
}
.mk-leaf {
  cursor: pointer;
}
.mk-leaf:hover rect,
.mk-leaf:focus rect {
  stroke: var(--paper);
}
.mk-leaf:focus {
  outline: none;
}
.mk-root rect {
  fill: var(--paper);
  stroke: var(--paper);
}
.mk-root text {
  fill: var(--stamp-deep);
  font-weight: 700;
  font-size: 12px;
}
.log__root {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--fg) 30%, transparent);
}
.log__root b {
  font-weight: 600;
  word-break: break-all;
  text-transform: none;
}

/* ---------- rules ---------- */
.rules__intro {
  max-width: 30ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rules__list li {
  display: grid;
  grid-template-columns: clamp(3rem, 8vw, 7rem) minmax(0, 1.5fr) minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0;
  border-top: 1px solid var(--line);
  transition: color 0.4s;
}
.rules__list li:last-child {
  border-bottom: 1px solid var(--line);
}
.rules__list .mono {
  color: var(--acc);
}
.rules__list p {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 760;
  font-variation-settings: 'wdth' 92;
  font-size: clamp(1.5rem, 3.6vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 20ch;
}
.rules__list small {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--mute);
  max-width: 38ch;
}
@media (max-width: 760px) {
  .rules__list li {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }
  .rules__list small {
    grid-column: 2;
    margin-top: 0.6rem;
  }
}
@media (hover: hover) {
  .rules__list:hover li {
    color: color-mix(in oklab, var(--fg) 25%, transparent);
  }
  .rules__list li:hover {
    color: var(--fg);
  }
}

/* ---------- who / labels ---------- */
.who__head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  perspective: 1200px;
}
.label {
  position: relative;
  background: #fbfaf6;
  color: var(--ink);
  padding: 1.3rem 1.3rem 1.1rem;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 24px 40px -26px rgba(14, 15, 11, 0.45);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
  font-family: var(--f-mono);
  font-variation-settings: 'wdth' 87;
}
.label:nth-child(1) {
  --rot: -2.2deg;
}
.label:nth-child(2) {
  --rot: 1.4deg;
  margin-top: 2.5rem;
}
.label:nth-child(3) {
  --rot: -0.8deg;
  margin-top: 1rem;
}
.label {
  transform: rotate(var(--rot));
}
@media (hover: hover) {
  .label:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.05),
      0 40px 60px -30px rgba(14, 15, 11, 0.5);
  }
}
.label__top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.7rem;
  border-bottom: 3px solid var(--ink);
  font-size: 0.62rem;
}
.label__top span:first-child {
  background: var(--ink);
  color: #fbfaf6;
  padding: 0.1em 0.5em;
}
.label h3 {
  font-family: var(--f-display);
  font-weight: 860;
  font-variation-settings: 'wdth' 76;
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 1rem 0 0.4rem;
}
.label__who {
  font-size: 0.7rem;
  color: rgba(14, 15, 11, 0.6);
  margin-bottom: 1rem;
}
.label ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  line-height: 1.5;
}
.label li {
  padding: 0.55rem 0;
  border-top: 1px dashed rgba(14, 15, 11, 0.3);
}
.label__bars {
  height: 46px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 8px,
    var(--ink) 8px 11px,
    transparent 11px 12px,
    var(--ink) 12px 13px,
    transparent 13px 16px
  );
}

/* ---------- pilot ---------- */
.pilot {
  --acc: var(--stamp-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.pilot .stamped {
  color: var(--night);
}
.pilot__copy > p {
  max-width: 44ch;
  margin-top: 1.8rem;
  color: var(--mute);
}
.form {
  display: grid;
  gap: 1.4rem;
}
.field {
  display: grid;
  gap: 0.45rem;
  border: 0;
  margin: 0;
  padding: 0;
}
.field > span,
.field legend {
  color: var(--mute);
  padding: 0;
}
.field input:not([type='radio']) {
  font: inherit;
  font-size: 1.15rem;
  color: var(--fg);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field input:focus {
  outline: none;
  border-color: var(--acc);
}
.field input[aria-invalid='true'] {
  border-color: var(--alarm);
}
.field--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.field--chips legend {
  margin-bottom: 0.6rem;
}
.field--chips label {
  position: relative;
}
.field--chips input {
  position: absolute;
  opacity: 0;
}
.field--chips span {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}
.field--chips input:checked + span {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.field--chips input:focus-visible + span {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.form .btn {
  justify-self: start;
  margin-top: 0.6rem;
}
.form__err {
  color: var(--alarm);
  margin: 0;
  min-height: 1em;
  text-transform: none;
  letter-spacing: 0;
}
.printer {
  grid-column: 2;
  display: none;
  position: relative;
}
.printer.is-on {
  display: block;
}
.printer__slot {
  height: 14px;
  border-radius: 7px;
  background: #000;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}
.printer__paper {
  margin: -6px 12px 0;
  background: #fbfaf6;
  color: var(--ink);
  padding: 1.3rem 1.2rem;
  font-family: var(--f-mono);
  font-variation-settings: 'wdth' 87;
  font-size: 0.74rem;
  clip-path: inset(0 0 100% 0);
}
.printer__paper h3 {
  font-family: var(--f-display);
  font-weight: 860;
  font-variation-settings: 'wdth' 76;
  font-size: 2.4rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0.8rem 0;
}
.printer__paper p {
  margin: 0 0 0.4rem;
}
.printer__paper .label__bars {
  margin-top: 1rem;
  height: 38px;
}

/* ---------- footer ---------- */
.foot {
  padding: clamp(4rem, 8vw, 7rem) var(--gut) 1.6rem;
  overflow: hidden;
  --acc: var(--stamp-soft);
}
.foot__big {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.wm--huge {
  white-space: nowrap;
  font-size: clamp(6rem, 24vw, 26rem);
  line-height: 0.74;
}
.foot__ar {
  font-family: var(--f-ar);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 12rem);
  line-height: 0.9;
  color: var(--acc);
}
.foot__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  color: var(--mute);
  text-transform: none;
  letter-spacing: 0;
}
.foot__row a {
  color: var(--fg);
  text-decoration: none;
}

/* ================= responsive ================= */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: 'meta' 'title' 'lede' 'ctas' 'stage' 'note';
    grid-template-rows: none;
  }
  .hero__stage {
    margin-top: 3rem;
    justify-content: flex-start;
  }
  .hero__scroll {
    display: none;
  }
  .cert-sec,
  .log,
  .pilot {
    grid-template-columns: 1fr;
  }
  .cert-sec__copy {
    position: static;
  }
  .printer {
    grid-column: 1;
  }
  .labels {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .hero__stage {
    flex-direction: column;
    align-items: center;
  }
  .phone {
    --w: min(62vw, 250px);
  }
  .purge {
    width: 100%;
    flex-direction: row;
    align-items: center;
  }
  .purge__btn {
    flex: none;
    width: 6.4rem;
    height: 6.4rem;
  }
  .purge__readout {
    flex: 1;
  }
  .name__entry,
  .claim__row,
  .never,
  .line-sec__head,
  .bench__head {
    grid-template-columns: 1fr;
  }
  .claim__row p {
    margin-top: 0.4rem;
  }
  .name__ar {
    text-align: left;
  }
  /* the line becomes a vertical list */
  .track {
    height: auto;
    overflow: visible;
  }
  .track__rail {
    left: calc(var(--gut) + 6px);
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .track__progress {
    transform-origin: top;
    transform: scaleY(var(--p, 0));
  }
  .track__token {
    display: none;
  }
  .track__steps {
    flex-direction: column;
    width: auto;
    padding-left: calc(var(--gut) + 2.2rem);
  }
  .step {
    width: auto;
    padding: 0 0 3rem;
  }
  .step__state {
    position: static;
    margin-top: 1.2rem;
  }
  .gatecol {
    width: auto;
    margin: 0 0 3rem;
    padding: 0;
  }
  .boom {
    display: none;
  }
  .step__n {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
  }
  .step__dot {
    top: 0.2rem;
    left: calc(-2.2rem + 0px);
  }
  .gate {
    max-width: 22rem;
  }
  .bench__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .bench__stats {
    flex-wrap: wrap;
  }
  .cert__grid {
    grid-template-columns: 1fr;
  }
  .cert {
    transform: none;
  }
  .cert__gates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cert__foot {
    grid-template-columns: 1fr;
  }
  .labels {
    grid-template-columns: 1fr;
  }
  .label:nth-child(n) {
    margin-top: 0;
  }
  .foot__big {
    flex-direction: column;
    align-items: flex-start;
  }
}
