/* ==========================================================================
   About page — badge hero, results ledger, layer stack, timeline,
   project cards, certificate wall behind a curtain.
   Loaded only on about.html, after style.css.
   ========================================================================== */

/* 1. Hero ---------------------------------------------------------------- */
.ab-hero {
  position: relative;
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--gutter);
  row-gap: 3rem;
  align-items: center;
  min-height: min(100svh, 62rem);
  padding: calc(var(--header-h) + clamp(2.5rem, 8vh, 5.5rem)) var(--gutter) clamp(3rem, 6vw, 5rem);
  overflow: clip;
  isolation: isolate;
}
.ab-hero::before { /* faint blueprint grid behind the badge */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgb(var(--linen-rgb) / .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(var(--linen-rgb) / .045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask: radial-gradient(45% 65% at 80% 50%, #000, transparent 75%);
  mask: radial-gradient(45% 65% at 80% 50%, #000, transparent 75%);
}
.ab-hero__text { grid-column: 1 / span 7; display: grid; gap: 1.75rem; align-content: center; }
.ab-hero__status { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text-2); }
.ab-hero__title { margin-top: -.25rem; }
.ab-hero__lead {
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
  line-height: 1.22;
  color: var(--text);
}
.ab-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; border-top: 1px solid var(--line); }
.ab-facts > div { padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--line); }
.ab-facts > div:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.ab-facts dt { margin-bottom: .25rem; font-size: .8125rem; color: var(--text-3); }
.ab-facts dd { font-size: .95rem; }
.ab-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Badge on a lanyard */
.ab-badge-wrap {
  --bw: clamp(15rem, 19vw, 18.5rem);
  grid-column: 9 / -1;
  justify-self: center;
  position: relative;
  width: var(--bw);
  transform-origin: 50% -55vh;
}
.ab-lanyard {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 1.6rem);
  width: 1.15rem;
  height: 120vh;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(180deg, transparent 0 2.4rem, rgb(15 25 19 / .55) 2.4rem 2.55rem),
    linear-gradient(90deg, #8fb946, var(--signal) 45%, #9ccf4c 55%, #7aa13a);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .25), 0 0 24px rgb(185 234 91 / .18);
}
.ab-lanyard::after { /* metal clip */
  content: ""; position: absolute; left: 50%; bottom: -.4rem; width: 1.9rem; height: 1.5rem;
  transform: translateX(-50%);
  border: 2px solid #c9c4b3; border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #8d8a7e, #4a4a42);
}
.ab-badge {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative;
  margin: 0;
  padding: 1.35rem 1.1rem 1rem;
  border: 1px solid rgb(var(--linen-rgb) / .18);
  border-radius: 18px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgb(185 234 91 / .09), transparent 60%),
    linear-gradient(165deg, #233426, #182419 70%);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(0 0 0 / .3), inset 0 1px 0 rgb(255 255 255 / .06);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
  overflow: hidden;
}
.ab-badge.is-tilting { transition: transform .12s linear; }
.ab-badge__slot {
  position: absolute; top: .55rem; left: 50%; width: 2.6rem; height: .45rem;
  transform: translateX(-50%); border-radius: 99px;
  background: var(--undergrowth); box-shadow: inset 0 1px 2px rgb(0 0 0 / .6);
}
.ab-badge__head {
  display: flex; justify-content: space-between; align-items: center;
  margin: .4rem 0 .85rem; font-family: var(--font-mono); font-size: .7rem; color: var(--text-3);
}
.ab-badge__head span:first-child { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-2); }
.ab-badge__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--moss); }
.ab-badge__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out); }
.ab-badge__img--color { opacity: 0; }
.ab-badge:hover .ab-badge__img--color { opacity: 1; }
.ab-badge:hover .ab-badge__img { transform: scale(1.04); }
.ab-badge__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--signal); box-shadow: 0 0 12px var(--signal), 0 0 30px rgb(185 234 91 / .6);
  opacity: 0;
  animation: ab-scan 7s var(--ease-in-out) 2.2s infinite;
}
@keyframes ab-scan {
  0% { transform: translateY(0); opacity: 0; }
  4% { opacity: 1; }
  16% { transform: translateY(var(--ph, 300px)); opacity: 1; }
  19%, 100% { transform: translateY(var(--ph, 300px)); opacity: 0; }
}
.ab-badge__cap { display: grid; gap: .2rem; margin-top: .95rem; }
.ab-badge__cap strong { font-family: var(--font-display); font-weight: 400; font-size: 1.65rem; line-height: 1.05; }
.ab-badge__cap span { font-size: .82rem; color: var(--text-2); }
.ab-badge__access { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.ab-badge__access > span {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .55rem;
  border: 1px solid var(--line-2); border-radius: 99px; font-size: .72rem; color: var(--text-2);
}
.ab-badge__code { display: block; width: 100%; height: 1.6rem; margin-top: .9rem; opacity: .55; }
.ab-badge__code rect { fill: var(--linen); }
.ab-badge__shine {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(28rem circle at var(--mx) var(--my), rgb(255 255 255 / .10), transparent 40%);
  opacity: 0; transition: opacity .4s;
}
.ab-badge:hover .ab-badge__shine { opacity: 1; }

/* Drop-in, then a slow pendulum sway */
.ab-js .ab-badge-wrap { transform: translateY(-115vh) rotate(-8deg); }
.ab-js .ab-badge-wrap.is-hung {
  transform: none;
  animation: ab-drop 1.9s cubic-bezier(.2, .9, .25, 1) both, ab-sway 9s ease-in-out 1.9s infinite;
}
@keyframes ab-drop {
  0% { transform: translateY(-115vh) rotate(-8deg); }
  55% { transform: translateY(1.5%) rotate(3.2deg); }
  72% { transform: translateY(-.5%) rotate(-1.8deg); }
  86% { transform: translateY(0) rotate(.9deg); }
  100% { transform: none; }
}
@keyframes ab-sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(.9deg); } 70% { transform: rotate(-.9deg); } }

