/* Ella Sadress — portfolio 2026. Tokens first; layout follows D v4 (index left, stage right). */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #8a8a8a;
  --line: #e6e6e3;
  --panel: #f1f1ef;
  --mark: #d9f99d;          /* highlighter green for the bottom line */
  --chip: #f4f4f2;
  --radius: 8px;

  --pad: 40px;              /* outer gutter */
  --index-w: 320px;         /* index column */
  --gap: 44px;              /* index → stage */
  --top: 56px;
  /* the layout is anchored left (never centred); above 1728px see "wide screens" below */
  --edge: 0px;

  --sans: 'Inter', 'Noto Sans Hebrew', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --fs: 14px;
  --fs-s: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs)/1.5 var(--sans); letter-spacing: -0.005em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }
[dir="rtl"], .he { font-family: 'Noto Sans Hebrew', var(--sans); }

/* ---------- index (left) ---------- */
.index {
  position: fixed; top: 0; left: var(--edge); bottom: 0;
  width: calc(var(--index-w) + var(--pad));
  padding: var(--top) 0 32px var(--pad);
  display: flex; flex-direction: column;
  overflow-y: auto; scrollbar-width: none;
}
.index::-webkit-scrollbar { display: none; }
.id { margin-bottom: 16px; }
.id__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; text-decoration: none; }
.id__mark { width: 26px; height: 26px; border-radius: 50%; background: var(--mark); color: var(--ink); display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.id__bio { margin: 10px 0 0; color: var(--ink-2); max-width: 340px; white-space: pre-line; }

.sec { border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; }
.sec:last-of-type { border-bottom: 1px solid var(--line); }
.sec__head {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0; text-align: left; font-weight: 500;
}
.sec__head { align-items: center; }
.sec__chev { color: var(--ink-3); transition: transform .2s, color .15s; flex: none; margin-right: 10px; }
.sec__head:hover .sec__chev { color: var(--ink); }
/* an open section can't be closed by its header (one is always open), so it shows no arrow */
.sec.is-open .sec__chev { visibility: hidden; }
.sec.is-open .sec__head { cursor: default; }
.sec__list { list-style: none; margin: 0; padding: 0 0 12px; display: none; }
.sec.is-open .sec__list { display: block; }

.row {
  width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: baseline;
  padding: 7px 10px; border-radius: 6px; text-align: left; color: var(--ink-3); transition: color .12s, background-color .12s;
}
.row__n { font-family: var(--mono); font-size: 11px; }
.row__t { color: var(--ink-2); transition: color .12s; }
.row__c { font-size: var(--fs-s); }
.row:hover .row__t, .row.is-hover .row__t { color: var(--ink); }
.row.is-sel { background: var(--panel); }
.row.is-sel .row__t { color: var(--ink); font-weight: 500; }
.row.is-sel .row__n, .row.is-sel .row__c { color: var(--ink); }
.row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.contact { margin-top: auto; padding-top: 32px; display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.contact a, .contact span { padding: 8px 0; font: inherit; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.clients { margin-top: auto; padding-top: 32px; }
.clients + .contact { margin-top: 0; padding-top: 24px; }
.clients__h { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; max-width: 340px; }
.clients ul { align-items: center; gap: 14px 22px; }
.clients li { display: flex; align-items: center; color: var(--ink-3); opacity: .85; }
.clients li svg { display: block; width: auto; }
.clients__txt { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.contact a:hover { color: var(--ink); }
.contact span { cursor: default; }

/* ---------- main column ---------- */
.main {
  margin-left: calc(var(--edge) + var(--pad) + var(--index-w) + var(--gap));
  margin-right: var(--edge);
  padding: var(--top) var(--pad) 120px 0;
  min-height: 100vh;
}
.stage-wrap { position: sticky; top: var(--top); z-index: 1; }
.has-details .stage-wrap { position: relative; top: 0; }
.stage {
  position: relative; width: 100%; aspect-ratio: 936 / 527;
  background: var(--panel); border-radius: var(--radius); overflow: hidden;
  container-type: inline-size;
}
.item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility 0s linear .12s; }
.item.is-on { opacity: 1; visibility: visible; transition: opacity .12s ease; }
.item video, .item img { display: block; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.framed { inset: auto; }

/* brand canvas: 936 × 527 units, scaled to the stage width */
.canvas { position: absolute; inset: 0; }
.canvas > * { position: absolute; object-fit: cover; }
.canvas .bg { inset: 0; width: 100%; height: 100%; }
.layer-html { display: flex; align-items: center; gap: .35em; background: #fff; color: #111; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1; white-space: nowrap; }
.layer-html b { font-weight: 700; }
.shadow { box-shadow: 0 6px 18px rgba(26, 10, 41, .10); border-radius: 6px; }
.rowstack { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.4cqw; }
.rowfit { display: flex; align-items: center; justify-content: center; }
.rowfit img { height: var(--h); width: auto; max-width: none; border-radius: 4px; box-shadow: 0 6px 18px rgba(26, 10, 41, .10); }
.rowstack.is-click img { cursor: zoom-in; }

/* art */
.art { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; }
.art__hero { position: relative; display: flex; align-items: center; justify-content: center; padding: 3.4cqw 4.3cqw; min-height: 0; }
.art__hero img { max-width: 100%; max-height: 100%; border-radius: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.12); cursor: zoom-in; }
.art__nav { position: absolute; top: 50%; translate: 0 -50%; width: 3.6cqw; height: 3.6cqw; min-width: 28px; min-height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: max(12px, 1.4cqw); opacity: 0; transition: opacity .15s; z-index: 1; }
.art__hero:hover .art__nav, .art__nav:focus-visible { opacity: 1; }
.art__nav.prev { left: 1.6cqw; } .art__nav.next { right: 1.6cqw; }
.art__side { padding: 4.3cqw 4.3cqw 3.4cqw 0; display: flex; flex-direction: column; min-height: 0; }
.art__series { display: flex; flex-direction: column; gap: 2px; margin-bottom: 1.8cqw; }
.art__series button { text-align: left; padding: 3px 0; color: var(--ink-3); font-size: max(12px, 1.5cqw); transition: color .12s; }
.art__series button:hover { color: var(--ink-2); }
.art__series button.is-on { color: var(--ink); font-weight: 500; }
.art__thumbs { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-content: start; margin: -4px; padding: 4px 4px 24px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.art__thumbs::-webkit-scrollbar { display: none; }
.art__thumbs button { position: relative; height: 0; padding-bottom: 100%; overflow: hidden; border-radius: 4px; background: #e7e7e4; box-shadow: 0 0 0 0 var(--ink); transition: box-shadow .15s, opacity .15s; opacity: .72; }
.art__thumbs button:hover { opacity: 1; }
.art__thumbs button.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.art__thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art__foot { display: flex; align-items: baseline; justify-content: space-between; padding-top: 1.6cqw; }
.art__more { font-size: max(12px, 1.4cqw); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* music */
.music { position: absolute; inset: 0; display: grid; grid-template-columns: 1.55fr 1fr; gap: 3cqw; padding: 4.3cqw; align-items: center; }
.music__feat { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.music__feat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.music__cue { position: absolute; inset: 0; width: 100%; }
.music__cue img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.music__cue:hover img { opacity: 1; }
.music__cue .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 6.4cqw; height: 6.4cqw; min-width: 44px; min-height: 44px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); display: grid; place-items: center; transition: scale .2s; }
.music__cue:hover .play { scale: 1.06; }
.music__cue .play::before { content: ''; border-left: 1.5cqw solid #fff; border-top: .95cqw solid transparent; border-bottom: .95cqw solid transparent; margin-left: .35cqw; }
.music__cue .ttl { position: absolute; left: 1.8cqw; bottom: 1.4cqw; color: #fff; font-weight: 500; font-size: max(13px, 1.9cqw); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.music__cue .ttl[dir="rtl"] { left: auto; right: 1.8cqw; }
.music__side { display: flex; flex-direction: column; min-height: 0; }
.music__list { list-style: none; margin: 0; padding: 0; }
.music__list button { width: 100%; display: flex; align-items: center; gap: 1.1cqw; padding: .75cqw 0; text-align: left; border-bottom: 1px solid var(--line); font-size: max(12px, 1.45cqw); color: var(--ink-2); transition: color .12s; }
.music__list li:first-child button { border-top: 1px solid var(--line); }
.music__list button:hover, .music__list button.is-on { color: var(--ink); }
.music__list button.is-on .t { font-weight: 500; }
.music__list img { width: 4.6cqw; min-width: 36px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.music__list .t { flex: 1; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; opacity: 0; }
.is-playing .eq { opacity: 1; }
.eq i { width: 2px; background: var(--ink); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.music__ch { margin-top: 1.8cqw; align-self: flex-start; font-size: max(12px, 1.35cqw); }

/* Elsewhere content under the stage */
.is-wide.has-details .details { grid-template-columns: 1fr; }
.is-wide.has-details .details > .how, .is-wide.has-details .details > .how ~ .aside { grid-column: 1; grid-row: auto; }
.gallery__sec + .gallery__sec { margin-top: 48px; }
.gallery__sec header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.gallery__sec h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
/* justified rows: reading order left to right, equal height per row */
.masonry { display: flex; flex-wrap: wrap; gap: 12px; }
.masonry::after { content: ''; flex-grow: 999; }
/* brand galleries: each set (e.g. a book series) is one line, equal heights, filling the width */
.setrows { display: grid; gap: 12px; }
.setrow { display: flex; gap: 12px; }
.setgroups { display: grid; gap: 16px; }
.setrow button.scrollshot { display: flex; flex-direction: column; background: #fff; border-radius: 6px; }
.scrollshot__bar { flex: none; height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f4f4f2; border-bottom: 1px solid #e8e8e5; }
.scrollshot__bar i { width: 8px; height: 8px; border-radius: 50%; background: #dcdcd8; }
.scrollshot__vp { flex: 1; min-height: 0; overflow: hidden; }
.setrow .scrollshot img { object-position: 50% 0; animation: shotscroll 16s ease-in-out infinite alternate; }
.setrow button.scrollshot:hover img { transform: none; }
@keyframes shotscroll { 0%, 10% { object-position: 50% 0; } 90%, 100% { object-position: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .setrow .scrollshot img { animation: none; } }
.setrow[style] { width: 100%; margin-inline: auto; }
.setrow button { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); border-radius: 3px; overflow: hidden; background: var(--panel); cursor: zoom-in; }
.setrow img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
/* no zoom on hover in the galleries */
.masonry.is-uniform { display: grid; grid-template-columns: repeat(5, 1fr); }
.masonry.is-uniform::after { display: none; }
.masonry button { flex: var(--r) 1 calc(var(--r) * 230px); aspect-ratio: var(--r); display: block; border-radius: 3px; overflow: hidden; background: var(--panel); cursor: zoom-in; }
.masonry img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, opacity .2s; }
/* no zoom on hover in the art galleries either */
.songs__intro { margin: 0 0 24px; font-size: 22px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracks li { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.tracks button { flex: 1; display: grid; grid-template-columns: 28px 96px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; text-align: left; }
.tracks img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.tracks .t { font-size: 16px; }
.tracks button:hover .t, .tracks button.is-on .t { font-weight: 500; }
.tracks li { padding-inline: 10px; border-radius: 6px; }
.tracks li:has(button.is-on) { background: var(--panel); }
.tracks .yt { font-size: var(--fs-s); color: var(--ink-3); white-space: nowrap; }
.tracks .yt:hover { color: var(--ink); }
.songs { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.songs__player { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.songs__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.songs .tracks button { grid-template-columns: 22px 72px 1fr auto; gap: 12px; padding: 10px 0; }
.songs .tracks img { width: 72px; }
.songs__ch { display: inline-block; margin-top: 20px; }

/* writing */
.writing { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 6cqw; }
.writing h3 { font-weight: 500; font-size: max(18px, 3.2cqw); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 2.4cqw; max-width: 22ch; }
.writing a { align-self: flex-start; font-size: max(13px, 1.6cqw); }

/* ---------- details under the cover (Selected work) ---------- */
.details { display: none; }
/* text column grows up to its width on Ella's 1728px screen, then stops; the side column follows it at the same gap instead of drifting to the window's right edge */
.has-details .details { display: grid; grid-template-columns: minmax(0, 884px) 260px; justify-content: start; column-gap: 56px; row-gap: 0; margin-top: 40px; }
.details > .span, .case > .span { grid-column: 1 / -1; }
/* the side column (articles) starts level with "What I changed", beside it */
.has-details .details > .how, .has-details .details > div:not([class]) { grid-column: 1; }  /* main content always in the text column, even on projects with no articles */
.has-details .details > .how ~ .aside { grid-column: 2; grid-row: 3; }
/* below 1366px the text column would get too narrow beside the articles (under ~600px), so the articles move under the content, after a light line */
@media (max-width: 1365px) {
  .has-details .details { grid-template-columns: minmax(0, 884px); }
  .has-details .details > .how ~ .aside { grid-column: 1; grid-row: auto; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--panel); }
}
/* the same explanation grid when it sits above a gallery (brand items without a stage) */
.case { display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 56px; margin-top: 40px; }
.bottom {
  margin: 0 0 32px; font-size: clamp(22px, 1.74vw, 34px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500;
}
.bottom mark { background: var(--mark); color: inherit; padding: .08em .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h { margin: 0 0 12px; }
.how { margin: 0 0 36px; }
.changes { list-style: none; margin: 0; padding: 0; }
.changes li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 11px 0; }
.changes li + li { border-top: 1px solid var(--panel); }
.changes li:first-child { padding-top: 0; }
.changes b { font-weight: 500; }
.changes span { color: var(--ink-2); }
.changes span a { color: var(--ink); }
.aside > div + div { margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--chip); font-size: var(--fs-s); }
/* AI-assisted work gets the lime accent, so it reads at a glance */
.chip--ai { background-color: rgb(217 249 157 / .6); background-image: linear-gradient(105deg, transparent 25%, rgb(255 255 255 / .29) 40%, rgb(255 255 255 / .53) 50%, rgb(255 255 255 / .29) 60%, transparent 75%); background-size: 300% 100%; background-repeat: no-repeat; background-position: 100% 0; animation: aiShine 2.2s ease-in-out infinite; display: inline-flex; align-items: center; gap: 4px; }
/* a soft light sweeps across the tag once, then rests */
@keyframes aiShine { 0% { background-position: 100% 0; } 72%, 100% { background-position: 0% 0; } }
.chip--ai i { font-style: normal; color: #3f6212; font-size: 1.25em; line-height: 1; display: inline-block; animation: aiTwinkle 2.8s ease-in-out infinite; }
/* the star twinkles: a small turn and pulse, then rests */
@keyframes aiTwinkle { 0%, 55%, 100% { transform: scale(1); } 70% { transform: scale(1.22); } 85% { transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .chip--ai, .chip--ai i { animation: none; } }
.links { list-style: none; margin: 0; padding: 0; }
.links li + li { margin-top: 24px; }  /* each article reads as its own group: source + title */
.links .mono { display: block; margin-bottom: 4px; }
.links a::after { content: ' ↗'; color: var(--ink-3); }
.m-caption { display: none; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.97); display: flex; flex-direction: column; }
.overlay[hidden] { display: none; }
.viewer__strip, .player { cursor: zoom-out; }
.viewer__strip img, .player iframe { cursor: auto; }
.overlay--dark { background: rgba(10,10,10,.94); color: #fff; }
.overlay__bar { display: flex; align-items: baseline; gap: 16px; padding: 24px var(--pad); }
.overlay__bar h2 { margin: 0; font-size: 15px; font-weight: 500; }
.overlay__bar .close { margin-left: auto; font-size: var(--fs-s); border-bottom: 1px solid currentColor; }
.viewer__strip { flex: 1; display: flex; gap: 24px; align-items: center; overflow-x: auto; padding: 0 var(--pad) 40px; scroll-snap-type: x proximity; }
.viewer__strip img { height: min(72vh, 820px); width: auto; flex: none; scroll-snap-align: center; border-radius: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.player { flex: 1; display: grid; place-items: center; padding: 0 var(--pad) 48px; }
.player iframe { width: min(1100px, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }

/* ---------- responsive ---------- */
@media (min-width: 1600px) {
  :root { --index-w: 340px; }
}
/* wide screens (above 1728px, Ella's screen): the layout stays anchored left; the menu takes half
   the extra width (up to 600px) and the stage takes the rest, never taller than the window */
@media (min-width: 1729px) {
  :root { --index-w: min(480px, calc(340px + (100vw - 1728px) / 3)); }
  .stage-wrap { max-width: calc((100vh - var(--top) - 32px) * 936 / 527); }
}
/* wide screens: text (menu + everything under the stage) grows a little, in steps, up to +12% */
@media (min-width: 1920px) { .index > *, #details { zoom: 1.04; } }
@media (min-width: 2200px) { .index > *, #details { zoom: 1.08; } }
@media (min-width: 2560px) { .index > *, #details { zoom: 1.12; } }
/* songs: on narrower screens the track list drops under the player */
@media (max-width: 1280px) {
  .songs { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 1100px) {
  :root { --index-w: 300px; --gap: 32px; --pad: 28px; }
  .has-details .details, .case { grid-template-columns: 1fr; gap: 0; }
  .details > .aside, .case > .aside { margin-top: 32px; }
  .has-details .details > .how, .has-details .details > .how ~ .aside { grid-column: 1; grid-row: auto; }
  .changes li { grid-template-columns: 150px 1fr; }
}
@media (max-width: 768px) {
  :root { --pad: 16px; --top: 16px; }
  .index { position: static; width: auto; padding: 24px var(--pad) 32px; overflow: visible; }
  .id { margin-bottom: 24px; }
  body { display: flex; flex-direction: column; }
  .main { order: -1; margin: 0; padding: 0; min-height: 0; }
  .stage-wrap, .has-details .stage-wrap { position: relative; top: 0; z-index: 1; background: var(--bg); padding: 12px var(--pad) 0; }
  .stage { border-radius: 6px; }
  .m-caption { display: flex; flex-direction: column; gap: 2px; padding: 10px var(--pad) 0; margin: 0; }
  .m-caption b { font-weight: 500; }
  .m-caption span { color: var(--ink-3); font-size: var(--fs-s); }
  .has-details .details { padding: 0 var(--pad); margin-top: 36px; }

  .changes li { grid-template-columns: 1fr; gap: 2px; }
  .art { grid-template-columns: 1fr; }
  .art__side { display: none; }
  .art__nav { opacity: 1; }
  .music { grid-template-columns: 1fr; padding: 0; }
  .music__feat { border-radius: 0; height: 100%; aspect-ratio: auto; }
  .music__side { display: none; }
  .masonry { gap: 8px; }
  .masonry.is-uniform { grid-template-columns: repeat(3, 1fr); }
  .masonry button { flex-basis: calc(var(--r) * 130px); }
  .songs__intro { font-size: 19px; }
  .songs { grid-template-columns: 1fr; gap: 16px; }
  .tracks button { grid-template-columns: 22px 72px 1fr; gap: 12px; }
  .tracks button > .mono:last-child { display: none; }
  .tracks img { width: 72px; }
  .viewer__strip img { height: 60vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* drawings: the gallery is the whole view, no stage viewer */
.no-stage .stage-wrap, .no-stage .m-caption { display: none !important; }
.no-stage .details { margin-top: 0 !important; }
/* interactive book: closed cover opens on its spine (Hebrew book, spine on the right) */
.flip { position: relative; display: block; width: 100%; aspect-ratio: 636 / 450; margin-top: 12px; border-radius: 3px; overflow: hidden; background: #e9e8e4; perspective: 1800px; cursor: pointer; }
.flip__open, .flip__cover { position: absolute; inset: 0; }
.flip__open { display: grid; place-items: center; opacity: 0; transform: scale(.96); transition: opacity .55s .35s, transform .7s .3s; }
.flip__open img { height: 100%; width: auto; }
.flip__cover { transform-origin: 100% 50%; transition: transform 1s cubic-bezier(.55,.05,.25,1), opacity .5s .5s; backface-visibility: hidden; }
.flip__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip:hover .flip__cover { transform: rotateY(6deg); }
.flip.is-open .flip__cover { transform: rotateY(115deg); opacity: 0; }
.flip.is-open .flip__open { opacity: 1; transform: none; }
.flip__hint { position: absolute; left: 16px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 11px; }
.flip__hint .c, .flip.is-open .flip__hint .o { display: none; }
.flip.is-open .flip__hint .c { display: inline; }
@media (prefers-reduced-motion: reduce) { .flip__cover, .flip__open { transition: opacity .2s; } .flip.is-open .flip__cover { transform: none; } }
/* galleries sit on the same gray panel as the stage, so white artwork never merges with the white page */
.setrows, .masonry { background: var(--panel); padding: 24px; border-radius: var(--radius); }
.setrow button, .masonry button { box-shadow: 0 4px 14px rgba(26, 10, 41, .08); background: #fff; }
/* a scene that already sits on the panel colour: no card around it */
.setrow.is-flat button { box-shadow: none; background: transparent; }
.rowfit.is-flat img { box-shadow: none; border-radius: 0; }
.rowstack:has(.rowfit.is-flat:not(.is-round)) { padding: 0; }
@media (max-width: 768px) { .setrows, .masonry { padding: 12px; } }

/* writing: one clear card that leads to the posts */
.writecard { display: grid; gap: 10px; max-width: 560px; padding: 32px; border-radius: var(--radius); background: var(--panel); color: var(--ink); text-decoration: none; transition: background-color .15s; }
.writecard:hover { background: color-mix(in srgb, var(--panel) 85%, var(--ink)); }
.writecard__t { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.writecard__p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.writecard__cta { margin-top: 8px; font-weight: 500; justify-self: start; }

/* a short context line above a gallery (e.g. where a project was made) */
.gallery__note { margin: 0 0 20px; max-width: 680px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.gallery__note a { color: var(--ink); }
.setrow__spacer { flex: var(--r) 1 0; min-width: 0; }

/* live countdown over the webinar recording */
.vtimer { position: absolute; pointer-events: none; }
.vtimer__d { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 6%/4%; color: #eef2f7; font-family: Inter, sans-serif; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.vtimer__d { overflow: hidden; }
.vtimer__n { display: block; }
.vtimer__n.is-new { animation: vtick .38s cubic-bezier(.2, .7, .3, 1); }
@keyframes vtick { from { transform: translateY(-45%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vtimer__n.is-new { animation: none; } }
.vtimer__l { position: absolute; }
/* overlay that scrolls with the recording, clipped to its browser window */
.vfollow { position: absolute; pointer-events: none; }
.vfollow__in { position: absolute; inset: 0; will-change: transform; }
/* carousel slide dots drawn over a recording */
.vdots { position: absolute; inset: 0; pointer-events: none; }
.vdots i { position: absolute; border-radius: 50%; background: var(--c); }
.vdots i.is-on { background: var(--a); }
.vtimer__l i { position: absolute; top: 50%; transform: translate(-50%, -50%); font-style: normal; color: #b9c3d3; font-family: 'Noto Sans Hebrew', sans-serif; white-space: nowrap; }
/* soft pulse on the chart's end point */
.vpulse { position: absolute; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 0 rgb(52 230 200 / .55); animation: vpulse 2.2s ease-out infinite; }
@keyframes vpulse { 0% { box-shadow: 0 0 0 0 rgb(52 230 200 / .55); } 70% { box-shadow: 0 0 0 1.2cqw rgb(52 230 200 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 230 200 / 0); } }
@media (prefers-reduced-motion: reduce) { .vpulse { animation: none; } }

/* writing: same explanation layout as Selected work, a small dashboard, then the posts */
.case--writing { margin-top: 0; max-width: 1040px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.kpi { margin: 0; padding: 16px 18px 18px; border-radius: 10px; background: var(--panel); display: grid; gap: 10px; }
.kpi dt { margin: 0; }
.kpi dd { margin: 0; white-space: nowrap; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
/* LinkedIn header, built in code (only the photo is an image) */
.licard { position: relative; display: block; width: 100%; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; color: rgb(0 0 0 / .9); text-decoration: none; container-type: inline-size; }
.licard__banner { height: 82px; overflow: hidden; }
.licard__waves { display: block; width: 100%; height: 100%; }
.licard__photo { position: absolute; left: 20px; top: 12px; width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; background: #ccd7f7; object-fit: cover; }
/* the organisations follow the profile text at a set gap (not pushed to the card's far edge) and wrap under it only when there's no room beside it */
.licard__body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px clamp(32px, 8cqw, 96px); padding: 62px 20px 18px; }
.licard__main { flex: 0 1 auto; min-width: 0; }
.licard p { margin: 0; }
.licard__name { display: flex; align-items: center; gap: 6px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.licard__badge { width: 20px; height: 20px; color: rgb(0 0 0 / .75); }
.licard__head { margin-top: 4px !important; font-size: 14px; line-height: 1.4; }
.licard__loc { margin-top: 4px !important; font-size: 12.5px; color: rgb(0 0 0 / .6); }
.licard__net { margin-top: 8px !important; font-size: 12.5px; }
.licard__blue { color: #0A66C2; font-weight: 600; }
.licard__orgs { flex: 0 0 auto; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 240px; }
.licard__orgs li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.3; }
.licard__orgs svg { flex: none; width: 26px; height: 26px; }
.licard__orgs b { font-weight: 600; }
.licard:hover .licard__name { text-decoration: underline; text-underline-offset: 3px; }
/* narrow card: the organisations go under the profile text */
@container (max-width: 560px) {
  .licard__banner { height: 64px; }
  .licard__photo { left: 16px; width: 92px; height: 92px; }
  .licard__body { padding: 48px 16px 16px; }
  .licard__name { font-size: 19px; }
  .licard__head { font-size: 13px; }
  .licard__orgs { max-width: none; }
}
.posts__h { margin: 0 0 4px; font-weight: 400; }
/* divider between the Posts and Articles sections */
.posts__div { margin: 40px 0; border: 0; border-top: 1px solid #DCDCD8; }
.posts__list li:last-child { border-bottom: 0; }
.posts__list { list-style: none; margin: 0; padding: 0; }
.posts__list li { border-bottom: 1px solid var(--line); }
.post { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 6px; padding: 16px 0; color: var(--ink); text-decoration: none; align-items: baseline; }
.post__t { grid-column: 1 / -1; font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.post__t[dir="rtl"] { font-family: 'Noto Sans Hebrew', Inter, sans-serif; text-align: left; }
.post__m { grid-column: 1; grid-row: 2; align-self: center; color: var(--ink-3); }
.post__n { grid-column: 2; grid-row: 2; align-self: center; display: flex; gap: 18px; color: var(--ink-3); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.post__n:empty { display: none; }
.post__n b { color: var(--ink); font-weight: 500; }
.posts__all { display: inline-block; margin-top: 24px; font-weight: 500; color: var(--ink); }
@media (max-width: 768px) { .post { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; } .post__t { flex: 0 0 100%; font-size: 16px; } .post__m { white-space: nowrap; } .post__n { margin-left: auto; gap: 10px; font-size: 12px; } .kpi dd { font-size: 28px; } }

/* equal-width columns, natural heights, top-aligned (feed mockups) */
.setrow.is-cols { align-items: flex-start; width: 75%; margin-inline: auto; }
.setrow.is-cols button { flex: 1 1 0; }

/* flat images with slightly rounded corners (book covers) */
.rowfit.is-flat.is-round img, .setrow.is-flat.is-round button { border-radius: 4px; overflow: hidden; }

/* no image preview anywhere: plain cursor, no 'view the series' action */
.rowstack.is-click img, .art__hero img, .setrow button, .masonry button { cursor: default; }
[data-act="view"] { display: none !important; }

/* source tag (articles only), then the year and ↗ */
.post__m { display: flex; align-items: center; gap: 8px; }
.post__m .chip { padding: 2px 8px; font-family: var(--font, Inter), sans-serif; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
/* each source in its own brand colour: LinkedIn blue, Create pink (text a shade darker so it stays readable) */
.post__m .chip--linkedin { background: rgb(10 102 194 / .1); color: #0A66C2; }
.post__m .chip--create { background: rgb(230 54 139 / .1); color: #B8236B; }

/* the four numbers always stay in one row; on small screens the tiles get tighter */
@media (max-width: 768px) {
  .kpis { gap: 8px; }
  .kpi { padding: 12px 8px 14px; gap: 8px; border-radius: 8px; }
  .kpi dt { font-size: 10px; }
  .kpi dd { font-size: clamp(14px, 3.9vw, 28px); letter-spacing: -0.02em; }
}
/* writing stats: the original tiles, sized to the row's width so all four always fit in one row */
.how:has(> .kpis) { container-type: inline-size; }
.kpi { min-width: 0; padding: 16px clamp(8px, 1.8cqi, 18px) 18px; }
.kpi dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi dd { font-size: clamp(15px, 3.6cqi, 34px); }
@media (max-width: 768px) {
  .kpis { gap: 8px; }
  .kpi { padding: 12px clamp(6px, 2cqi, 12px) 14px; }
  .kpi dt { font-size: clamp(8.5px, 3cqi, 10px); letter-spacing: 0.02em; }
  .kpi dd { font-size: clamp(15px, 5cqi, 28px); }
}
/* brand galleries on small screens: squares 2 per line, wide covers and feed mockups one per line */
@media (max-width: 600px) {
  .setrow.sm-2, .setrow.sm-1, .setrow.is-cols { flex-wrap: wrap; }
  .setrow.sm-2 > button { flex: 0 0 calc(50% - 6px); }
  .setrow.sm-1 > button { flex: 0 0 100%; }
  .setrow.is-cols { width: 100%; flex-direction: column; align-items: center; }
  .setrow.is-cols > button { flex: none; width: 100%; max-width: 360px; }
}
/* mobile: my intro (name, role, previous companies) is the page header, above the work */
@media (max-width: 768px) {
  .index { display: contents; }
  .index > .id { order: -2; margin: 0 var(--pad) 16px; padding: 20px 0 16px; border-bottom: 1px solid var(--line); }
  .index > .id .id__bio { max-width: none; }
  .index > .sec { margin: 0 var(--pad); }
  .index > .sec:first-of-type { margin-top: 24px; }
  .index > .contact { margin: 0 var(--pad); padding-bottom: 32px; }
}
/* mobile: the header stays on top while scrolling and shrinks to the logo alone */
@media (max-width: 768px) {
  .index > .id { position: sticky; top: 0; z-index: 6; background: var(--bg); margin-inline: 0; padding-inline: var(--pad); border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); transition: padding .2s; }
  .index > .id .id__bio { max-height: 60px; overflow: hidden; transition: max-height .2s, opacity .2s, margin .2s; }
  .m-scrolled .index > .id { padding-top: 10px; padding-bottom: 10px; }
  .m-scrolled .index > .id .id__bio { max-height: 0; opacity: 0; margin-top: 0; }
}
/* mobile: the menu under the content sits in its own grey band, so it reads as navigation, not content (no title) */
@media (max-width: 768px) {
  .index > .sec, .index > .contact { margin: 0; padding-inline: var(--pad); background: #f8f8f6; }
  .index > .sec:first-of-type { margin-top: 48px; padding-top: 12px; border-top: 0; }
  .index > .sec:last-of-type { border-bottom-color: rgba(0, 0, 0, .08); }
  .index > .sec + .sec { border-top-color: rgba(0, 0, 0, .08); }
  .index > .contact { padding-top: 24px; padding-bottom: 40px; }
  .index .row.is-sel { background: #ececea; }
}
/* back to top: a floating button that appears once the reader has scrolled */
.totop { position: fixed; right: calc(var(--edge) + 24px); bottom: 24px; z-index: 20; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { transform: translateY(-2px); }
.totop:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.totop svg { width: 18px; height: 18px; }
@media (max-width: 768px) { .totop { right: 16px; bottom: 16px; width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }
/* art galleries on mobile: 2 images per row (each image keeps its own proportions) */
@media (max-width: 768px) {
  .masonry:not(.is-uniform) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
  .masonry:not(.is-uniform)::after { display: none; }
  .masonry:not(.is-uniform) button { width: 100%; }
  .masonry.is-uniform { grid-template-columns: repeat(2, 1fr); }
}
/* drawing page on very small screens: every image one under the other */
@media (max-width: 480px) {
  .masonry:not(.is-uniform), .masonry.is-uniform { grid-template-columns: 1fr; }
}
/* writing stats on very small screens: 2 tiles per row, in 2 rows */
@media (max-width: 480px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px 14px 16px; }
  .kpi dt { font-size: 10px; }
  .kpi dd { font-size: 26px; }
}
/* drawing page: clicking an image opens the enlarged view */
.masonry button { cursor: zoom-in; }

/* one link behaviour everywhere: each link keeps its own text colour and weight, no underline; the only effect is a 1px underline on hover.
   Text links only; cards and menu rows keep their own hover. */
.id__bio a, .contact a, .changes span a, .gallery__note a, .links a, .music__ch, .songs__ch, .tracks .yt, .writing a, .writecard__cta, .posts__all, .post__t {
  text-decoration: none; border-bottom: 0;
}
.id__bio a:hover, .contact a:hover, .changes span a:hover, .gallery__note a:hover, .links a:hover, .music__ch:hover, .songs__ch:hover, .tracks .yt:hover, .writing a:hover, .writecard:hover .writecard__cta, .posts__all:hover, .post:hover .post__t {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* ---- phones (up to 768px): home page of cards; a card opens the project page ---- */
.mhome, .mnext { display: none; }
@media (max-width: 768px) {
  /* the side-panel sections are replaced by the cards; name, bio and contact stay */
  .index > .sec { display: none; }
  .index > .contact { margin-top: 0; background: var(--bg); border-top: 1px solid var(--line); }
  .details > .aside { padding-top: 32px; border-top: 1px solid var(--panel); }

  .m-home .mhome { display: block; padding: 8px var(--pad) 72px; }
  .m-home .stage-wrap, .m-home .m-caption, .m-home .details { display: none !important; }
  .mhome__sec + .mhome__sec { margin-top: 40px; }
  .mhome__h { margin: 0 0 16px; font-size: 15px; font-weight: 500; }
  .mhome__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .mcard { display: grid; gap: 0; color: var(--ink); text-decoration: none; }
  .mcard__media { position: relative; aspect-ratio: 936 / 527; margin-bottom: 6px; background: var(--panel); border-radius: 6px; overflow: hidden; container-type: inline-size; }
  .mcard__media .item { transition: none; }
  .mcard__fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  /* gallery cards: up to 3 whole images side by side, each as large as fits (its own shape, never cropped);
     the image box is the image itself, so the shadow hugs the picture with no empty frame around it */
  .mcard__strip { position: absolute; inset: 0; display: flex; gap: 6px; align-items: center; justify-content: center; padding: 8% 5%; }
  .mcard__strip img { width: auto; height: auto; max-height: 100%; max-width: calc((100% - 12px) / 3); flex: 0 0 auto; border-radius: 2px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
  .mcard__media--text { display: flex; align-items: center; padding: 0 8%; }
  .mcard__media--text .bottom { margin: 0; font-size: 6.4cqw; }
  .mcard__t { font-size: 15px; font-weight: 500; line-height: 1.3; }
  .mcard__c { font-size: var(--fs-s); line-height: 1.3; color: var(--ink-3); }

  /* project page: the next project as a card at the bottom */
  body:not(.m-home) .mnext { display: block; margin: 48px var(--pad) 72px; padding-top: 24px; border-top: 1px solid var(--line); }
  .mnext__h { margin: 0 0 12px; }
}
