/* Paper, ink, one oxblood accent (direction A, Itai's pick on MEXA-2048), set the way
   an LLM's chat is set (MEXA-3770, Itai: "super minimalistic… more open and super sleek
   like other LLMs"). The first screen is one line, one input and three quiet suggestions,
   centred in the empty page. The visitor's words sit in a small bubble on the right; the
   answer is plain set text with generous leading and at most one plate under it. Motion is
   slow and soft and there is little of it. Type: Newsreader (OFL) for reading, Instrument
   Sans (OFL) for chrome. */
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-Italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f4f2ec; --paper: #faf9f5; --paper-2: #fff; --surface: #faf9f5; --ink: #191917; --ink-2: #5a5852; --ink-3: #6e6b62; --line: #dcd8cc; --line-2: #ebe8df;
  --accent: #8e2a22; --sel: #efe3cf; --glow: #fbfaf6; --hi: rgb(255 255 255 / 0.8); --shadow: 25 25 23; --scrim: rgb(25 25 23 / 0.35);
  --font-text: "Newsreader", Georgia, "Times New Roman", serif; --font-ui: "Instrument Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --tok-ms: 220ms; --p-gap: 1em; --art-gap: 1.5rem;
  --col: 42rem; --r: 4px;
  --demo-bg: #f4f2ec; --demo-surface: #fff; --demo-line: #e4e0d4; --demo-accent: #8e2a22; --demo-r: 10px; --dd-r: 4px;
  --dd-paper: #fff; --dd-ink: #000; --dd-ink-2: #333; --dd-ink-3: #555; --dd-fill: #f2f2f2; --dd-slot: #fafafa; --dd-rule: #666;
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
/* Dark (MEXA-2194): the same paper-and-ink idea at night. Follows the system; the header toggle
   sets html[data-theme] (remembered in localStorage, applied before paint by the head script).
   Body text ≥ 4.5:1 on every surface: ink #ebe7dc on #161512 ≈ 14:1, ink-2 #b7b2a6 on #1d1c18 ≈ 8:1,
   ink-3 #8a857a ≈ 5:1 (light: #6e6b62 on #f4f2ec ≈ 4.8:1), the lifted oxblood #d9776b on #161512 ≈ 6:1. Browsers without light-dark() keep the light theme. */