/* 2. Results ledger ------------------------------------------------------ */
.ab-ledger { padding: 0 var(--gutter) var(--section); }
.ab-ledger__list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ab-ledger__list li { display: grid; gap: .7rem; align-content: start; padding: 2rem 1.5rem 2.2rem; }
.ab-ledger__list li:first-child { padding-left: 0; }
.ab-ledger__list li + li { border-left: 1px solid var(--line); }
.ab-num {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 4.6vw, 4.6rem); line-height: .9; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.ab-ledger__list li:nth-child(1) .ab-num, .ab-ledger__list li:nth-child(2) .ab-num, .ab-ledger__list li:nth-child(3) .ab-num { color: var(--text); }
.ab-num.is-done { text-shadow: 0 0 28px rgb(185 234 91 / .25); }
.ab-ledger__list span { max-width: 22ch; font-size: .9rem; color: var(--text-2); }

/* 3. Layer stack ---------------------------------------------------------- */
.ab-stack { display: grid; grid-template-columns: var(--grid); column-gap: var(--gutter); row-gap: 3rem; align-items: start; }
.ab-stack__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2.5rem); display: grid; gap: 1.4rem; }
.ab-stack__intro h2 { margin-bottom: .6rem; }
.ab-stack__p { max-width: 44ch; color: var(--text-2); }
.ab-stack__hint { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .4rem; font-size: .85rem; color: var(--text-3); }
.ab-stack__swatch { width: 1.6rem; height: 3px; border-radius: 2px; }
.ab-stack__swatch--b { background: var(--amber); }
.ab-stack__swatch--a { background: var(--signal); margin-left: .9rem; }

.ab-layers { --sp: 0px; grid-column: 7 / -1; position: relative; list-style: none; display: grid; gap: .8rem; padding-left: 3rem; }
.ab-layers__rail { position: absolute; left: .9rem; top: 1.6rem; bottom: 1.6rem; width: 2px; background: var(--line); border-radius: 2px; }
.ab-layers__fill {
  position: absolute; left: 0; top: 0; width: 100%; height: var(--sp);
  background: linear-gradient(180deg, var(--amber), var(--amber) 62%, var(--signal) 78%, var(--signal));
  background-size: 100% var(--rail-h, 600px);
  border-radius: 2px;
  box-shadow: 0 0 12px rgb(227 169 78 / .45);
}
.ab-layers__spark {
  position: absolute; left: 50%; top: var(--sp); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px var(--signal), 0 0 24px var(--signal);
  opacity: 0; transition: opacity .3s;
}
.ab-layers.is-flowing .ab-layers__spark { opacity: 1; }
.ab-layer {
  --c: var(--amber); --c-rgb: 227 169 78;
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(15 25 19 / .5);
  opacity: .42;
  transform: translateX(14px);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), border-color .6s, background .6s, box-shadow .6s;
}
.ab-layer--a { --c: var(--signal); --c-rgb: 185 234 91; }
.ab-layer::before { /* node on the rail */
  content: ""; position: absolute; left: calc(-3rem + .9rem + 1px); top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: var(--undergrowth); box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background .4s, box-shadow .4s;
}
.ab-layer.is-on { opacity: 1; transform: none; border-color: rgb(var(--c-rgb) / .35); background: linear-gradient(100deg, rgb(var(--c-rgb) / .08), rgb(15 25 19 / .5) 55%); box-shadow: 0 14px 34px -22px rgb(var(--c-rgb) / .6); }
.ab-layer.is-on::before { background: var(--c); box-shadow: 0 0 12px var(--c); }
.ab-layer__icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 10px; border: 1px solid var(--line-2); transition: border-color .6s; }
.ab-layer__icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s, filter .6s; }
.ab-layer.is-on .ab-layer__icon { border-color: rgb(var(--c-rgb) / .5); }
.ab-layer.is-on .ab-layer__icon svg { stroke: var(--c); filter: drop-shadow(0 0 4px rgb(var(--c-rgb) / .6)); }
.ab-layer__name { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.ab-layer__did { margin-top: .2rem; font-size: .92rem; color: var(--text-2); max-width: 52ch; }

.ab-focus { padding-top: 0; border-top: 0; }

/* 4. Timeline ------------------------------------------------------------ */
.ab-tl { --tl-c1: clamp(8rem, 15vw, 14rem); --tp: 0px; position: relative; list-style: none; display: grid; gap: 1.4rem; }
.ab-tl__rail { position: absolute; top: .6rem; bottom: .6rem; left: calc(var(--tl-c1) + 1.5rem); width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; }
.ab-tl__fill { position: absolute; inset: 0 0 auto; height: var(--tp); background: linear-gradient(180deg, var(--signal), var(--signal) 70%, var(--amber)); background-size: 100% var(--tl-h, 900px); border-radius: 2px; box-shadow: 0 0 12px rgb(185 234 91 / .4); }
.ab-tl__item { position: relative; display: grid; grid-template-columns: var(--tl-c1) 3rem minmax(0, 1fr); align-items: start; }
.ab-tl__when { padding-top: 1.45rem; font-family: var(--font-display); font-size: clamp(1.3rem, 1.8vw, 1.75rem); line-height: 1.1; color: var(--text-3); transition: color .6s; }
.ab-tl__node { justify-self: center; margin-top: 1.85rem; width: 13px; height: 13px; border-radius: 50%; background: var(--undergrowth); box-shadow: inset 0 0 0 2px var(--line-2); transition: background .4s, box-shadow .4s, transform .5s var(--ease-spring); position: relative; z-index: 1; }
.ab-tl__card {
  padding: 1.5rem 1.75rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(15 25 19 / .45);
  opacity: .35;
  transform: translateX(22px);
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out), border-color .6s, box-shadow .6s;
}
.ab-tl__item.is-on .ab-tl__when { color: var(--text); }
.ab-tl__item.is-on .ab-tl__node { background: var(--signal); box-shadow: 0 0 0 5px rgb(185 234 91 / .12), 0 0 14px var(--signal); transform: scale(1.15); }
.ab-tl__item--edu.is-on .ab-tl__node { background: var(--amber); box-shadow: 0 0 0 5px rgb(227 169 78 / .12), 0 0 14px var(--amber); }
.ab-tl__item.is-on .ab-tl__card { opacity: 1; transform: none; border-color: var(--line-2); box-shadow: 0 24px 50px -36px rgb(0 0 0 / .9); }
.ab-tl__head { display: grid; gap: .25rem; }
.ab-tl__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-s); line-height: 1.1; }
.ab-tl__org { font-size: .9rem; color: var(--text-3); }
.ab-tl__win { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; font-size: .95rem; color: var(--text); }
.ab-tl__win > span:first-child { padding: .2rem .55rem; border-radius: 99px; background: rgb(185 234 91 / .12); color: var(--signal); font-size: .75rem; font-weight: 500; }
.ab-tl__list { list-style: none; display: grid; gap: .55rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--text-2); font-size: .93rem; }
.ab-tl__list li { position: relative; padding-left: 1.1rem; max-width: 70ch; }
.ab-tl__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--signal); }
.ab-tl__tag { display: inline-block; margin-top: .9rem; padding: .2rem .55rem; border-radius: 99px; background: rgb(227 169 78 / .12); color: var(--amber); font-size: .75rem; font-weight: 500; }

