/* Axori About page — builds on home.css + projects.css (brand, header, fades, cursor) */

.ab-app > .brand,
.ab-app > .pj-head,
.ab-app > .axi-foot,
.ab-app > .axi-dock,
.ab-app > .axi-gear,
.ab-app > .axi-settings { z-index: 30; }
.ab-app > .pj-fade { z-index: 20; }

/* About: the fixed headline and contact readout gently fold away once the
   inner document starts scrolling. Animate their contents rather than the .rv
   wrappers: those wrappers have their own entrance animation in home.css.
   This prevents competing transforms and keeps the AJAX entrance intact. */
.axi-ab .ab-app > .pj-head > .pj-crumb,
.axi-ab .ab-app > .pj-head > .pj-title,
.axi-ab .ab-app > .pj-foot > div {
  transform-origin: center right;
  transition:
    opacity 480ms cubic-bezier(.22,1,.36,1),
    transform 620ms cubic-bezier(.22,1,.36,1),
    filter 480ms ease,
    visibility 480ms;
}
.axi-ab .ab-app > .pj-foot > div { transform-origin: bottom left; }
.axi-ab .ab-app.ab-chrome-collapsed > .pj-head,
.axi-ab .ab-app.ab-chrome-collapsed > .pj-foot {
  pointer-events: none;
}
.axi-ab .ab-app.ab-chrome-collapsed > .pj-head > .pj-crumb {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0,-14px,0) scale(.94);
  filter: blur(5px);
}
.axi-ab .ab-app.ab-chrome-collapsed > .pj-head > .pj-title {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0,-30px,0) scale(.9);
  filter: blur(7px);
}
.axi-ab .ab-app.ab-chrome-collapsed > .pj-foot > div {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-12px,18px,0) scale(.94);
  filter: blur(5px);
}
@media (prefers-reduced-motion: reduce) {
  .axi-ab .ab-app > .pj-head > .pj-crumb,
  .axi-ab .ab-app > .pj-head > .pj-title,
  .axi-ab .ab-app > .pj-foot > div {
    transition: none;
    filter: none !important;
    transform: none !important;
  }
}

/* particle field behind everything */
.ab-particles { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.axi-entered .ab-particles { opacity: 1; }

/* ---------- scrolling text column ---------- */
.ab-scroll {
	position: fixed;
	inset: 0;
	z-index: 10;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1.5rem;
	scrollbar-width: none;
}
.ab-scroll::-webkit-scrollbar { display: none; }
/* One wide column rather than a half-width strip beside a fixed portrait:
   the page reads as a document, and the portrait is part of it. */
.axi-ab { --ab-max: 92rem; --ab-gut: clamp(1.25rem, 4vw, 3.5rem); }
.ab-wrap {
	position: relative;
	width: min(100%, var(--ab-max));
	margin: 0 auto;
	padding: 0 var(--ab-gut);
	font-family: var(--mono);
	color: rgb(var(--acc-l));
	opacity: 0;
	transition: opacity 1s var(--ease) 0.3s;
}
.axi-entered .ab-wrap { opacity: 1; }
.ab-block { margin-top: 9rem; }
.ab-block-spaced { margin-top: clamp(5rem, 11vh, 9rem); }

/* ---------- hero ---------- */
.ab-hero {
	display: grid;
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: center;
	padding-top: clamp(8rem, 18vh, 13rem);
}
.ab-hero-l { min-width: 0; }
@media (min-width: 900px) {
	.ab-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.ab-wrap p { margin: 0; font-size: 18px; line-height: 1.625; }
.ab-kicker { color: rgb(var(--acc-l) / 0.45); }
.ab-h2 {
	margin: 0.5rem 0;
	font-family: var(--display);
	font-size: calc(48px * var(--s-title, 1));
	line-height: 1;
	font-weight: 700;
	text-transform: uppercase;
	color: rgb(var(--acc-l));
}
.ab-line { display: block; }
/* body copy reads as prose; the mono face stays on the labels and data */
.axi-ab .ab-lede,
.axi-ab .ab-text > p {
	font-family: var(--sans);
	font-size: calc(17px * var(--s-text, 1)) !important;
	line-height: 1.8;
	color: rgb(var(--acc-l) / 0.62);
}
.ab-text > p:last-child { margin-top: 2.5rem; }
.axi-ab .ab-lede { max-width: 52ch; margin-top: 1.5rem !important; }

/* ---------- chapter markers ---------- */
.axi-ab .ab-ch {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin: 0 0 2rem !important;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid rgb(var(--acc-l) / 0.1);
	font-family: ui-monospace, Consolas, monospace;
	font-size: 9.5px !important;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.35);
}
.ab-ch span { font-weight: 700; color: rgb(var(--acc)); }

/* ---------- facts strip ---------- */
/* runs the full width of the page under the hero */
.ab-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0;
	margin: clamp(3.5rem, 8vh, 6rem) 0 0;
	border-top: 1px solid rgb(var(--acc-l) / 0.12);
	border-bottom: 1px solid rgb(var(--acc-l) / 0.12);
}
.ab-facts > div { padding: 1.3rem 1.75rem 1.4rem 0; }
.ab-facts > div + div { padding-left: 1.75rem; border-left: 1px solid rgb(var(--acc-l) / 0.1); }
.ab-facts dt {
	margin-bottom: 0.45rem;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 9.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.35);
}
.ab-facts dd {
	margin: 0;
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.9);
}

