/* Anjali Pramanik portfolio v2
   Two typefaces only: Bricolage Grotesque (headings) + Geist (everything else).
   No italics, no underlines, no card borders, no eyebrows, no numbering. */

:root {
  --ink: #0B0707;
  --surface: #180A06;
  --surface-2: #180A06;
  --maroon: #4A0B10;
  --red: #B81D1D;
  --glow: #FF4A3D;
  --bone: #F4ECE9;
  --muted: #C2B5B1;
  --muted-2: #958581;

  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;

  --wrap: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Type scale: one set of sizes for the whole site */
  --fs-display: clamp(44px, 6vw, 88px);   /* page title (h1) */
  --fs-h2: clamp(32px, 3.6vw, 48px);      /* section titles */
  --fs-xl: clamp(22px, 2.2vw, 30px);      /* statements, quotes, large list items */
  --fs-h3: clamp(19px, 1.6vw, 22px);      /* card and group titles */
  --fs-lead: clamp(17px, 1.3vw, 19px);    /* intro paragraphs */
  --fs-body: 16px;                        /* running text */
  --fs-small: 15px;                       /* UI: nav, buttons, tags, links */
  --fs-caption: 14px;                     /* captions, meta, notes */
  --fs-label: 13px;                       /* field labels, table heads */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em, i, cite { font-style: normal; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--red); color: var(--bone); }

/* Type scale: display > h1 > h2 > h3 > lead > body > small */
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  margin: 0;
  color: var(--bone);
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.022em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; font-variation-settings: "opsz" 36; }
.h1-sub { display: block; font-weight: 500; font-size: var(--fs-xl); line-height: 1.2; letter-spacing: -0.01em; color: var(--muted); font-variation-settings: "opsz" 36; margin-bottom: clamp(10px, 1.2vw, 18px); }
.h1-main { display: block; font-size: var(--fs-display); line-height: 1.03; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
p { margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.small { font-size: var(--fs-caption); color: var(--muted-2); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-top: clamp(88px, 11vw, 150px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 680px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 12px; pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 2px;
  padding: 6px; border-radius: 999px;
  background: rgba(28, 11, 13, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: background .4s var(--ease);
}
.nav.scrolled { background: rgba(22, 9, 11, 0.8); }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 17px; border-radius: 999px;
  font-size: var(--fs-small); font-weight: 500; color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav a:hover, .nav button:hover { color: var(--bone); background: rgba(244, 236, 233, 0.08); }
.nav a[aria-current="page"] { color: var(--bone); background: rgba(244, 236, 233, 0.1); }
.nav .logo { padding: 0 12px 0 10px; }
.logo svg { width: 46px; height: 34px; overflow: visible; }
.logo text { font-family: var(--head); font-weight: 700; letter-spacing: -1.2px; }
.ear { transform-box: fill-box; transform-origin: 50% 100%; }
.ear-l { animation: twitchL 4.2s infinite; }
.ear-r { animation: twitchR 5.3s infinite; }
.logo:hover .ear { animation-duration: .7s; }
@keyframes twitchL { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-18deg); } 94% { transform: rotate(6deg); } }
@keyframes twitchR { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(16deg); } 88% { transform: rotate(-6deg); } }
.nav-sep { width: 1px; height: 22px; background: rgba(244, 236, 233, 0.14); margin: 0 4px; }
.nav .mail svg { width: 16px; height: 16px; flex: none; color: var(--glow); }
.mail .copied { display: none; color: var(--bone); }
.mail.is-copied .addr { display: none; }
.mail.is-copied .copied { display: inline; }

/* ---------- Hero: the desk (3D render, 2560 x 1440 design space) ---------- */
.hero {
  position: relative; width: 100%;
  /* show the desk, not the whole wall: never taller than the screen */
  height: min(56.25vw, max(520px, calc(100svh - 140px)));
  overflow: hidden; background: #050303;
}
.stage {
  position: absolute; left: 0; top: 0;
  width: 2560px; height: 1440px;
  transform-origin: 0 0;
  transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(var(--s, .65));
}
.layer { position: absolute; inset: 0; transform-origin: 50% 50%; }
.photo { position: absolute; inset: 0; background: url("img/desk-render-2560.webp") center / 100% 100% no-repeat; }
@media (max-width: 900px) { .photo { background-image: url("img/desk-render-1280.webp"); } }
.lamp-glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 760px 300px at 1500px 260px, rgba(255, 42, 31, .12), rgba(255, 42, 31, 0) 70%);
  transition: opacity .8s var(--ease);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .6; } }