/* 5. Projects ------------------------------------------------------------- */
.ab-proj { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ab-proj__item--wide { grid-column: span 2; grid-row: span 2; }
.ab-proj__item {
  --c: var(--amber); --c-rgb: 227 169 78; --mx: 50%; --my: 0%;
  position: relative;
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.6rem 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(15 25 19 / .5);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease-out);
}
.ab-proj__item--a { --c: var(--signal); --c-rgb: 185 234 91; }
.ab-proj__item::before { /* spotlight that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(22rem circle at var(--mx) var(--my), rgb(var(--c-rgb) / .13), transparent 60%);
}
.ab-proj__item:hover { border-color: rgb(var(--c-rgb) / .4); transform: translateY(-3px); }
.ab-proj__item:hover::before { opacity: 1; }
.ab-proj__icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 10px; border: 1px solid rgb(var(--c-rgb) / .35); }
.ab-proj__icon svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ab-proj__meta { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-3); }
.ab-proj__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-s); line-height: 1.1; }
.ab-proj__item--wide .ab-proj__title { font-size: var(--fs-m); line-height: 1; }
.ab-proj__text { font-size: .93rem; color: var(--text-2); max-width: 58ch; }
.ab-proj__scope { font-family: var(--font-mono); font-size: .76rem; color: var(--text-3); }

/* tiny live demos inside cards */
.ab-chat { display: grid; gap: .6rem; margin-top: auto; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: rgb(15 25 19 / .7); font-size: .88rem; min-height: 7.4rem; align-content: start; }
.ab-chat__q, .ab-chat__a { max-width: 85%; padding: .55rem .8rem; border-radius: 12px; }
.ab-chat__q { justify-self: end; background: rgb(var(--linen-rgb) / .1); border-bottom-right-radius: 4px; }
.ab-chat__a { justify-self: start; background: rgb(185 234 91 / .12); color: var(--text); border-bottom-left-radius: 4px; }
.ab-chat .is-empty { display: none; }
.ab-chat__caret { display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--signal); animation: ab-caret 1s steps(1) infinite; }
@keyframes ab-caret { 50% { opacity: 0; } }

.ab-desks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: auto; padding-top: .6rem; }
.ab-desks i { aspect-ratio: 1.4; border-radius: 3px; border: 1px solid rgb(227 169 78 / .3); background: transparent; }
.is-in .ab-desks i { animation: ab-desk 6s var(--ease-out) infinite; animation-delay: calc(var(--i) * 110ms); }
@keyframes ab-desk { 0% { background: transparent; box-shadow: none; } 8%, 80% { background: rgb(227 169 78 / .55); box-shadow: 0 0 8px rgb(227 169 78 / .5); } 100% { background: transparent; box-shadow: none; } }

