/* Palina Karniyenka — portfolio. Style A: graphite + lime. */

:root {
  --bg: #0e0f11;
  --bg-2: #16181b;
  --bg-3: #1d2024;
  --line: #26292e;
  --text: #eceee9;
  --text-2: #a4a8ad;
  --text-3: #6d7277;
  --accent: #ffd84d;
  --accent-ink: #0e0f11;
  --accent-2: #3d7bff;
  --orange: #ff7433;
  --kid-font: "Gluten", cursive;
  --font-head: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-label: "Geist Mono", ui-monospace, monospace;
  --track: -0.035em;
  --radius: 14px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); overflow-x: hidden; }
a { color: inherit; }
/* Links inside text are blue, so it is clear they can be clicked. */
.lead a, .story a, .site-footer a { color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.lead a:hover, .story a:hover, .site-footer a:hover { color: #a9c8ff; }
/* Product Hunt label next to the Modulor title: in Product Hunt colours (white text on their orange), without their logo. */
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.ph-badge { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; padding: 7px 12px 8px; border: 1px solid #ff6154; border-radius: 8px; background: #ff6154; color: #fff; text-decoration: none; line-height: 1; flex: none; --r: -2deg; transform: rotate(var(--r)); animation: ph-sway 3.2s ease-in-out infinite alternate; }
/* A slow, soft sway of a few degrees, like a sticker on a light breeze. */
@keyframes ph-sway {
  from { transform: rotate(var(--r)); }
  to { transform: rotate(calc(var(--r) + 2deg)); }
}
/* On the home card the label sits on the top-right corner like a sticker. */
.case { position: relative; }
.ph-corner { position: absolute; top: -12px; right: -10px; z-index: 3; --r: 2deg; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .ph-badge { animation: none; } }
.ph-badge small { font: 600 9px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.ph-badge b { font: 700 15px/1 var(--font-head); letter-spacing: -0.01em; }
a.ph-badge:hover { animation-play-state: paused; }
.case .ph-badge { padding: 5px 10px 6px; }
.case .ph-badge b { font-size: 13px; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.label { font: 500 12px/1.4 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: var(--track); }
/* "Back-office / Operations": the tight heading tracking eats the spaces around the slash, so the slash gets a
   little air of its own and looks as spaced as in body text. */
h1 .sl, h2 .sl, h3 .sl { margin: 0 .1em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { position: relative; width: 36px; height: 36px; flex: none; }
/* The hand swings from the wrist, at the bottom of the palm, once every 5 seconds. */
/* The logo: the hero planet drawn with white lines, slowly rocking a little left and right.
   On hover the icon itself turns into the yellow star. */
.mark-planet { display: block; overflow: visible; fill: none; stroke: #f4f5f7; stroke-width: 40; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 55%; animation: mark-sway 7s ease-in-out infinite alternate; transition: opacity .25s ease, scale .35s ease; }
.mark-star { position: absolute; inset: 0; display: block; fill: var(--accent); opacity: 0; scale: .4; rotate: -60deg; transition: opacity .25s ease, scale .4s cubic-bezier(.2, 1.4, .4, 1), rotate .5s ease; }
.mark:hover .mark-planet { opacity: 0; scale: .6; }
.mark:hover .mark-star { opacity: 1; scale: 1; rotate: 0deg; }
@keyframes mark-sway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.mark-planet .dot { fill: #f4f5f7; stroke: none; }
.logo b { display: block; font: 600 15px/1.2 var(--font-head); transition: color .2s; }
.logo small { display: block; width: fit-content; font-size: 13px; color: var(--text-3); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .3s ease; }
.logo:hover b { color: var(--accent); }
.logo:hover small { color: var(--text); background-size: 100% 1px; }
.site-nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--text-2); padding: 2px 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: color .2s, background-size .3s ease; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a:hover { background-size: 100% 1.5px; }
@media (max-width: 760px) { .site-nav { display: none; } .site-header .btn { margin-left: auto; } }
/* The header CV button is a blue outline with the same slow glint as the hero words. On hover it fills with light blue, in the same colour family. */
.site-header .btn {
  color: var(--text); border: 1.5px solid transparent;
  background:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .22) 50%, transparent 58%) 100% 0 / 320% 100% padding-box,
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(105deg, var(--accent-2) 40%, #7fa8ff 47%, #fff 50%, #7fa8ff 53%, var(--accent-2) 60%) 100% 0 / 320% 100% border-box;
  animation: cv-glint 10s ease-in-out infinite;
  transition: color .2s, transform .15s;
}
.site-header .btn:hover { color: var(--accent-ink); background: #a9c8ff; border-color: #a9c8ff; animation: none; transform: translateY(-1px); }
@keyframes cv-glint {
  0% { background-position: 100% 0, 0 0, 100% 0; }
  65%, 100% { background-position: 0 0, 0 0, 0 0; }
}
@media (max-width: 480px) { .logo small { display: none; } .site-header .btn { padding: 0 14px; } }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 100px; font: 600 14px/1 var(--font-body); text-decoration: none; white-space: nowrap; border: 1px solid var(--line); color: var(--text); background: none; cursor: pointer; transition: transform .15s, border-color .15s, background .15s, color .15s; }
/* Every outline button fills with light blue on hover, like the header CV button. */
.btn:not(.solid):hover { color: var(--accent-ink); background: #a9c8ff; border-color: #a9c8ff; transform: translateY(-1px); }
.btn.solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.solid:hover { transform: translateY(-1px); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font: 500 12px/1 var(--font-label); text-transform: uppercase; letter-spacing: .06em; padding: 7px 10px; border-radius: 100px; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.tag.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- home: hero ---------- */
.hero { padding: 64px 0 60px; }
.hero h1 { margin: 20px 0 28px; font-size: clamp(30px, 4.1vw, 52px); line-height: 1.1; text-wrap: pretty; }
/* The text keeps to the left. Behind the hero there is a barely visible dark-blue tint; the doodle on the right is built in morph.js. */
.hero { position: relative; overflow: hidden; }
.hero-text { position: relative; z-index: 1; width: fit-content; max-width: 620px; }
.hero .facts { position: relative; z-index: 1; }
.morph { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 70vw;  pointer-events: none; }
/* The blue glow that trails the planet; its position is set in morph.js. */
.glow { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle, rgba(38, 72, 196, .42), rgba(38, 72, 196, .22) 30%, rgba(38, 72, 196, .08) 52%, transparent 70%); }
/* Still, barely visible grain, painted once in morph.js. */
.stars { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* The planet: position and turn are set in morph.js. */
.planet { position: absolute; left: 0; top: 0; display: block; overflow: visible; animation: planet-in 1.2s ease both; }
@keyframes planet-in { from { opacity: 0; } }
.planet-body { fill: var(--accent-2); }
.planet-marks { fill: none; stroke: #14161a; stroke-width: 11; stroke-linecap: round; }
.planet-white { fill: #fff; }
.planet-pupils { fill: #14161a; }
@media (max-width: 960px) { .hero-text { width: auto; max-width: none; } .morph { display: none; } }
/* Wide caps in the second accent colour. A slow glass-like glint passes over the words while the letters drift very slightly.
   Every letter paints its own slice of one shared gradient: --x is the letter's offset inside the word, set in main.js. */
.hero h1 em, .about .lead em, .contact h2 em { --c1: var(--accent-2); --c2: #7fa8ff; --c3: #e6efff; --c4: #6b9aff; font-family: "Archivo", var(--font-head); font-stretch: 125%; font-style: normal; font-weight: 800; font-size: min(1em, 6.9vw); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; color: var(--c1); }
/* About uses the same blue wide caps and glint as the hero, and may wrap between words. */
.about .lead em { white-space: normal; }
.wd { white-space: nowrap; }
.hero h1 em .w, .about .lead em .w, .contact h2 em .w {
  display: inline-block; padding: .1em 0; margin: -.1em 0; color: transparent;
  background: linear-gradient(105deg, var(--c1) 40%, var(--c2) 47%, var(--c3) 49.5%, var(--c2) 51%, var(--c1) 54%, var(--c4) 58%, var(--c1) 61%) -19.5em 0 / 30em 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: glint 10s ease-in-out infinite, drift 4s ease-in-out infinite;
  animation-delay: var(--glint-delay, 0s), calc(var(--i) * .08s);
}
.hero h1 em + em .w { --glint-delay: .8s; }
.hero h1 em .sr, .about .lead em .sr, .contact h2 em .sr { text-transform: none; }
.hero .nb { white-space: nowrap; }
@keyframes glint { 0% { background-position: calc(-19.5em - var(--x, 0px)) 0; } 65%, 100% { background-position: calc(-.5em - var(--x, 0px)) 0; } }
@keyframes drift { 0%, 100% { transform: none; } 50% { transform: translateY(-.025em); } }
.hero-text > *, .facts > div { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .08s; }
.hero p { animation-delay: .16s; }
.hero .row { animation-delay: .24s; }
.hero .facts { animation-delay: .32s; }
.facts > div:nth-child(1) { animation-delay: .4s; }
.facts > div:nth-child(2) { animation-delay: .48s; }
.facts > div:nth-child(3) { animation-delay: .56s; }
.facts > div:nth-child(4) { animation-delay: .64s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.hero p { margin: 0 0 36px; max-width: 58ch; font-size: clamp(17px, 2vw, 20px); color: var(--text-2); }
.facts { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.2fr 1.05fr 1.2fr; gap: 12px; }
/* On hover a card fills with a soft wash of its number's colour: a spot follows the cursor and a band sweeps across. */
.facts > div { position: relative; overflow: hidden; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s; }
.facts > div > * { position: relative; z-index: 1; }
.facts > div::before, .facts > div::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; }
.facts > div::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 34%, transparent), transparent 72%); }
.facts > div::after { background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--c) 26%, transparent) 50%, transparent 65%) 100% 0 / 300% 100%; }
.facts > div:hover { border-color: var(--c); transform: translateY(-2px); }
.facts > div:hover::before, .facts > div:hover::after { opacity: 1; }
.facts > div:hover::after { animation: card-sweep 2.4s ease-in-out infinite; }
@keyframes card-sweep { to { background-position: 0 0; } }
.facts b { font: 700 clamp(36px, 3.6vw, 46px)/1.25 var(--font-head); letter-spacing: -0.04em; white-space: nowrap; }
.facts > div:nth-child(1) { --c: #ff7eb6; }
.facts > div:nth-child(2) { --c: #53e3a6; }
.facts > div:nth-child(3) { --c: #ff8a5c; }
.facts > div:nth-child(4) { --c: #7fd3ff; }
.facts b { color: var(--c); }
.facts em { font-style: normal; color: var(--text-2); font-size: 15px; }
/* Odometer: a vertical reel scrolls inside a mask and stops on the final value. */
.roll { display: inline-block; vertical-align: top; height: 1.25em; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.reel { display: block; transition: transform 2.2s cubic-bezier(.55, .05, .12, 1); }
.reel span { display: block; height: 1.25em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
/* Home page: one even rhythm between all blocks (hero, Works, About, Contact). */
section { padding: 72px 0; }
#work, #about { padding: 60px 0; }
/* The universe glow reaches the screen edges; nothing may widen the page. */
#work { overflow-x: clip; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
h2 { margin: 8px 0 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; }

/* ---------- work ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -12px 0 28px; }
.tabs button { font: 500 14px/1 var(--font-body); color: var(--text-2); background: none; border: 1px solid var(--line); border-radius: 100px; padding: 10px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: color .15s, border-color .15s, background .15s; }
.tabs button span { font: 500 12px/1 var(--font-label); color: var(--text-3); }
.tabs button:hover { color: var(--text); border-color: var(--text-3); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tabs button[aria-selected="true"] span { color: var(--accent-ink); opacity: .6; }

/* Filter tabs on the left, Grid / Planets view switch on the right. */
.work-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: -12px 0 28px; }
.work-bar .tabs { margin: 0; }
.view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 100px; }
.view-toggle button { display: inline-flex; align-items: center; gap: 7px; font: 500 14px/1 var(--font-body); color: var(--text-2); background: none; border: 0; border-radius: 100px; padding: 9px 16px; cursor: pointer; transition: color .15s, background .15s; }
.view-toggle button:hover { color: var(--text); }
.view-toggle button[aria-pressed="true"] { background: #a9c8ff; color: var(--accent-ink); }
.view-toggle button[aria-pressed="true"] .vt-star { fill: var(--accent-ink); }
.vt-star { width: 15px; height: 15px; fill: var(--accent); transition: rotate .4s ease; }
.view-toggle button:hover .vt-star { rotate: 36deg; }
@media (max-width: 860px) { .view-toggle { display: none; } }
/* While Default view is on, the star on the Universe button twinkles now and then to invite a click. */
.view-toggle[data-current="grid"] .vt-star { animation: invite-star 3s ease-in-out infinite; }
@keyframes invite-star { 0%, 100% { scale: 1; rotate: 0deg; } 20% { scale: 1.3; rotate: 36deg; } 35% { scale: 1; rotate: 36deg; } }
@media (prefers-reduced-motion: reduce) { .view-toggle .vt-star { animation: none !important; } }

/* Grid view: even rows. Each row has one height; cards differ in width (wide Back-office, narrow mobile).
   Six columns: a wide card takes 4, a narrow one 2. While a filter is on, every card takes half a row. */
.cases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.cases[hidden] { display: none; }
@media (min-width: 861px) {
  .case { grid-column: span 3; }
  .cases:not(.filtered) .case[data-size="wide"] { grid-column: span 4; }
  .cases:not(.filtered) .case[data-size="narrow"] { grid-column: span 2; }
  .cases:not(.filtered) .case[data-size="full"] { grid-column: span 6; }
  .cases .shot { aspect-ratio: auto; height: 300px; }
}
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } }
.case { display: flex; flex-direction: column; gap: 20px; padding: 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.case[hidden] { display: none !important; }
a.case:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); transform: translateY(-3px); }
.case h3 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; }
.case p { margin: 6px 0 0; color: var(--text-2); }
.case .more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--accent); }
/* Titles first, tags after: previews in a row share one height, so all titles in the row line up. */
.case > .shot { order: 0; }
.case > div:not(.shot):not(.tags) { order: 1; }
.case > .tags { order: 2; margin-top: -6px; }
.case > .feats { order: 3; margin-top: 0; }
.case > .more { order: 4; }
.case .soon { font: 500 12px/1 var(--font-label); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }

/* Works, Universe view (planets.js): Modulor is the sun with the mobile cases on tilted orbits; Back-office planets on the right.
   No panel: a soft blue glow with still grain, like behind the hero planet, and a few grains that light up and fade. */
/* Its own stacking layer, so planets never rise above the sticky header while scrolling. */
.planets { position: relative; z-index: 0; isolation: isolate; height: 860px; }
.pl-glow { position: absolute; inset: -140px calc(50% - 50vw); pointer-events: none; background:
  radial-gradient(circle 300px at var(--ghx, 85%) var(--ghy, 25%), rgba(38, 72, 196, .26), rgba(38, 72, 196, .1) 50%, transparent),
  radial-gradient(circle 460px at var(--gsx, 30%) var(--gsy, 50%), rgba(38, 72, 196, .36), rgba(38, 72, 196, .14) 50%, rgba(38, 72, 196, .04) 78%, transparent); }
.pl-grain { position: absolute; top: -140px; left: calc(50% - 50vw); width: 100vw; height: calc(100% + 280px); display: block; pointer-events: none; }
.pl-twinkle { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #e6efff; opacity: 0; pointer-events: none; animation: twinkle var(--d) ease-in-out var(--delay) infinite; }
@keyframes twinkle { 0%, 70%, 100% { opacity: 0; scale: .4; } 82% { opacity: .9; scale: 1; } }
/* A shooting star: a bright head with a fading tail behind it (planets.js picks a clear path for it). */
.pl-shoot { position: absolute; width: 70px; height: 2px; margin-left: -70px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(230, 239, 255, .9)); transform-origin: 100% 50%; pointer-events: none; z-index: 1; }
.pl-shoot::after { content: ""; position: absolute; right: -2px; top: -1.5px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: reduce) { .pl-twinkle { animation: none; opacity: .4; } }
.planets[hidden] { display: none; }
@media (max-width: 860px) { .planets { display: none !important; } .cases[hidden] { display: grid !important; } }
.pl-orbits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pl-orbit { fill: none; stroke: rgba(200, 216, 255, .34); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; transition: opacity .3s; }
.planets.orbits-dim .pl-orbit { opacity: .3; }
.pl { position: absolute; left: 0; top: 0; display: block; text-decoration: none; color: var(--text); transition: opacity .3s; }
.pl.dim { opacity: .16; pointer-events: none; }
.pl-art { display: block; width: 100%; height: 100%; overflow: visible; transition: scale .35s cubic-bezier(.2, 1.4, .4, 1); }
.pl:hover .pl-art, .pl:focus-visible .pl-art { scale: 1.08; }
.pl:focus-visible { outline: none; }
.pl-body { fill: var(--pl-color); }
.pl-eye { fill: #fff; }
.pl-pupils { fill: #14161a; }
.pl .ink { fill: #14161a; }
.pl .pl-accent { fill: var(--pl-accent, #14161a); }
.pl-star .pl-body { stroke: var(--pl-color); stroke-width: 6; stroke-linejoin: round; }
.pl-future { cursor: default; }
.pl-name-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .25s; }
/* The moon shows its name only on hover, so the universe stays calm. */
.pl:hover .pl-name-arc, .pl:focus-visible .pl-name-arc { opacity: 1; }
/* Hover on a case planet: a little hand-drawn flag (light marker lines) with the case name in a childlike hand. */
.pl-flag { position: absolute; z-index: 2000; overflow: visible; pointer-events: none; animation: flag-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes flag-in { from { scale: .2; opacity: 0; } }
.pl-flag-cloth { fill: var(--bg); }
.pl-flag .pl-flag-ink { fill: #eceee9; }
.pl-flag-text { font: 600 16px var(--kid-font); fill: #eceee9; }
/* The moon wakes up when its flag is shown: the z letters fade away so nothing overlaps. */
.pl-zzz { transition: opacity .25s; }
.pl-future:hover .pl-zzz { opacity: 0; }
.pl-arc-text { fill: var(--text); font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; }
.pl .pl-ring { fill: var(--pl-ring, #eceee9); }
.pl:focus-visible .pl-arc-text { text-decoration: underline; }
/* The sleeping moon: small z letters drift up from it and fade, one after another. */
.pl-zzz { position: absolute; left: 62%; top: 4%; width: 0; height: 0; pointer-events: none; }
.pl-zzz i { position: absolute; left: 0; bottom: 0; font: 600 24px/1 var(--kid-font); font-style: normal; color: #fff0a8; opacity: 0; animation: zzz 3.6s ease-out infinite; }
.pl-zzz i:nth-child(2) { animation-delay: 1.2s; font-size: 21px; }
.pl-zzz i:nth-child(3) { animation-delay: 2.4s; font-size: 16px; }
@keyframes zzz { 0% { opacity: 0; translate: 0 0; scale: .7; } 20% { opacity: .95; } 100% { opacity: 0; translate: 30px -42px; scale: 1.25; } }
@media (prefers-reduced-motion: reduce) { .pl-zzz i { animation: none; opacity: .8; } .pl-zzz i:nth-child(2) { translate: 14px -20px; } .pl-zzz i:nth-child(3) { translate: 26px -38px; } }

/* feature list inside a case card: "01 Scheduler · 02 Visibility Rules · …" */
.feats { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; counter-reset: f; }
.feats li { counter-increment: f; font-size: 14px; color: var(--text); }
.feats li::before { content: counter(f, decimal-leading-zero); font: 500 12px/1 var(--font-label); color: var(--accent); margin-right: 6px; }
/* A small "Projects" label before the list, so it reads as the projects inside the case, not as more tags.
   Modulor lists components, so its list says "Components". */
.case .feats[aria-label^="Components"]::before { content: "Components:"; }
.case .feats::before { content: "Projects:"; align-self: center; font: 500 12px/1 var(--font-label); letter-spacing: .02em; text-transform: uppercase; color: var(--text-3); }

/* collage preview: main live screen + two smaller screens of the other features */
.shot.collage { background: #23262b; }
.collage .s { position: absolute; border-radius: 8px; overflow: hidden; background: #f4f5f6; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.collage .s1 { left: 5%; top: 7%; width: 66%; }
.collage .s2, .collage .s3 { right: 5%; width: 32%; aspect-ratio: 16 / 10; }
.collage .s2 { top: 12%; }
.collage .s3 { bottom: 12%; }
@media (min-width: 861px) {
  .cases:not(.filtered) .case[data-size="wide"] .collage .s1 { left: 4%; top: 9%; width: 54%; }
  .cases:not(.filtered) .case[data-size="wide"] .collage .s2 { right: 4%; top: 9%; width: 36%; }
  .cases:not(.filtered) .case[data-size="wide"] .collage .s3 { right: 9%; bottom: 7%; width: 36%; }
  .cases:not(.filtered) .case[data-size="narrow"]:not(.single) .collage .s1 { left: 7%; top: 8%; width: 86%; }
  .cases:not(.filtered) .case[data-size="narrow"]:not(.single) .collage .s2 { right: 5%; top: auto; bottom: 6%; width: 56%; }
  .cases:not(.filtered) .case[data-size="narrow"]:not(.single) .collage .s3 { display: none; }
}
.collage .ui .mn { padding: 10px; gap: 7px; }
.collage .ui i.grip { flex: 0 0 8px !important; height: 8px; background: #c9ccd1; }
.collage .ui i.num { height: 16px; background: #eef7e6; }

/* placeholder previews until real ones are made from the prototypes */
.shot { aspect-ratio: 16 / 10; border-radius: 10px; background: #f4f5f6; overflow: hidden; position: relative; }
.shot.grey { background: #eceef0; }
.shot iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }

/* Default view card covers (covers.js): the real interface in a tilted phone or browser window.
   a: on the colour of the case's planet. fly: on the deep blue of the Universe sky, with the case planet flying past. */
.cover { background: var(--cv); }

.cv-dev { position: absolute; z-index: 1; left: 50%; top: 9%; translate: -50% 0; rotate: var(--tilt, 0deg); transition: rotate .8s cubic-bezier(.2, 1.3, .3, 1), translate .8s cubic-bezier(.2, 1.3, .3, 1); }
.cv-crop { position: relative; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.cv-crop iframe { position: absolute; left: 0; top: 0; border: 0; pointer-events: none; }
.cv-browser { top: 13%; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.cv-browser .cv-crop { box-shadow: none; }
.cv-bar { height: 20px; display: flex; gap: 6px; align-items: center; padding-left: 10px; background: #eceef1; }
.cv-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9ccd1; }
a.case:hover .cv-dev { rotate: calc(var(--tilt, 0deg) * .3); translate: -50% -8px; }
/* data-anchor="bottom": show the lower part of the phone (Modulor's bottom sheet lives there). */
.cover[data-anchor="bottom"] .cv-dev { top: auto; bottom: 7%; }
.cv-board { left: 0; top: 0; translate: none; rotate: none; } .cv-board .cv-crop { box-shadow: none; overflow: visible; }
a.case:hover .cv-dev.cv-board, a.case .cover.demo-on .cv-dev.cv-board { translate: none; rotate: none; }

/* While a hover demo plays, the device follows the action (covers.js sets --pan); this beats the hover lift. */
a.case .cover.demo-on .cv-dev { translate: -50% var(--pan, 0px); rotate: 0deg; transition: translate 1.7s cubic-bezier(.42, 0, .58, 1), rotate 1.2s cubic-bezier(.42, 0, .58, 1); }
.cv-planet { position: absolute; z-index: 2; right: 0; bottom: 0; translate: 48% 50%; rotate: 0deg; pointer-events: none; transition: translate .8s cubic-bezier(.2, 1.3, .3, 1), rotate .8s ease; }
.cv-planet .pl-art { display: block; width: 100%; height: 100%; overflow: visible; }
.cv-planet .ink { fill: #14161a; }
.cv-planet .pl-accent { fill: var(--pl-accent, #14161a); }
.cv-planet .pl-ring { fill: var(--pl-ring, #eceee9); }
/* The background is the planet's own colour, so a planet on a cover is drawn in its darker accent shade
   (and its pattern in the light colour): same planet, still visible. */
.cover[data-cover="peek"] .cv-planet .pl-body, .cover[data-cover="fly"] .cv-planet .pl-body { fill: var(--pl-accent); stroke: var(--pl-accent); }
.cover[data-cover="peek"] .cv-planet .pl-accent, .cover[data-cover="fly"] .cv-planet .pl-accent { fill: var(--pl-color); }
/* peek: a small planet looks in from the bottom-right corner, covering only a little; on hover it rises a bit. */
.cover[data-cover="peek"] .cv-planet { translate: 30% 34%; rotate: -12deg; }
a.case:hover .cover[data-cover="peek"] .cv-planet, .cover.demo-on[data-cover="peek"] .cv-planet { translate: 14% 10%; rotate: 0deg; animation: cv-float 7s ease-in-out infinite; }
@keyframes cv-float { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(-10px, -8px) rotate(-8deg); } 66% { transform: translate(6px, -14px) rotate(6deg); } }
/* sky: Modulor's card is the Universe night sky: tiny still stars and, on hover, a few falling stars. */
.cover[data-cover="sky"] { background: radial-gradient(1.2px 1.2px at 12% 18%, #c8d8ff, transparent), radial-gradient(1px 1px at 78% 12%, #c8d8ff, transparent), radial-gradient(1.4px 1.4px at 88% 64%, #e6efff, transparent), radial-gradient(1px 1px at 22% 72%, #c8d8ff, transparent), radial-gradient(1px 1px at 60% 86%, #c8d8ff, transparent), radial-gradient(1.2px 1.2px at 40% 8%, #e6efff, transparent), #121a2b; }
.cv-shoot { position: absolute; z-index: 0; width: 60px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(230, 239, 255, .9)); rotate: 135deg; opacity: 0; pointer-events: none; }
.cv-shoot:nth-child(1) { left: 80%; top: 4%; } .cv-shoot:nth-child(2) { left: 30%; top: 0; } .cv-shoot:nth-child(3) { left: 96%; top: 40%; }
/* A falling star now and then: each star crosses in about 1.5 s and then rests, so one falls every 4 s or so. */
a.case:hover .cv-shoot, .cover.demo-on .cv-shoot { animation: cv-shoot 12s ease-in infinite; }
a.case:hover .cv-shoot:nth-child(1), .cover.demo-on .cv-shoot:nth-child(1) { animation-delay: 1s; } a.case:hover .cv-shoot:nth-child(2), .cover.demo-on .cv-shoot:nth-child(2) { animation-delay: 5s; } a.case:hover .cv-shoot:nth-child(3), .cover.demo-on .cv-shoot:nth-child(3) { animation-delay: 9s; }
@keyframes cv-shoot { 0% { opacity: 0; translate: 0 0; } 3% { opacity: 1; } 13%, 100% { opacity: 0; translate: -120px 120px; } }
/* fly: the case planet waits behind the device; on hover covers.js sends it wandering all over the cover. */
.cover[data-cover="fly"] .cv-planet { z-index: 0; right: auto; bottom: auto; left: 12%; top: 12%; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .cv-dev, .cv-planet { transition: none; } a.case:hover .cover .cv-planet, .cover.demo-on .cv-planet { animation: none; } a.case:hover .cv-shoot, .cover.demo-on .cv-shoot { animation: none; } }
.ui { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; }
.ui .sb { background: #fff; border-right: 1px solid #eee; padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; }
.ui i, .phone i { display: block; height: 7px; border-radius: 4px; background: #e6e7ea; }
.ui .sb i.on { background: #d9dbe0; height: 14px; }
.ui .mn { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.ui .mn .t { height: 12px; width: 40%; background: #1f2329; opacity: .85; }
.ui .mn .r { display: flex; gap: 6px; align-items: center; }
.ui .mn .r i { flex: 1; }
.phone { position: absolute; top: 10%; bottom: -12%; left: 50%; width: 30%; transform: translateX(-50%); background: #fff; border-radius: 18px; border: 6px solid #1c1d21; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.phone i { height: 8px; }
.phone .big { height: 44px; border-radius: 10px; background: #eef7e6; }
.phone .btnph { height: 22px; border-radius: 8px; background: #1f2329; }
.phone .btnph.o { background: #fff; border: 1px solid #dfe1e5; }
.comp { position: absolute; inset: 0; display: grid; place-items: center; gap: 12px; align-content: center; }
.seg { display: flex; background: #e9eaec; border-radius: 10px; padding: 3px; gap: 3px; }
.seg span { width: 58px; height: 22px; border-radius: 8px; }
.seg span:first-child { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.field { width: 210px; height: 34px; border-radius: 10px; border: 1px solid #cfd2d6; background: #fff; }
.field.err { border-color: #ff4d4f; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; }
/* On wide screens the job list sits on the left and the About text on the right. Phones keep the text first. */
@media (min-width: 861px) { .about .jobs { grid-column: 1; grid-row: 1; } .about > div { grid-column: 2; grid-row: 1; } }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } }
/* Same size and weight as the hero headline. */
.about .lead { font: 600 clamp(30px, 4.1vw, 52px)/1.1 var(--font-head); letter-spacing: var(--track); text-wrap: pretty; margin: 16px 0 0; }
.about .lead b { color: var(--accent); font-weight: inherit; }
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs li:first-child { padding-top: 0; }
.jobs li:last-child { border-bottom: 0; }
.jobs li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.jobs li span { color: var(--text-3); font: 500 13px/1.6 var(--font-label); }
.jobs li b { display: block; font-weight: 600; }
.jobs li em { font-style: normal; color: var(--text-2); font-size: 15px; }
@media (max-width: 480px) { .jobs li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- contact + footer ---------- */
.contact { padding: 60px 0; overflow-x: clip; }
/* Same size and blue accent as the hero headline. */
.contact h2 { font-size: clamp(30px, 4.1vw, 52px); line-height: 1.1; text-wrap: pretty; }
.contact h2 em { white-space: normal; }
.contact .row { margin-top: 36px; }
/* Contact text sits in the left column, lined up with the years above. The right column holds the star character. */
.contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-content: start; column-gap: 64px; }
.contact .wrap > * { grid-column: 1; }
/* The star character (contact-star.js) covers the whole right column (width matches the 1.1fr grid column), so it has the full block height. A warm glow trails it over still grain. */
.contact-art { position: absolute !important; top: 0; bottom: 0; right: 32px; width: calc((100% - 128px) * 1.1 / 2.1); pointer-events: none; }
.cs-layer { position: absolute; left: -600px; right: -600px; top: -700px; bottom: -60px; overflow: hidden; }
.cs-origin { position: absolute; left: 600px; top: 700px; width: calc(100% - 1200px); height: calc(100% - 760px); }
/* The grain covers the whole lit area around the star, like the starry sky behind the hero planet. */
.cs-grain { position: absolute; left: -45%; top: -70%; width: 190%; height: 240%; display: block; }
.cs-glow { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 112, 51, .3), rgba(255, 112, 51, .13) 30%, rgba(255, 112, 51, .04) 52%, transparent 70%); }
.cs-star { position: absolute; left: 0; top: 0; display: block; overflow: visible; animation: planet-in 1.2s ease both; }
/* A thin stroke in the same colour softly rounds the ray tips. */
.cs-body { fill: var(--orange); stroke: var(--orange); stroke-width: 1.4; stroke-linejoin: round; }
.cs-eye { fill: #fff; }
.cs-pupils { fill: #14161a; }
.cs-smile { fill: none; stroke: #14161a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Marker strokes from wobble.js are filled shapes. */
.ink { fill: #14161a; stroke: none; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } .contact .wrap > * { grid-column: 1; } .contact-art { display: none; } }
.site-footer .wrap { text-align: right; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--text-3); font-size: 13px; }

/* ---------- case page ---------- */
.case-hero { padding: 56px 0 40px; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); text-decoration: none; font-size: 14px; margin-bottom: 40px; }
.back:hover { color: var(--text); }
.case-hero h1 { margin: 16px 0 20px; font-size: clamp(38px, 6.4vw, 80px); line-height: 1.02; max-width: 20ch; }
.case-hero .lead { margin: 0 0 32px; max-width: 62ch; font-size: clamp(17px, 2vw, 20px); color: var(--text-2); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); margin-top: 48px; }
.meta div { padding: 20px 24px 0 0; }
.meta p { margin: 8px 0 0; }
@media (max-width: 760px) { .meta { grid-template-columns: 1fr 1fr; } }
.nda { margin-top: 32px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text-2); font-size: 15px; }
.nda b { color: var(--accent); font: 500 12px/1.6 var(--font-label); letter-spacing: .08em; flex: none; }

.subnav { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.subnav a { flex: none; text-decoration: none; font-size: 14px; color: var(--text-2); padding: 8px 14px; border-radius: 100px; border: 1px solid transparent; }
.subnav a span { font: 500 12px/1 var(--font-label); color: var(--text-3); margin-right: 6px; }
.subnav a:hover { color: var(--text); }
.subnav a.on { border-color: var(--line); color: var(--text); background: var(--bg-2); }

.feature { padding: 88px 0; }
.feature-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 40px; }
.feature-head .num { font: 500 14px/1 var(--font-label); color: var(--accent); }
.feature-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: 18.75% minmax(0, 62.5%); gap: 0; } /* the story sits right above the phones on the stages: 300/1600 to 1300/1600 */
.cols > .aside { padding-right: 24px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 24px; } }
.aside { position: sticky; top: calc(var(--header-h) + 80px); align-self: start; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 860px) { .aside { position: static; display: grid; grid-template-columns: 1fr 1fr; } }
.aside p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.story { max-width: 720px; }
.story h3 { margin: 40px 0 12px; font-size: 22px; line-height: 1.25; }
.story h3:first-child { margin-top: 0; }
.story p { margin: 0 0 14px; color: var(--text-2); }
.story p strong, .story li strong { color: var(--text); font-weight: 600; }
.story ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.story li { position: relative; padding-left: 22px; color: var(--text-2); }
.story li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.phase { margin: 24px 0 8px; font: 500 12px/1.4 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 640px) { .results { grid-template-columns: 1fr; } }
.results div { padding: 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.results b { display: block; color: var(--accent); font: 600 20px/1.25 var(--font-head); letter-spacing: -0.02em; margin-bottom: 6px; }
.results span { color: var(--text-2); font-size: 15px; }
.quote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--text); font: 500 19px/1.5 var(--font-head); }

/* embedded prototype */
.proto { margin: 40px 0; }
.proto-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.proto-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9e9e9; }
.proto-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }
.proto-frame.live { height: var(--h); border: 0; background: none; border-radius: 0; overflow: visible; }
.proto-frame.live iframe { position: static; width: 100%; height: 100%; display: block; }
@media (max-width: 720px) { .proto-frame.live { height: calc(var(--h) + 560px); } }
.proto-hint { margin-top: 10px; font-size: 14px; color: var(--text-3); }.proto-soon { display: grid; place-items: center; text-align: center; gap: 8px; padding: 56px 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-3); }

.next { padding: 80px 0; }
.next a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; background: var(--bg-2); }
.next h3 { margin: 8px 0 0; font-size: clamp(26px, 3.4vw, 40px); }
.next .arrow { font: 600 32px/1 var(--font-head); color: var(--accent); }

/* ---------- cursor dot ---------- */
html.has-dot, html.has-dot * { cursor: none !important; }
html.has-dot iframe { cursor: auto !important; }
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 100; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; opacity: 0; transition: width .3s cubic-bezier(.2, .7, .2, 1), height .3s cubic-bezier(.2, .7, .2, 1), margin .3s cubic-bezier(.2, .7, .2, 1), opacity .2s; }
.cursor-dot svg { display: block; width: 100%; height: 100%; overflow: visible; rotate: 0deg; transition: rotate .4s ease; }
.cursor-dot .dot-body, .cursor-dot path { fill: #fff; stroke: #fff; stroke-width: 0; transition: fill .25s ease, stroke .25s ease, stroke-width .3s ease; }
.cursor-dot.dark .dot-body, .cursor-dot.dark path { fill: #0e0f11; stroke: #0e0f11; }
.cursor-dot.on { opacity: 1; }
.cursor-dot.on.away, .cursor-dot.on.over-mark { opacity: 0; }
/* Over the planet area the cursor is a small hand-drawn yellow star. */
.star-cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 0; height: 0; pointer-events: none; }
.star-cursor svg { position: absolute; left: -20px; top: -20px; display: block; width: 40px; height: 40px; overflow: visible; fill: var(--accent); opacity: 0; scale: .3; transition: opacity .2s ease, scale .35s cubic-bezier(.2, 1.4, .4, 1); }
.star-cursor.on svg { opacity: 1; scale: 1; }
/* The star cursor is yellow, like the other accents; it reads well on the blue planet. */
.planet-cursor svg { left: -22px; top: -22px; width: 44px; height: 44px; }
.cursor-dot.on.away-planet, .cursor-dot.on.away-lens { opacity: 0; }
/* Magnifier cursor over the planets in the Works universe: dark marker lines, so it reads on every planet colour. */
.lens-cursor svg { left: -24px; top: -24px; width: 48px; height: 48px; }
.lens-cursor .lens-glass { fill: rgba(255, 255, 255, .35); }
.lens-cursor .lens-ink { fill: #14161a; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- before / after ---------- */
.ba { margin: 48px 0; }
.ba-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.ba-switch { display: inline-flex; padding: 3px; border-radius: 100px; border: 1px solid var(--line); background: var(--bg-2); }
.ba-switch button { font: 500 13px/1 var(--font-label); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); background: none; border: 0; padding: 9px 16px; border-radius: 100px; cursor: pointer; transition: color .2s, background .2s; }
.ba-switch button:hover { color: var(--text); }
.ba-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.ba-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #f3f4f7; display: grid; }
.ba-stage img { grid-area: 1 / 1; width: 100%; height: auto; display: block; align-self: start; transition: opacity .35s ease-in-out; }
.ba-stage img[hidden] { display: block; opacity: 0; pointer-events: none; }
.ba-stage .after { background: #fff; }
.ba-cap { margin-top: 12px; color: var(--text-2); font-size: 15px; max-width: 76ch; }
.ba-cap b { color: var(--text); font-weight: 600; }
.ba-cap [hidden] { display: none; }

/* ---------- from the back-office to the player's screen ---------- */
.pmap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 48px 0; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
@media (max-width: 860px) { .pmap { grid-template-columns: 1fr; padding: 20px; gap: 24px; } }
.pmap img { width: 100%; height: auto; display: block; }
.pmap h3 { margin: 0 0 6px; font-size: 22px; }
.pmap > div > p { margin: 0 0 18px; color: var(--text-2); }
.pmap ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pmap li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--text-2); font-size: 15px; }
.pmap li b { color: var(--text); font-weight: 600; }
.pmap .n { width: 26px; height: 26px; border-radius: 50%; background: #4fd1a1; color: #0b2a1f; font: 700 13px/26px var(--font-body, Inter); text-align: center; }

/* Draft text to confirm in the interview: clearly marked, never shipped as is. */
.todo { outline: 1px dashed #ffb02e; outline-offset: 3px; border-radius: 4px; }
.todo-note { display: inline-block; font: 500 11px/1.4 var(--font-label); letter-spacing: .06em; text-transform: uppercase; color: #ffb02e; margin-bottom: 6px; }

/* ---------- case figures: screens, red-pen notes, zoom ---------- */
.block-label { display: flex; align-items: center; gap: 10px; margin: 56px 0 16px; font: 500 12px/1.4 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

.block-label.before { color: #ff6b6b; }
.block-label.after { color: #4fd1a1; }
.shots { display: grid; gap: 16px; }
.shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .shots.two, .shots.three { grid-template-columns: 1fr; } }
.shot-fig { margin: 0; }
.shot-fig .pic { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f3f4f7; cursor: zoom-in; }
.shot-fig img { display: block; width: 100%; height: auto; }
.shot-fig svg.pen { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shot-fig figcaption { margin-top: 8px; font-size: 14px; color: var(--text-3); }
svg.pen .loop { fill: none; stroke: #e5484d; stroke-width: 6; stroke-linecap: round; }
svg.pen .loop.thin { stroke-width: 3; opacity: .55; }
svg.pen text { font-family: "Caveat", cursive; font-weight: 600; fill: #e5484d; }
svg.pen .arrow { fill: none; stroke: #e5484d; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.zoom-layer { position: fixed; inset: 0; z-index: 90; background: rgba(8, 9, 11, .88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; animation: zfade .2s ease-out; }
.zoom-layer .pic { position: relative; max-width: min(1600px, 100%); max-height: 100%; overflow: auto; border-radius: 12px; }
.zoom-layer img { display: block; width: 100%; height: auto; }
.zoom-layer svg.pen { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes zfade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- player screens with callouts ---------- */
.phones-wrap { margin: 24px 0 8px; }
.phones { position: relative; width: 1600px; height: 1004px; transform-origin: 0 0; }
.phones .ph { position: absolute; top: 10px; width: 464px; height: 980px; border-radius: 64px; background: #0c0c0e; padding: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.4); }
.phones .scr { width: 440px; height: 956px; border-radius: 52px; overflow: hidden; background: #fff; position: relative; }
.phones .sbar { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 8px 34px 0 44px; font: 600 16px/1 var(--font-body); color: #111; background: #fff; }
.phones .sbar i { width: 70px; height: 12px; border-radius: 3px; background: linear-gradient(90deg, #111 0 22px, transparent 22px 28px, #111 28px 48px, transparent 48px 54px, #111 54px); }
.phones .di { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 36px; border-radius: 20px; background: #000; z-index: 2; }
.phones .hi { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 140px; height: 5px; border-radius: 3px; background: #111; z-index: 2; }
.phones .feed { height: 902px; overflow: hidden; }
.phones .feed::-webkit-scrollbar { display: none; }
.phones .feed img { display: block; width: 440px; height: auto; }
.phones svg.leads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.phones svg.leads line { stroke: #ff8a3d; stroke-width: 1.5; stroke-dasharray: 5 5; }
.phones svg.leads rect { fill: rgba(255, 138, 61, .08); stroke: #ff8a3d; stroke-width: 2; stroke-dasharray: 6 5; }
.phones svg.leads circle { fill: #ff8a3d; }
.phones .note { position: absolute; width: 270px; transform: translateY(-50%); }
.phones .note.l { text-align: right; }
.phones .note b { display: block; font: 600 19px/1.25 var(--font-head); color: var(--text); }
.phones .note span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--text-2); }

/* ---------- Before: one board, like the Modulor playgrounds ---------- */
.bx { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; margin: 16px 0 8px; }
@media (max-width: 960px) { .bx { grid-template-columns: 1fr; } }
.bx-canvas { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; background: #f1f1ef; overflow: hidden; }
.bx-shot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12); background: #fff; opacity: 0; visibility: hidden; transition: opacity .35s ease-in-out, visibility .35s; cursor: zoom-in; }
.bx-shot.on { opacity: 1; visibility: visible; }
.bx-shot img { display: block; width: 100%; height: 100%; }
.bx-shot svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bx-shot svg path { fill: none; stroke: #ff8a3d; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; transition: opacity .2s, stroke-width .2s; }
.bx.focus .bx-shot svg path { opacity: .18; }
.bx.focus .bx-shot svg path.hot { opacity: 1; stroke-width: 10; }
.bx-panel { border-radius: 16px; background: #fff; color: #16171a; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bx-panel h4 { margin: 0; font: 600 20px/1.25 var(--font-head); }
.bx-panel > p { margin: 0 0 6px; font-size: 14px; color: #5d6068; }
.bx-panel .k { margin-top: 8px; font: 500 11px/1.4 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: #8a8d94; }
.bx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-pills button { font: 500 13px/1 var(--font-body); border: 1px solid #e3e3e0; background: #f5f5f3; color: #16171a; border-radius: 100px; padding: 8px 12px; cursor: pointer; transition: background .2s, color .2s; }
.bx-pills button:hover { background: #ececea; }
.bx-pills button[aria-pressed="true"] { background: #16171a; color: #fff; border-color: #16171a; }
.bx-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bx-notes li { position: relative; padding: 8px 10px 8px 26px; border-radius: 10px; font-size: 14px; line-height: 1.45; color: #2a2c31; cursor: default; transition: background .2s; }
.bx-notes li::before { content: ""; position: absolute; left: 10px; top: 15px; width: 8px; height: 3px; border-radius: 2px; background: #ff8a3d; }
.bx-notes li:hover, .bx-notes li.hot { background: #fff3ea; }
.bx-notes li[hidden] { display: none; }
.zoom-layer .bx-shot { position: relative; left: auto; top: auto; transform: none; width: min(1600px, 100%) !important; height: auto !important; opacity: 1; visibility: visible; max-height: 100%; overflow: auto; }
.zoom-layer .bx-shot img { height: auto; }

/* Results sit right under the prototype, as wide as its frame. */
.outcome { margin-top: 8px; }
.outcome h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.25; }
.outcome .results { margin-top: 0; }
.outcome > p { color: var(--text-2); margin: 0; }
@media (min-width: 961px) {
  .bx { grid-template-rows: minmax(560px, auto); }
  .bx-canvas { aspect-ratio: auto; height: 100%; }
}

/* Payment Hub card: the green of its planet, with the same soft horizontal bands. */
.cover[data-planet="cases/payment-configuration.html"] { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' preserveAspectRatio='none'><g fill='none' stroke='%2312684a' stroke-opacity='.4' stroke-width='7' stroke-linecap='round' vector-effect='non-scaling-stroke'><path vector-effect='non-scaling-stroke' d='M-20 24C150 6 330 40 620 16'/><path vector-effect='non-scaling-stroke' d='M-20 150C190 168 390 132 620 156'/><path vector-effect='non-scaling-stroke' d='M60 284C200 296 380 272 540 286'/></g></svg>") center / 100% 100% no-repeat, var(--cv); }

/* Results right in the case hero (instead of role / team / users: those are in the text) */
.hero-results { margin-top: 40px; }

/* Before stage: old screens with red dashed callouts, same visual as the player screens */
.bv-wrap { margin: 24px 0 8px; }
.bv { position: relative; width: 1600px; height: 640px; transform-origin: 0 0; }
.bv-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px 18.75%; }
@media (max-width: 860px) { .bv-pills { margin-left: 0; } } /* same pills as the Works filter */
.bv-pills button { font: 500 14px/1 var(--font-body); color: var(--text-2); background: none; border: 1px solid var(--line); border-radius: 100px; padding: 10px 16px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.bv-pills button:hover { color: var(--text); border-color: var(--text-3); }
.bv-pills button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bv-scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.bv-scr.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.bv-shot { position: absolute; left: 300px; top: 8px; width: 1000px; height: 594px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.4); cursor: zoom-in; }
.bv-shot img { display: block; width: 100%; height: 100%; }
.zoom-layer .bv-shot { position: static; width: min(94vw, 1600px); height: auto; aspect-ratio: 2416 / 1434; }
.bv svg.leads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bv svg.leads line, .bv svg.leads polyline { fill: none; stroke: #ff5a5f; stroke-width: 1.5; stroke-dasharray: 5 5; }
.bv svg.leads rect { fill: rgba(255, 90, 95, .08); stroke: #ff5a5f; stroke-width: 2; stroke-dasharray: 6 5; }
.bv svg.leads circle { fill: #ff5a5f; }
.bv .note { position: absolute; width: 270px; transform: translateY(-50%); }
.bv .note.l { text-align: right; }
.bv .note b { display: block; font: 600 19px/1.25 var(--font-head); color: var(--text); }
.bv .note span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--text-2); }

/* Walkthrough: the prototype playing by itself, with a dot for the pointer and a caption per step */
.walk-frame iframe { pointer-events: none; }
.walk-dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #0e0f11; box-shadow: 0 0 0 2px rgba(255,255,255,.9); opacity: 0; transition: opacity .3s, width .15s, height .15s, margin .15s; pointer-events: none; z-index: 2; }
.walk-dot.on { opacity: 1; }
.walk-dot.down { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
.walk-cap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 999px; background: rgba(14, 15, 17, .86); color: #fff; font: 500 15px/1.3 var(--font-body); text-align: center; z-index: 2; pointer-events: none; }
.walk-cap:empty { display: none; }
.walk-bar { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.walk-toggle { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.walk-toggle:hover { border-color: var(--text-2); }
.walk-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.walk .i-play { display: none; }
.walk.paused .i-play { display: block; }
.walk.paused .i-pause { display: none; }
.walk-chapters { flex: 1; display: flex; gap: 6px; }
.walk.paused .walk-chapters .now i { animation-play-state: paused; }
@keyframes walk-fill { from { width: 0; } }
@media (max-width: 640px) { .walk-cap { font-size: 13px; bottom: 10px; } }
.sec-results { margin: 0 0 48px; }
.hero-results, .sec-results { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hero-results + .meta { margin-top: 28px; }
.bv-pills button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); } /* no accent colour on these pills */
/* Walkthrough chapters: each is a button (click to jump there); a round knob rides at the end of the playing one */
.walk-chapters button { position: relative; flex: 1; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.walk-chapters button::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--line); transition: background .15s; }
.walk-chapters button:hover::before { background: var(--text-3); }
.walk-chapters i { position: relative; display: block; height: 4px; width: 0; border-radius: 2px; background: var(--text-2); }
.walk-chapters .done i { width: 100%; }
.walk-chapters .now i { width: 100%; animation: walk-fill 6s linear both; }
.walk-chapters .now i::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }
.walk-chapters em { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font: 500 13px/1.3 var(--font-body); font-style: normal; color: var(--bg); background: var(--text); padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 3; }
.walk-chapters button:hover em, .walk-chapters button:focus-visible em { opacity: 1; }
.walk-chapters button:first-child em { left: 0; transform: none; }
.walk-chapters button:last-child em { left: auto; right: 0; transform: none; }
.walk-frame iframe { transition: opacity .25s; }
.walk-frame.seeking iframe, .walk-frame.seeking .walk-dot { opacity: 0; }
.walk-frame { cursor: pointer; }
.walk-frame::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(14, 15, 17, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E") center / 30px no-repeat; opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 3; }
.walk.paused .walk-frame::after { opacity: 1; transform: none; }
.walk-cap { transition: opacity .6s ease, transform .6s ease; }
.walk-frame.toasting .walk-cap { opacity: 0; transform: translate(-50%, 10px); } /* the caption steps aside while the prototype shows a toast */
.bv.k .bv-shot { height: 525px; } /* KYC screens are 2506×1315 */
.zoom-layer .bv-shot { height: auto; aspect-ratio: auto; }
.zoom-layer .bv-shot img { height: auto; }
.pl .pl-outline, .cv-planet .pl-outline { fill: #ff7433; } /* Payment Configuration planet: orange outline, a nod to KYC */

/* Walkthrough camera: zooms in on a decision, rings it and shows a note with the reason */
.walk-cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.walk-ring { position: absolute; left: 0; top: 0; border: 2px dashed #ff8a3d; background: rgba(255, 138, 61, .08); border-radius: 12px; opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 2; }
.walk-note { position: absolute; left: 0; top: 0; width: min(320px, 44%); padding: 14px 16px 16px; border-radius: 14px; background: #fff; color: #1b1b1f; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.22); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; pointer-events: none; z-index: 3; }
.walk-ring.on, .walk-note.on { opacity: 1; }
.walk-note.on { transform: none; }
.walk-note .label { display: block; color: #e8641b; font: 600 12px/1.2 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.walk-note b { display: block; margin-top: 6px; font: 600 18px/1.25 var(--font-head); }
.walk-note p { margin: 6px 0 0; font: 400 14px/1.45 var(--font-body); color: #4a4a52; }
@media (max-width: 640px) { .walk-note { padding: 10px 12px; } .walk-note b { font-size: 14px; } .walk-note p { font-size: 12px; } }

/* Walkthroughs fit the screen height (14" laptops included) and sit in a quiet browser window */
.walk.fit-h { max-width: min(100%, calc((100svh - 215px) * var(--ar, 1.6))); margin-left: auto; margin-right: auto; }
.walk-chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1d1e22; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.walk-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #3a3b41; }
.walk-chrome span { flex: 1; margin: 0 40px 0 12px; height: 20px; border-radius: 6px; background: #2a2b30; color: #8d8e95; font: 500 11px/20px var(--font-body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.walk-chrome + .walk-frame { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Walkthrough row: text on the left, a preview on the right; the video itself opens in an overlay */
.wrow { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 56px 0 24px; padding: 32px; border-radius: 20px; border: 1px solid rgba(122, 150, 255, .26); background: linear-gradient(135deg, #1d2f66 0%, #16234a 50%, #101831 100%); }
.wrow-t .label { color: #a9c8ff; }
.wrow-t h3 { margin: 10px 0 12px; font: 600 30px/1.15 var(--font-head); color: #fff; }
.wrow-t p { margin: 0; color: #b5bccd; font-size: 16px; line-height: 1.55; max-width: 32em; }
.wrow-prev { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: var(--radius); }
.wrow-prev .walk-chrome { height: 28px; border-color: rgba(255,255,255,.08); }
.wrow-shot { display: block; pointer-events: none; }
.wrow-play { position: absolute; left: 50%; top: calc(50% + 14px); width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(14, 15, 17, .86); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s; }
.wrow-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.wrow-prev:hover .wrow-play, .wrow-prev:focus-visible .wrow-play { transform: scale(1.06); }
.wlayer { position: fixed; inset: 0; z-index: 100; background: rgba(8, 9, 11, .95); display: flex; align-items: center; justify-content: center; padding: 24px; }
.wlayer[hidden] { display: none; }
.wlayer-box { position: relative; width: min(100%, calc((100svh - 165px) * 1.6)); }
.wlayer-box .proto { margin: 0; }
.wlayer-x { position: absolute; right: 6px; top: 3px; z-index: 5; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #2a2b30; color: #c9cad0; font-size: 20px; line-height: 1; cursor: pointer; }
.wlayer-x:hover { background: #3a3b41; color: #fff; }
@media (max-width: 760px) { .wrow { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; } .wrow-t h3 { font-size: 24px; } }
.wrow-prev .walk-chrome + .wrow-shot { border-top-left-radius: 0; border-top-right-radius: 0; } /* the preview sits under its window bar: square top corners */

/* Role and team as one quiet line under the tags (no divider, no big gap) */
.meta-line { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 24px; font-size: 15px; color: var(--text); }
.meta-line div { display: flex; gap: 12px; align-items: baseline; }
.meta-line .label { flex: none; }
.meta-line + .nda { margin-top: 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: end; }
.hero-side { margin: 0; display: grid; gap: 20px; padding-bottom: 4px; }
.hero-side dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-side { grid-template-columns: 1fr 1fr; } }
/* A reel of prototypes in one cover device: they sit one under another and slide up in turn */
.cv-reel { position: absolute; left: 0; top: 0; }
.cv-seg { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cv-reel { transition: none; } }
/* The star that rolls over a reel cover between two prototypes */
.cv-star { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }
.cv-star .pl-art { display: block; width: 100%; height: 100%; overflow: visible; }
.cv-star .pl-body { fill: color-mix(in srgb, var(--pl-color) 72%, var(--pl-accent, #000)); stroke: color-mix(in srgb, var(--pl-color) 72%, var(--pl-accent, #000)); } /* the Universe look, a shade darker so it reads on the cover of the same colour */
.cv-star .ink.pl-accent, .cv-star .pl-accent { fill: var(--pl-accent, #14161a); }
.cv-star .ink:not(.pl-accent) { fill: #14161a; }
/* Modulor case: the Product Hunt label sticks onto the last letter of "system", a little over it */
.case-hero .title-row { display: block; position: relative; }
.case-hero .ph-anchor { position: relative; white-space: nowrap; }
.case-hero .ph-anchor .ph-badge { position: absolute; left: calc(100% - .9em); top: .35em; font-size: .2em; padding: .5em .8em .6em; gap: .25em; border-radius: .5em; z-index: 2; --r: 6deg; box-shadow: 0 .4em 1em rgba(0, 0, 0, .35); } /* sized in em, so it grows with the title */
.case-hero .ph-anchor .ph-badge small { font-size: .55em; }
.case-hero .ph-anchor .ph-badge b { font-size: 1em; }