.lights-out { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.hero.lamp-off .lamp-glow { opacity: 0; animation: none; }
.hero.lamp-off .lights-out { opacity: .55; }

.screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.monitor {
  width: 1000px; height: 563px; background: #0A0808;
  /* maps this 1000 x 580 box onto the monitor's exact corners in the photo */
  transform: matrix3d(0.60973269,-0.0023161058,0,-3.5069762e-06,0.0089832659,0.61945813,0,7.0182907e-06,0,0,1,0,1042.5532,574.14728,0,1);
}
.tabs { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: #110E0E; }
.tab { display: inline-flex; align-items: center; height: 26px; padding: 0 14px; border-radius: 6px; background: #1A1515; font-size: 13px; font-weight: 500; color: #B5AAA7; white-space: nowrap; }
.tab.on { background: #2A2121; color: #F4ECE9; }
.subbar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 18px; background: #0D0A0A; }
.subbar span { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #E4D2CE; }
.subbar span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #FF2A1F; }
.subbar span + span { font-size: 12px; color: #9C8682; }
.subbar span + span::before { display: none; }
.feed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 14px; height: 477px; overflow: hidden; }
.col { overflow: hidden; }
.col-track { display: flex; flex-direction: column; gap: 14px; animation: feed var(--dur, 32s) linear infinite; }
.col.rev .col-track { animation-direction: reverse; }
.monitor:hover .col-track { animation-play-state: paused; }
@keyframes feed { to { transform: translateY(calc(-50% - 7px)); } }
.tile {
  flex: none; height: 150px; border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #1A1515 center top / cover no-repeat;
}
.tile.img { padding: 0; }
.tile i { display: block; width: 60px; height: 6px; border-radius: 3px; background: rgba(244, 217, 212, .45); }
.tile i + i { width: 110px; height: 5px; margin-top: 6px; background: rgba(244, 217, 212, .2); }
.tile b { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; color: #F4D9D4; }

.laptop {
  width: 560px; height: 350px;
  transform: matrix3d(0.70120789,0.070382249,0,0.00010656957,0.0031199004,0.60411098,0,-1.2742866e-05,0,0,1,0,603.59753,748.1922,0,1);
  background: radial-gradient(90% 110% at 85% 0%, #2A0A0B 0%, #0F0B0B 55%, #090707 100%);
}
.laptop .moon { position: absolute; left: 150px; top: 80px; width: 64px; height: 64px; border-radius: 50%; box-shadow: 16px -8px 0 0 #B3141C; animation: moon 5s ease-in-out infinite; }
@keyframes moon { 50% { transform: translateY(-6px) rotate(-6deg); } }
.laptop .clock { position: absolute; right: 22px; top: 18px; font-size: 16px; font-weight: 500; color: #FF6A5E; font-variant-numeric: tabular-nums; }
.laptop p { position: absolute; left: 0; right: 0; bottom: 70px; text-align: center; font-family: var(--head); font-weight: 600; font-size: 34px; letter-spacing: -0.03em; color: #F4D9D4; }
.laptop .taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: rgba(5, 3, 3, .8); }

/* the corner of the laptop that sits in front of the monitor */
.fg { position: absolute; pointer-events: none; }

/* hotspots for the easter eggs */
.hot { position: absolute; border-radius: 10px; cursor: pointer; }
.hot:focus-visible { outline-width: 4px; }

/* labels: dot, line, then the label */
.labels { pointer-events: none; }
.labels svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.labels line { stroke: #FF6A5E; stroke-width: 1.6; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .9s var(--ease) forwards; animation-delay: var(--d); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.labels .ring { fill: none; stroke: #FF2A1F; stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-in-out infinite; }
.labels .core { fill: #FF2A1F; }
@keyframes ring { 50% { transform: scale(1.5); opacity: .15; } }
.label {
  position: absolute; white-space: nowrap;
  transform: translate(var(--tx, 0), -50%) scale(calc(1 / var(--s, .65)));
  transform-origin: var(--ox, 0) 50%;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(8, 4, 4, .84);
  font-size: 13px; font-weight: 500; color: #F4D9D4; line-height: 1.3;
  opacity: 0; animation: labelIn .6s var(--ease) forwards; animation-delay: calc(var(--d) + .55s);
  pointer-events: none;
}
.label.end { --tx: -100%; --ox: 100%; }
@keyframes labelIn { to { opacity: 1; } }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 16%; background: linear-gradient(180deg, rgba(5, 3, 3, 0) 0%, var(--ink) 100%); pointer-events: none; }

/* ---------- Intro ---------- */
.intro { padding-top: 32px; }
.intro .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.intro h1 { max-width: 860px; }
.intro-side { max-width: 460px; display: grid; gap: 26px; }
.egg { color: var(--glow); cursor: help; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: var(--fs-small); font-weight: 500; line-height: 1.2;
  background: var(--surface-2); color: var(--bone);
  transition: transform .45s var(--spring), background .3s var(--ease);
}
.btn { transition: transform .45s var(--spring), box-shadow .45s var(--ease), background .3s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 74, 61, .35), 0 10px 34px rgba(255, 42, 31, .38); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, #C42020 0%, #7A0E12 55%, #2A0809 100%); }
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 90, 70, .5), 0 0 26px rgba(255, 42, 31, .65), 0 14px 44px rgba(255, 42, 31, .45); }
.btn.light { background: var(--bone); color: var(--ink); }
.btn svg { width: 16px; height: 16px; transition: transform .45s var(--spring); }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Work ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
  display: grid; align-content: start; gap: 22px;
  padding: 14px 14px 30px; border-radius: 10px; background: var(--surface);
  transition: transform .6s var(--ease), background .4s var(--ease);
}
.project:hover { transform: translateY(-6px); background: #21110B; }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(1) contrast(1.04); transition: transform 1s var(--ease), filter .6s var(--ease); }
.project:hover .shot img, .next:hover .shot img, .shot img:focus-visible { filter: none; }
.project:hover .shot img { transform: scale(1.05); }
.shot .go {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(11, 7, 7, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: var(--fs-caption); font-weight: 500;
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.project:hover .go, .project:focus-visible .go { opacity: 1; transform: none; }
.info { display: grid; gap: 10px; padding: 0 10px; }
.info p { color: var(--muted); text-wrap: pretty; max-width: 600px; }
.meta { font-size: var(--fs-caption); color: var(--muted-2); }
.shot.homes {
  display: grid; place-content: end start; padding: 28px;
  background:
    var(--surface-2);
}
.homes-art { position: absolute; inset: 14% 10% auto auto; width: 46%; opacity: .9; transition: transform 1s var(--ease); }
.project:hover .homes-art { transform: translateY(-6px) scale(1.03); }
.homes span:not(.go) { font-family: var(--head); font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.1; max-width: 70%; }

/* ---------- Passion ---------- */
.passion {
  position: relative; overflow: hidden; min-height: 380px;
  display: grid; align-content: end; gap: 12px; padding: 40px; border-radius: 10px;
  background: var(--surface);
  transition: transform .6s var(--ease);
}
.passion.alt { background: var(--surface); }
.passion:hover { transform: translateY(-6px) rotate(-.4deg); }
.passion.alt:hover { transform: translateY(-6px) rotate(.4deg); }
.passion h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; }
.passion p { color: var(--muted); max-width: 440px; }
.passion .art { position: absolute; top: 34px; right: 34px; width: 96px; height: 96px; opacity: .95; transition: transform .8s var(--spring); }
.passion:hover .art { transform: rotate(-12deg) scale(1.08); }
.passion.alt:hover .art { transform: translateY(-8px) scale(1.08); }

.thoughts {
  margin-top: 24px; border-radius: 10px; background: var(--surface);
  padding: 40px 0 36px; display: grid; gap: 28px; overflow: hidden;
  transition: background .4s var(--ease);
}
.thoughts:hover { background: #21110B; }
.thoughts-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 0 40px; }
.thoughts-top > div { display: grid; gap: 10px; max-width: 560px; }
.thoughts-top p { color: var(--muted); }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 12px; padding-right: 12px; flex: none; animation: marquee 48s linear infinite; }
.thoughts:hover .marquee-track { animation-duration: 120s; }
@keyframes marquee { to { transform: translateX(-100%); } }
.chip { flex: none; display: inline-flex; align-items: center; gap: 22px; padding: 0 0 0 22px; font-family: var(--head); font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; color: var(--muted); white-space: nowrap; transition: color .3s var(--ease); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px rgba(255, 74, 61, .7); }
.chip:hover { color: var(--bone); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--bone); transition: color .3s var(--ease); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .45s var(--spring); }
.link-arrow:hover { color: var(--glow); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Expertise: pick a skill, see it play out ---------- */
.skills { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: repeat(4, auto) 1fr; column-gap: clamp(32px, 5vw, 80px); }
.skill { display: contents; }
.skill-name {
  grid-column: 1; text-align: left;
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0;
  font-family: var(--head); font-weight: 600; font-variation-settings: "opsz" 48;
  font-size: var(--fs-xl); line-height: 1.15; letter-spacing: -0.015em;
  color: rgba(244, 236, 233, .34);
  transition: color .45s var(--ease), transform .6s var(--spring);
}
.skill-name::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--glow);
  transform: scale(0); transition: transform .5s var(--spring);
  box-shadow: 0 0 18px rgba(255, 74, 61, .7);
}
.skill-name:hover { color: rgba(244, 236, 233, .6); }
.skill.on .skill-name { color: var(--bone); transform: translateX(6px); }
.skill.on .skill-name::before { transform: scale(1); }
.skill-panel {
  grid-column: 2; grid-row: 1 / -1;
  position: relative; overflow: hidden;
  border-radius: 10px; min-height: 460px;
  background: var(--surface);
  display: grid; grid-template-rows: 1fr auto; gap: 24px; padding: 36px;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.98);
  transition: opacity .45s var(--ease), transform .7s var(--ease), visibility 0s .45s;
}
.skill.on .skill-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .05s, transform .7s var(--ease) .05s, visibility 0s; }
.skill-panel p { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.skill-panel .tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.skill-panel .tools span { padding: 8px 14px; border-radius: 999px; background: rgba(244, 236, 233, .07); font-size: var(--fs-caption); color: var(--muted); }
.viz { position: relative; display: grid; place-items: center; min-height: 220px; }
.viz svg { width: 100%; max-width: 440px; height: auto; overflow: visible; }

/* product design: a flow with a dot travelling through it */

.v1 .tl { stroke: #3C3C3C; stroke-width: 2; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset .6s var(--ease); fill: none; }
.v1 .nd { fill: #0D0D0D; stroke: #4A4A4A; stroke-width: 2; transition: fill .4s, stroke .4s; }
.v1 .tx { fill: #4A4A4A; font-size: 11px; transition: fill .4s; }
.v1 .t { font-size: 11px; fill: #C9C9C9; font-family: var(--body); }
.v1 .t.dim { fill: #6B6B6B; }
.v1 .q { font-family: var(--head); font-size: 34px; font-weight: 700; fill: #3C3C3C; }
.v1 .a0, .v1 .a1, .v1 .scr, .v1 .spec, .v1 .wire, .v1 .ui, .v1 .hand { opacity: 0; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.v1 .note { transform-box: fill-box; transform-origin: center; transform: scale(.6); transition: transform .6s var(--spring); }
.v1 .flow { fill: none; stroke: #9A9A9A; stroke-width: 1.6; stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset .7s var(--ease); }
.v1 .scr { transform: translateX(0); }

.v1[data-step="1"] .tl[data-k="0"],
.v1[data-step="2"] .tl[data-k="0"],
.v1[data-step="3"] .tl[data-k="0"],
.v1[data-step="4"] .tl[data-k="0"] { stroke-dashoffset: 0; stroke: #9A9A9A; }
.v1[data-step="2"] .tl[data-k="1"],
.v1[data-step="3"] .tl[data-k="1"],
.v1[data-step="4"] .tl[data-k="1"] { stroke-dashoffset: 0; stroke: #9A9A9A; }
.v1[data-step="3"] .tl[data-k="2"],
.v1[data-step="4"] .tl[data-k="2"] { stroke-dashoffset: 0; stroke: #9A9A9A; }
.v1[data-step="4"] .tl[data-k="3"] { stroke-dashoffset: 0; stroke: #9A9A9A; }
.v1[data-step="1"] .nd[data-k="0"],
.v1[data-step="2"] .nd[data-k="0"],
.v1[data-step="3"] .nd[data-k="0"],
.v1[data-step="4"] .nd[data-k="0"] { fill: #6B6B6B; stroke: #6B6B6B; }
.v1[data-step="0"] .nd[data-k="0"] { fill: #EDEDED; stroke: #EDEDED; }
.v1[data-step="0"] .tx[data-k="0"] { fill: #EDEDED; }
.v1[data-step="1"] .tx[data-k="0"],
.v1[data-step="2"] .tx[data-k="0"],
.v1[data-step="3"] .tx[data-k="0"],
.v1[data-step="4"] .tx[data-k="0"] { fill: #9A9A9A; }
.v1[data-step="2"] .nd[data-k="1"],
.v1[data-step="3"] .nd[data-k="1"],
.v1[data-step="4"] .nd[data-k="1"] { fill: #6B6B6B; stroke: #6B6B6B; }
.v1[data-step="1"] .nd[data-k="1"] { fill: #EDEDED; stroke: #EDEDED; }
.v1[data-step="1"] .tx[data-k="1"] { fill: #EDEDED; }
.v1[data-step="2"] .tx[data-k="1"],
.v1[data-step="3"] .tx[data-k="1"],
.v1[data-step="4"] .tx[data-k="1"] { fill: #9A9A9A; }
.v1[data-step="3"] .nd[data-k="2"],
.v1[data-step="4"] .nd[data-k="2"] { fill: #6B6B6B; stroke: #6B6B6B; }
.v1[data-step="2"] .nd[data-k="2"] { fill: #EDEDED; stroke: #EDEDED; }
.v1[data-step="2"] .tx[data-k="2"] { fill: #EDEDED; }
.v1[data-step="3"] .tx[data-k="2"],
.v1[data-step="4"] .tx[data-k="2"] { fill: #9A9A9A; }
.v1[data-step="4"] .nd[data-k="3"] { fill: #6B6B6B; stroke: #6B6B6B; }
.v1[data-step="3"] .nd[data-k="3"] { fill: #EDEDED; stroke: #EDEDED; }
.v1[data-step="3"] .tx[data-k="3"] { fill: #EDEDED; }
.v1[data-step="4"] .tx[data-k="3"] { fill: #9A9A9A; }
 { fill: #6B6B6B; stroke: #6B6B6B; }
.v1[data-step="4"] .nd[data-k="4"] { fill: #EDEDED; stroke: #EDEDED; }
.v1[data-step="4"] .tx[data-k="4"] { fill: #EDEDED; }
 { fill: #9A9A9A; }
.v1[data-step="0"] .a0 { opacity: 1; }
.v1[data-step="0"] .note { transform: none; }
.v1[data-step="1"] .a1 { opacity: 1; }
.v1[data-step="1"] .flow { stroke-dashoffset: 0; }
.v1[data-step="2"] .scr,
.v1[data-step="3"] .scr,
.v1[data-step="4"] .scr { opacity: 1; }
.v1[data-step="2"] .wire { opacity: 1; }
.v1[data-step="3"] .ui,
.v1[data-step="4"] .ui { opacity: 1; }
.v1[data-step="4"] .scr { transform: translateX(-70px); }
.v1[data-step="4"] .hand { opacity: 1; }
.v1[data-step="4"] .spec { opacity: 1; }

.v2 .t { font-size: 11px; fill: #C9C9C9; font-family: var(--body); } .v2 .t.head { font-size: 12px; font-weight: 600; fill: #EDEDED; }
.v2 .cap { font-size: 11px; fill: #6B6B6B; opacity: 0; transition: opacity .4s; font-family: var(--body); }
.v2 .r0, .v2 .r2lab, .v2 .r3, .v2 .r4 { opacity: 0; transition: opacity .5s var(--ease); }
.v2 .dots circle { fill: #9A9A9A; animation: dotp 1s ease-in-out infinite; } .v2 .dots circle:nth-child(2) { animation-delay: .15s; } .v2 .dots circle:nth-child(3) { animation-delay: .3s; }
@keyframes dotp { 50% { opacity: .25; transform: translateY(-3px); } }
.v2 .nt { transform-box: fill-box; transform-origin: center; opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--r)) scale(.4); transition: transform .8s var(--ease), opacity .5s; }
.v2 .bar { transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.v2 .val { opacity: 0; transition: opacity .4s .6s; }
.v2 .cd { transform-box: fill-box; transform-origin: bottom; transform: translateY(14px); opacity: 0; transition: transform .6s var(--spring), opacity .4s; }
.v2 .cd.hi { transition-delay: .12s; }

.v2[data-step="0"] .r0 { opacity:1; }
.v2[data-step="1"] .nt,
.v2[data-step="2"] .nt { opacity:1; }
.v2[data-step="1"] .nt { transform: translate(var(--sx), var(--sy)) rotate(var(--r)) scale(1); }
.v2[data-step="2"] .nt { transform: translate(var(--cx), var(--cy)) rotate(0deg) scale(1); }
.v2[data-step="2"] .r2lab { opacity:1; }
.v2[data-step="3"] .r3 { opacity:1; }
.v2[data-step="3"] .bar { transform: scaleX(1); }
.v2[data-step="3"] .val { opacity:1; }
.v2[data-step="4"] .r4 { opacity:1; }
.v2[data-step="4"] .cd { transform:none; opacity:1; }
.v2[data-step="0"] .c0 { opacity:1; }
.v2[data-step="1"] .c1 { opacity:1; }
.v2[data-step="2"] .c2 { opacity:1; }
.v2[data-step="3"] .c3 { opacity:1; }
.v2[data-step="4"] .c4 { opacity:1; }

.v3 .t { font-size: 12px; fill: #C9C9C9; font-family: var(--body); } .v3 .t.dim { fill: #6B6B6B; font-size: 11px; }
.v3 .h { font-family: var(--head); font-weight: 600; font-size: 17px; fill: #EDEDED; }
.v3 .trk { fill: #3C3C3C; transition: fill .4s; } .v3 .knob { fill: #9A9A9A; transition: transform .45s var(--spring), fill .4s; }
.v3 .fill { transform-box: fill-box; transform-origin: left; transform: scaleX(.35); transition: transform .9s var(--ease); }
.v3 .hdl { transition: transform .9s var(--ease); }
.v3 .v-a, .v3 .v-b { transition: opacity .3s; } .v3 .v-b { opacity: 0; }
.v3 .btnw { transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease); }
.v3 .ring { opacity: 0; transition: opacity .3s; }
.v3 .rip { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.v3 .toast { transform: translateY(-40px); opacity: 0; transition: transform .6s var(--spring), opacity .3s; }
.v3 .cur { transform: translate(410px, 236px); transition: transform .9s var(--ease); }
.v3[data-step="0"] .cur { transform: translate(410px, 236px); }
.v3[data-step="1"] .cur { transform: translate(332px, 126px); }
.v3[data-step="2"] .cur { transform: translate(304px, 188px); }
.v3[data-step="3"] .cur { transform: translate(128px, 212px); }
.v3[data-step="1"] .trk, .v3[data-step="2"] .trk, .v3[data-step="3"] .trk { fill: #EDEDED; }
.v3[data-step="1"] .knob, .v3[data-step="2"] .knob, .v3[data-step="3"] .knob { transform: translateX(20px); fill: #0D0D0D; }
.v3[data-step="2"] .fill, .v3[data-step="3"] .fill { transform: scaleX(.8); }
.v3[data-step="2"] .hdl, .v3[data-step="3"] .hdl { transform: translateX(132px); }
.v3[data-step="2"] .v-a, .v3[data-step="3"] .v-a { opacity: 0; } .v3[data-step="2"] .v-b, .v3[data-step="3"] .v-b { opacity: 1; }
.v3[data-step="3"] .btnw { transform: scale(.96); } .v3[data-step="3"] .ring { opacity: 1; }
.v3[data-step="3"] .rip { animation: rip .9s var(--ease) .75s 1 both; }
@keyframes rip { from { opacity: .35; transform: scale(.2); } to { opacity: 0; transform: scale(9); } }
.v3[data-step="3"] .toast { transform: translateY(8px); opacity: 1; transition-delay: .9s; }


.v4 .t { font-size: 11px; fill: #C9C9C9; font-family: var(--body); } .v4 .t.dim { fill: #6B6B6B; }
.v4 .aa { font-family: var(--head); font-weight: 600; fill: #EDEDED; } .v4 .bt { font-size: 12px; font-weight: 500; fill: #C9C9C9; font-family: var(--body); } .v4 .bt.dim { fill: #6B6B6B; }
.v4 .d0, .v4 .d1, .v4 .d2 { opacity: 0; transition: opacity .5s var(--ease); }
.v4 .tk, .v4 .cp { transform-box: fill-box; transform-origin: center; transform: scale(.5); opacity: 0; transition: transform .6s var(--spring), opacity .4s; }
.v4 .cbg { fill: #161616; transition: fill .6s; } .v4 .ctt { font-family: var(--head); font-weight: 600; font-size: 16px; fill: #EDEDED; transition: fill .6s; }
.v4 .csub { font-size: 11px; fill: #6B6B6B; font-family: var(--body); } .v4 .cin { fill: none; stroke: #3C3C3C; transition: stroke .6s; }
.v4 .cbtn { fill: #EDEDED; transition: fill .6s; } .v4 .cbt { font-size: 12px; font-weight: 600; fill: #0D0D0D; font-family: var(--body); transition: fill .6s; }
.v4 .cmode { fill: #262626; transition: fill .6s; } .v4 .cknob { fill: #EDEDED; transition: transform .5s var(--spring), fill .6s; }
.v4[data-step="3"] .cbg { fill: #EDEDED; } .v4[data-step="3"] .ctt { fill: #0D0D0D; } .v4[data-step="3"] .cin { stroke: #C9C9C9; }
.v4[data-step="3"] .cbtn { fill: #0D0D0D; } .v4[data-step="3"] .cbt { fill: #EDEDED; }
.v4[data-step="3"] .cmode { fill: #C9C9C9; } .v4[data-step="3"] .cknob { transform: translateX(22px); fill: #0D0D0D; }

.v4[data-step="0"] .d0 { opacity:1; }
.v4[data-step="0"] .tk { transform:none; opacity:1; }
.v4[data-step="1"] .d1 { opacity:1; }
.v4[data-step="1"] .cp { transform:none; opacity:1; }
.v4[data-step="2"] .d2,
.v4[data-step="3"] .d2 { opacity:1; }

.viz[data-steps] svg { border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .viz * { transition: none !important; animation: none !important; } }


/* ---------- Know more ---------- */
.know {
  position: relative; overflow: hidden; border-radius: 10px;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 80px);
  background: var(--surface);
  display: grid; gap: 28px; justify-items: start;
}
.know h2 { font-size: var(--fs-h2); max-width: 800px; }
.know .lead { max-width: 620px; color: #D9CBC7; }
.know-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(32px, 5vw, 72px); width: 100%; max-width: 980px; }
.know-cols > div { display: grid; gap: 10px; align-content: start; }
.know-cols h3 { font-size: var(--fs-h3); }
.know-cols p { color: var(--muted); text-wrap: pretty; }
@media (max-width: 720px) { .know-cols { grid-template-columns: 1fr; } }
.hobbies { display: flex; flex-wrap: wrap; gap: 10px; }
.hobby {
  padding: 12px 20px; border-radius: 999px; background: rgba(11, 7, 7, .45);
  font-size: 15px; font-weight: 500; user-select: none;
  transition: transform .45s var(--spring), background .3s var(--ease);
}
.hobby:hover { transform: rotate(-4deg) scale(1.07); background: rgba(11, 7, 7, .7); }
.hobby:nth-child(even):hover { transform: rotate(4deg) scale(1.07); }
.know .glow-ring { display: none; }

/* ---------- Contact + footer ---------- */
.contact {
  margin-top: clamp(88px, 11vw, 150px);
  background: #0A0505 url("img/contact-bg.webp") center / cover no-repeat;
  padding: clamp(72px, 9vw, 120px) 0;
}
.contact .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.contact h2 { max-width: 600px; }
.contact-side { display: grid; gap: 14px; justify-items: end; }
.big-mail { font-family: var(--head); font-weight: 600; font-size: var(--fs-xl); letter-spacing: -0.02em; transition: color .3s var(--ease); }
.big-mail:hover { color: var(--glow); }
.socials { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.socials a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--muted); transition: color .3s, text-shadow .3s, transform .45s var(--spring); }
.socials a:hover { color: var(--glow); text-shadow: 0 0 18px rgba(255, 74, 61, .55); transform: translateY(-2px); }
.footer { padding: 22px 0 28px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--fs-caption); color: var(--muted-2); }

/* ---------- Me page ---------- */
.me-hero { padding-top: 150px; }
.me-hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.me-hero .copy { display: grid; gap: 24px; }
.portrait { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 480px; background: var(--surface-2); transform: rotate(2deg); transition: transform .8s var(--spring); }
.portrait:hover { transform: rotate(-1deg) scale(1.02); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .6s var(--ease); }
.portrait:hover img { filter: none; }
.portrait { cursor: zoom-in; }
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card { border-radius: 10px; background: var(--surface); padding: 32px; display: grid; gap: 12px; align-content: start; transition: transform .6s var(--ease), background .4s; }
.story-card:hover { transform: translateY(-5px); background: #21110B; }
.story-card p { color: var(--muted); text-wrap: pretty; }
.outside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.thing {
  position: relative; overflow: hidden; min-height: 260px; border-radius: 10px; padding: 28px;
  display: grid; align-content: end; gap: 8px; background: var(--surface);
  transition: transform .6s var(--ease);
}
.thing:hover { transform: translateY(-6px) rotate(-.6deg); }
.thing:nth-child(even):hover { transform: translateY(-6px) rotate(.6deg); }
.thing p { color: var(--muted); font-size: 15px; }
.thing svg { position: absolute; top: 24px; right: 24px; width: 64px; height: 64px; transition: transform .8s var(--spring); }
.thing:hover svg { transform: rotate(-14deg) scale(1.12); }
.thing.warm { background: var(--surface); }
.thing.hot { background: var(--surface); }

/* ---------- Case study pages ---------- */
.cs-hero { padding-top: 140px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--muted); margin-bottom: 28px; transition: color .3s var(--ease); }
.back svg { width: 16px; height: 16px; transition: transform .45s var(--spring); }
.back:hover { color: var(--bone); }
.back:hover svg { transform: translateX(-4px); }
.cs-hero h1 { font-size: var(--fs-display); max-width: 1000px; }
.cs-hero .lead { max-width: 720px; margin-top: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fact { padding: 14px 20px; border-radius: 8px; background: var(--surface); display: grid; gap: 2px; }
.fact span { font-size: var(--fs-label); color: var(--muted-2); }
.fact b { font-weight: 500; font-size: var(--fs-small); }
.cover { margin-top: clamp(40px, 5vw, 64px); border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.cover:hover img { transform: scale(1.02); }

.cs-block { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding-top: clamp(72px, 9vw, 120px); }
.cs-block > h2 { font-size: var(--fs-h2); position: sticky; top: 110px; align-self: start; }
.cs-body { display: grid; gap: 22px; max-width: 820px; }
.cs-body > p { font-size: var(--fs-lead); color: var(--muted); text-wrap: pretty; }
.cs-body > p strong { color: var(--bone); font-weight: 500; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { position: relative; padding: 18px 22px 18px 46px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 16px; line-height: 1.55; }
.points li::before { content: ""; position: absolute; left: 22px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px rgba(255, 74, 61, .6); }
.points li strong { color: var(--bone); font-weight: 500; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini { padding: 24px; border-radius: 10px; background: var(--surface); display: grid; gap: 8px; align-content: start; transition: transform .5s var(--ease), background .4s; }
.mini:hover { transform: translateY(-4px); background: #21110B; }
.mini h3 { font-size: var(--fs-h3); }
.mini p { color: var(--muted); font-size: var(--fs-body); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 10px 16px; border-radius: 999px; background: var(--surface-2); font-size: var(--fs-small); font-weight: 500; transition: transform .45s var(--spring), background .3s; }
.tags span:hover { transform: rotate(-3deg) scale(1.05); background: var(--maroon); }
.quote { font-family: var(--head); font-weight: 600; font-size: var(--fs-xl); line-height: 1.2; letter-spacing: -0.02em; color: var(--bone); padding: 28px 32px; border-radius: 10px; background: var(--surface); }

.fig { margin: 0; display: grid; gap: 10px; }
.fig a { display: block; border-radius: 10px; overflow: hidden; background: #F4ECE9; }
.fig img { width: 100%; height: auto; filter: grayscale(1) contrast(1.04); transition: transform 1s var(--ease), filter .6s var(--ease); }
.fig a:hover img, .fig a:focus-visible img { filter: none; }
.fig a:hover img { transform: scale(1.015); }
.fig figcaption { font-size: var(--fs-caption); color: var(--muted-2); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 32px; }
.gallery .fig a { aspect-ratio: 16 / 10; background: var(--surface-2); }
.gallery .fig img { height: 100%; object-fit: cover; object-position: top center; }
.gallery .fig.tall a { aspect-ratio: 3 / 4; }
.gallery-head { display: grid; gap: 12px; padding-top: clamp(72px, 9vw, 120px); max-width: 720px; }

.next {
  margin-top: clamp(88px, 11vw, 140px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px;
  padding: clamp(28px, 4vw, 48px); border-radius: 10px;
  background: var(--surface);
  transition: transform .6s var(--ease);
}
.next:hover { transform: translateY(-6px); }
.next > div { display: grid; gap: 12px; }
.next span { color: var(--muted); }
.next h2 { font-size: var(--fs-h2); }
.next .shot { aspect-ratio: 16 / 10; }
.next:hover .shot img { transform: scale(1.05); }
@media (max-width: 900px) {
  .cs-block { grid-template-columns: 1fr; }
  .cs-block > h2 { position: static; }
  .cards-2, .gallery, .next { grid-template-columns: 1fr; }
}

/* ---------- The cat ---------- */
.cat {
  position: fixed; left: 0; top: 0; z-index: 60; width: 120px; height: 80px;
  cursor: pointer; will-change: transform;
}
.cat-body { width: 120px; height: 80px; }
.cat-face { width: 120px; height: 80px; transition: transform .25s var(--ease); }
.cat.left .cat-face { transform: scaleX(-1); }
.cat svg { position: absolute; inset: 0; width: 120px; height: 80px; display: none; overflow: visible; filter: drop-shadow(0 0 1px rgba(244, 236, 233, .55)) drop-shadow(0 8px 18px rgba(255, 74, 61, .35)); }
.cat.walk .s-walk, .cat.sit .s-sit, .cat.sleep .s-sleep, .cat.loaf .s-loaf, .cat.groom .s-groom, .cat.belly .s-belly { display: block; }
.cat .leg { transform-box: fill-box; transform-origin: 50% 0%; }
.cat .leg-a { animation: legA .32s ease-in-out infinite alternate; }
.cat .leg-b { animation: legB .32s ease-in-out infinite alternate; }
@keyframes legA { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
@keyframes legB { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
.cat .tail { transform-box: fill-box; transform-origin: 100% 100%; animation: tail 1.4s ease-in-out infinite alternate; }
.cat .tail-s { transform-box: fill-box; transform-origin: 0% 100%; animation: tail 2.2s ease-in-out infinite alternate; }
@keyframes tail { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
.cat .eye, .crosser .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.cat .iris, .crosser .iris { fill: #C9973A; transition: fill .6s; }
.cat .pupil { fill: #070404; }
.cat.night .iris, .crosser.night .iris { fill: #FFC24A; filter: url(#ap-eye-glow); }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.cat .ear-c { transform-box: fill-box; transform-origin: 50% 100%; }
.cat .ear-c.l { animation: twitchL 4s infinite; } .cat .ear-c.r { animation: twitchR 5s infinite; }
.cat .breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: catBreathe 3s ease-in-out infinite; }
@keyframes catBreathe { 50% { transform: scaleY(1.06); } }
.cat .z { font-family: var(--body); fill: #BFB2AE; animation: zz 2.4s ease-out infinite; }
.cat .z2 { animation-delay: .8s; } .cat .z3 { animation-delay: 1.6s; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -26px); } }
.cat.hop .cat-body { animation: hop .45s cubic-bezier(.3, .7, .4, 1); }
@keyframes hop { 40% { transform: translateY(-34px); } }
.cat.spin .cat-body { animation: spin .9s cubic-bezier(.5, 0, .3, 1) 2; }
@keyframes spin { 50% { transform: translateY(-50px) rotate(180deg); } 100% { transform: rotate(360deg); } }
.hearts { position: absolute; left: 40px; top: -10px; width: 60px; height: 40px; pointer-events: none; display: none; }
.cat.purr .hearts { display: block; }
.hearts svg { display: block; position: absolute; width: 14px; height: 14px; filter: none; animation: heart 1.4s ease-out infinite; }
.hearts svg:nth-child(2) { left: 22px; top: -6px; width: 11px; height: 11px; animation-delay: .45s; }
.hearts svg:nth-child(3) { left: 40px; top: 2px; animation-delay: .9s; }
@keyframes heart { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1.1); } }
.cat.off { display: none; }

.crosser { position: fixed; left: 0; bottom: 18px; z-index: 59; width: 120px; height: 80px; pointer-events: none; animation: cross 3.2s linear forwards; }
.crosser svg { width: 120px; height: 80px; overflow: visible; filter: drop-shadow(0 0 1px rgba(244, 236, 233, .55)) drop-shadow(0 8px 18px rgba(255, 74, 61, .35)); }
.crosser .leg-a { animation: legA .32s ease-in-out infinite alternate; } .crosser .leg-b { animation: legB .32s ease-in-out infinite alternate; }
.crosser .leg { transform-box: fill-box; transform-origin: 50% 0%; }
@keyframes cross { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 40px)); } }

.cat-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 61;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(28, 11, 13, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 10px 30px rgba(0, 0, 0, .4);
  color: var(--bone); transition: transform .45s var(--spring), color .3s;
}
.cat-toggle:hover { transform: scale(1.08) rotate(-8deg); }
.cat-toggle[aria-pressed="true"] { color: var(--glow); }
.cat-toggle svg { width: 22px; height: 22px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 62;
  padding: 14px 22px; border-radius: 999px; white-space: nowrap; max-width: calc(100vw - 32px);
  background: rgba(28, 11, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: var(--fs-small); pointer-events: none;
  opacity: 0; transform: translate(-50%, 20px);
  transition: opacity .35s, transform .45s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.rise { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .skills { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .skill { display: block; border-radius: 10px; background: var(--surface); overflow: hidden; }
  .skill-name { padding: 26px 26px 0; font-size: var(--fs-xl); color: var(--bone); transform: none !important; pointer-events: none; }
  .skill-name::before { transform: scale(1); width: 10px; height: 10px; }
  .skill-panel { opacity: 1; visibility: visible; transform: none; min-height: 0; background: none; padding: 20px 26px 28px; }
  .viz { min-height: 0; }
  .viz svg { max-width: 340px; }
}
@media (max-width: 900px) {
  .grid-2, .story { grid-template-columns: 1fr; }
  .outside { grid-template-columns: repeat(2, 1fr); }
  .me-hero .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .contact-side { justify-items: start; }
  .socials { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .nav .mail .addr, .nav .mail .copied { display: none !important; }
  .nav-sep { display: none; }
  .nav a, .nav button { padding: 0 13px; }
  .hero { aspect-ratio: auto; height: 74vw; }
  .label, .labels line { display: none; }
  .passion, .thoughts-top { padding-left: 26px; padding-right: 26px; }
  .passion { padding-top: 26px; padding-bottom: 28px; min-height: 300px; }
  .thoughts { padding-top: 30px; }
  .outside { grid-template-columns: 1fr; }
  .thing { min-height: 200px; }
}
@media (max-width: 380px) {
  .nav .logo { padding: 0 8px; }
  .nav a, .nav button { padding: 0 11px; font-size: var(--fs-caption); }
}
@media (hover: none) { .cat-toggle { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .label { opacity: 1; }
  .labels line { stroke-dashoffset: 0; }
  .cat, .cat-toggle { display: none !important; }
}

/* ---------- "View" cursor ---------- */
.view-cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #C42020, #4A0B10);
  box-shadow: 0 0 30px rgba(255, 42, 31, .55);
  color: var(--bone); font-size: var(--fs-caption); font-weight: 500; letter-spacing: .01em;
  opacity: 0; transform: translate3d(-200px, -200px, 0) scale(.4);
  transition: opacity .25s var(--ease);
}
.view-cursor.on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .has-view, .has-view * { cursor: none !important; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: 1fr auto; background: rgba(6, 3, 3, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.lb.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 72px 96px 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .35s var(--ease); }
.lb.open .lb-stage img.ready { transform: none; opacity: 1; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 20px 26px; color: var(--muted); font-size: var(--fs-small); }
.lb-bar .count { font-variant-numeric: tabular-nums; color: var(--muted-2); min-width: 64px; text-align: center; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(244, 236, 233, .08); color: var(--bone); transition: background .3s, box-shadow .4s, transform .45s var(--spring); }
.lb-btn:hover { background: linear-gradient(135deg, #C42020, #4A0B10); box-shadow: 0 0 24px rgba(255, 42, 31, .55); transform: scale(1.06); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-side { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-side.lb-prev { left: 24px; } .lb-side.lb-next { right: 24px; }
.lb-side:hover { transform: translateY(-50%) scale(1.06); }
.lb-close { position: absolute; top: 18px; right: 22px; }
.lb-cap { max-width: 60ch; text-align: center; }
@media (max-width: 720px) { .lb-stage { padding: 64px 12px 8px; } .lb-side { display: none; } }
body.lb-lock { overflow: hidden; }

/* phones and tablets have no hover, so pictures stay in colour there */
@media (hover: none), (pointer: coarse) {
  .shot img, .fig img, .portrait img { filter: none !important; }
}


/* ---------- Case study v2: summary, results, tables ---------- */
.summary { margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.summary div { padding: 16px 20px; border-radius: 8px; background: var(--surface); display: grid; gap: 4px; align-content: start; }
.summary dt { font-size: var(--fs-label); color: var(--muted-2); }
.summary dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { padding: 26px 24px; border-radius: 10px; background: var(--surface); display: grid; gap: 6px; transition: transform .45s var(--spring), background .3s; }
.stat:hover { transform: translateY(-4px); background: #21110B; }
.stat b { font-family: var(--head); font-weight: 700; font-size: clamp(36px, 4vw, 54px); letter-spacing: -0.03em; line-height: 1; color: var(--bone); }
.stat .delta { font-family: var(--head); font-weight: 600; font-size: var(--fs-lead); color: var(--glow); }
.stat span { font-size: var(--fs-caption); color: var(--muted); line-height: 1.4; }
.stat small { font-size: var(--fs-label); color: var(--muted-2); }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: var(--fs-small); }
.tbl th { text-align: left; font-weight: 500; font-size: var(--fs-label); color: var(--muted-2); padding: 0 18px 4px; }
.tbl td { padding: 15px 18px; background: var(--surface); color: var(--muted); line-height: 1.45; }
.tbl td:first-child { border-radius: 8px 0 0 16px; color: var(--bone); font-weight: 500; }
.tbl td:last-child { border-radius: 0 8px 8px 0; }
.tbl td b { color: var(--bone); font-weight: 500; }
.note { font-size: var(--fs-caption); color: var(--muted-2); margin: 0; }
.quote-sm { margin: 0; padding: 18px 22px; border-radius: 8px; background: var(--surface); color: var(--bone); font-family: var(--head); font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.01em; }
.stack-col { display: grid; gap: 18px; }

/* NSH cover (no screenshot yet) */
.cover.art { display: grid; place-items: center; background: #180A06; }
.cover.art svg { width: min(46%, 380px); height: auto; opacity: .95; }

/* ---------- Outside work: stacked cards ---------- */
.outside-deck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.od-copy { display: grid; gap: 18px; align-content: center; min-height: 220px; }
.od-copy h3 { font-size: clamp(30px, 3.6vw, 48px); }
.od-copy p { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 460px; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.od-copy.swap p, .od-copy.swap h3 { opacity: 0; transform: translateY(8px); }
.od-copy h3 { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.od-hint { font-size: 14px; color: var(--muted-2); }
.deck { position: relative; width: min(100%, 380px); aspect-ratio: 4 / 5; margin-inline: auto; }
.card-h {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; border-radius: 10px; overflow: hidden;
  background: #180A06; color: var(--bone); text-align: left;
  display: grid; align-content: end; padding: 26px; font-family: var(--head); font-weight: 600; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em;
  transition: transform .6s var(--spring), opacity .5s var(--ease), box-shadow .4s;
  transform: translate(calc(var(--i) * 14px), calc(var(--i) * -10px)) rotate(calc(var(--i) * 3.5deg)) scale(calc(1 - var(--i) * .035));
  z-index: calc(10 - var(--i)); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8);
}
.card-h:nth-child(even) { background: #21110B; }
.card-h:hover { box-shadow: 0 30px 60px -22px rgba(255, 74, 61, .35); }
.card-h img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s; }
.card-h:hover img { filter: none; }
.card-h span { position: relative; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.card-h.out { transform: translate(120%, 6%) rotate(14deg); opacity: 0; }
@media (max-width: 760px) { .outside-deck { grid-template-columns: 1fr; } .od-copy { min-height: 0; } .card-h img { filter: none; } }

/* ---------- About: tools ---------- */
.tools-list { display: grid; gap: 8px; }
.tools-list .row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 20px; padding: 16px 22px; border-radius: 8px; background: var(--surface); }
.tools-list .row b { font-family: var(--head); font-weight: 600; }
.tools-list .row span { color: var(--muted); }
@media (max-width: 640px) { .tools-list .row { grid-template-columns: 1fr; gap: 4px; } }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.process li { padding: 20px 24px; border-radius: 10px; background: var(--surface); color: var(--muted); line-height: 1.55; }
.process li strong { display: block; color: var(--bone); font-family: var(--head); font-size: var(--fs-h3); font-weight: 600; margin-bottom: 4px; }

.why { font-style: normal; color: var(--glow); display: block; margin-top: 6px; font-size: var(--fs-caption); }
.grp { font-size: var(--fs-h3); margin: clamp(36px, 4vw, 56px) 0 18px; }
.tbl, .stats { margin: 0; }
.outside-deck { overflow-x: clip; padding: 24px 28px 24px 0; }
@media (max-width: 760px) { .deck { width: min(78%, 340px); margin-inline: 8px auto; } .outside-deck { padding-right: 28px; } }
.contact .wrap > div:first-child { max-width: 620px; }
.cover.art { aspect-ratio: 21 / 9; }

[hidden] { display: none !important; }

.socials .ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
.socials .ic-be rect { fill: currentColor; }
.socials .ic-be text { fill: #0A0505; font-family: var(--head); font-weight: 800; font-size: 13px; }

/* Process as a flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.flow li { position: relative; padding-top: 44px; }
.flow .dot { position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 6px rgba(255, 74, 61, .16), 0 0 22px rgba(255, 74, 61, .55); z-index: 1; }
.flow li::before { content: ""; position: absolute; top: 8px; left: 18px; right: -28px; height: 2px; background: linear-gradient(90deg, rgba(255,74,61,.7), rgba(244,236,233,.14)); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.flow li:last-child::before { display: none; }
.flow.in li::before, .reveal.in .flow li::before { transform: scaleX(1); }
.flow li:nth-child(2)::before { transition-delay: .25s; } .flow li:nth-child(3)::before { transition-delay: .5s; }
.flow h3 { margin-bottom: 8px; }
.flow p { color: var(--muted); font-size: var(--fs-body); line-height: 1.6; max-width: 280px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow li { padding: 0 0 0 44px; }
  .flow li::before { top: 18px; left: 8px; right: auto; width: 2px; height: calc(100% + 28px - 18px); transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, rgba(255,74,61,.7), rgba(244,236,233,.14)); }
  .flow.in li::before, .reveal.in .flow li::before { transform: scaleY(1); }
}
/* Tools as points with logos */
.tool-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tool-points li { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 8px; background: var(--surface); font-weight: 500; transition: background .3s var(--ease); }
.tool-points li:hover { background: var(--surface-2); }
.tool-points svg { width: 26px; height: 26px; flex: none; filter: grayscale(1); opacity: .85; transition: filter .35s, opacity .35s; }
.tool-points li:hover svg { filter: none; opacity: 1; }
@media (hover: none) { .tool-points svg { filter: none; opacity: 1; } }

/* Outside work: expanding photo strip */
.strip { display: flex; gap: 10px; height: clamp(340px, 42vw, 480px); }
.strip-item { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 10px; background: var(--surface); text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 22px; transition: flex-grow .7s var(--ease), background .4s var(--ease); }
.strip-item:nth-child(even) { background: var(--surface-2); }
.strip-item.on { flex-grow: 4.2; }
.strip-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .9s var(--ease); }
.strip-item:hover img, .strip-item.on img { filter: none; }
.strip-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 5, 5, .75)); pointer-events: none; }
.strip-name, .strip-line { position: relative; z-index: 1; }
.strip-name { font-family: var(--head); font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.1; color: var(--muted); white-space: nowrap; transition: color .4s, transform .6s var(--ease); }
.strip-item:not(.on) .strip-name { transform-origin: left bottom; }
.strip-item.on .strip-name, .strip-item:hover .strip-name { color: var(--bone); }
.strip-line { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 360px; max-height: 0; opacity: 0; overflow: hidden; transition: opacity .5s var(--ease) .1s, max-height .6s var(--ease); }
.strip-item.on .strip-line { max-height: 120px; opacity: 1; }
@media (hover: hover) and (min-width: 761px) { .strip:hover .strip-item.on:not(:hover) { flex-grow: 1; } .strip:hover .strip-item.on:not(:hover) .strip-line { max-height: 0; opacity: 0; } .strip-item:hover { flex-grow: 4.2; } .strip-item:hover .strip-line { max-height: 120px; opacity: 1; } }
@media (max-width: 760px) {
  .strip { flex-direction: column; height: auto; }
  .strip-item { flex: none; min-height: 72px; justify-content: flex-start; transition: min-height .6s var(--ease); }
  .strip-item.on { min-height: 190px; justify-content: flex-end; }
  .strip-name { white-space: normal; }
}
@media (min-width: 761px) {
  .strip-item { align-items: center; }
  .strip-item.on, .strip-item:hover { align-items: flex-start; }
  .strip-item:not(.on):not(:hover) .strip-name, .strip:hover .strip-item.on:not(:hover) .strip-name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 22px; }
}
@media (min-width: 761px) {
  .strip-item:not(.on):not(:hover), .strip:hover .strip-item.on:not(:hover) { justify-content: flex-start; padding-top: 24px; }
  .strip-item:not(.on):not(:hover) .strip-name, .strip:hover .strip-item.on:not(:hover) .strip-name { transform: none; }
}

/* Outside work: polaroids on a string */
.line-scroll { overflow-x: auto; overflow-y: hidden; padding: 6px 0 24px; scrollbar-width: none; }
.line-scroll::-webkit-scrollbar { display: none; }
.line-in { position: relative; min-width: 940px; padding-top: 2px; }
.string { position: absolute; top: 0; left: 0; width: 100%; height: 48px; overflow: visible; pointer-events: none; }
.string path { fill: none; stroke: rgba(244, 236, 233, .55); stroke-width: 1.6; filter: drop-shadow(0 0 5px rgba(255, 74, 61, .55)); }
.pols { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 0 2%; }
.pol { position: relative; flex: 0 0 18%; margin-top: var(--y); padding: 10px 10px 0; border-radius: 4px; background: var(--bone); color: #1A0D0A; text-align: center; transform-origin: 50% 0; transform: rotate(var(--r)); animation: swing 6s ease-in-out var(--dl) infinite; transition: transform .6s var(--spring), box-shadow .4s; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .8); }
.pol .ph { display: block; position: relative; aspect-ratio: 1; border-radius: 2px; overflow: hidden; background: linear-gradient(160deg, #2A1510, #120805); }
.pol .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s; }
.pol:hover .ph img, .pol.on .ph img { filter: none; }
.pol .cap { display: block; padding: 12px 0 14px; font-family: var(--head); font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: -0.01em; }
.clip { position: absolute; top: -22px; left: 50%; width: 14px; height: 34px; margin-left: -7px; border-radius: 4px; background: linear-gradient(180deg, #FF6A5E, #B3140D); box-shadow: 0 0 14px 3px rgba(255, 74, 61, .65), 0 0 34px 8px rgba(255, 74, 61, .3); animation: glow 3.2s ease-in-out var(--dl) infinite; }
.clip::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; bottom: 6px; border-radius: 2px; background: rgba(10, 5, 5, .45); }
.pol:hover, .pol.on { transform: rotate(0deg) translateY(6px) scale(1.04); animation: none; box-shadow: 0 26px 44px -16px rgba(0, 0, 0, .85), 0 0 40px -6px rgba(255, 74, 61, .35); z-index: 2; }
.pol:hover .clip, .pol.on .clip { box-shadow: 0 0 18px 5px rgba(255, 74, 61, .85), 0 0 46px 12px rgba(255, 74, 61, .4); }
.pol-line { margin-top: 8px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 520px; min-height: 3.2em; }
@keyframes swing { 0%, 100% { transform: rotate(var(--r)); } 50% { transform: rotate(calc(var(--r) * -0.5)); } }
@keyframes glow { 0%, 100% { opacity: .85; } 50% { opacity: 1; filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .pol, .clip { animation: none; } }
@media (hover: none) { .pol .ph img { filter: none; } }
.line-scroll { padding: 50px 0 28px; margin-top: -24px; }

.pol { background: #0B0605; color: var(--bone); border: 0; }
.pol .ph { background: linear-gradient(160deg, #1E100B, #0E0705); }
.pol { flex-basis: 21%; }
.pol { background: #1D110E; box-shadow: 0 18px 34px -14px rgba(0,0,0,.9), inset 0 0 0 1px rgba(244,236,233,.07); }
.pol .ph { background: linear-gradient(160deg, #331A14, #1A0C09); }
.pol:hover, .pol.on { box-shadow: 0 26px 44px -16px rgba(0,0,0,.9), 0 0 40px -6px rgba(255,74,61,.4), inset 0 0 0 1px rgba(244,236,233,.1); }

/* Polaroids: messy, unlabeled, two strings */
.line-in + .line-in { margin-top: 56px; }
.line-in { min-width: 940px; }
.line-in.l2 .pols { padding-left: 7%; padding-right: 3%; }
.pol { flex: 0 0 auto; width: var(--w); margin-left: var(--dx); padding-bottom: 38px; }
.pol .cap { display: none; }
.pol:nth-child(odd) { z-index: 1; }
.pol:hover, .pol.on { z-index: 3; }
.line-scroll { padding-bottom: 40px; }

.tool-groups { display: grid; gap: 36px; }
.tool-group { display: grid; gap: 14px; }
.tool-group h3 { color: var(--muted); font-weight: 500; }
.tool-group .tool-points { grid-template-columns: repeat(auto-fill, minmax(190px, 220px)); }
.ai-block { max-width: 760px; display: grid; gap: 20px; }
.ai-block p { font-size: var(--fs-lead); color: var(--muted); text-wrap: pretty; }
.ai-q { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 10px; }
.ai-q li { font-family: var(--head); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.01em; color: var(--bone); }
.ai-block .ai-close { font-family: var(--head); font-weight: 600; font-size: var(--fs-xl); line-height: 1.2; letter-spacing: -0.015em; color: var(--bone); margin-top: 12px; }

/* How I got here: one medium paragraph */
.story-text { max-width: 780px; font-size: var(--fs-lead); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
/* Designing with AI: text left, the four questions as a flow on the right */
.ai-block { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ai-copy { display: grid; gap: 20px; max-width: 640px; }
.ai-copy p { font-size: var(--fs-lead); color: var(--muted); text-wrap: pretty; }
.q-flow { position: relative; height: 400px; width: min(100%, 460px); justify-self: start; }
.q-flow svg { position: absolute; left: 0; top: 0; width: 108px; height: 400px; overflow: visible; }
.q-flow .qn { fill: #180A06; stroke: var(--glow); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(255, 74, 61, .6)); }
.q-flow .qm { fill: var(--bone); font-family: var(--head); font-weight: 700; font-size: 20px; }
.q-flow .ql { fill: none; stroke: rgba(255, 74, 61, .7); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease) calc(.3s + var(--i) * .45s); }
.ai-block.in .ql { stroke-dashoffset: 0; }
.q-flow ol { list-style: none; margin: 0; padding: 0; }
.q-flow li { height: 100px; display: flex; align-items: center; font-family: var(--head); font-weight: 600; font-size: var(--fs-xl); letter-spacing: -0.01em; color: var(--bone); opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.q-flow li:nth-child(odd) { padding-left: 54px; } .q-flow li:nth-child(even) { padding-left: 126px; }
.q-flow li:nth-child(2) { transition-delay: .35s; } .q-flow li:nth-child(3) { transition-delay: .8s; } .q-flow li:nth-child(4) { transition-delay: 1.25s; }
.ai-block.in .q-flow li { opacity: 1; transform: none; }
@media (max-width: 860px) { .ai-block { grid-template-columns: 1fr; } .q-flow { width: 100%; } .q-flow li { font-size: var(--fs-h3); } }

/* Horizontal scroll for flows and IA (click to preview in the lightbox) */
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hs-btns { display: flex; gap: 10px; flex: none; }
.hs-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--bone); transition: background .3s, box-shadow .3s, opacity .3s; }
.hs-btn svg { width: 20px; height: 20px; }
.hs-btn:hover { background: linear-gradient(135deg, #C42020, #4A0B10); box-shadow: 0 0 24px rgba(255, 42, 31, .5); }
.hs-btn:disabled { opacity: .3; pointer-events: none; }
.hscroll { position: relative; margin-top: 28px; }
.hscroll::after { display: none; content: ""; position: absolute; top: 0; right: 0; bottom: 34px; width: 80px; background: linear-gradient(90deg, transparent, var(--ink)); pointer-events: none; transition: opacity .3s; }
.hscroll.end::after { opacity: 0; }
.hs-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: rgba(244, 236, 233, .25) transparent; }
.hs-track::-webkit-scrollbar { height: 6px; } .hs-track::-webkit-scrollbar-thumb { background: rgba(244, 236, 233, .25); border-radius: 3px; }
.hs-track .fig { flex: none; scroll-snap-align: start; }
.hs-track .fig { width: min-content; display: grid; gap: 12px; }
.hs-track .fig a { background: none; cursor: zoom-in; display: block; width: max-content; }
.hs-track .fig img { height: clamp(260px, 32vw, 440px); width: auto; max-width: none; }
.hs-track .fig:only-child img { height: clamp(320px, 40vw, 560px); }
.hs-track .fig figcaption { max-width: none; width: 100%; }
@media (max-width: 640px) { .hs-btns { display: none; } }

/* Bullet points without backgrounds, site wide */
.points { gap: 14px; }
.points li { padding: 0 0 0 26px; border-radius: 0; background: none; font-size: var(--fs-body); line-height: 1.6; }
.points li::before { left: 2px; top: .62em; }
.tool-points li { background: none; padding: 6px 0; }
.tool-points li:hover { background: none; }
.pol .ph { aspect-ratio: 4 / 5; }
.line-in.l1 { min-width: 1000px; }
.pol:not(:has(img)) { display: none; }

/* ---------- Images are never cropped ---------- */
/* Screens and photos show whole, at their own shape */
.cover { aspect-ratio: auto; }
.cover img { height: auto; object-fit: initial; }
.gallery { align-items: start; }
.gallery .fig a { aspect-ratio: auto; }
.gallery .fig img { height: auto; object-fit: initial; }
.portrait { aspect-ratio: auto; }
.portrait img { height: auto; object-fit: initial; }
.pol .ph { aspect-ratio: auto; }
.pol .ph img { position: static; height: auto; object-fit: initial; }
/* Card thumbnails: the whole screen fits inside the frame */
.shot img { object-fit: contain; object-position: center; }
.shot { background: #120806; }
/* Full-page website captures: shown whole, scrolled inside a frame (never cut off) */
.cover.page, .gallery .fig.page a { max-height: min(78vh, 720px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(244, 236, 233, .3) transparent; }
.gallery .fig.page a { max-height: min(70vh, 560px); }
.cover.page::-webkit-scrollbar, .gallery .fig.page a::-webkit-scrollbar { width: 6px; }
.cover.page::-webkit-scrollbar-thumb, .gallery .fig.page a::-webkit-scrollbar-thumb { background: rgba(244, 236, 233, .3); border-radius: 3px; }
.shot.page img { object-fit: cover; object-position: center top; transition: object-position 6s linear, filter .6s var(--ease), transform 1s var(--ease); }
.project:hover .shot.page img, .next:hover .shot.page img { object-position: center bottom; transform: none; }
@media (hover: none) { .shot.page img { animation: pageScroll 14s ease-in-out infinite alternate; } }
@keyframes pageScroll { from { object-position: center top; } to { object-position: center bottom; } }
/* Lightbox: tall captures open at readable width and scroll */
.lb-stage.long { place-items: start center; overflow-y: auto; }
.lb-stage.long img { max-height: none; width: min(1100px, 100%); }
.lb-stage.long .lb-side { position: fixed; }

@media (max-width: 640px) {
  .tool-group .tool-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .line-in.l1 { min-width: 820px; }
}
@media (max-width: 960px) { .label, .labels line { display: none; } }

/* Home work grid: every project card has the same layout */
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 701px) and (max-width: 999px) { .work-grid { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- Performance ---------- */
.paused, .paused * { animation-play-state: paused !important; }
.cat, .view-cursor { will-change: transform; }
.pol { will-change: transform; }
@keyframes glow { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
/* Card thumbnails: no auto-scrolling pages */
.shot.page img, .project:hover .shot.page img, .next:hover .shot.page img { object-fit: cover; object-position: center top; animation: none; transition: transform 1s var(--ease), filter .6s var(--ease); }
[data-depth] { will-change: transform; }
@media (hover: hover) and (pointer: fine) { .shot .go { display: none; } }

/* Cat: rest poses, belly rubs, day and night eyes */
.cat .groom-paw { transform-box: fill-box; transform-origin: 50% 100%; animation: lick .7s ease-in-out infinite alternate; }
.cat .groom-head { transform-box: fill-box; transform-origin: 50% 100%; animation: groomHead 1.4s ease-in-out infinite alternate; }
@keyframes lick { from { transform: translateY(0) rotate(0); } to { transform: translateY(-3px) rotate(-8deg); } }
@keyframes groomHead { from { transform: rotate(-4deg); } to { transform: rotate(-12deg); } }
.cat .pu { transform-box: fill-box; transform-origin: 50% 100%; }
.cat .pu.a { animation: paddle .5s ease-in-out infinite alternate; }
.cat .pu.b { animation: paddle .5s ease-in-out .25s infinite alternate; }
@keyframes paddle { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.cat.belly .hearts { display: block; }
.cat.belly .cat-body { animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
/* Day: plain amber eyes with pupils, no glow. Night: glowing eyes, no pupils */
.cat .iris, .crosser .iris { filter: none; }
.cat.night .pupil, .crosser.night .pupil { display: none; }
.cat.night .iris, .crosser.night .iris { fill: #FFD36B; filter: url(#ap-eye-glow); }

/* Expertise: heading and list on the left, scene on the right, both starting at the top; no panel background */
.skills { grid-template-rows: auto repeat(4, auto) 1fr; align-items: start; }
.skills-head { grid-column: 1; grid-row: 1; display: grid; gap: 14px; margin-bottom: clamp(20px, 3vw, 40px); }
.skill-panel { background: none; padding: 0; min-height: 0; gap: 22px; align-content: start; grid-template-rows: auto auto; }
.skill-panel .viz { justify-items: start; place-items: start; min-height: 0; }
.skill-panel .viz svg { max-width: 520px; }
@media (max-width: 1000px) {
  .skills-head { margin-bottom: 8px; }
  .skill { background: none; border-radius: 0; }
  .skill-name { padding: 22px 0 0; }
  .skill-panel { padding: 16px 0 12px; }
}

.tool-points .tp-dot { width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
.tool-points .tp-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); }
.tool-points svg { width: 24px; height: 24px; }

/* Resume download in the nav (a CTA, so it gets the red gradient) */
.nav .nav-resume { color: var(--bone); background: linear-gradient(135deg, #C42020 0%, #7A0E12 55%, #2A0809 100%); gap: 8px; margin-left: 4px; }
.nav .nav-resume:hover { background: linear-gradient(135deg, #C42020 0%, #7A0E12 55%, #2A0809 100%); box-shadow: 0 0 0 1px rgba(255, 90, 70, .5), 0 0 22px rgba(255, 42, 31, .55); }
.nav .nav-resume svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 720px) { .nav .nav-resume span { display: none; } .nav .nav-resume { padding: 0 12px; } }
@media (max-width: 380px) { .nav a, .nav button { padding: 0 9px; } .nav .nav-resume { padding: 0 10px; margin-left: 0; } }

/* ---------- Touch devices: corner cat and paw prints ---------- */
.cat.touch { width: 96px; height: 64px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cat.touch .cat-body, .cat.touch .cat-face, .cat.touch svg { width: 96px; height: 64px; }
.paws { position: fixed; inset: 0; z-index: 59; pointer-events: none; overflow: hidden; }
.paws i { position: absolute; left: 0; top: 0; width: 22px; height: 22px; animation: pawFade 1.9s ease-out forwards; }
.paws svg { width: 100%; height: 100%; fill: #0A0505; filter: drop-shadow(0 0 1px rgba(244, 236, 233, .35)) drop-shadow(0 0 6px rgba(255, 60, 45, .55)); }
@keyframes pawFade { 0% { opacity: 0; } 8% { opacity: 1; } 60% { opacity: .9; } 100% { opacity: 0; } }

/* Expertise scene stretches to the right edge of the content */
.skill-panel { width: 100%; }
.skill-panel .viz, .skill-panel .viz svg { width: 100%; max-width: none; }
.hs-track { align-items: start; }
.hs-track .fig { align-content: start; }
@media (max-width: 640px) { .hs-track .fig img { height: min(66vh, 520px); } .hs-track .fig:only-child img { height: min(60vh, 460px); } }