.ab-bars { display: flex; align-items: flex-end; gap: 5px; height: 2.6rem; margin-top: auto; }
.ab-bars i { flex: 1; height: 20%; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--amber), rgb(227 169 78 / .25)); transform-origin: bottom; }
.is-in .ab-bars i { animation: ab-bar 1.6s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--i) * -0.23s); }
@keyframes ab-bar { from { height: 18%; } to { height: 100%; } }

/* 6. Certificates behind a curtain --------------------------------------- */
.cs-stage {
  --closed-h: clamp(24rem, 52vh, 31rem);
  position: relative;
  height: var(--closed-h);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 0%, rgb(227 169 78 / .12), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgb(185 234 91 / .06), transparent 70%),
    var(--undergrowth);
  transition: height 1.1s var(--ease-in-out);
}
.cs-wall { position: relative; z-index: 0; padding: 6.2rem clamp(1rem, 2.6vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem); }

/* filter */
.cs-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.cs-filter__btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 99px; font-size: .85rem; color: var(--text-2); transition: color .3s, border-color .3s, background .3s; }
.cs-filter__btn em { font-style: normal; font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); }
.cs-filter__btn:hover { color: var(--text); border-color: var(--linen); }
.cs-filter__btn[aria-pressed="true"] { color: var(--undergrowth); background: var(--linen); border-color: var(--linen); }
.cs-filter__btn[aria-pressed="true"] em { color: rgb(15 25 19 / .6); }

/* certificate cards */
.cs-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.cert { --c: var(--amber); --c-rgb: 227 169 78; opacity: 0; transform: translateY(26px) rotateX(-14deg) scale(.97); transform-origin: 50% 100%; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(.55s + var(--i, 0) * 55ms); }
.cert[data-p="a"] { --c: var(--signal); --c-rgb: 185 234 91; }
.cs-stage.is-open .cert { opacity: 1; transform: none; }
.cert.is-hidden { display: none; }
.cert.is-filtered-in { animation: cs-in .55s var(--ease-out) both; animation-delay: calc(var(--j, 0) * 45ms); }
@keyframes cs-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.cert__btn {
  position: relative;
  display: flex; flex-direction: column; gap: .35rem;
  width: 100%;
  aspect-ratio: 1.414;
  padding: 1.1rem 1.15rem 1rem;
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgb(var(--linen-rgb) / .14);
  background:
    repeating-radial-gradient(circle at 100% 100%, transparent 0 6px, rgb(var(--c-rgb) / .045) 6px 7px),
    linear-gradient(150deg, #223224, #172219);
  box-shadow: inset 0 0 0 5px rgb(15 25 19 / .65), inset 0 0 0 6px rgb(var(--c-rgb) / .22);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
}
.cert__btn::after { /* sheen sweep on hover */
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .09), transparent);
  transform: translateX(0) rotate(12deg); transition: transform .9s var(--ease-out);
}
.cert__btn:hover, .cert__btn:focus-visible { transform: translateY(-5px); border-color: rgb(var(--c-rgb) / .55); box-shadow: inset 0 0 0 5px rgb(15 25 19 / .65), inset 0 0 0 6px rgb(var(--c-rgb) / .5), 0 22px 40px -22px rgb(var(--c-rgb) / .45); }
.cert__btn:hover::after { transform: translateX(420%) rotate(12deg); }
.cert__btn.has-img { background-size: cover; background-position: center; }
.cert__btn.has-img > *:not(.cert__foot) { visibility: hidden; }
.cert__issuer { font-size: .72rem; color: var(--text-3); }
.cert__name { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.08; color: var(--text); text-wrap: balance; }
.cert__code { font-family: var(--font-mono); font-size: .72rem; color: var(--c); }
.cert__foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.cert__status { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--text-2); }
.cert__status .led { animation: led-pulse 2.4s ease-in-out infinite; }
.cert__seal {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px dashed rgb(var(--c-rgb) / .6); color: var(--c); font-family: var(--font-display); font-size: 1.05rem;
  background: radial-gradient(circle, rgb(var(--c-rgb) / .14), transparent 70%);
  transition: transform .8s var(--ease-out);
}
.cert__btn:hover .cert__seal { transform: rotate(-25deg) scale(1.08); }