/* ---------- how I work: cards across the width ---------- */
.ab-rules {
	display: grid;
	/* auto-fit collapses the spare track, so five cards sit on one row at full
	   width instead of stranding the last one underneath */
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1px;
	margin: 0;
	padding: 1px 0 0;
	list-style: none;
	background: rgb(var(--acc-l) / 0.1);
}
.ab-rules li {
	position: relative;
	padding: clamp(1.5rem, 2.4vw, 2.25rem);
	background: var(--bg);
	transition: background-color 0.5s var(--ease);
}
.ab-rules li:hover { background: rgb(var(--acc) / 0.04); }
.ab-rules .n {
	display: block;
	margin-bottom: 1.1rem;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: rgb(var(--acc) / 0.8);
}
.axi-ab .ab-rules h3 {
	margin: 0 0 0.85rem;
	font-family: var(--display);
	font-size: clamp(20px, 1.5vw, 26px);
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: rgb(var(--acc-l));
}
.axi-ab .ab-rules p {
	font-family: var(--sans);
	font-size: calc(15px * var(--s-text, 1));
	line-height: 1.75;
	color: rgb(var(--acc-l) / 0.55);
}

/* scroll reveal: rise 40px and fade in (like the reference) */
[data-rv] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), border-color 0.3s, background-color 0.3s; }
[data-rv].in { opacity: 1; transform: none; }

/* ---------- tech stack ---------- */
/* Each group is a labelled row rather than a grid of outlined boxes — the old
   chips fought the rest of the page for attention. */
.ab-stack { display: flex; flex-direction: column; gap: 0; margin: 3rem 0; }
.ab-cat {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.9rem;
	padding: 1.6rem 0;
	border-bottom: 1px solid rgb(var(--acc-l) / 0.09);
}
.ab-cat:first-child { padding-top: 0; }
.ab-cat-head { display: flex; align-items: baseline; gap: 0.75rem; }
.ab-cat-label { font-family: ui-monospace, Consolas, monospace; font-size: 9px; text-transform: uppercase; letter-spacing: 0.24em; color: rgb(var(--acc) / 0.7); }
.ab-cat-title { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: rgb(var(--acc-l) / 0.85); }
.ab-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.ab-chip {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	min-width: 0;
	padding: 0.35rem 0.7rem;
	border: 1px solid rgb(var(--acc-l) / 0.16);
	border-radius: 99px;
	cursor: default;
	transition: border-color 0.4s, color 0.4s, background-color 0.4s;
}
.ab-chip:hover { border-color: rgb(var(--acc) / 0.55); background: rgb(var(--acc) / 0.06); }
.ab-idx { display: none; }
.ab-lbl {
	overflow: hidden;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: rgb(var(--acc-l) / 0.65);
}
.ab-chip:hover .ab-lbl { color: rgb(var(--acc-l) / 0.95); }
@media (min-width: 900px) {
	.ab-cat { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; gap: 1.5rem; }
	.ab-cat-head { flex-direction: column; gap: 0.35rem; }
}

/* ---------- closing CTA ---------- */
.ab-cta { margin: 6rem 0 25vh; }
.axi-ab .ab-cta-sub {
	max-width: 52ch;
	margin-top: 1.5rem !important;
	font-family: var(--sans);
	font-size: calc(16px * var(--s-text, 1)) !important;
	line-height: 1.8 !important;
	color: rgb(var(--acc-l) / 0.6);
}
.ab-cta-row { display: grid; gap: 1rem; margin-top: 6rem; }
.ab-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 300px;
	padding: 1rem 1.5rem;
	border: 1px solid rgb(var(--acc) / 0.3);
	border-radius: 0.375rem;
	background: rgb(var(--acc-l) / 0.05);
	font-family: var(--mono);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgb(var(--acc-l));
	transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform 0.4s var(--ease); }
.ab-btn:hover { border-color: rgb(var(--acc-l) / 0.5); background: rgb(var(--acc-l) / 0.1); }
.ab-btn:hover svg { transform: translate(2px, -2px); }

/* ---------- portrait frame ----------
   In the flow now, beside the hero, instead of pinned to the viewport. The
   CRT pass and the scroll-velocity blur are unchanged — both only need the
   canvas and #ab-frame-wrap to exist. */
