/* The home page, told like a film: every section is a row. Scroll down to move between rows, sideways
   inside a row to see more (app/ui/public/rails.tsx). Without JS the rows still scroll. What it shares with
   the posts (colours, type, menu, footer) is in chrome.css. */
/* ---------- title intro ---------- */
.cin-intro { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: #000; pointer-events: none; animation: intro-out 0.35s ease 0.65s forwards; }
.cin-intro p { display: grid; justify-items: center; gap: 0.6rem; }
/* The blur filter clips to the box on iPhones, and line-height 1 leaves the Â's accent and the g's tail
   outside it. The padding gives them room; the negative margin keeps the layout where it was. */
.cin-intro span { font: 400 clamp(2rem, 1rem + 4vw, 4rem)/1 var(--serif); letter-spacing: 0.02em; padding-block: 0.2em; margin-block: -0.2em; animation: intro-in 0.6s var(--ease) both; }
.cin-intro em { font: 500 0.72rem/1 var(--sans); font-style: normal; letter-spacing: 0.5em; text-transform: uppercase; color: var(--amber); animation: intro-in 0.6s var(--ease) 0.15s both; }
@keyframes intro-in { from { opacity: 0; letter-spacing: 0.3em; filter: blur(10px); } to { opacity: 1; filter: none; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.cin-skip .cin-intro, .cin-seen .cin-intro { display: none; }
/* "Software engineer · Brazil ✈ Ottawa". rails.tsx sets data-flight: "wait" parks the plane in Brazil
   with no route drawn, "fly" flies it to Ottawa, drawing the dashed route behind it (the mask's dash is
   the arc's length, 70), and Ottawa lights up as it lands. Without JS the plane flies once at 5s; with
   reduced motion it just sits in Ottawa. */
.hi-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; }
.hi-kicker > span:first-child::after { content: '·'; margin-left: 0.9rem; opacity: 0.7; }
/* a short hop: parked in Brazil before take-off, the undrawn route is the gap before Ottawa */
.hi-route { display: inline-flex; align-items: center; gap: 0.45rem; }
.hi-flight { width: 3.3rem; height: 1rem; overflow: visible; }
.hi-arc { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-dasharray: 2.5 3.5; opacity: 0.6; }
.hi-reveal { fill: none; stroke: #fff; stroke-width: 8; stroke-dasharray: 70 70; }
.hi-plane { fill: currentColor; offset-path: path('M4 18 Q36 -6 68 18'); offset-rotate: auto; offset-distance: 100%; transform: scale(1.2); }
@media (prefers-reduced-motion: no-preference) { html:not(.js-rails) .hi-plane { animation: hi-fly 2.2s cubic-bezier(.45, 0, .2, 1) 2.5s both; } }
[data-flight='wait'] .hi-plane { offset-distance: 0%; }
[data-flight='wait'] .hi-reveal { stroke-dashoffset: 70; }
[data-flight='fly'] .hi-plane { animation: hi-fly 2.2s cubic-bezier(.45, 0, .2, 1) both; }
[data-flight='fly'] .hi-reveal { animation: hi-trail 2.2s cubic-bezier(.45, 0, .2, 1) both; }
[data-flight='fly'] .hi-to { animation: hi-land 1.8s ease-out 2.05s both; }
@keyframes hi-fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes hi-trail { from { stroke-dashoffset: 70; } to { stroke-dashoffset: 0; } }
@keyframes hi-land { 20% { color: #fff; text-shadow: 0 0 14px rgb(244 210 142 / 0.95), 0 0 3px rgb(244 210 142 / 0.7); } }
@media (max-width: 720px) { .hi-kicker > span:first-child::after { display: none; } .hi-kicker { flex-direction: column; align-items: start; } }

/* ---------- rows: the one pattern every section uses ---------- */
.cin { --row-h: min(62svh, 42rem); --vis: calc(var(--row-h) - 10.5rem); }
.row, #projects { scroll-margin-top: 3rem; }
.row { position: relative; isolation: isolate; padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(0.5rem, 2vh, 1.25rem); }
.rail { display: flex; align-items: stretch; gap: clamp(0.75rem, 1.4vw, 1.25rem); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 0.75rem var(--gut) 1.25rem; scrollbar-width: none; outline: none; }
.rail::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .js-rails .rail { cursor: grab; } }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.is-jumping { scroll-snap-type: none; }
.rail.is-dragging > * { pointer-events: none; }
.rail:focus-visible { box-shadow: inset 0 0 0 1px rgb(232 184 106 / 0.6); border-radius: 14px; }
.slide { flex: none; position: relative; min-height: var(--row-h); scroll-snap-align: start; border-radius: 22px; }
/* the supporting rows (More projects, Learning, Posts) are as tall as their cards need, not a stage.
   Their cards are close in height, so they share one (the tags sit at the foot, like the career's). */
.row-more .slide, .row-learning .slide, .row-posts .slide { min-height: 0; }
.row-more .intro, .row-learning .intro { align-content: start; }
/* Learning mixes a line or two (a school, a course) with long lists, which left half the row empty under
   the short ones. The short ones stack in pairs instead, and each list takes a whole column. */
.row-learning .rail { display: grid; grid-template-rows: auto auto; grid-auto-flow: column dense; grid-auto-columns: max-content; }
.row-learning .slide { grid-row: span 2; }
.row-learning .study:not(:has(.job-highlights)) { grid-row: span 1; width: min(22rem, 78vw); }
/* More projects: a card with one paragraph and no list (Polutz) is narrower, so it isn't half empty */
.row-more .study:not(:has(.job-highlights)):not(.pool-card) { width: min(22rem, 66vw); }
/* on phones (and wider) a supporting row's opening words are its first card; on phones they sit above
   the row instead (below), so its first card shows at once. The same words are in both places. */
.intro.row-head { display: none; }
/* slides grow into place as they enter the row from the side */
@supports (animation-timeline: view()) {
  .js-rails .slide { animation: slide-in linear both; animation-timeline: view(inline); animation-range: entry 0% entry 70%; }
  /* clips far from view skip it (rails.tsx marks the near ones): a scroll-driven animation on each of
     114 clips made page scrolling drop frames on slower devices */
  .js-rails .slide[data-video]:not([data-near]) { animation: none; }
}
@keyframes slide-in { from { opacity: 0.2; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }


/* The row's controls: a quiet bar over its right end (the hobby chips, where you are, the two arrows), in
   the row's top padding, so an arrow never sits on a card. Needs JS; without it the rows just scroll. */
.rail-bar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; min-height: 2.75rem; margin: -0.75rem var(--gut) -0.25rem; }
/* hidden without JS, but its room is kept: rows that grew once the script ran moved everything under them,
   and a page opened at a #section (the language flags) landed short of it */
html:not(.js-rails) .rail-bar { visibility: hidden; }
/* a row that fits on the screen has nowhere to go: no arrows */
[data-at-start][data-at-end] .rail-arrow { display: none; }
.rail-arrow { position: relative; flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgb(236 231 223 / 0.22); background: rgb(14 14 14 / 0.6); color: var(--text); cursor: pointer; transition: opacity 0.3s, border-color 0.3s, color 0.3s, background 0.3s; }
.rail-arrow svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the way on is a touch brighter than the way back */
.rail-next { border-color: rgb(236 231 223 / 0.4); background: rgb(236 231 223 / 0.08); }
.rail-arrow:hover, .rail-arrow:focus-visible { border-color: var(--amber); color: var(--amber); background: rgb(232 184 106 / 0.1); }
.rail-arrow:focus-visible { outline-offset: 2px; }
/* the clips' pause, beside the arrows: their size and outline, a little apart from them */
.rail-pause { flex: none; width: 2.75rem; height: 2.75rem; margin-right: 0.35rem; border-color: rgb(236 231 223 / 0.22); background: rgb(14 14 14 / 0.6); }
.rail-arrow:disabled { opacity: 0.3; cursor: default; border-color: rgb(236 231 223 / 0.22); color: var(--text); background: transparent; }

/* The row fades out only over a card that peeks in at an edge (rails.tsx sets --peek-l and --peek-r to how
   much of it shows, 0 when the card at that edge is mostly in view): a card you are reading never fades. */
@property --peek-l { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --peek-r { syntax: '<length>'; inherits: true; initial-value: 0px; }
.js-rails .rail {
  --rail-mask: linear-gradient(to right, rgb(0 0 0 / 0.15), #000 var(--peek-l), #000 calc(100% - var(--peek-r)), rgb(0 0 0 / 0.15));
  -webkit-mask-image: var(--rail-mask);
  mask-image: var(--rail-mask);
  transition: --peek-l 0.3s, --peek-r 0.3s;
}

/* where you are in a long row: "12 / 115" and a thin bar filling as you go, beside the arrows */
.rail-foot { position: relative; display: grid; justify-items: end; margin-right: 0.5rem; }
.rail-foot > * { grid-area: 1 / 1; }
/* the keys line takes no room of its own: it shows over the count, ending where the count ends */
.rail-foot .rail-keys { position: absolute; right: 0; top: 50%; translate: 0 -50%; white-space: nowrap; pointer-events: none; }
.rail-count { display: flex; align-items: center; gap: 0.8rem; width: min(12rem, 40vw); min-height: 1.5rem; transition: opacity 0.3s; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.12em; color: var(--dim); font-variant-numeric: tabular-nums; }
/* read by screen readers only (the row's resting place, rails.tsx) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the hobbies over the clips row: each chip slides the row to that hobby's first clip */
.clip-jump { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0; margin-right: auto; }
.clip-jump-label { flex: none; font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.clip-chips { display: flex; flex: 1; gap: 0.4rem; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.clip-chips::-webkit-scrollbar { display: none; }
.clip-chips button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 0.95rem; border-radius: 999px; border: 1px solid var(--line); color: #d9d3c8; font: 500 0.78rem/1 var(--sans); white-space: nowrap; cursor: pointer; transition: border-color 0.3s, color 0.3s, background 0.3s; }
.clip-chips small { color: var(--dim); font-size: 0.7rem; font-variant-numeric: tabular-nums; }
.clip-chips button:hover, .clip-chips button[aria-pressed='true'] { border-color: rgb(232 184 106 / 0.55); color: var(--amber); }
.clip-chips button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.clip-chips button[aria-busy='true'] { opacity: 0.6; cursor: progress; }
.rail-count:empty { display: none; }
.rail-count i { position: relative; flex: 1; height: 1px; background: var(--line); }
.rail-count i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--done, 0%); background: var(--amber); transition: width 0.3s; }
/* the keyboard path, in the count's place while the row or a clip's link has keyboard focus */
.rail-keys { align-self: center; font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.12em; color: var(--text); opacity: 0; transition: opacity 0.3s; }
.row:has(.rail:focus-visible, .clip-ig:focus-visible) .rail-keys { opacity: 1; }
.row:has(.rail:focus-visible, .clip-ig:focus-visible) .rail-count { opacity: 0; }

/* a product's name in a kicker ("Personal projects · track2.fit") never breaks in two */
.kick-name { white-space: nowrap; }

/* the way down: names the next row, and bobs */
.row-down { display: flex; align-items: center; min-height: 2.75rem; gap: 0.65rem; width: max-content; margin: 0.35rem auto 0; padding: 0.7rem 1.1rem 0.7rem 1.25rem; border-radius: 999px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.03); color: var(--text); text-decoration: none; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; transition: border-color 0.3s, background 0.3s; }
.row-down span { color: var(--dim); }
.row-down b { font-weight: 600; }
.row-down svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: bob 1.8s ease-in-out infinite; }
.row-down:hover { border-color: rgb(232 184 106 / 0.6); background: rgb(232 184 106 / 0.08); }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- the first screen: who I am, then three doors into the page ----------
   Text on the left; on the right a bento of three tiles, each a link to its row: Career (widest, first),
   What I build (real screens on the devices), Outside work (one clip playing). Nothing here waits for an
   animation: the hero is the page's LCP, so it paints at once, tiles included. On wide screens it is as
   tall as its tiles, so the Career row's heading shows under it on the first screen. */
/* the text hangs from the same top line as the tiles (its kicker level with theirs), and the whole block
   sits in the middle of the first screen */
.hero { --hero-h: min(30rem, calc(100svh - 12rem)); position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: start; align-content: center; gap: clamp(2rem, 4vw, 4.5rem); padding: clamp(5.5rem, 12vh, 7rem) var(--gut) clamp(0.5rem, 2vh, 1.5rem); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 18% 45%, rgb(232 184 106 / 0.07), transparent 70%), radial-gradient(50% 60% at 80% 50%, #11161a, transparent 70%); }
.hero-text { display: grid; justify-items: start; gap: 1.5rem; max-width: 38rem; padding-top: 1.3rem; }
.hero .hi-kicker { color: #f4d28e; }
.hero-role { font: 400 clamp(2.9rem, 1.2rem + 4.2vw, 5.6rem)/0.94 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.hero-proof { font: 300 clamp(1.02rem, 0.92rem + 0.35vw, 1.2rem)/1.6 var(--sans); color: #c9c2b6; max-width: 44ch; }
/* how to reach me, under the bio: the email and the social links as quiet round icons, each a 44px tap target */
.hero-socials { position: relative; z-index: 6; display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.1rem; }
.hero-socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); color: #c9c2b6; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.hero-socials a:hover, .hero-socials a:focus-visible { color: var(--amber); border-color: rgb(232 184 106 / 0.55); background: rgb(232 184 106 / 0.07); }
.hero-socials .social-icon { width: 1.15rem; height: 1.15rem; }
.cin-btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgb(236 231 223 / 0.35); }
.cin-btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--amber); color: var(--amber); }

.hero-tiles { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 0.9rem; height: var(--hero-h); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.3rem 1.4rem; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(170deg, #141210, #0b0b0b 65%); transition: border-color 0.3s, translate 0.5s var(--ease); }
/* the whole tile is the link: the title's link stretches over it */
.tile-link { color: inherit; text-decoration: none; }
.tile-link::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.tile-link:focus-visible { outline: none; }
.tile:has(.tile-link:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.tile-go { display: inline-block; margin-left: 0.3em; font-size: 0.6em; vertical-align: 0.2em; color: var(--amber); transition: transform 0.4s var(--ease); }
@media (hover: hover) {
  .tile:hover { border-color: rgb(232 184 106 / 0.45); translate: 0 -3px; }
  .tile:hover .tile-go { transform: translateX(4px); }
}
.tile .tile-kicker { font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber); }
.tile-title { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); }
.tile-meta, .tile-foot { font: 500 0.75rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.tile-now { color: var(--amber); }
.tile-body { color: #bdb6aa; font-size: 0.92rem; line-height: 1.5; max-width: 22ch; }

/* Career: what I built at today's job, as a labelled list (text, not links: the tile itself is the one
   link, to the Career row), over the whole career on one line */
.tile-career { grid-row: 1 / 3; background: radial-gradient(90% 55% at 0% 0%, rgb(232 184 106 / 0.1), transparent 70%), linear-gradient(170deg, #15120e, #0b0b0b 60%); border-color: rgb(232 184 106 / 0.3); }
/* the list starts under the meta and takes the tile's spare height, its lines spread over it (up to a
   point), so no hole opens between "Team lead" and the list on a tall tile */
.tile-built { flex: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.7rem; padding-top: 1.6rem; }
.tile-label { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.tile-projects { display: grid; gap: 0.25rem; align-content: space-evenly; max-height: 15rem; }
.tile-projects li { font: 400 clamp(1.25rem, 0.8rem + 1vw, 1.8rem)/1.15 var(--serif); color: #c9c2b6; }
.tile-projects li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 0.7rem; vertical-align: 0.2em; border-radius: 50%; background: rgb(232 184 106 / 0.55); }
/* the timeline follows the list (not pinned to the tile's foot), so the two read as one */
.tile-line { position: relative; width: 100%; margin-top: 1.4rem; }
.tl-track { position: relative; display: block; height: 1px; background: linear-gradient(90deg, rgb(236 231 223 / 0.12), rgb(236 231 223 / 0.3)); }
.tl-track i { position: absolute; top: -3px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: #0b0b0b; box-shadow: inset 0 0 0 1px rgb(236 231 223 / 0.45); }
.tl-track i.tl-now { background: var(--amber); box-shadow: 0 0 0 0 rgb(232 184 106 / 0.6); animation: ping-amber 1.8s ease-out infinite; }
.tl-track b { position: absolute; top: -1px; right: 0; height: 3px; border-radius: 2px; background: var(--amber); }
.tl-years { position: relative; display: flex; justify-content: space-between; margin-top: 0.6rem; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.12em; color: var(--dim); }
.tl-years span:nth-child(2) { position: absolute; translate: -50% 0; color: var(--amber); }

/* What I build: the tile is not a link itself. Under its kicker it splits into two halves, one per product,
   each named in its own type; the whole half is the link to that product's row and lights up on hover.
   track2.fit's devices peek up in its half. */
.tile-build { padding: 0; gap: 0; background: radial-gradient(80% 80% at 100% 100%, rgb(182 244 107 / 0.06), transparent 65%), linear-gradient(170deg, #121411, #0b0b0b 65%); }
.build-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 1rem; padding: 1.3rem 1.4rem 0.5rem; }
.build-head .tile-body { max-width: none; font-size: 0.8rem; line-height: 1.3; color: var(--dim); }
.tile-brands { flex: 1; min-height: 0; align-self: stretch; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.brand { --tint: 182 244 107; position: relative; overflow: hidden; display: flex; align-items: center; padding: 0.6rem 1.4rem; transition: background-color 0.3s; }
.brand-half-joj { --tint: 238 155 107; border-top: 1px solid var(--line); }
.brand-link { display: grid; gap: 0.3rem; color: inherit; text-decoration: none; }
/* the link covers its whole half */
.brand-link::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.brand-link:focus-visible { outline: none; }
.brand:has(.brand-link:focus-visible) { outline: 2px solid var(--amber); outline-offset: -3px; border-radius: 20px; }
.brand-link small { font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); transition: color 0.3s; }
.brand-link small::after { content: '→'; display: inline-block; margin-left: 0.4em; color: var(--amber); transition: transform 0.4s var(--ease); }
@media (hover: hover) {
  .brand:hover { background-color: rgb(var(--tint) / 0.07); }
  .brand:hover small { color: var(--text); }
  .brand:hover small::after { transform: translateX(4px); }
}
.brand-t2f { font: italic 800 clamp(1.5rem, 1.1rem + 1vw, 2.1rem)/0.95 var(--t2f); text-transform: uppercase; color: #b6f46b; }
.brand-t2f sup { font-size: max(0.55em, 0.75rem); }
.brand-joj { font: 600 clamp(1.2rem, 0.95rem + 0.7vw, 1.6rem)/1.05 var(--joj); letter-spacing: -0.02em; }
.brand-joj em { color: #ee9b6b; font-style: normal; }
/* the tile stays put: only the half under the pointer reacts */
@media (hover: hover) { .tile-build:hover { translate: none; border-color: var(--line); } }
.tile-devices { position: absolute; right: 1rem; top: 38%; width: 34%; aspect-ratio: 0.8; pointer-events: none; transition: translate 0.6s var(--ease); }
.td-phone { position: absolute; right: 26%; top: 0; width: 56%; rotate: -5deg; }
.td-watch { position: absolute; right: -2%; top: 18%; width: 40%; rotate: 8deg; z-index: 2; }
@media (hover: hover) { .brand-half-t2f:hover .tile-devices { translate: 0 -10%; } }

/* Outside work: the first clip, playing, the words over its foot. The video and its shade sit under the
   words by z-index (the tile isolates them), not by positioning the words: a positioned box there would
   hold the title link's overlay to the words' height, and only the words would be clickable. */
.tile-life { isolation: isolate; justify-content: flex-end; padding: 1.1rem 1.3rem; border-color: transparent; background: #111; }
.tile-video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.tile-life::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.1) 60%); pointer-events: none; }
.tile-life-copy { display: grid; gap: 0.4rem; }
.tile-life .tile-title { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.3rem); }
.tile-life .tile-foot { color: #d9d3c8; }

/* play / pause: on the playing tile and on the Outside work row, all in step (rails.tsx) */
/* a tap area of 44px or more around the visible circle */
.clip-pause::before, .clip-ig::before { content: ''; position: absolute; inset: min(-5px, calc((100% - 2.75rem) / 2)); border-radius: 50%; }
.clip-pause { position: relative; z-index: 4; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(0 0 0 / 0.5); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.3s, border-color 0.3s; }
.clip-pause:hover { border-color: var(--amber); }
.clip-pause svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.clip-pause .i-play { display: none; fill: currentColor; stroke-width: 1.5; }
.clip-pause[data-paused] .i-pause { display: none; }
.clip-pause[data-paused] .i-play { display: block; }
.tile-pause { position: absolute; top: 0.8rem; right: 0.8rem; }
/* One sheet of ice over the whole page (ice.tsx, ice-gl.ts), fixed to the screen while the page scrolls
   under it, under the menu. It never takes a click, a tap or the focus, and fades in once it has drawn. As
   tall as the screen gets (lvh), so a phone's toolbar coming and going never resizes it. Without WebGL the
   screen's edges get a still CSS frost instead. */
.ice { position: fixed; left: 0; top: 0; z-index: 50; width: 100%; height: 100lvh; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.ice[data-on] { opacity: 1; }
[data-ice='off'] .ice { opacity: 1; box-shadow: inset 0 0 0 1px rgb(199 219 230 / 0.06), inset 0 0 48px rgb(199 219 230 / 0.12); }

/* nothing to pause (no JS, or reduced motion): gone, not just inert. [hidden] alone loses to display: grid. */
html:not(.js-rails) .clip-pause, .clip-pause[hidden] { display: none; }

@media (max-width: 1100px) and (min-width: 761px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-tiles { height: 26rem; }
}
/* phones: the text, then the tiles as a small bento: Career tall on the left, Projects and Outside work
   stacked on the right. All three fit the first screen, with labels at 12px or more. */
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 1.5rem; padding-top: 5rem; padding-bottom: 1.25rem; }
  .hero-text { gap: 1rem; }
  .hero-role { font-size: clamp(2.3rem, 1.4rem + 4.4vw, 3rem); }
  .hero-proof { font-size: 0.98rem; line-height: 1.55; }
  .hero-socials { gap: 0.25rem; }
  .hero-tiles { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: repeat(2, 9.25rem); height: auto; gap: 0.5rem; margin-inline: calc(var(--gut) * -0.4); }
  .tile { padding: 0.9rem 0.85rem; border-radius: 16px; gap: 0.3rem; }
  /* in sentence case on phones, so "Fora do trabalho" fits its narrow tile on one line */
  .tile .tile-kicker { font-weight: 600; letter-spacing: 0.04em; text-transform: none; white-space: nowrap; }
  .tile-title { font-size: 1.75rem; }
  /* compact, under the company: the years and the role, in sentence case like the kickers */
  .tile-meta { font-weight: 600; letter-spacing: 0.02em; text-transform: none; white-space: nowrap; margin-top: -0.15rem; }
  .tile-built { gap: 0.45rem; margin-top: 0; padding-block: 0.6rem 0; }
  .tile-projects { gap: 0.15rem; }
  .tile-projects li { font-size: 1.05rem; line-height: 1.2; }
  .tile-projects li::before { width: 4px; height: 4px; margin-right: 0.45rem; }
  .tile-projects li:nth-child(n+5) { display: none; }
  .tile-line { margin-top: auto; padding-top: 0.6rem; }
  .tl-years { letter-spacing: 0.04em; }
  .tl-years span:nth-child(2) { display: none; }
  /* like the kickers: sentence case, so "8 trabalhos desde 2007" stays on one line */
  .tile-foot { font-weight: 600; letter-spacing: 0.02em; text-transform: none; white-space: nowrap; }
  .tile-career .tile-foot { margin-top: 0.15rem; }
  .brand-t2f { font-size: 1.35rem; }
  .brand-joj { font-size: 1rem; }
  /* the names and what each one is fill the tile; the devices would sit on top of them */
  .tile-build .tile-body, .tile-devices { display: none; }
  .tile-build { padding: 0; gap: 0; }
  .build-head { padding: 0.9rem 0.85rem 0; }
  .brand { padding: 0 0.85rem; }
  .brand-link small { line-height: 1.1; }
  .brand:has(.brand-link:focus-visible) { border-radius: 14px; }
  .brand-link { gap: 0.15rem; }
  .brand-link small { letter-spacing: 0.04em; font-weight: 600; text-transform: none; }
  .tile-life { padding: 0.85rem; }
  .tile-life .tile-title { font-size: 1.3rem; line-height: 1.05; }
  .tile-pause { top: 0.4rem; right: 0.4rem; width: 2.75rem; height: 2.75rem; }
}

/* ---------- Outside work: one clip after another (hobbies take turns) ---------- */
.row-outside { --row-h: min(60svh, 40rem); }
.intro-outside .cap-ctas { gap: 0.6rem; }
.row-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(80% 70% at 30% 40%, #13171a, #050505); }
.row-bg i { position: absolute; inset: -12%; background: center / cover no-repeat; filter: blur(50px) saturate(1.4) brightness(0.42); opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease; }
.row-bg i.on { opacity: 1; }
.row-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 5 5 / 0.85), rgb(5 5 5 / 0.2) 55%, rgb(5 5 5 / 0.5)), linear-gradient(to top, #070707, transparent 30%); }
.clip { --h: calc(var(--row-h) - 2.75rem); height: var(--h); min-height: 0; width: calc(var(--h) * 9 / 16); align-self: flex-start; overflow: hidden; background: #111; box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.95); transition: translate 0.6s var(--ease), scale 0.6s var(--ease), filter 0.5s; }
/* rhythm: up, down, and every fourth clip a little wider */
.clip:nth-child(even) { align-self: flex-end; }
.clip:nth-child(4n+3) { --h: var(--row-h); width: calc(var(--h) * 4 / 5); align-self: center; }
@media (hover: hover) {
  .rail:hover .clip:not(:hover) { filter: brightness(0.62) saturate(0.85); }
  .clip:hover { translate: 0 -6px; scale: 1.015; }
}
/* the first clips deal themselves in after the title */
.clip-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.clip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.82), transparent 38%); pointer-events: none; }
.clip-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 0.35rem; padding: 1rem 1.1rem 1.15rem; }
.clip-cat { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: #f4d28e; }
.clip-label { font: 400 clamp(1.15rem, 1rem + 0.4vw, 1.4rem)/1.15 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .clip:hover .clip-video { transform: scale(1.05); } }
/* the full video on Instagram: a small mark in the corner, brighter when the card is hovered */
.clip-ig { position: absolute; z-index: 3; top: 0.7rem; right: 0.7rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: #fff; background: rgb(0 0 0 / 0.5); opacity: 0.8; transition: opacity 0.3s, background 0.3s, scale 0.3s var(--ease); }
.clip-ig .social-icon { width: 1.1rem; height: 1.1rem; }
.clip:hover .clip-ig, .clip-ig:focus-visible { opacity: 1; }
.clip-ig:hover { background: linear-gradient(135deg, #f7b24a, #e1306c 60%, #8a3ab9); scale: 1.08; }

/* ---------- intro slides: the first card of every other row ---------- */
.intro { width: min(30rem, 84vw); display: grid; align-content: center; justify-items: start; gap: 1.1rem; padding: 0.5rem 1rem 0.5rem 0; }
.intro h2 { font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.6rem); }
.intro > p:not(.cin-kicker):not(.cap-ctas) { color: #c9c2b6; max-width: 34ch; }
.intro .intro-note { font: italic 400 clamp(1.1rem, 1rem + 0.4vw, 1.35rem)/1.35 var(--serif); color: var(--text); }
.cap-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 0.6rem; }
.row-t2f { background: radial-gradient(60% 60% at 30% 50%, rgb(182 244 107 / 0.06), transparent 70%); }
.row-t2f .cin-kicker { color: #b6f46b; }
.intro-t2f h2 { font: italic 800 clamp(2.8rem, 1.4rem + 3.6vw, 5.2rem)/0.92 var(--t2f); text-transform: uppercase; }
.row-joj { background: radial-gradient(60% 60% at 30% 50%, rgb(238 155 107 / 0.07), transparent 70%); }
.row-joj .cin-kicker { color: #ee9b6b; }
.intro-joj h2, .intro-reel h2 { font: 600 clamp(2.3rem, 1.3rem + 2.8vw, 4.2rem)/1.02 var(--joj); letter-spacing: -0.02em; }
.intro-joj em, .intro-reel em { color: #ee9b6b; font-weight: 500; }
.intro-reel { width: min(24rem, 84vw); }

/* hero cards: text beside a cluster of devices, so the whole product shows before any scrolling.
   --u is the cluster's unit: the row height on wide screens, smaller on phones. */
/* the content hangs from the card's top, right under the row's controls (the rail stretches the card to
   its tallest neighbour; centred in it, the devices started ~100px below the arrows) */
.intro-wide { --u: var(--row-h); width: auto; max-width: none; grid-template-columns: minmax(0, 25rem) auto; align-content: start; align-items: center; column-gap: clamp(1.5rem, 3vw, 3.5rem); }
.intro-text { display: grid; justify-items: start; gap: 1.1rem; }
.intro-text > p:not(.cin-kicker):not(.cap-ctas) { color: #c9c2b6; max-width: 34ch; }
.intro-text .intro-note { font: italic 400 clamp(1.1rem, 1rem + 0.4vw, 1.35rem)/1.35 var(--serif); color: var(--text); }
.intro-visual { position: relative; height: var(--u); }
.hv-t2f { width: calc(var(--u) * 1.24); }
.hv-joj { width: calc(var(--u) * 1.16); }
.intro-visual { --mx: 0; --my: 0; perspective: 1400px; }
.hv { position: absolute; transform: translate3d(calc(var(--mx) * var(--depth) * 1px), calc(var(--my) * var(--depth) * 0.6px), 0) rotateY(calc(var(--mx) * 8deg)) rotateX(calc(var(--my) * -6deg)); transition: transform 0.6s var(--ease), scale 0.5s var(--ease); }
.hv-laptop { --depth: 8; }
.hv-phone { --depth: 22; }
.hv-watch { --depth: 34; }
/* the device under the mouse comes forward */
@media (hover: hover) { .hv:hover { scale: 1.06; z-index: 6 !important; } }
.hv-laptop { left: 0; top: 3%; width: var(--u); }
.hv-t2f .hv-phone { left: calc(var(--u) * 0.6); bottom: 1%; width: calc(var(--u) * 0.37); z-index: 2; rotate: -3deg; animation: float 7s ease-in-out infinite; }
.hv-t2f .hv-watch { left: calc(var(--u) * 0.98); bottom: 5%; width: calc(var(--u) * 0.26); z-index: 3; rotate: 6deg; animation: float 6s ease-in-out -2s infinite; }
.hv-joj .hv-phone { left: calc(var(--u) * 0.8); bottom: 1%; width: calc(var(--u) * 0.34); z-index: 2; rotate: 3deg; animation: float 7s ease-in-out infinite; }
.intro-wide .hv-laptop { animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.hv-t2f::before, .hv-joj::before { content: ''; position: absolute; inset: 10% 5% 0; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.hv-t2f::before { background: radial-gradient(closest-side, rgb(182 244 107 / 0.35), transparent); }
.hv-joj::before { background: radial-gradient(closest-side, rgb(238 155 107 / 0.35), transparent); }

/* ---------- cards: a device (or a drawing) over a short caption ---------- */
.card { display: flex; flex-direction: column; width: min(22rem, 84vw); overflow: hidden; background: linear-gradient(170deg, #141414, #0b0b0b 60%); border: 1px solid var(--line); }
.card-visual { position: relative; flex: 1; display: grid; place-items: center; padding: 1.8rem 1.5rem 1.2rem; min-height: 0; }
.card-copy { padding: 0 1.5rem 1.5rem; }
.card-copy h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); margin-bottom: 0.55rem; }
.card-copy p { color: #bdb6aa; font-size: 0.95rem; line-height: 1.55; }
.row-t2f .card-copy h3 { font: italic 800 clamp(1.6rem, 1.1rem + 1.2vw, 2.3rem)/0.95 var(--t2f); text-transform: uppercase; }
.row-joj .card-copy h3 { font: 600 clamp(1.4rem, 1.1rem + 0.8vw, 1.8rem)/1.08 var(--joj); }
.c-dev { width: 100%; }
.card-phone { width: min(84vw, max(17rem, calc(var(--vis) * 0.478 + 4rem))); }
.card-phone .c-dev { width: min(100%, calc(var(--vis) * 0.478)); }
.card-watch { width: min(84vw, max(17rem, calc(var(--vis) * 0.5 + 4rem))); }
.card-watch .c-dev { width: min(100%, calc(var(--vis) * 0.5)); }
.card-ipad { width: min(86vw, calc(var(--vis) * 0.76 + 4rem)); }
.card-ipad .c-dev { width: min(100%, calc(var(--vis) * 0.76)); }
.card-laptop { width: min(88vw, 46rem); }
.card-laptop .c-dev { width: min(86%, calc(var(--vis) * 1.3)); margin-bottom: 1.4rem; }
.card-soon { width: min(86vw, max(20rem, calc(var(--vis) * 0.95 + 4rem))); }
.pair { display: flex; align-items: center; justify-content: center; gap: 8%; width: 100%; }
.card-soon .dev-pixel { width: min(44%, calc(var(--vis) * 0.43)); }
.card-soon .dev-wear { width: min(38%, calc(var(--vis) * 0.4)); }
.card-sync { width: min(84vw, 24rem); }
.sync-art { width: 100%; max-height: var(--vis); overflow: visible; }
.sync-line { fill: none; stroke: rgb(182 244 107 / 0.35); stroke-width: 1.5; stroke-dasharray: 4 6; }
.sync-pulse { fill: #b6f46b; filter: drop-shadow(0 0 5px #b6f46b); }
.sync-cloud rect { fill: rgb(182 244 107 / 0.12); stroke: rgb(182 244 107 / 0.55); }
.sync-node rect { fill: #161616; stroke: rgb(236 231 223 / 0.25); }
.sync-art text { fill: #b6f46b; font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-anchor: middle; }
.sync-node text { fill: #d9d3c8; font-size: 11.5px; letter-spacing: 0.08em; }
/* Portuguese names its devices in longer words (RELÓGIO, CELULAR) */
:lang(pt) .sync-node text { font-size: 10px; letter-spacing: 0.02em; }
.soon-screen { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.5rem; background: radial-gradient(circle at 50% 40%, #1d2a12, #000 70%); color: #fff; text-align: center; }
.soon-screen b { font: italic 800 1.3rem/1 var(--t2f); letter-spacing: 0.02em; }
.soon-screen sup { font-size: 0.6em; }
.soon-screen span { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: #b6f46b; }
.soon-screen small { font: 400 0.75rem/1 var(--sans); color: #9a9a9a; }


/* ---------- Jump Over Jump screens: the real home page, rebuilt so a demo game can play ---------- */
/* the device's screen is the size container, so cqw / cqh below mean "of this screen" */
.dev-screen:has(.jd-screen) { container-type: size; }
.jd-screen { position: absolute; inset: 0; background: #1b1714; color: #f2ebe0; font-family: var(--sans); overflow: hidden; }
.jd-screen header { display: flex; align-items: center; justify-content: space-between; }
.jd-logo { display: flex; align-items: center; gap: 0.35em; margin: 0; font: 600 3cqw/1 var(--joj); letter-spacing: -0.01em; }
.jd-logo span { color: #ee9b6b; }
.jd-logo i { width: 1.15em; height: 0.8em; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff8ec 0 32%, #ee9b6b 34% 60%, #7a4b2c 62%); }
.jd-pill { display: flex; align-items: center; gap: 0.5em; padding: 0.45em 0.9em; border: 1px solid rgb(255 255 255 / 0.18); border-radius: 999px; font: 500 0.95cqw/1 var(--sans); color: #cfc6b8; }
.jd-pill i { width: 0.55em; height: 0.55em; border-radius: 50%; background: #ee9b6b; animation: ping-joj 1.6s ease-out infinite; }
@keyframes ping-joj { from { box-shadow: 0 0 0 0 rgb(238 155 107 / 0.6); } to { box-shadow: 0 0 0 0.6em rgb(238 155 107 / 0); } }
.jd-title { margin: 0; font: 600 7cqw/1.02 var(--joj); letter-spacing: -0.02em; }
.jd-play { display: flex; justify-content: space-between; align-items: center; gap: 2em; width: fit-content; margin: 0; padding: 0.8em 1.1em; border-radius: 0.5em; background: #ee9b6b; color: #1b1714; font: 600 2cqw/1 var(--sans); }
/* the board's column is exactly the board's width, so a longer caption never pushes the headline */
.jd-desktop { display: grid; grid-template-columns: 72cqh minmax(0, 1fr); grid-template-rows: 9cqh minmax(0, 1fr); column-gap: 7cqw; padding: 3cqh 5cqw 4cqh; }
.jd-desktop header { grid-column: 1 / -1; }
.jd-icons { display: flex; gap: 2.4cqw; }
.jd-icons i { width: 1.6cqw; height: 1.6cqw; border: 0.25cqw solid #cfc6b8; border-radius: 30%; opacity: 0.7; }
.jd-stage { display: grid; align-content: start; gap: 2cqh; min-width: 0; }
.jd-desktop .jd-board { height: 72cqh; }
/* the caption line: a pause pill, whose turn it is, what is happening */
.jd-line { display: flex; align-items: center; gap: 0.7em; min-width: 0; margin: 0; font: 400 1.25cqw/1.2 var(--sans); color: #e6ddd0; white-space: nowrap; }
.jd-turn { flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; background: radial-gradient(circle, #3a332d 0 22%, #f2ebe0 26%); box-shadow: 0 0 0 0.12em #f2ebe0; transition: background 0.3s; }
.jd-turn-black { background: radial-gradient(circle, #f2ebe0 0 18%, #242220 22%); box-shadow: 0 0 0 0.12em #4a4744; }
.jd-line-text { overflow: hidden; text-overflow: ellipsis; }
.jd-phone .jd-line { font-size: 3cqw; white-space: normal; min-height: 2.4em; }
.jd-desktop .jd-copy { align-self: center; display: grid; gap: 5cqh; }
.jd-phone { display: flex; flex-direction: column; gap: 3.2cqh; padding: 12cqh 5.5cqw 5cqh; }
.jd-phone .jd-logo { font-size: 7.2cqw; }
.jd-phone .jd-title { font-size: 9.5cqw; }
.jd-phone .jd-board { width: 100%; flex: none; }
.jd-phone .jd-play { width: 100%; font-size: 4.6cqw; }
/* the board: brown squares, an orange edge on the black side, cream and graphite pieces */
/* tilted like the site's 3D board: the far edge recedes a little */
.jd-board { position: relative; aspect-ratio: 1; border-radius: 1.5%; background: #4a433b; box-shadow: 0 1.1cqmin 0 #2b2622, 0 3cqmin 5cqmin rgb(0 0 0 / 0.55); transform: perspective(250cqmin) rotateX(10deg); transform-origin: 50% 58%; }
.jd-board::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 1.2%; border-radius: 2px; background: #ee9b6b; opacity: 0.75; }
.jd-squares { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border-radius: inherit; overflow: hidden; background: repeating-conic-gradient(#3b352f 0 25%, #51493f 0 50%) 0 0 / 25% 25%; }
.jd-squares > i { position: relative; transition: background 0.4s; }
/* the last route: where the piece left, where it touched down, strongest where it stands */
.jd-squares > [data-route]::after { content: ''; position: absolute; inset: 0; background: #86b56b; opacity: 0.46; }
.jd-squares > [data-route='hop']::after { opacity: 0.38; }
.jd-squares > [data-route='end']::after { opacity: 0.62; }
/* landing dots for the piece being weighed, popping in one after another */
.jd-dot { position: absolute; z-index: 1; inset: 33%; border-radius: 50%; border: 0.4cqmin solid #ee9b6b; animation: dot-pop 0.34s cubic-bezier(0.3, 1.7, 0.5, 1) var(--delay, 0ms) both; }
@keyframes dot-pop { from { transform: scale(0); opacity: 0; } }
.jd-ripple { position: absolute; z-index: 0; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgb(238 155 107 / 0.55), rgb(238 155 107 / 0) 70%); opacity: 0; pointer-events: none; }
.jd-piece { position: absolute; z-index: 2; left: calc(var(--x) * 12.5% + 1.25%); top: calc(var(--y) * 12.5% + 1.25%); width: 10%; aspect-ratio: 1; border-radius: 50%; transition: translate 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), scale 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), filter 0.24s, box-shadow 0.3s; }
.jd-flying { z-index: 4; transition: none; }
.jd-piece::after { content: ''; position: absolute; border-radius: 50%; }
.jd-white { background: radial-gradient(circle at 42% 35%, #fffaf1, #ece3d3 55%, #cdbfa8); box-shadow: 0 0.7cqmin 0 #a99b84, 0 1.4cqmin 2cqmin rgb(0 0 0 / 0.45); }
.jd-white::after { inset: 31%; border: 0.4cqmin solid #3a332d; }
.jd-black { background: radial-gradient(circle at 42% 35%, #4a4744, #262422 60%, #151413); box-shadow: 0 0.7cqmin 0 #0c0b0a, 0 1.4cqmin 2cqmin rgb(0 0 0 / 0.5); }
.jd-black::after { inset: 41%; background: #f2ebe0; }
/* the piece being weighed lifts off the board */
.jd-active { z-index: 3; translate: 0 -9%; scale: 1.06; filter: drop-shadow(0 1.6cqmin 1.2cqmin rgb(0 0 0 / 0.6)); box-shadow: 0 0 0 0.45cqmin #ee9b6b; }

/* ---------- Jump Over Jump detail cards ---------- */
.card-bots { width: min(86vw, 25rem); }
.bots { width: 100%; display: grid; gap: 0.4rem; }
.bots li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.8rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 0.02); }
.bots b { font: 600 0.95rem/1.2 var(--joj); }
.bots small { grid-column: 1; color: var(--dim); font-size: 0.75rem; line-height: 1.3; }
.bot-level { grid-column: 2; grid-row: 1 / 3; align-self: center; display: flex; gap: 3px; }
.bot-level i { width: 5px; height: 15px; border-radius: 2px; background: rgb(255 255 255 / 0.12); }
.bot-level i.on { background: #ee9b6b; }
.bot-neural { border-color: rgb(238 155 107 / 0.55) !important; background: linear-gradient(90deg, rgb(238 155 107 / 0.14), transparent 70%) !important; }
.card-online { width: min(86vw, max(20rem, calc(var(--vis) * 0.62 + 4rem))); }
.online-art { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.online-art .c-dev { width: min(62%, calc(var(--vis) * 0.47)); }
.room-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0.5rem 0.8rem; border-radius: 999px; background: #1d1a17; border: 1px solid rgb(238 155 107 / 0.5); color: #f2ebe0; font: 500 0.75rem/1 var(--sans); white-space: nowrap; box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.9); }
.room-chip b { font-weight: 600; color: #ee9b6b; }
.room-copied { left: 0; top: 16%; animation: float 6s ease-in-out infinite; }
.room-copied i { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #7fc97a; color: #0b0b0b; font-style: normal; font-size: 0.75rem; }
.room-vs { right: 0; bottom: 18%; animation: float 7s ease-in-out -3s infinite; }
.card-ranks { width: min(84vw, 23rem); }
.ranks { width: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #12100e; display: grid; gap: 0.6rem; }
.ranks-tabs { display: flex; gap: 0.3rem; margin: 0; }
.ranks-tabs span { padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); font: 500 0.75rem/1 var(--sans); color: #cfc6b8; }
.ranks-tabs .on { background: #ee9b6b; border-color: #ee9b6b; color: #1b1714; }
.ranks ol { display: grid; }
.ranks li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.ranks li span { font: italic 400 1.25rem/1 var(--serif); color: #ee9b6b; }
.ranks li small { color: var(--dim); font-size: 0.75rem; letter-spacing: 0.1em; }
.ranks li:not(.ranks-you) { opacity: 0.55; }
.ranks-you { border-radius: 10px; border-bottom-color: transparent !important; background: linear-gradient(90deg, rgb(238 155 107 / 0.2), transparent); animation: you-glow 2.8s ease-in-out infinite; }
.ranks-you b { color: #fff; }
.ranks-you i { font-style: normal; }
@keyframes you-glow { 50% { background-color: rgb(238 155 107 / 0.1); } }
.ranks-points { margin: 0; text-align: center; color: var(--dim); font-size: 0.75rem; letter-spacing: 0.08em; }
.card-learn { width: min(84vw, 22rem); }
.learn-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; }
.learn-chips li { padding: 0.75rem 1.05rem; border-radius: 999px; border: 1px solid rgb(238 155 107 / 0.45); background: rgb(238 155 107 / 0.06); color: #f2d3bd; font: 600 0.82rem/1 var(--sans); }
.learn-chips li:nth-child(odd) { rotate: -3deg; }
.learn-chips li:nth-child(3n) { rotate: 4deg; }

/* ---------- the reel: twelve years of rewrites, inside the Jump Over Jump row ---------- */
.reel-frame { width: min(23rem, 80vw); padding: 2.4rem 1.2rem 2.2rem; background: #0d0c0b; border: 1px solid #1f1c19; border-radius: 6px; display: grid; gap: 0.5rem; align-content: start; }
.reel-frame::before, .reel-frame::after { content: ''; position: absolute; left: 0; right: 0; height: 1.3rem; background: radial-gradient(circle at 50% 50%, #2a2622 0 0.28rem, transparent 0.3rem) 0 50% / 1.6rem 100% repeat-x; }
.reel-frame::before { top: 0.35rem; } .reel-frame::after { bottom: 0.35rem; }
.reel-frame > * { min-width: 0; }
.rf-shot { aspect-ratio: 16 / 10; background: #000; border-radius: 4px; overflow: hidden; display: grid; place-items: center; margin-bottom: 1rem; }
.rf-shot img { width: 100%; height: 100%; object-fit: cover; }
.rf-logo .rf-shot img { object-fit: contain; padding: 12%; background: #f2efe6; }
.rf-neural .rf-shot img { object-position: 0% 50%; }
/* pre.rf-code, not .rf-code: the 2024 frame's card is .rf-code too (rf-<kind>), and this rule stretched it
   to the whole row's width, making the Jump Over Jump row twice as tall as its content */
pre.rf-code { margin: 0; width: 100%; height: 100%; padding: 1.2rem 1.4rem; font: 400 clamp(0.75rem, 0.6rem + 0.3vw, 0.82rem)/1.55 ui-monospace, 'SF Mono', Menlo, monospace; color: #b6f46b; background: radial-gradient(circle at 30% 20%, #10170b, #050605 70%); white-space: pre; overflow: hidden; }
.rf-term { color: #e9e2d6; letter-spacing: 0.1em; line-height: 1.3; }
.rf-year { font: italic 400 clamp(2.4rem, 2rem + 1.6vw, 3.4rem)/1 var(--serif); color: #ee9b6b; }
.reel-frame h3 { font: 600 1.25rem/1.15 var(--joj); }
.reel-frame p:last-child { color: #a9a296; font-size: 0.95rem; }

/* ---------- Tic Tac Toe AI: the 2017 game, playable (ui/public/tic-tac-toe.tsx) ---------- */
.row-ttt { background: radial-gradient(60% 60% at 30% 50%, rgb(232 184 106 / 0.05), transparent 70%); }
/* the first card is a hero (.intro-wide): the story beside the board, or under it on phones */
.intro-ttt .intro-visual { height: auto; }
/* in between (tablets, narrow windows) a narrower story keeps the board on screen beside it; below 760px
   there's no room for both and the row's arrow, so the board goes on top, as on phones */
@media (min-width: 761px) and (max-width: 1100px) { .intro-ttt { grid-template-columns: minmax(0, 19rem) auto; } .intro-ttt .ttt-board { width: 16rem; } }
@media (max-width: 760px) {
  .intro-ttt { width: min(82vw, 30rem); grid-template-columns: minmax(0, 1fr); row-gap: 1.2rem; align-content: start; }
  .intro-ttt .intro-visual { order: -1; justify-self: center; }
  .intro-ttt .ttt { width: min(24rem, 82vw); }
  .intro-ttt .ttt-board { width: min(100%, 15rem); }
}
.ttt { display: grid; justify-items: center; gap: 1rem; padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(170deg, #141414, #0b0b0b 60%); box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.95); }
.ttt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; width: 100%; }
.ttt-story .ttt-ported { margin-top: 0.8rem; color: var(--dim); font-size: 0.85rem; }
.ttt-score { display: flex; align-items: baseline; gap: 0.7rem; font: 400 2.2rem/1 var(--serif); }
.ttt-score small { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.ttt-score b { font-weight: 400; }
.ttt-score i { font-style: normal; font-size: 1.1rem; color: var(--dim); }
/* the board sets the panel's width (on narrow screens the panel fills the card instead, above) */
.ttt-board { position: relative; width: min(18rem, calc(var(--row-h) - 11rem)); aspect-ratio: 1; }
.ttt-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ttt-cells { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.ttt-cells button { all: unset; cursor: pointer; border-radius: 12px; transition: background 0.3s; }
.ttt-cells button:hover:not([aria-disabled='true']) { background: rgb(232 184 106 / 0.07); }
.ttt-cells button:focus-visible { outline: 1px solid rgb(232 184 106 / 0.7); outline-offset: -6px; }
.ttt-cells button[aria-disabled='true'] { cursor: default; }
.ttt-status { min-height: 1.2em; font: italic 400 1.35rem/1.2 var(--serif); color: var(--amber); }
.ttt-new { min-height: 2.75rem; padding: 0.75rem 1.25rem; font-size: 0.75rem; }
/* the commit log reads as a plain list, not boxes, so seven entries still fit a phone's row */
.ttt-log .job-highlights { gap: 0; margin-top: 1rem; }
.ttt-log .job-highlights li { padding: 0.55rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.ttt-log .job-highlights b { font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.ttt-log .job-highlights small { font-size: 0.86rem; line-height: 1.4; }

/* ---------- career: one card per company, today first ---------- */
.row-career { background: radial-gradient(60% 60% at 30% 40%, #15110d, var(--bg) 70%); }
/* education & more, right after the career: the same cards (.job), with lists in place of highlights */
.row-learning { background: radial-gradient(60% 60% at 70% 40%, #13110e, var(--bg) 70%); }
/* a long list (Online learning's seven) takes two columns, its first item across both, so the card
   stays as tall as the others */
.study .job-highlights:has(> li:nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.study .job-highlights:has(> li:nth-child(7)) > li:first-child { grid-column: 1 / -1; }
/* more projects, closing the projects chapter: the same cards again */
.row-more { background: radial-gradient(60% 60% at 70% 50%, rgb(232 184 106 / 0.04), transparent 70%); }
/* the pool tile designer, playable in its card (ui/public/pool-tiles.tsx): the story, then the tiles, then
   the size and Clear; on wide screens the tiles sit beside the story. The grid fits a frame --pool-h tall,
   so more rows make it narrower instead of taller, and the buttons under it never move. */
.pool-card { --pool-h: 8rem; }
.pool-card .pool-note { margin-top: 0.8rem; color: var(--dim); font-size: 0.85rem; max-width: 40ch; }
/* phones: no mouse to drag with, and no room for the tags */
@media (hover: none) { .pool-drag { display: none; } }
@media (max-width: 899px) { .pool-card .job-tech { display: none; } }
.pool { display: grid; gap: 0.9rem; justify-items: start; width: 100%; margin-top: 1.4rem; }
/* each swatch is drawn small but taps as 44px: the button is the tap area, its circle is a ::before */
.pool-colors { display: flex; flex-wrap: wrap; gap: 0; margin-inline: -0.5rem; }
.pool-colors button { all: unset; position: relative; box-sizing: border-box; width: 2.75rem; height: 2.75rem; cursor: pointer; }
.pool-colors button::before { content: ''; position: absolute; inset: 0.525rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.25); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.pool-colors button:hover::before { transform: scale(1.1); }
.pool-colors button[aria-pressed='true']::before { transform: scale(1.12); box-shadow: 0 0 0 2px #0b0b0b, 0 0 0 3.5px var(--amber); }
.pool-colors button:focus-visible { outline: 1px solid var(--amber); outline-offset: -2px; border-radius: 50%; }
/* the light lines between tiles are the grout */
.pool-frame { width: 100%; height: var(--pool-h); }
.pool-grid { display: grid; grid-template: repeat(var(--rows), 1fr) / repeat(var(--cols), 1fr); gap: 1px; padding: 1px; width: min(100%, calc(var(--pool-h) * var(--cols) / var(--rows))); aspect-ratio: var(--cols) / var(--rows); background: #b9c4c9; border-radius: 4px; user-select: none; -webkit-user-select: none; }
.pool-grid button { all: unset; min-width: 0; min-height: 0; background: var(--c); cursor: pointer; touch-action: manipulation; }
.pool-grid button:hover { box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.28); }
.pool-grid button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--amber); }
.pool-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.3rem; width: 100%; }
.pool-step { display: inline-flex; align-items: center; gap: 0.45rem; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.pool-step b { font-weight: 500; margin-right: 0.15rem; }
.pool-step button { all: unset; position: relative; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--line); color: var(--text); font: 400 1rem/1 var(--sans); cursor: pointer; transition: border-color 0.3s; }
.pool-step button:hover:not([aria-disabled='true']) { border-color: var(--amber); }
.pool-step button[aria-disabled='true'] { opacity: 0.35; cursor: default; }
.pool-step button:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; }
/* 44px to tap, around the drawn circle */
.pool-step button::before { content: ''; position: absolute; inset: calc((1.9rem - 2.75rem) / 2); border-radius: 50%; }
.pool-step output { min-width: 1.4em; text-align: center; font: 400 1.15rem/1 var(--serif); letter-spacing: 0; color: var(--text); }
.pool-clear { margin-left: auto; min-height: 2.75rem; padding: 0.7rem 1.15rem; font-size: 0.75rem; }
/* phones: "Paint bigger" opens the designer full screen (pool-tiles.tsx), tiles 36px, the board scrolling
   sideways when it is wider than the screen; Done brings it back */
.pool-name { display: none; }
.pool-dialog .pool-name { display: block; grid-row: 1; align-self: center; font: 400 1.6rem/1 var(--serif); }
.pool-big, .pool-done { display: none; min-height: 2.75rem; padding: 0.7rem 1.15rem; font-size: 0.75rem; }
/* its room is kept before the script runs (and without it), so nothing under it moves when it appears */
@media (max-width: 760px) { .pool-big { display: inline-flex; } html:not(.js-rails) .pool-big { visibility: hidden; } }
/* the name and Done at the top; the colors, the board, its cue, the size and Clear as one group in the
   middle of the rest (the empty rows 2 and 6 share what is left), so nothing floats apart. The tiles fit the screen's width while they
   stay 28px or more (up to 36px); below that the board scrolls sideways and says so (pool-tiles.tsx). */
.pool-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom)); border: 0; background: #0b0b0b; color: var(--text); overflow: hidden; }
.pool-dialog::backdrop { background: rgb(0 0 0 / 0.8); }
.pool-dialog .pool { --pool-h: auto; height: 100%; margin: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto minmax(0, auto) auto minmax(0, 1fr); align-content: stretch; }
.pool-dialog .pool-colors { grid-row: 3; }
.pool-dialog .pool-board { grid-row: 4; }
.pool-dialog .pool-foot { grid-row: 5; }
.pool-dialog .pool-big { display: none; }
.pool-dialog .pool > :not(.pool-name):not(.pool-done) { grid-column: 1 / -1; }
.pool-dialog .pool-done { display: inline-flex; grid-row: 1; grid-column: 2; }
/* the board and its cue */
.pool-board { display: contents; }
.pool-dialog .pool-board { display: grid; justify-self: stretch; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, auto) auto; gap: 0.75rem; min-height: 0; }
.pool-dialog .pool-frame { position: relative; height: auto; max-height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.pool-dialog .pool-frame::-webkit-scrollbar { display: none; }
.pool-dialog .pool-grid { width: min(100%, calc(var(--cols) * 2.25rem)); margin-inline: auto; }
/* fitted, the tiles would be under 28px: 36px instead, and the board scrolls (pool-tiles.tsx sets it) */
.pool-dialog .pool-frame[data-wide] .pool-grid { width: calc(var(--cols) * 2.25rem); }
/* more tiles past an edge: that edge fades */
.pool-dialog .pool-frame[data-more-right] { -webkit-mask-image: linear-gradient(to right, #000 82%, rgb(0 0 0 / 0.25)); mask-image: linear-gradient(to right, #000 82%, rgb(0 0 0 / 0.25)); }
.pool-dialog .pool-frame[data-more-left] { -webkit-mask-image: linear-gradient(to left, #000 82%, rgb(0 0 0 / 0.25)); mask-image: linear-gradient(to left, #000 82%, rgb(0 0 0 / 0.25)); }
.pool-dialog .pool-frame[data-more-left][data-more-right] { -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 0.25), #000 18% 82%, rgb(0 0 0 / 0.25)); mask-image: linear-gradient(to right, rgb(0 0 0 / 0.25), #000 18% 82%, rgb(0 0 0 / 0.25)); }
.pool-swipe { display: none; }
.pool-dialog .pool-swipe { display: flex; gap: 0.4em; visibility: hidden; justify-self: center; font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.08em; color: var(--dim); }
.pool-dialog .pool-swipe span { color: var(--amber); }
.pool-dialog:has(.pool-frame[data-scrolls]) .pool-swipe { visibility: visible; }
/* at the last column the cue points back, the way the rest of the board is */
.pool-dialog:has(.pool-frame[data-more-left]:not([data-more-right])) .pool-swipe span { order: -1; rotate: 180deg; }
.pool-dialog .pool-step { letter-spacing: 0.1em; }
@media (min-width: 900px) {
  .job.pool-card { --pool-h: calc(var(--row-h) - 11rem); display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); grid-auto-rows: min-content; align-content: start; column-gap: 2.4rem; width: min(60rem, 90vw); }
  .job.pool-card > * { grid-column: 1; }
  .job.pool-card > .pool { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
}
.intro-career h2 { font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.8rem); }
/* the career's words start level with the Shopify card beside them, so its heading is up on the first screen */
.row-career .intro { align-content: start; padding-top: 1.8rem; }
/* every job, a tap away: the intro's list slides the row to the one you pick (rails.tsx).
   The names rise in like credits the first time the row is seen, and the last one picked stays lit. */
.career-index { display: grid; gap: 0.7rem; margin-top: 0.5rem; }
/* wider screens: two columns, read down then across, so the list doesn't make the row taller */
@media (min-width: 641px) { .career-index { grid-template-rows: repeat(4, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, max-content); column-gap: 2rem; } }
.career-index a { display: inline-block; color: inherit; text-decoration: none; transition: transform 0.5s var(--ease); }
.career-index b { display: block; font: 400 clamp(1.45rem, 1.2rem + 0.6vw, 1.7rem)/1.12 var(--serif); color: #e4ded4; transition: color 0.3s; }
.career-index span { display: block; margin-top: 0.25rem; font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.career-index em { font-style: normal; color: var(--amber); }
.career-index i { display: inline-block; width: 6px; height: 6px; margin-left: 0.5rem; vertical-align: 1px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgb(232 184 106 / 0.6); animation: ping-amber 1.8s ease-out infinite; }
.career-index a:hover, .career-index a[data-picked] { transform: translateX(5px); }
.career-index a:hover b, .career-index a[data-picked] b { color: var(--amber); }
.career-index a:focus-visible { outline: 1px solid rgb(232 184 106 / 0.6); outline-offset: 4px; border-radius: 4px; }
.js-rails .career-index:not([data-shown]) li { opacity: 0; }
.career-index[data-shown] li { animation: credit-in 0.9s var(--ease) both; animation-delay: calc(0.15s + var(--i, 0) * 0.07s); }
@keyframes credit-in { from { opacity: 0; transform: translateY(10px); } }
.job { width: min(30rem, 84vw); padding: 1.8rem 1.6rem 1.6rem; background: linear-gradient(170deg, #141210, #0b0b0b 60%); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.job-featured { width: min(52rem, 88vw); border-color: rgb(232 184 106 / 0.45); background: radial-gradient(90% 60% at 0% 0%, rgb(232 184 106 / 0.09), transparent 70%), linear-gradient(170deg, #15120e, #0b0b0b 60%); }
.job h3 { font-size: clamp(2.1rem, 1.4rem + 2vw, 3.2rem); line-height: 0.98; margin-block: 0.8rem 0.6rem; letter-spacing: -0.01em; }
.job-featured h3 { font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); }
/* two stretches at one company (Freelance: the start, the comeback): the chapter sits under the name like a subtitle */
.job h3 em { display: block; }
.job h3 a { text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 92% / 0 2px no-repeat; transition: background-size 0.7s var(--ease); }
.job h3 a:hover { background-size: 100% 2px; }
/* a title that links taps as 44px tall or more, however small its type */
.job h3 a { position: relative; }
.job h3 a::before { content: ''; position: absolute; inset: -0.4rem 0; }
/* the ↗ after a title that links (TitleLink in home-page.tsx), like the ones in the card's list */
.title-end { white-space: nowrap; }
.title-arrow { display: inline-block; margin-left: 0.2em; font-style: normal; font-size: 0.42em; vertical-align: 0.95em; color: var(--amber); transition: transform 0.4s var(--ease); }
.job h3 a:hover .title-arrow { transform: translate(3px, -3px); }

.job .job-tech { margin-top: auto; padding-top: 1.3rem; }
.job-years { display: flex; align-items: center; gap: 1rem; font: italic 400 clamp(1.6rem, 1rem + 1.6vw, 2.6rem)/1 var(--serif); color: var(--amber); }
.job-years i { width: clamp(2rem, 4vw, 3.4rem); height: 1px; background: currentColor; opacity: 0.6; }
.job-meta { font: 500 0.75rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.8rem; }
.job-label { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem; }
/* what I built, in the sans like the rest of the reading text: the display serif is for headings */
.job-built { font: 300 1.0625rem/1.6 var(--sans); color: #d9d3c8; max-width: 58ch; }
.job-featured .job-built { font-size: 1.125rem; }
.job-empty { color: var(--dim); font-style: italic; }
.job-clients { margin-top: 1.1rem; color: #c9c2b6; font-size: 0.95rem; }
.job-clients span { color: var(--dim); font: 500 0.75rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; margin-right: 0.4rem; }
.job-tech { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.3rem; }
.job-tech li { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.04em; padding: 0.5rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); color: #d9d3c8; background: rgb(255 255 255 / 0.03); }
.job-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid rgb(232 184 106 / 0.5); color: var(--amber); font: 600 0.75rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.job-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgb(232 184 106 / 0.6); animation: ping-amber 1.8s ease-out infinite; }
@keyframes ping-amber { to { box-shadow: 0 0 0 10px rgb(232 184 106 / 0); } }
.job-highlights { display: grid; gap: 0.6rem; margin-top: 1.4rem; max-width: 34rem; }
.job-highlights li { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / 0.02); }
.job-highlights li.is-empty { border-style: dashed; }
.job-highlights b { font: 400 1.25rem/1.2 var(--serif); }
.job-highlights small { color: #bdb6aa; font-size: 0.95rem; line-height: 1.5; }
.job-highlights .is-empty b { color: var(--dim); font-style: italic; }

/* ---------- posts: one card per post, newest first ---------- */
.row-posts { --row-h: min(46svh, 27rem); background: radial-gradient(60% 60% at 30% 40%, #101214, var(--bg) 70%); }
.intro-posts h2 { font-size: clamp(2.4rem, 1.3rem + 3vw, 4.2rem); }
.post-card { width: min(19rem, 76vw); }
.post-card > a { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; padding: 1.4rem 1.4rem 1.3rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(170deg, #141312, #0b0b0b 60%); color: var(--text); text-decoration: none; transition: border-color 0.3s, translate 0.5s var(--ease), background 0.3s; }
.post-card > a:hover { border-color: rgb(232 184 106 / 0.5); translate: 0 -4px; background: linear-gradient(170deg, #1a1714, #0d0c0b 60%); }
.post-year { font: italic 400 2.6rem/1 var(--serif); color: var(--amber); }
.post-lang { color: #f4d28e; }
.post-card h3 { font: 400 clamp(1.3rem, 1.1rem + 0.5vw, 1.6rem)/1.15 var(--serif); }
.post-excerpt { color: #a9a296; font-size: 0.88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .post-tags { margin-top: auto; }

@media (max-width: 640px) {
  .cin { --row-h: min(58svh, 32rem); }
  /* the controls sit between the row's opening words and its first card */
  .rail-bar { margin-top: 0.25rem; }
  .rail-count { width: min(9rem, 34vw); }
  /* the hobby chips take a line of their own above the count and the arrows */
  .rail-bar:has(.clip-chips) { flex-wrap: wrap; }
  .clip-jump { flex-basis: 100%; flex-wrap: wrap; gap: 0.35rem; }
  .clip-chips { flex-basis: 100%; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .rail-foot { margin-right: auto; }
  /* the keys line starts where the count starts and wraps before the arrows, so a longer one (PT) stays
     on the screen */
  .rail-foot .rail-keys { left: 0; right: auto; width: calc(100vw - 2 * var(--gut) - 6.5rem); white-space: normal; letter-spacing: 0.06em; }
  /* intro cards: as tall as their words, not a full stage */
  .slide.intro:not(.intro-wide) { min-height: 0; }
  /* the supporting rows' opening words go above the row, so its first card shows at once */
  .intro.row-head { display: grid; width: auto; padding: 0 var(--gut) 0.25rem; gap: 0.8rem; }
  .row-head > p:not(.cin-kicker):not(.cap-ctas) { font-size: 0.98rem; line-height: 1.55; }
  .slide.intro-slide { display: none; }
  .intro { align-content: start; padding-top: 1rem; }
  .intro h2 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3rem); }
  /* narrower cards so a good slice of the next one always shows */
  .intro { width: 78vw; }
  .intro-wide { --u: min(calc(var(--row-h) * 0.5), 60vw); width: 82vw; grid-template-columns: minmax(0, 1fr); row-gap: 1.2rem; align-content: start; }
  .intro-wide .intro-visual { order: -1; justify-self: center; }
  .intro-wide h2 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3rem) !important; }
  .intro-wide .intro-text > p:not(.cin-kicker):not(.cap-ctas):not(.intro-note) { font-size: 0.95rem; }
  .card, .job, .reel-frame { max-width: 78vw; }
  .job { padding: 1.4rem 1.2rem 1.3rem; }
  .job-meta { margin-bottom: 1.2rem; }
  .job-clients { font-size: 0.86rem; }
  .job-tech { gap: 0.3rem; }
  .job-tech li { padding: 0.4rem 0.6rem; }
}

/* the pause button (rails.tsx sets html.is-paused): every looping animation holds still, the rail's tug
   and the grain included. One-off entrances still finish. */
.is-paused .row-down svg, .is-paused .hv, .is-paused .room-chip, .is-paused .ranks-you,
.is-paused .jd-pill i, .is-paused .career-index i, .is-paused .tl-track i, .is-paused .job-badge::before { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .tl-track i.tl-now, .job-badge::before { animation: none; }
  .cin-intro { display: none; }
  .js-rails .slide { animation: none; }
  .row-down svg, .hv, .room-chip, .ranks-you, .jd-pill i, .career-index i, .career-index[data-shown] li { animation: none; }
  .js-rails .career-index:not([data-shown]) li { opacity: 1; }
}

/* career highlights: a grid of what I built; on the featured card, two columns */
.job .job-highlights { max-width: none; width: 100%; }
/* the featured card reads in two columns: the story on the left, the highlights on the right */
@media (min-width: 900px) {
  .job-wide { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); grid-auto-rows: min-content; column-gap: 2.2rem; align-content: start; }
  /* the other jobs with highlights carry long lists of tech: a wider story column keeps them as short as the rest */
  .job-wide:not(.job-featured) { width: min(56rem, 90vw); grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); }
  .job-wide > * { grid-column: 1; }
  .job-wide .job-highlights { grid-column: 2; grid-row: 1 / span 7; margin-top: 0; gap: 0.45rem; }
  .job-wide .job-highlights li { padding: 0.7rem 0.9rem; }
  .job-wide .job-highlights small { font-size: 0.94rem; line-height: 1.45; }
  /* the career row keeps the height of its tallest card, but every card ends where its content ends (top
     aligned): stretched, the shorter ones showed a dark slab under their words. On a card with a short list
     of highlights (four or fewer) the tags go under them, so the two columns come out close in height
     (Kinaxis left 360px empty under its three highlights otherwise). */
  .row-career .slide.job { align-self: flex-start; min-height: 0; }
  .row-career .job-wide:not(.job-featured):not(:has(.job-highlights > li:nth-child(5))) .job-tech { grid-column: 2; }
  /* seven or more (freelancing's comeback): a wider card with two columns of them, so it's no taller than the rest */
  .job-wide:not(.job-featured):has(.job-highlights > li:nth-child(7)) { width: min(64rem, 92vw); }
  .job-wide .job-highlights:has(> li:nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
}
/* a highlight with a link: the whole box is the link's tap area (the measure counts the ::after) */
.job-highlights li:has(> b > a) { position: relative; }
.job-highlights b a { position: static; }
.job-highlights b a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.job-highlights b a { color: inherit; text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.job-highlights b a:hover { background-size: 100% 1px; }
.job-highlights b a i { font-style: normal; font-size: 0.8em; color: var(--amber); }

/* opened at #job-… (the other language's flag carries it): the card's years and the row's arrows show
   under the menu, at every width */
.row-career .job { scroll-margin-top: 7.5rem; }
/* the row is as tall as its tallest card; where the cards in view are shorter (the last stop), the Next
   pill moves up under them (rails/rows.ts sets --lift), as a transform so nothing under it moves */
.row-career .row-down { translate: 0 calc(var(--lift, 0px) * -1); transition: translate 0.5s var(--ease), border-color 0.3s, background 0.3s; }

/* phones and narrow windows: the career scrolls sideways like every other row, one job per card; each card
   ends where its content ends instead of stretching to the tallest */
@media (max-width: 899.98px) {
  .row-career .slide.job { align-self: flex-start; min-height: 0; }
  /* highlights as a plain list with rules, not boxes: lighter on a narrow card */
  .job-wide .job-highlights { gap: 0; margin-top: 1.2rem; }
  .job-wide .job-highlights li { padding: 0.65rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
  .row-career .job-highlights small { font-size: 0.92rem; line-height: 1.45; }
  .row-career .job-built { font-size: 1rem; line-height: 1.55; }
  .row-career .job-meta { margin-bottom: 0.9rem; }
  .row-career .job h3 { margin-block: 0.6rem 0.5rem; }
  /* long tech lists fold to their first few on a phone, where they wrap into many lines */
  .row-career .job-tech li:nth-child(n+7) { display: none; }
  .row-career .job .job-tech { padding-top: 1rem; }
}