/* the curtain itself */
.cs-curtain { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cs-curtain__half {
  position: absolute; top: 0; bottom: 0; width: 50.6%;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .45), transparent 22%, transparent 74%, rgb(0 0 0 / .5)),
    repeating-linear-gradient(90deg,
      #12301d 0, #1d4529 .9rem, #2b5d37 1.7rem, #1f4a2c 2.4rem, #143521 3.3rem, #0e2617 3.9rem, #12301d 4.4rem);
  box-shadow: inset 0 -14px 18px -10px rgb(0 0 0 / .6);
  transition: transform 1.55s cubic-bezier(.7, 0, .2, 1), clip-path 1.55s cubic-bezier(.7, 0, .2, 1), filter 1.55s;
}
.cs-curtain__half::after { /* gold fringe along the hem */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .8rem;
  background: repeating-linear-gradient(90deg, #c9973f 0 2px, transparent 2px 5px), linear-gradient(180deg, #e3a94e, #8a6428);
  -webkit-mask: linear-gradient(180deg, #000 30%, rgb(0 0 0 / .6)); mask: linear-gradient(180deg, #000 30%, rgb(0 0 0 / .6));
}
.cs-curtain__half--l { left: 0; transform-origin: 0 50%; clip-path: polygon(0 0, 100% 0, 100% 64%, 100% 100%, 0 100%); animation: cs-breathe-l 7s ease-in-out infinite; }
.cs-curtain__half--r { right: 0; transform-origin: 100% 50%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 64%); animation: cs-breathe-r 7s ease-in-out infinite; }
@keyframes cs-breathe-l { 50% { transform: skewX(.5deg) scaleX(.995); } }
@keyframes cs-breathe-r { 50% { transform: skewX(-.5deg) scaleX(.995); } }
.cs-curtain__valance {
  position: absolute; top: 0; left: 0; right: 0; height: 4.6rem;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .35), transparent 70%),
    repeating-linear-gradient(90deg, #163a23 0, #24543a 1.2rem, #163a23 2.4rem);
  -webkit-mask: radial-gradient(1.6rem 1.2rem at 50% 100%, transparent 98%, #000) 0 0 / 3.2rem 100%;
  mask: radial-gradient(1.6rem 1.2rem at 50% 100%, transparent 98%, #000) 0 0 / 3.2rem 100%;
  border-top: 3px solid #b8873a;
  box-shadow: 0 8px 18px rgb(0 0 0 / .45);
}
.cs-stage:has(.cs-pull:hover):not(.is-open) .cs-curtain__half--l { transform: translateX(-2.5%); animation: none; }
.cs-stage:has(.cs-pull:hover):not(.is-open) .cs-curtain__half--r { transform: translateX(2.5%); animation: none; }
.cs-stage.is-open .cs-curtain__half { animation: none; filter: brightness(.85); }
.cs-stage.is-open .cs-curtain__half--l { transform: scaleX(.11); clip-path: polygon(0 0, 100% 0, 100% 46%, 38% 64%, 0 100%); }
.cs-stage.is-open .cs-curtain__half--r { transform: scaleX(.11); clip-path: polygon(0 0, 100% 0, 100% 100%, 62% 64%, 0 46%); }

/* pull cord + button */
.cs-pull {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  display: grid; justify-items: center; gap: 0;
  transform: translate(-50%, -38%);
  transition: top .9s var(--ease-in-out), left .9s var(--ease-in-out), transform .9s var(--ease-in-out);
}
.cs-pull__cord { width: 2px; height: clamp(5rem, 14vh, 8rem); background: linear-gradient(180deg, #8a6428, #e3a94e); transform-origin: top; transition: height .6s var(--ease-out); }
.cs-pull__label {
  display: grid; justify-items: center; gap: .15rem;
  padding: .95rem 1.6rem;
  border: 1px solid rgb(227 169 78 / .65);
  border-radius: 99px;
  background: rgb(15 25 19 / .82);
  backdrop-filter: blur(6px);
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 0 0 6px rgb(227 169 78 / .08), 0 18px 40px -16px rgb(0 0 0 / .8);
  transition: background .3s, color .3s, transform .4s var(--ease-spring), padding .6s var(--ease-in-out);
}
.cs-pull__label em { font-style: normal; font-size: .78rem; color: var(--amber); font-weight: 400; }
.cs-pull:hover .cs-pull__label { transform: translateY(4px); background: rgb(227 169 78 / .16); }
.cs-pull:hover .cs-pull__cord { height: calc(clamp(5rem, 14vh, 8rem) + 4px); }
.cs-pull:focus-visible { outline: none; }
.cs-pull:focus-visible .cs-pull__label { outline: 2px solid var(--signal); outline-offset: 4px; }
.cs-stage.is-open .cs-pull { top: 1.1rem; left: calc(100% - 1.1rem); transform: translate(-100%, 0); }
.cs-stage.is-open .cs-pull__cord { height: 0; }
.cs-stage.is-open .cs-pull__label { padding: .6rem 1.1rem; }
.cs-stage.is-open .cs-pull__label em { display: none; }

/* certificate dialog */
.cs-dialog { width: min(58rem, calc(100% - 2rem)); max-width: none; max-height: calc(100svh - 2rem); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.cs-dialog::backdrop { background: rgb(8 14 10 / .72); backdrop-filter: blur(6px); }
.cs-dialog[open] .cs-dialog__inner { animation: cs-pop .55s var(--ease-out) both; }
.cs-dialog[open]::backdrop { animation: cs-fade .4s ease both; }
@keyframes cs-pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes cs-fade { from { opacity: 0; } }
.cs-dialog__inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.75rem; align-items: center; padding: 1.5rem; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(160deg, #1e2d21, #141f17); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9); }
.cs-dialog__x { position: absolute; top: .7rem; right: .7rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-2); font-size: 1.4rem; line-height: 1; color: var(--text-2); transition: color .3s, border-color .3s, transform .4s var(--ease-spring); }
.cs-dialog__x:hover { color: var(--text); border-color: var(--linen); transform: rotate(90deg); }
.cs-dialog__paper { --c: var(--amber); --c-rgb: 227 169 78; position: relative; aspect-ratio: 1.414; border-radius: 10px; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 2rem; text-align: center;
  background: repeating-radial-gradient(circle at 50% 120%, transparent 0 9px, rgb(var(--c-rgb) / .05) 9px 10px), linear-gradient(150deg, #2a3b2c, #1a261c);
  box-shadow: inset 0 0 0 10px rgb(15 25 19 / .6), inset 0 0 0 11px rgb(var(--c-rgb) / .35), inset 0 0 0 16px rgb(15 25 19 / .3), inset 0 0 0 17px rgb(var(--c-rgb) / .18); }
.cs-dialog__paper.is-a { --c: var(--signal); --c-rgb: 185 234 91; }
.cs-dialog__paper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cs-dialog__paper .p-issuer { font-size: .8rem; color: var(--text-3); }
.cs-dialog__paper .p-name { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; max-width: 16ch; }
.cs-dialog__paper .p-code { font-family: var(--font-mono); font-size: .8rem; color: var(--c); }
.cs-dialog__paper .p-stamp { position: absolute; right: 8%; bottom: 10%; padding: .35rem .8rem; border: 2px solid rgb(var(--c-rgb) / .7); border-radius: 6px; color: var(--c); font-family: var(--font-mono); font-size: .8rem; transform: rotate(-12deg); opacity: .85; }
.cs-dialog__meta { display: grid; gap: .6rem; padding-right: 2rem; }
.cs-dialog__issuer { font-size: .85rem; color: var(--text-3); }
.cs-dialog__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-s); line-height: 1.1; }
.cs-dialog__status { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--amber); }
.cs-dialog__note { color: var(--text-2); font-size: .93rem; }

/* 7. Responsive ----------------------------------------------------------- */
@media (max-width: 1023px) {
  .ab-hero { min-height: 0; row-gap: 2.5rem; }
  .ab-hero__text { grid-column: 1 / -1; }
  .ab-badge-wrap { grid-column: 1 / -1; --bw: clamp(13rem, 48vw, 16rem); margin-top: 1rem; transform-origin: 50% -30vh; }
  .ab-ledger__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-ledger__list li, .ab-ledger__list li:first-child { padding: 1.5rem 1rem 1.6rem 0; }
  .ab-ledger__list li + li { border-left: 0; }
  .ab-ledger__list li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .ab-ledger__list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ab-ledger__list li:last-child { grid-column: 1 / -1; }
  .ab-stack__intro { grid-column: 1 / -1; position: static; }
  .ab-layers { grid-column: 1 / -1; }
  .ab-proj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-dialog__inner { grid-template-columns: 1fr; }
  .cs-dialog__meta { padding-right: 0; }
}
@media (max-width: 720px) {
  .ab-facts { grid-template-columns: 1fr; }
  .ab-facts > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .ab-layers { padding-left: 2.2rem; }
  .ab-layers__rail { left: .6rem; }
  .ab-layer { padding: 1rem; gap: .85rem; }
  .ab-layer::before { left: calc(-2.2rem + .6rem + 1px); }
  .ab-layer__icon { width: 2.5rem; height: 2.5rem; }
  .ab-layer__name { font-size: 1.3rem; }
  .ab-tl { --tl-c1: 0px; }
  .ab-tl__rail { left: .75rem; }
  .ab-tl__item { grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: .9rem; }
  .ab-tl__when { grid-column: 2; grid-row: 1; padding-top: 0; margin-bottom: .6rem; font-size: 1.15rem; }
  .ab-tl__node { grid-column: 1; grid-row: 1; margin-top: .3rem; }
  .ab-tl__card { grid-column: 2; padding: 1.2rem 1.15rem 1.3rem; }
  .ab-proj { grid-template-columns: 1fr; }
  .ab-proj__item--wide { grid-column: auto; grid-row: auto; }
  .cs-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .cert__btn { aspect-ratio: auto; min-height: 9.5rem; padding: .9rem; }
  .cert__name { font-size: 1.08rem; }
  .cs-wall { padding-top: 5.6rem; }
}
@media (max-width: 420px) { .cs-grid { grid-template-columns: 1fr; } }

/* 8. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ab-badge-wrap, .ab-js .ab-badge-wrap { transform: none !important; animation: none !important; }
  .ab-badge__scan, .cs-curtain__half, .ab-desks i, .ab-bars i { animation: none !important; }
  .ab-layer, .ab-tl__card { opacity: 1; transform: none; }
  .cs-curtain__half, .cs-stage, .cs-pull, .cert { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* 9. Fixes + AI chat demo -------------------------------------------------- */
.ab-ledger { padding-bottom: 0; }
.ab-layer { transform: none; }
.ab-layer > .ab-layer__icon, .ab-layer > .ab-layer__body { transform: translateX(12px); transition: transform .7s var(--ease-out); }
.ab-layer.is-on > .ab-layer__icon, .ab-layer.is-on > .ab-layer__body { transform: none; }
.cs-stage.is-open .cs-curtain__half--l, .cs-stage.is-open .cs-curtain__half--r { transform: scaleX(.07); }
.cs-wall { padding-inline: calc(3.6% + clamp(.75rem, 2vw, 1.75rem)); }
.cs-pull__label { white-space: nowrap; }

.ab-proj__item--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; align-items: stretch; }
.ab-proj__txt { display: flex; flex-direction: column; gap: .8rem; }
.ab-proj__points { list-style: none; display: grid; gap: .5rem; margin: .4rem 0 .3rem; font-size: .92rem; }
.ab-proj__points li { display: flex; gap: .6rem; align-items: baseline; }
.ab-proj__points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); transform: translateY(-1px); }
.ab-proj__scope { margin-top: auto; }