.ab-frame-wrap {
	position: relative;
	z-index: 1;
	min-width: 0;
	max-width: 23rem;
	margin-left: auto;
	will-change: filter;
}
/* the copy runs the full width now, so it passes behind the fixed footer —
   the bottom scrim has to start higher than it did beside a narrow column */
.axi-ab .pj-fade-bottom {
	height: 15rem;
	background: linear-gradient(to top, var(--bg) 42%, transparent);
}
.ab-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border: 1px solid rgb(var(--acc-l) / 0.16);
	background: #050505;
}
.ab-canvas { display: block; width: 100%; height: 100%; }
/* register marks and a caption, the same treatment the cards carry */
.ab-frame::before,
.ab-frame::after {
	content: '';
	position: absolute;
	z-index: 3;
	width: 11px;
	height: 11px;
	border-color: rgb(var(--acc));
	border-style: solid;
	opacity: 0.5;
	pointer-events: none;
}
.ab-frame::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.ab-frame::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.axi-ab .ab-cap {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.85rem 0 0 !important;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 8.5px !important;
	line-height: 1.4 !important;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgb(var(--acc-l) / 0.3);
}

/* the CRT pass already tints and scans, so the flat overlays step back here */
.ab-frame-live .ab-frame-tint { background: rgb(var(--acc) / 0.08); }
.ab-frame-live .ab-frame-scan { opacity: 0.5; }

/* the CRT portrait reacts to the pointer, so this one frame opts back into
   hit-testing (.ab-frame-wrap is pointer-events: none for the rest of the page) */
.ab-frame-live {
	pointer-events: auto;
	transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.6s var(--ease);
}
.ab-frame-live:hover {
	border-color: rgb(var(--acc) / 0.75);
	box-shadow: 0 0 26px rgb(var(--acc) / 0.22);
	transform: translateY(-3px);
}
@media (hover: none), (pointer: coarse) {
	.ab-frame-live { pointer-events: none; }
}
.ab-frame-tint {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: 0.375rem;
	background: rgb(var(--acc) / 0.2);
	mix-blend-mode: color;
	pointer-events: none;
}
.ab-frame-scan {
	position: absolute;
	left: 0;
	z-index: 3;
	width: 100%;
	height: 1px;
	background: rgb(var(--acc-l) / 0.25);
	box-shadow: 0 0 10px rgb(var(--acc-l) / 0.3);
	animation: pj-scan 7s linear infinite;
}
/* generated placeholder silhouette (until a portrait is uploaded) */
.ab-ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background:
		repeating-linear-gradient(0deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 12px),
		radial-gradient(ellipse at 50% 30%, rgb(255 255 255 / 0.12), transparent 60%),
		linear-gradient(180deg, #111, #030303);
}
.ab-ph-head { position: absolute; left: 50%; top: 22%; width: 34%; aspect-ratio: 0.82; border-radius: 48% 48% 44% 44%; background: radial-gradient(ellipse at 40% 35%, #3a3a3a, #121212 70%); transform: translateX(-50%); }
.ab-ph-body { position: absolute; left: 50%; bottom: 0; width: 86%; height: 38%; border-radius: 45% 45% 0 0; background: radial-gradient(ellipse at 50% 0%, #2c2c2c, #0c0c0c 70%); transform: translateX(-50%); }
.ab-ph em { position: relative; z-index: 1; margin-bottom: 10%; font-family: ui-monospace, Consolas, monospace; font-size: 9px; font-style: normal; letter-spacing: 0.3em; color: rgb(255 255 255 / 0.45); }

/* ---------- breakpoints (match the reference) ---------- */
@media (min-width: 640px) {
	.ab-scroll { padding: 0; }
	.ab-h2 { font-size: calc(60px * var(--s-title, 1)); }
	.ab-cta-row { display: flex; gap: 1.5rem; }
}
@media (min-width: 1024px) {
	.ab-h2 { font-size: calc(68px * var(--s-title, 1)); }
}
@media (min-width: 1280px) {
	.ab-h2 { font-size: calc(76px * var(--s-title, 1)); }
}
@media (max-width: 767px) {
	.ab-block { margin-top: 12rem; }
	/* the portrait floats over the top right here, so the facts run down the
	   left in one column rather than half-hiding behind it */
	.ab-facts { grid-template-columns: minmax(0, 1fr); }
	.ab-facts > div,
	.ab-facts > div:nth-child(2n) { padding: 0.95rem 0 1rem; border-left: 0; }
	.ab-facts > div + div { border-top: 1px solid rgb(var(--acc-l) / 0.1); }
	.ab-rules li { grid-template-columns: 2.25rem minmax(0, 1fr); padding: 1.4rem 0; }
	.ab-cap { display: none; }
}