@supports (color: light-dark(#000, #fff)) {
  :root {
    --bg: light-dark(#f4f2ec, #161512); --paper: light-dark(#faf9f5, #1d1c18); --paper-2: light-dark(#fff, #23221d); --surface: light-dark(#faf9f5, #1d1c18);
    --ink: light-dark(#191917, #ebe7dc); --ink-2: light-dark(#5a5852, #b7b2a6); --ink-3: light-dark(#6e6b62, #8a857a); --line: light-dark(#dcd8cc, #35332c); --line-2: light-dark(#ebe8df, #2a2924);
    --accent: light-dark(#8e2a22, #d9776b); --sel: light-dark(#efe3cf, #4a382f); --glow: light-dark(#fbfaf6, #1c1b17); --hi: light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.05)); --shadow: light-dark(25 25 23, 0 0 0); --scrim: light-dark(rgb(25 25 23 / 0.35), rgb(0 0 0 / 0.6));
    --demo-bg: light-dark(#f4f2ec, #161512); --demo-surface: light-dark(#fff, #23221d); --demo-line: light-dark(#e4e0d4, #36342d); --demo-accent: light-dark(#8e2a22, #d9776b);
    --dd-paper: light-dark(#fff, #1d1c18); --dd-ink: light-dark(#000, #ebe7dc); --dd-ink-2: light-dark(#333, #c9c4b8); --dd-ink-3: light-dark(#555, #a39e92); --dd-fill: light-dark(#f2f2f2, #2a2823); --dd-slot: light-dark(#fafafa, #23221d); --dd-rule: light-dark(#666, #9a958a);
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }
}
html { background: var(--bg); }
body { font-size: 1.125rem; font-optical-sizing: auto; display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; }
body { background-image: radial-gradient(circle at 50% 0, var(--glow) 0, transparent 60%); }
::selection { background: var(--sel); }
/* Screenshots in the dark: a dark frame (the tile and card already use the surfaces) and a touch less brightness, so a white page shot doesn't glare. */
:root[data-theme="dark"] .tile-media img, :root[data-theme="dark"] .pcard-shot { filter: brightness(0.86) contrast(1.04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-media img, :root:not([data-theme="light"]) .pcard-shot { filter: brightness(0.86) contrast(1.04); } }


/* header: the mark, and on the right one link, one word, one toggle. Nothing else. */
.top { font-family: var(--font-ui); font-size: 0.8125rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem max(clamp(1rem, 3vw, 1.75rem), var(--sar)) 0.9rem max(clamp(1rem, 3vw, 1.75rem), var(--sal)); position: sticky; top: 0; z-index: 5; }
body.talking .top { background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.top-right { display: flex; align-items: center; gap: 0.25rem; }
.mexant-link, .all { color: var(--ink-2); text-decoration: none; padding: 0.55rem 0.7rem; border: 0; background: none; border-radius: 99px; font-weight: 500; white-space: nowrap; letter-spacing: -0.005em; transition: color 160ms var(--ease-out), background 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mexant-link:hover, .all:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); } }
.theme { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; transition: color 160ms var(--ease-out), background 160ms var(--ease-out), transform 120ms var(--ease-out); }
.theme:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .theme:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); } }
.theme svg { grid-area: 1 / 1; transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out); }
.theme .ic-moon { opacity: 0; transform: rotate(-30deg) scale(0.8); }
.theme[aria-pressed="true"] .ic-moon { opacity: 1; transform: none; }
.theme[aria-pressed="true"] .ic-sun { opacity: 0; transform: rotate(30deg) scale(0.8); }
.mark { width: 36px; height: 36px; border-radius: 50%; border: 1.25px solid var(--ink); display: grid; place-items: center; text-decoration: none; color: var(--ink); font: italic 500 1.2rem/1 var(--font-text); transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), color 180ms var(--ease-out); }
.mark span { transform: translateY(-1px); }
@media (hover: hover) and (pointer: fine) { .mark:hover { background: var(--ink); color: var(--paper); } }
.mark:active { transform: scale(0.94); transition-duration: 100ms; }

/* page: the column. On the first screen the greeting, the input and the suggestions sit together, a little above centre. */
.page { width: min(var(--col), 100% - 2.5rem - var(--sal) - var(--sar)); margin: 0 auto; display: flex; flex-direction: column; }
body:not(.talking) { grid-template-rows: auto 1fr auto minmax(2rem, 1.15fr); }
body:not(.talking) .page { justify-content: flex-end; padding-bottom: 1.6rem; }
.hero { text-align: center; padding: 1rem 0 0; animation: rise 560ms var(--ease-out) both; }
.hero h1 { font-family: var(--font-text); font-weight: 400; font-size: clamp(1.9rem, 2.2rem + 0.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 0.6rem; text-wrap: balance; }
.hero .lede { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); margin: 0 auto; max-width: 30em; text-wrap: balance; }
.hero .lede strong { color: var(--ink); font-weight: 500; }
.hero.gone { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* thread: the visitor in a small bubble on the right, the answer as set text */
.thread { padding: 0.5rem 0 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
body:not(.talking) .thread { display: none; }
.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble { max-width: min(82%, 30rem); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 18px 18px 6px 18px; padding: 0.7rem 1rem; font-size: 1.0625rem; line-height: 1.45; color: var(--ink); animation: rise 360ms var(--ease-out) both; overflow-wrap: anywhere; }
.msg.user .bubble p { margin: 0; }
.msg.bot { position: relative; padding-right: clamp(0rem, 6vw, 3rem); }
.answer { font-size: 1.125rem; line-height: 1.62; color: var(--ink); }
.answer strong { font-weight: 600; }
.answer em { font-style: italic; }
.answer code { font-family: var(--font-ui); font-size: 0.85em; background: var(--line-2); padding: 0.05em 0.35em; border-radius: 3px; }
.answer ul { padding-left: 1.1em; }
.answer li::marker { color: var(--accent); }
.answer ol { padding-left: 1.3em; }
.answer li + li { margin-top: 0.4em; }
.answer a { color: var(--ink); text-decoration-color: var(--accent); }
/* The line above a scripted answer when the model couldn't take the turn: small, in the UI face, no rule. */
.answer .note { font-family: var(--font-ui); font-style: normal; font-size: 0.8rem; color: var(--ink-3); padding: 0; border: 0; }
.art-note { font-family: var(--font-ui); font-size: 0.78rem; color: var(--ink-3); margin: 0.6rem 0 0; }
/* The one plate under an answer enters with the collapse (base.css) plus a short lift. */
.answer .blk.blk-art > * { transition: transform 520ms var(--ease-out); }
.answer .blk.blk-art.pending > * { transform: translateY(8px); }
.thinking { font-family: var(--font-text); font-style: italic; font-size: 1.0625rem; color: var(--ink-3); min-height: 1.6em; display: flex; align-items: center; }
.thinking .sheen { background: linear-gradient(90deg, var(--ink-3) 0 40%, var(--ink) 50%, var(--ink-3) 60% 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 1.5s linear infinite; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* the input, the suggestions, the fine print */
.dock { width: min(var(--col), 100% - 2.5rem - var(--sal) - var(--sar)); margin: 0 auto; padding: 0 0 max(1rem, env(safe-area-inset-bottom)); font-family: var(--font-ui); }
body.talking .dock { position: sticky; bottom: var(--kb, 0px); background: linear-gradient(to top, var(--bg) 78%, transparent); padding-top: 1.4rem; display: flex; flex-direction: column; }
.composer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 1.15rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 1px 0 var(--hi) inset, 0 10px 30px -18px rgb(var(--shadow) / 0.3); view-transition-name: composer; transition: border-color 160ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.composer:focus-within { border-color: var(--ink-3); box-shadow: 0 1px 0 var(--hi) inset, 0 12px 34px -16px rgb(var(--shadow) / 0.36); }
body:not(.talking) .composer { padding: 0.6rem 0.6rem 0.6rem 1.3rem; border-radius: 28px; box-shadow: 0 1px 0 var(--hi) inset, 0 24px 60px -30px rgb(var(--shadow) / 0.4); animation: rise 560ms var(--ease-out) 70ms both; }
#input { font-family: var(--font-text); font-size: 1.125rem; line-height: 1.45; resize: none; border: 0; background: none; outline: none; padding: 0.6rem 0; min-height: 2.75rem; max-height: 180px; color: var(--ink); caret-color: var(--accent); }
body:not(.talking) #input { font-size: 1.2rem; min-height: 2.9rem; }
#input::placeholder { color: var(--ink-3); font-style: italic; }
#send { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; transition: transform 120ms var(--ease-out), background 160ms var(--ease-out); }
body:not(.talking) #send { width: 2.75rem; height: 2.75rem; }
#send:active { transform: scale(0.92); }
#send.stop { background: var(--accent); }
/* Suggestions are words, not buttons: no border, no fill. Three on the first screen, two after an answer. */
.chips { display: flex; flex-wrap: wrap; gap: 0.1rem 0.6rem; }
body:not(.talking) .chips { justify-content: center; margin-top: 0.9rem; animation: rise 560ms var(--ease-out) 140ms both; }
body.talking .chips { order: -1; margin-bottom: 0.5rem; }
.chip { font-family: var(--font-text); font-size: 1rem; padding: 0.4rem 0.6rem; border: 0; border-radius: 99px; background: none; color: var(--ink-2); transition: color 160ms var(--ease-out), background 160ms var(--ease-out), transform 120ms var(--ease-out); }
body.talking .chip { animation: rise 320ms var(--ease-out) both; }
body.talking .chip:nth-child(2) { animation-delay: 50ms; }
@media (hover: hover) and (pointer: fine) { .chip:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); } }
.chip:active { transform: scale(0.97); }
.fine { font-size: 0.75rem; line-height: 1.5; color: var(--ink-3); margin: 1.1rem auto 0; max-width: 34em; text-align: center; text-wrap: balance; animation: rise 560ms var(--ease-out) 220ms both; }
.fine-sep { margin: 0 0.45rem; }
body.talking .fine { display: none; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-2); white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); transition: background 300ms var(--ease-out), transform 300ms var(--ease-out); }
body[data-model="live"] .status-dot { background: var(--accent); animation: settle 420ms var(--ease-out); }
@keyframes settle { 0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- artifacts ---------- */
/* contact sheet */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tile { display: flex; flex-direction: column; gap: 0.8rem; padding: 1rem; background: var(--paper); border: 0; text-align: left; color: var(--ink); grid-column: span 2; min-width: 0; transition: background 160ms var(--ease-out); }
.tile[data-id="tend"], .tile[data-id="unskippable"], .tile[data-id="mcpsafe"], .tile[data-id="mexant"], .tile[data-id="alphahq"], .tile[data-id="oura"] { grid-column: span 3; }
.tile[data-id="walleto"], .tile[data-id="trading"], .tile[data-id="site-3d"] { grid-column: span 2; }
@media (hover: hover) and (pointer: fine) { .tile:hover { background: var(--paper-2); } .tile:hover .tile-name { text-decoration-color: var(--accent); } }
.tile-media { border-radius: 6px; overflow: hidden; background: var(--bg); display: flex; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; aspect-ratio: 16 / 10; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-media img { transform: scale(1.025); } }
.tile-media .demo { align-self: stretch; }
.tile-media .demo { padding: 0.7rem 0.7rem 0; }
.tile-media .demo .scr { border: 1px solid var(--line-2); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--paper-2); }
.tile[data-id="tend"] .tile-media .demo { padding: 0 0.7rem 0.7rem; }
.tile[data-id="tend"] .tile-media .demo .scr { border-radius: 0 0 8px 8px; border-top: 0; border-bottom: 1px solid var(--line-2); }
.tile-list { list-style: none; margin: 0; padding: 0.6rem 0.8rem; font-family: var(--font-ui); font-size: 0.8rem; display: flex; flex-direction: column; gap: 0.25rem; color: var(--ink-2); }
.tile-list li::before { content: "—"; margin-right: 0.5rem; color: var(--ink-3); }
.tile-mark { font: italic 300 3rem/1 var(--font-text); color: var(--ink-3); display: grid; place-items: center; width: 100%; }
.tile-text { display: grid; gap: 0.15rem; font-family: var(--font-ui); }
.tile-name { font-family: var(--font-text); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color 160ms; }
.tile-status { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.maker { color: var(--ink-3); } .maker::after { content: " · "; }
.tile-blurb { font-size: 0.85rem; color: var(--ink-2); line-height: 1.4; text-wrap: pretty; }
/* project plate */
.pcard { border-top: 1px solid var(--ink); padding-top: 0.9rem; display: grid; gap: 0.9rem; font-family: var(--font-ui); }
.pcard-head { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; }
.pcard-name { font-family: var(--font-text); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
.pcard-status { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.pcard-when { font-size: 0.8rem; color: var(--ink-3); flex-basis: 100%; }
.pcard-shot { border-radius: 6px; border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.6rem 1rem; margin: 0; font-size: 0.875rem; }
.facts dt { color: var(--ink-3); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.facts dd { margin: 0.1rem 0 0; font-family: var(--font-text); font-size: 1.125rem; }
.facts > div { display: grid; align-content: start; gap: 0.1rem; min-width: 0; }
.tech { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.78rem; color: var(--ink-2); }
.tech li { padding: 0.2rem 0.55rem; border: 1px solid var(--line); border-radius: 99px; }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.9rem; }
.link { color: var(--ink); text-decoration-color: var(--accent); }
/* about */
.about { display: grid; gap: 1.2rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.stat { background: var(--paper); padding: 0.9rem 1rem; }
.stat dd { margin: 0; font-size: 2rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.stat dt { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.4rem; }
/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.job { padding: 1.1rem 0 1.1rem 1.4rem; border-left: 1px solid var(--line); position: relative; }
.job::before { content: ""; position: absolute; left: -4px; top: 1.65rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.job:first-child { padding-top: 0.2rem; } .job:first-child::before { top: 0.75rem; }
.job-head { display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; align-items: baseline; font-family: var(--font-ui); }
.job-role { font-family: var(--font-text); font-size: 1.25rem; font-weight: 500; }
.job-org { color: var(--ink-2); font-size: 0.9rem; }
.job-when { color: var(--ink-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; flex-basis: 100%; }
.job-body { margin: 0.45rem 0 0.4rem; font-size: 1.05rem; color: var(--ink-2); }
.job-bullets { margin: 0; padding-left: 1.1em; font-size: 0.95rem; color: var(--ink-2); }
/* skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.4rem 2rem; font-family: var(--font-ui); }
.skill-group h4 { margin: 0 0 0.6rem; font-family: var(--font-text); font-weight: 500; font-size: 1.15rem; }
.skill { display: grid; grid-template-columns: 1fr 5rem auto; gap: 0.6rem; align-items: center; font-size: 0.875rem; padding: 0.3rem 0; }
.skill-bar { height: 2px; background: var(--line); position: relative; }
.skill-bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--v)); transform-origin: left; }
.skill-v { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 0.78rem; }
.skills-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--ink-3); margin: 0; }
/* contact */
.contact { display: grid; border-top: 1px solid var(--ink); font-family: var(--font-ui); }
.contact-row { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background 160ms var(--ease-out); }
.contact-k { color: var(--ink-3); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; align-self: center; }
.contact-v { font-family: var(--font-text); font-size: 1.15rem; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; transition: text-decoration-color 160ms; }
@media (hover: hover) and (pointer: fine) { .contact-row:hover .contact-v { text-decoration-color: var(--accent); } }
.contact-note { font-size: 0.8rem; color: var(--ink-3); margin: 0.6rem 0 0; }
.blk-art > .open-all { justify-self: start; }
.open-all { font-family: var(--font-ui); padding: 0.7rem 1.1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 99px; font-size: 0.9rem; transition: transform 120ms var(--ease-out); }
.open-all:active { transform: scale(0.97); }
/* the ledger under the contact sheet: the internal tools and the (anonymised) client builds */
.allwork { display: grid; gap: 1.4rem; }
.ledger { display: grid; font-family: var(--font-ui); }
.ledger-h { margin: 0.6rem 0 0; padding-bottom: 0.45rem; border-bottom: 1px solid var(--ink); font: 500 0.72rem/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.ledger-h:first-child { margin-top: 0; }
.lrow { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr auto; gap: 0.25rem 1rem; align-items: baseline; padding: 0.7rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); transition: background 160ms var(--ease-out); }
.lrow-name { font-family: var(--font-text); font-size: 1.1rem; font-weight: 500; letter-spacing: -0.005em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color 160ms; text-wrap: pretty; }
.lrow-blurb { font-size: 0.85rem; color: var(--ink-2); line-height: 1.4; text-wrap: pretty; }
.lrow-status { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .lrow:hover .lrow-name { text-decoration-color: var(--accent); } }
.pcard-body { margin: 0; font-family: var(--font-text); font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
/* how a Mexant project runs, and the skills the work proves */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 2rem 9rem 1fr; gap: 0.3rem 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-ui); font-size: 0.95rem; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 0.25em; }
.step-k { font-family: var(--font-text); font-weight: 500; font-size: 1.05rem; }
.step-v { color: var(--ink-2); line-height: 1.45; }
.proves { margin: 0; display: grid; grid-template-columns: 11rem 1fr; gap: 0 1rem; font-family: var(--font-ui); font-size: 0.95rem; border-top: 1px solid var(--ink); }
.proves dt { font-family: var(--font-text); font-weight: 500; font-size: 1.05rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.proves dd { margin: 0; color: var(--ink-2); line-height: 1.45; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.teams { margin: 1rem 0 0; display: grid; grid-template-columns: 8rem 1fr; gap: 0.4rem 1rem; font-family: var(--font-ui); font-size: 0.9rem; }
.teams dt { font-family: var(--font-text); font-size: 1.05rem; font-weight: 500; }
.teams dd { margin: 0; color: var(--ink-2); line-height: 1.45; }
.kinds { margin: 0 0 0.8rem; padding-left: 1.1em; font-size: 1rem; color: var(--ink-2); }
.kinds li::marker { color: var(--accent); }
.sub { margin: 1rem 0 0.5rem; font-family: var(--font-text); font-weight: 500; font-size: 1.1rem; }
.plist .client strong::before { content: "Client · "; font-weight: 400; color: var(--ink-3); }
/* demo + drawing framing */
.art > .demo { max-width: 34rem; }
.art > .demo .scr { box-shadow: 0 1px 0 var(--hi) inset, 0 14px 40px -24px rgb(var(--shadow) / 0.35); }
.dd { border-color: var(--ink); }

/* everything */
.everything { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.everything::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
.sheet { width: min(44rem, 100% - 2rem); margin: 3rem auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; animation: pop-in 320ms var(--ease-out) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); font-family: var(--font-ui); }
.sheet-head h2 { margin: 0; font-family: var(--font-text); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.02em; }
.close { border: 1px solid var(--line); background: none; border-radius: 99px; padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.sheet-body { padding: 1.4rem; display: grid; gap: 2rem; font-size: 1.05rem; }
.sheet-body h3 { margin: 0 0 0.7rem; font-weight: 500; font-size: 1.3rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.3rem; }
.sheet-body .cta { margin-top: 0.4rem; }
.sheet-body p { margin: 0 0 0.6rem; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.plist li { font-size: 1rem; }
.plist a { color: var(--ink); }

/* ---------- What Mexant builds (MEXA-2194): categories as a ruled list, the products, the way in ---------- */
.builds { display: grid; gap: 0; font-family: var(--font-ui); }
.builds-list { margin: 0; display: grid; grid-template-columns: 9.5rem 1fr; gap: 0 1rem; border-top: 1px solid var(--ink); }
.builds-list dt { font-family: var(--font-text); font-weight: 500; font-size: 1.1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.builds-list dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-wrap: pretty; }
.builds-products { margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.4rem 1.2rem; font-size: 0.9rem; color: var(--ink-2); }
.builds-products li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 0.5rem; vertical-align: 0.1em; }
.builds-products b { font-family: var(--font-text); font-weight: 500; color: var(--ink); font-size: 1rem; }
.builds-products a { color: var(--ink); text-decoration-color: var(--line); }
.builds-cta { margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.builds-cta .cta-note { font-size: 0.8rem; }

/* ---------- the live feed plate (feed.js): the flow, four figures, last shipped ---------- */
.feedplate { margin: 0; font-family: var(--font-ui); display: grid; gap: 1.1rem; }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.45rem; }
.feed-title { font-family: var(--font-text); font-weight: 500; font-size: 1.15rem; }
.feed-upd { font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; }
.feed-upd::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 0.45rem; vertical-align: 0.1em; animation: pulse 2.4s var(--ease-in-out) infinite; }
.feedplate[data-state="stale"] .feed-upd::before { background: var(--ink-3); animation: none; }
.flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; counter-reset: f; }
.flow-step { display: grid; gap: 0.25rem; position: relative; padding-left: 0.8rem; border-left: 1.5px solid var(--line); counter-increment: f; }
.flow-k { font-family: var(--font-text); font-weight: 500; font-size: 1.05rem; }
.flow-k::before { content: counter(f, decimal-leading-zero) " "; font-family: var(--font-ui); font-size: 0.7rem; color: var(--ink-3); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.flow-v { font-size: 0.8rem; color: var(--ink-2); line-height: 1.35; text-wrap: pretty; }
.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.fig { background: var(--paper); padding: 0.9rem 1rem; display: grid; }
.fig-v { margin: 0; font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; transition: opacity 160ms var(--ease-out); }
.fig-v.swap { opacity: 0; transition: none; }
.fig-k { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.45rem; line-height: 1.3; }
.lastship { margin: 0; display: grid; }
.lastship-h { font: 500 0.72rem/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 0.45rem; border-bottom: 1px solid var(--ink); }
.lastship dd { margin: 0; }
.lastship-row { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr auto; gap: 1rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.lastship-name { font-family: var(--font-text); font-weight: 500; font-size: 1.05rem; }
.lastship-when { color: var(--ink); }
.lastship-n { color: var(--ink-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.feedplate .art-note { margin-top: 0; }
.swap { opacity: 0; transition: none; }


/* ---------- touch: every control ≥ 44px (MEXA-2194 mobile pass) ---------- */
@media (pointer: coarse), (max-width: 720px) {
  .mark, .theme { width: 44px; height: 44px; }
  .all, .mexant-link, .close { min-height: 44px; display: inline-flex; align-items: center; }
  .chip { min-height: 44px; padding-block: 0.55rem; }
  #send { width: 2.75rem; height: 2.75rem; }
  .cta { min-height: 48px; }
}

@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .top { padding: 0.6rem max(0.75rem, var(--sar)) 0.6rem max(0.75rem, var(--sal)); gap: 0.4rem; font-size: 0.8rem; }
  .top-right { gap: 0; }
  .mexant-link, .all { padding-inline: 0.55rem; }
  .page, .dock { width: min(var(--col), 100% - 2rem - var(--sal) - var(--sar)); }
  .hero { padding-top: 0.5rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero .lede { font-size: 1rem; }
  .builds-list { grid-template-columns: 1fr; gap: 0; } .builds-list dt { border-bottom: 0; padding-bottom: 0; } .builds-list dd { padding-top: 0.25rem; }
  .flow { grid-template-columns: 1fr 1fr; gap: 0.8rem 1rem; }
  .figs { grid-template-columns: 1fr 1fr; }
  .fig-v { font-size: 1.75rem; }
  .lastship-row { grid-template-columns: 1fr auto; } .lastship-n { grid-column: 1 / -1; margin-top: -0.3rem; padding-bottom: 0.1rem; }
  .feed-head { flex-wrap: wrap; gap: 0.2rem 1rem; }
  .bento { margin-inline: calc(-1rem - var(--sal)) calc(-1rem - var(--sar)); padding-inline: calc(1rem + var(--sal)) calc(1rem + var(--sar)); }
  .thread { gap: 1.6rem; }
  .msg.bot { padding-right: 0; }
  .msg.user .bubble { max-width: 86%; font-size: 1rem; }
  .answer { font-size: 1.0625rem; }
  #input { font-size: 1.0625rem; }
  body:not(.talking) #input { font-size: 1.1rem; min-height: 2.8rem; }
  .chip { font-size: 0.95rem; }
  /* The contact sheet becomes a filmstrip: one tile per swipe, bleeding to the screen edges. */
  .bento { display: flex; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; margin-inline: -1rem; padding-inline: 1rem; background: none; border: 0; border-radius: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bento::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 min(78vw, 22rem); scroll-snap-align: start; border: 1px solid var(--line); border-radius: 10px; }
  .tile[data-id="alphahq"], .tile[data-id="oura"] { flex-basis: min(60vw, 16rem); }
  .tile-media { min-height: 9rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 0.1rem; }
  .lrow { grid-template-columns: 1fr auto; }
  .lrow-blurb { grid-column: 1 / -1; }
  .steps li { grid-template-columns: 1.6rem 1fr; } .step-v { grid-column: 2; }
  .proves, .teams { grid-template-columns: 1fr; gap: 0; }
  .proves dt { border-bottom: 0; padding-bottom: 0; } .teams dd { margin-bottom: 0.5rem; }
  .dd-org .dd-sheet { min-width: 0; }
  .dd-narrow .dd-title { grid-template-columns: 1fr; gap: 8px; }
  .dd-narrow .dd-title-cells { border-top: 0.8px solid #000; padding-top: 6px; gap: 6px 0; }
  .dd-narrow .dd-title-cells div:first-child { border-left: 0; padding-left: 0; }
  .sheet { margin: 1rem auto; width: calc(100% - 1.5rem); }
  .dd-sheet { min-width: 720px; }
}

/* 360 px (small Android) and a phone on its side */
@media (max-width: 380px) {
  body { font-size: 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .mexant-link { font-size: 0.78rem; }
  .flow { grid-template-columns: 1fr; gap: 0.6rem; }
  .fig-v { font-size: 1.6rem; }
  .tile { flex-basis: min(82vw, 20rem); }
}
@media (max-height: 480px) and (orientation: landscape) {
  body:not(.talking) { grid-template-rows: auto 1fr auto minmax(0.5rem, 0.6fr); }
  .hero { padding-top: 0.25rem; }
  .hero h1 { font-size: 1.6rem; margin-bottom: 0.3rem; }
  .hero .lede { font-size: 0.95rem; }
  body:not(.talking) #input { min-height: 2.75rem; font-size: 1.05rem; }
  body:not(.talking) .chips { margin-top: 0.5rem; }
  .fine { margin-top: 0.6rem; }
  .thread { gap: 1.4rem; }
}