.ab-chat { display: flex; flex-direction: column; min-height: 24rem; margin: 0; padding: 0; gap: 0; border: 1px solid var(--line-2); border-radius: 14px; background: rgb(12 20 15 / .85); overflow: hidden; font-size: .88rem; box-shadow: 0 30px 60px -40px rgb(0 0 0 / .9); }
.ab-chat__bar { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.ab-chat__av { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgb(185 234 91 / .12); border: 1px solid rgb(185 234 91 / .4); }
.ab-chat__av svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; }
.ab-chat__who { display: grid; line-height: 1.2; }
.ab-chat__who strong { font-weight: 500; font-size: .88rem; }
.ab-chat__who em { display: inline-flex; align-items: center; gap: .35rem; font-style: normal; font-size: .72rem; color: var(--text-3); }
.ab-chat__log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; padding: 1rem; overflow: hidden; transition: opacity .5s; }
.ab-chat__log.is-clearing { opacity: 0; }
.ab-chat__log > p { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.ab-chat__log > p.is-shown { opacity: 1; transform: none; }
.ab-chat__m { max-width: 82%; padding: .55rem .8rem; border-radius: 14px; line-height: 1.4; }
.ab-chat__m--q { align-self: flex-end; background: rgb(var(--linen-rgb) / .11); border-bottom-right-radius: 4px; transform-origin: right bottom; }
.ab-chat__m--a { align-self: flex-start; background: rgb(185 234 91 / .13); border: 1px solid rgb(185 234 91 / .2); border-bottom-left-radius: 4px; transform-origin: left bottom; }
.ab-chat__src { align-self: flex-start; margin-top: -.2rem; padding: .15rem .5rem; border-radius: 99px; border: 1px dashed rgb(185 234 91 / .35); font-family: var(--font-mono); font-size: .68rem; color: var(--signal); }
.ab-chat__hand { align-self: center; padding: .25rem .7rem; border-radius: 99px; background: rgb(227 169 78 / .14); color: var(--amber); font-size: .72rem; }
.ab-chat__dots { align-self: flex-start; display: flex; gap: .3rem; padding: .7rem .85rem; border-radius: 14px; background: rgb(185 234 91 / .1); }
.ab-chat__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: ab-dot 1s infinite; }
.ab-chat__dots i:nth-child(2) { animation-delay: .15s; } .ab-chat__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ab-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.ab-chat__input { display: flex; align-items: center; gap: .5rem; margin: 0 .8rem .8rem; padding: .65rem .8rem; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); min-height: 2.6rem; }
.ab-chat__ph { color: var(--text-3); }
.ab-chat__ph[hidden] { display: none; }
.ab-chat__send { margin-left: auto; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 8px; background: var(--signal); }
.ab-chat__send svg { width: .95rem; height: .95rem; fill: var(--undergrowth); }
@media (max-width: 1023px) {
  .ab-proj__item--wide { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1fr; }
  .ab-chat { min-height: 21rem; }
}
.ab-lanyard { -webkit-mask: linear-gradient(180deg, transparent, #000 calc(var(--header-h) + 3rem)); mask: linear-gradient(180deg, transparent, #000 calc(var(--header-h) + 3rem)); }
@media (max-width: 1023px) {
  .ab-lanyard { -webkit-mask: linear-gradient(180deg, transparent, #000 70%); mask: linear-gradient(180deg, transparent, #000 70%); }
  .ab-badge-wrap { margin-top: 5rem; }
  .cs-dialog__inner { padding-top: 3.6rem; }
}
@media (min-width: 1024px) {
  .ab-lanyard { -webkit-mask: linear-gradient(180deg, transparent calc(var(--header-h) + .5rem), #000 calc(var(--header-h) + 4.5rem)); mask: linear-gradient(180deg, transparent calc(var(--header-h) + .5rem), #000 calc(var(--header-h) + 4.5rem)); }
}
@media (max-width: 720px) { .ab-badge__head { font-size: .6rem; } }

/* 10. Rails end in dots, centred nodes, toolkit ticker -------------------- */
.ab-layer::before { width: 12px; height: 12px; margin: -6px 0 0 -6px; left: -2.1rem; }
.ab-tl__node { width: 12px; height: 12px; }
@media (max-width: 720px) { .ab-layer::before { left: -1.6rem; } }

.ab-ticker { display: none; }
@media (min-width: 1024px) {
  .ab-tools .section-head.has-ticker .section-head__title { grid-column: 1 / span 3; }
  .ab-ticker {
    display: grid; gap: .7rem; grid-column: 4 / span 5; grid-row: 1; align-self: center; overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .ab-ticker__row { overflow: hidden; }
  .ab-ticker__track { display: flex; gap: .6rem; width: max-content; animation: ab-tick 38s linear infinite; }
  .ab-ticker__row--rev .ab-ticker__track { animation-direction: reverse; animation-duration: 44s; }
  .ab-ticker:hover .ab-ticker__track { animation-play-state: paused; }
  .ab-ticker__chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 99px; background: rgb(15 25 19 / .6); font-size: .85rem; color: var(--text-2); white-space: nowrap; }
  @keyframes ab-tick { to { transform: translateX(calc(-50% - .3rem)); } }
}
@media (prefers-reduced-motion: reduce) { .ab-ticker__track { animation: none; } }

/* 11. Toolkit: lower ceiling, framed panel with a light tracing its border, bigger ticker */
html .ab-tools { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
@property --ab-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ab-tools__frame {
  position: relative; isolation: isolate;
  padding: clamp(1.5rem, 3.2vw, 3rem) clamp(1.25rem, 3vw, 3rem) clamp(.5rem, 1.5vw, 1.25rem);
  border: 1px solid var(--line); border-radius: 22px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgb(227 169 78 / .07), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgb(185 234 91 / .07), transparent 60%),
    linear-gradient(rgb(var(--linen-rgb) / .035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgb(var(--linen-rgb) / .035) 1px, transparent 1px) 0 0 / 40px 40px,
    rgb(15 25 19 / .55);
  box-shadow: 0 50px 90px -60px rgb(0 0 0 / .9);
}
.ab-tools__trace { /* a short beam of light running round the border */
  position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ab-a), transparent 0 72%, rgb(227 169 78 / .9) 82%, var(--signal) 90%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ab-trace 9s linear infinite;
  filter: drop-shadow(0 0 6px rgb(185 234 91 / .5));
}
@keyframes ab-trace { to { --ab-a: 360deg; } }
.ab-tools__corners { position: absolute; inset: .7rem; pointer-events: none;
  background:
    linear-gradient(var(--signal), var(--signal)) 0 0 / 14px 1.5px, linear-gradient(var(--signal), var(--signal)) 0 0 / 1.5px 14px,
    linear-gradient(var(--signal), var(--signal)) 100% 0 / 14px 1.5px, linear-gradient(var(--signal), var(--signal)) 100% 0 / 1.5px 14px,
    linear-gradient(var(--amber), var(--amber)) 0 100% / 14px 1.5px, linear-gradient(var(--amber), var(--amber)) 0 100% / 1.5px 14px,
    linear-gradient(var(--amber), var(--amber)) 100% 100% / 14px 1.5px, linear-gradient(var(--amber), var(--amber)) 100% 100% / 1.5px 14px;
  background-repeat: no-repeat; opacity: .8; }
.ab-tools__frame .section-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.ab-tools__frame .toolkit { border-top-color: var(--line-2); }
.ab-tools__frame .tool-group__list li { transition: color .3s, transform .4s var(--ease-out); }
.ab-tools__frame .tool-group__list li:hover { color: var(--text); transform: translateX(4px); }
@media (min-width: 1024px) {
  .ab-tools .section-head.has-ticker { align-items: center; }
  .ab-tools .section-head.has-ticker .section-head__title { grid-column: 1 / span 2; }
  .ab-ticker { grid-column: 3 / span 7; gap: 1rem; }
  .ab-ticker__track { gap: .8rem; }
  .ab-ticker__chip { padding: .75rem 1.3rem; font-size: 1.02rem; gap: .65rem; }
  .ab-ticker__chip .led { width: 7px; height: 7px; }
  .ab-tools .section-head.has-ticker .section-head__text { grid-column: 10 / -1; }
}
@media (max-width: 1023px) { .ab-tools__frame { border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .ab-tools__trace { animation: none; } }

/* 12. Experience head: career line 2021 → today; centred certificates title */
.ab-career { grid-column: 5 / -1; align-self: end; position: relative; padding: 0 .6rem 0 0; margin-bottom: .4rem; }
.ab-career__track { position: relative; height: 2px; margin: 0 0 0; background: var(--line-2); border-radius: 2px; }
.ab-career__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--amber), var(--signal)); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-in-out) .2s; box-shadow: 0 0 12px rgb(185 234 91 / .35); }
.ab-career.is-in .ab-career__fill { transform: none; }
.ab-career__pulse { position: absolute; top: 50%; left: 0; width: 46px; height: 4px; margin: -2px 0 0 -46px; border-radius: 4px; background: linear-gradient(90deg, transparent, #fff); box-shadow: 0 0 10px var(--signal), 0 0 22px var(--signal); opacity: 0; }
.ab-career.is-in .ab-career__pulse { animation: ab-career-run 4.5s var(--ease-in-out) 2s infinite; }
@keyframes ab-career-run { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.ab-career__stops { list-style: none; position: relative; height: 4.6rem; }
.ab-career__stops li { position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-50%); display: grid; justify-items: center; gap: .15rem; padding-top: 1.1rem; white-space: nowrap; opacity: 0; transition: opacity .6s var(--ease-out); }
.ab-career__stops li:first-child { transform: none; justify-items: start; }
.ab-career__stops li:last-child { transform: translateX(-100%); justify-items: end; }
.ab-career.is-in .ab-career__stops li { opacity: 1; transition-delay: calc(.4s + var(--x) * 1.6s); }
.ab-career__stops li::before { content: ""; position: absolute; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--undergrowth); box-shadow: inset 0 0 0 2px var(--amber); }
.ab-career__stops li:first-child::before { left: -6px; }
.ab-career__stops li:last-child::before { right: -6px; box-shadow: inset 0 0 0 2px var(--signal), 0 0 12px var(--signal); background: var(--signal); animation: led-pulse 2.4s ease-in-out infinite; }
.ab-career__stops li:nth-child(3)::before { box-shadow: inset 0 0 0 2px var(--signal); }
.ab-career__stops b { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1; color: var(--text); }
.ab-career__stops span { font-size: .8rem; color: var(--text-3); }
.ab-career__stops .is-now span { color: var(--signal); }
@media (max-width: 1023px) { .ab-career { grid-column: 1 / -1; margin-top: 1.5rem; } }
@media (max-width: 520px) { .ab-career__stops b { font-size: 1.15rem; } .ab-career__stops span { font-size: .7rem; } }
@media (prefers-reduced-motion: reduce) { .ab-career__fill { transform: none; } .ab-career__stops li { opacity: 1; } .ab-career__pulse { display: none; } }

.ab-certs .section-head { display: block; text-align: center; }
.ab-certs .section-head__title { display: block; text-align: center; }
