/* Layout: one quiet reading column, centred. Pictures step out a little wider, the Figma boards wider still.
   The serif is Emrah's voice (titles, hooks, reframes, the principle); the sans is everything else.
   The Figma metaphor now lives in two places only: the Design Kitchen boards and the visitor's cursor on the home page. */
:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --sunk: #f2f2f6;
  --ink: #1d1f24;
  --text: #3b3e46;
  --muted: #6c6f79;
  --rule: #e6e6ec;
  --accent: #5a45d6;
  --tint: #eceafb;
  --logo: none;
  --select: #947efb;
  --select-ink: #6347e6;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --kd: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --kb: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 620px;
  --wide: 880px;
  --board: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  --col: min(var(--measure), 100vw - 2 * var(--gutter));
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141518; --surface: #1b1c20; --sunk: #1f2025; --ink: #ececf0; --text: #c9cad1; --muted: #9698a3;
    --rule: #2b2c33; --accent: #a99dff; --tint: #2a2742; --logo: invert(1); --select: #a594ff; --select-ink: #b9acff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141518; --surface: #1b1c20; --sunk: #1f2025; --ink: #ececf0; --text: #c9cad1; --muted: #9698a3;
  --rule: #2b2c33; --accent: #a99dff; --tint: #2a2742; --logo: invert(1); --select: #a594ff; --select-ink: #b9acff;
  color-scheme: dark;
}
:root:has(.home) { --measure: 700px; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.7 var(--sans); font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
p, ul, ol, h1, h2, h3, h4, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.inv, .sign img { filter: var(--logo); }
.eyebrow { font: 500 13px/20px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* every top-level block sits on the same column */
.bar, .home, .hello-in, .hero-in, .notes, .meta, .rows, .principle-in, .next-in, .cv-in {
  width: var(--col); margin-inline: auto;
}

/* ---------- header ---------- */
.bar { display: flex; align-items: center; gap: 6px; padding-block: 28px 20px; }
.bar-logo { flex: none; display: block; margin-right: auto; }
.bar-logo img { display: block; width: 34px; height: 28px; }
.bar-nav { display: flex; gap: 2px; }
.bar-nav a { padding: 6px 10px; border-radius: 8px; text-decoration: none; font: 400 15px/22px var(--sans); color: var(--muted); }
.bar-nav a:hover, .bar-nav a.here { color: var(--ink); }
.theme { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: -9px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.theme:hover { color: var(--ink); }
.theme span { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); transition: transform .5s cubic-bezier(.3, .9, .3, 1); }
.theme.is-dark span { transform: rotate(180deg); }
.bar-prog { position: fixed; z-index: 30; left: 0; top: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: .7; }

/* ---------- home ---------- */
.home { position: relative; padding-block: clamp(40px, 8vw, 88px) 96px; }
.intro { display: flex; flex-direction: column; gap: 20px; padding-bottom: clamp(56px, 9vw, 96px); }
.intro h1 { max-width: 19em; font: 400 clamp(28px, 4.4vw, 36px)/1.32 var(--serif); letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.pick { position: relative; display: inline-block; padding: 0 6px; margin: 0 -2px; line-height: 1.24; color: var(--ink); }
.motto { font: italic 400 17px/1.6 var(--serif); color: var(--muted); }
.thesis { max-width: 31em; }
.sec-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.sec-h h2 { font: 500 13px/20px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sec-h span { font: 400 13px/20px var(--sans); color: var(--muted); }
.sec-h span::before { content: "· "; }
.sec-h.prev-h { margin-top: 72px; }
.case {
  display: grid; grid-template-columns: minmax(0, 1fr) 232px; align-items: start; gap: clamp(20px, 5vw, 44px);
  padding-block: 36px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit;
}
.home > .case:last-of-type, .case:has(+ .sec-h) { border-bottom: 0; }
.case-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hook { font: 400 22px/1.32 var(--serif); letter-spacing: -0.008em; color: var(--ink); text-wrap: balance; }
.ttl { font: 400 15px/23px var(--sans); color: var(--muted); }
.stat { margin-top: 2px; font: 400 15px/23px var(--sans); color: var(--muted); }
.stat b { margin-right: 6px; font: 500 15px/23px var(--sans); color: var(--ink); }
.more { margin-top: 6px; font: 500 14px/21px var(--sans); color: var(--ink); }
.more i { display: inline-block; font-style: normal; transition: transform .25s; }
.case:hover .more i { transform: translateX(4px); }
.case:hover .hook { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--muted); }
.thumb { position: relative; aspect-ratio: 16 / 10; max-width: 100%; }
.thumb .clip { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: #ffffff; box-shadow: 0 0 0 1px var(--rule); transition: border-radius .15s; }
.thumb.sel .clip { border-radius: 0; box-shadow: 0 0 0 1.5px var(--select); }
.home .thumb.sel { outline: none; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.case:hover .thumb img { transform: scale(1.03); }
.ek-cursor {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none;
  transform: translate(var(--x, 300px), var(--y, 120px));
  transition: transform .7s cubic-bezier(.2, .85, .25, 1);
}
.ek-cursor.snap { transition: none; }
.mp { display: flex; flex-direction: column; align-items: flex-start; color: var(--accent); white-space: nowrap; }
.mp svg { display: block; width: 15px; height: 15px; }
.mp b { margin: -1px 0 0 11px; padding: 1px 7px 2px; border-radius: 3px; background: var(--accent); color: var(--bg); font: 500 11px/16px var(--sans); }
.hello { margin-top: 24px; border-top: 1px solid var(--rule); }
.hello-in { display: flex; flex-direction: column; gap: 14px; padding-block: 64px 80px; }
.hello h2 { font: 400 28px/1.3 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.mail { font: 400 17px/1.6 var(--sans); color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.copy { font: 500 13px/18px var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--muted); }
.hello-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 400 15px/23px var(--sans); color: var(--muted); }
.hello-links a:hover { color: var(--ink); }
.home-gap { margin-top: 64px; }

/* ---------- case study ---------- */
.hero-in { display: flex; flex-direction: column; gap: 48px; padding-block: clamp(32px, 6vw, 64px) 0; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.back { align-self: flex-start; margin-bottom: 20px; font: 400 14px/21px var(--sans); color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.hero h1 { font: 400 clamp(28px, 4.4vw, 38px)/1.24 var(--serif); letter-spacing: -0.014em; color: var(--ink); text-wrap: balance; }
.hero .sum { font: 400 19px/1.6 var(--sans); color: var(--muted); }
/* pictures step out of the column, centred on it */
.hero .frame, .wide {
  --w: min(var(--wide), 100vw - 2 * var(--gutter));
  width: var(--w); max-width: none; margin-inline: calc((var(--col) - var(--w)) / 2);
}
.frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #ffffff; box-shadow: 0 0 0 1px var(--rule); }
.frame .clip { position: absolute; inset: 0; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.hd, .dim, .cur, .fr-arrow { display: none; }

/* Figma selection on the home page: the role in the intro, and whichever project you point at */
.home .hd { display: inline; }
.home .hd i {
  position: absolute; z-index: 2; width: 8px; height: 8px; background: var(--bg);
  border: 1.5px solid var(--select); opacity: 0; transition: opacity .15s; pointer-events: none;
}
.home .hd i:nth-child(1) { left: -4px; top: -4px; }
.home .hd i:nth-child(2) { right: -4px; top: -4px; }
.home .hd i:nth-child(3) { left: -4px; bottom: -4px; }
.home .hd i:nth-child(4) { right: -4px; bottom: -4px; }
.home .sel { outline: 1.5px solid var(--select); outline-offset: 0; }
.home .sel > .hd i { opacity: 1; }
.home .dim {
  display: block; position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 3;
  padding: 0 5px; border-radius: 3px; background: #6347e6; color: #ffffff;
  font: 500 10.5px/16px var(--sans); letter-spacing: 0; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s;
}
.home .sel > .dim:not(:empty) { opacity: 1; }
.thumb::before {
  content: attr(data-name); position: absolute; left: 0; bottom: calc(100% + 6px); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 11px/15px var(--sans); color: var(--select-ink); opacity: 0; transition: opacity .15s;
}
.thumb.sel::before { opacity: 1; }
@media (max-width: 600px) { .pick > .dim { display: none; } }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 44px; margin-top: 64px; }
.note { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--rule); min-width: 0; }
.note h2 { font: 500 13px/20px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.note p { font: 400 16px/1.62 var(--sans); }
.big { display: block; font: 400 34px/1.2 var(--serif); letter-spacing: -0.015em; color: var(--ink); margin-bottom: 2px; }
.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin-top: 40px; font: 400 15px/23px var(--sans); color: var(--muted); }
.meta dt { color: var(--ink); }
.row { display: flex; flex-direction: column; gap: 20px; padding-top: 88px; scroll-margin-top: 8px; }
.row-h h2 { font: 400 27px/1.25 var(--serif); letter-spacing: -0.012em; color: var(--ink); }
.row-b { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.row-b > * { max-width: 100%; }
.body { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.body ul, .body ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.body strong, .note-card strong { font-weight: 500; color: var(--ink); }
.lead { font: 400 20px/1.5 var(--sans); letter-spacing: -0.005em; color: var(--ink); }
h3.sub { margin-top: 28px; margin-bottom: -8px; font: 500 13px/20px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
mark { color: inherit; padding: 1px 0; background: linear-gradient(var(--tint), var(--tint)) no-repeat 0 90% / 100% 36%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.js mark { background-size: 0% 36%; transition: background-size 1s cubic-bezier(.3, .7, .2, 1) .1s; }
.js mark.in { background-size: 100% 36%; }
.reframe { margin-block: 12px; font: 400 clamp(22px, 3.4vw, 27px)/1.4 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.stage { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-block: 8px; }
.fr { margin: 0; padding: 18px 22px 20px; border-radius: 12px; font: 400 16px/1.62 var(--sans); min-width: 0; }
.fr-label { display: block; margin-bottom: 6px; font: 500 13px/20px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fr-brief { background: var(--sunk); color: var(--muted); }
.fr-found { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--rule); }
.fr-found .fr-label { color: var(--accent); }
.roles { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.roles h3 { margin-bottom: 10px; font: 500 13px/20px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.roles ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font: 400 16px/1.58 var(--sans); }
.metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.metric .big { margin: 0; font-size: clamp(44px, 8vw, 60px); line-height: 1.1; }
.metric p { max-width: 24em; }
.note-card {
  width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 20px 22px;
  background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--rule);
  font: 400 16px/1.62 var(--sans);
}
.note-card ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.okrs { width: 100%; display: grid; gap: 14px; }
.okr { display: flex; flex-direction: column; padding: 20px 22px 6px; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--rule); }
.okr-o { padding-bottom: 14px; font: 400 21px/1.35 var(--serif); letter-spacing: -0.008em; color: var(--ink); }
.okr-o span { display: block; margin-bottom: 4px; font: 500 12px/18px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.okr-k { list-style: none; padding: 0; }
.okr-k li { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: baseline; gap: 2px 16px; padding-block: 12px; border-top: 1px solid var(--rule); }
.okr-k b { font: 400 22px/1.4 var(--serif); color: var(--ink); white-space: nowrap; }
.okr-k span { font: 400 15.5px/1.58 var(--sans); }

/* the Design Kitchen: Emrah's Figma boards, kept as they are inside one calm panel */
.kitchen, .wide { display: block; }
.kitchen {
  width: min(var(--board), 100% - 2 * var(--gutter)); margin: 96px auto 0; overflow: hidden;
  background: #f6f6f6; color: #242b30; border-radius: 18px; box-shadow: 0 0 0 1px var(--rule); scroll-margin-top: 8px;
}
.wide { margin-top: 40px; border-radius: 14px; overflow: hidden; background: var(--wide-bg, #e5e5e5); box-shadow: 0 0 0 1px var(--rule); }
.wide img { display: block; width: 100%; height: auto; }
main > .wide { margin-inline: auto; }
.cv, .kitchen { --paper: #ffffff; --black: #000000; --kink: #242b30; --kink-soft: #5e626b; --kslate: #383d44; --select: #947efb; }

.principle { margin-top: 104px; background: var(--sunk); scroll-margin-top: 8px; }
.principle-in { display: flex; flex-direction: column; gap: 18px; padding-block: 72px; }
.say { max-width: 17em; font: 400 clamp(26px, 4.6vw, 36px)/1.26 var(--serif); letter-spacing: -0.014em; color: var(--ink); text-wrap: balance; }
.sign { display: flex; align-items: center; gap: 12px; margin-top: 8px; font: 400 14px/21px var(--sans); color: var(--muted); }
.sign img { width: 44px; height: 36px; }
.next-in { display: flex; flex-direction: column; gap: 28px; padding-block: 64px 88px; }
.next-main { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.next-t { font: 400 26px/1.3 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.next-t i { display: inline-block; font-style: normal; transition: transform .3s; }
.next-main:hover .next-t i { transform: translateX(6px); }
.next-h { color: var(--muted); font: 400 16px/1.6 var(--sans); }
.next-side { display: flex; flex-wrap: wrap; gap: 6px 24px; font: 400 14px/21px var(--sans); color: var(--muted); }
.next-side a:hover { color: var(--ink); }

/* ---------- draft slots ---------- */
.gap { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 16px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--surface); color: var(--text); font: 400 15px/23px var(--sans); }
.gap-tag { font: 500 12px/18px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.gap .hint { color: var(--muted); font-size: 14px; line-height: 21px; }
.gap ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.gap a { color: var(--ink); }
.todo { color: var(--accent); }
body:not(.show-gaps) .gap, body:not(.show-gaps) .only-gap, body:not(.show-gaps) .todo { display: none; }
.draft-toggle {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  font: 500 13px/18px var(--sans); color: var(--bg); background: var(--accent); border: 0; border-radius: 999px;
  padding: 8px 13px; cursor: pointer;
}
body:not(.show-gaps) .draft-toggle { color: var(--muted); background: var(--surface); box-shadow: 0 0 0 1px var(--rule); }

/* ---------- CV ---------- */
.cv-in { padding-block: clamp(32px, 6vw, 64px) 96px; }
.cv-back { font: 400 14px/21px var(--sans); color: var(--muted); text-decoration: none; }
.cv-back:hover { color: var(--ink); }
.cv-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 40px; margin-top: 36px; }
.cv-top h1 { font: 400 36px/1.2 var(--serif); letter-spacing: -0.014em; color: var(--ink); }
.cv-top .role { margin-top: 4px; font: 400 18px/1.5 var(--sans); color: var(--muted); }
.cv-top .contact { font: 400 15px/23px var(--sans); color: var(--muted); }
.cv-top .contact span { display: block; user-select: all; }
.cv-sec { display: flex; flex-direction: column; gap: 20px; margin-top: 72px; }
.cv-sec h2 { padding-bottom: 12px; border-bottom: 1px solid var(--rule); font: 500 13px/20px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cv-jobs { display: flex; flex-direction: column; gap: 44px; }
.job { display: flex; flex-direction: column; gap: 14px; }
.job h3 { font: 500 18px/1.4 var(--sans); color: var(--ink); }
.job .meta { display: block; width: auto; margin: 2px 0 0; font: 400 15px/23px var(--sans); color: var(--muted); }
.job .meta i { font-style: normal; padding-inline: 6px; }
.job ul, .job ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.62; }
.job ol { gap: 2px; }
.job h4 { margin: 0 0 6px; font: 500 15px/23px var(--sans); color: var(--ink); }

/* ---------- boards: Figma coordinates, scaled as one piece ---------- */
.cv {
  position: relative; width: 100%; max-width: calc(var(--W) * 1px); margin-inline: auto;
  aspect-ratio: var(--W) / var(--H);
  container-type: inline-size;
  --px: calc(100cqw / var(--W));
}
.cv > .it {
  position: absolute; margin: 0;
  left: calc(var(--x) / var(--W) * 100%);
  top: calc(var(--y) / var(--H) * 100%);
  width: calc(var(--w) / var(--W) * 100%);
}
.cv > .it.auto { width: auto; white-space: nowrap; }
.cv img { display: block; width: 100%; height: auto; }
.cv a { display: block; }
.cv .n { font: 400 calc(16 * var(--px)) / 1.375 var(--kb); letter-spacing: 0.006em; color: rgb(36 36 36 / .9); }
.cv .lb { font: 600 calc(18 * var(--px)) / 1.5 var(--kb); letter-spacing: -0.02em; color: var(--kink); }
.cv .h6 { font: 500 calc(20 * var(--px)) / 1.5 var(--kd); letter-spacing: -0.02em; color: var(--kink); }
.cv .n p + p { margin-top: 1.375em; }
.kh { display: flex; align-items: center; gap: calc(20 * var(--px)); }
.kh img { width: calc(48 * var(--px)); height: calc(48 * var(--px)); flex: none; margin-top: calc(4 * var(--px)); }
.kh b { display: block; font: 500 calc(28 * var(--px)) / 1.5 var(--kd); letter-spacing: -0.02em; color: var(--kslate); }
.kh span { display: block; font: 400 calc(16 * var(--px)) / 1.5 var(--kb); letter-spacing: -0.02em; color: var(--black); }
.tag {
  position: relative; display: inline-block;
  border: calc(3 * var(--px)) solid var(--select);
  padding: calc(14.5 * var(--px)) calc(17 * var(--px));
  font: 500 calc(24 * var(--px)) / 1.5 var(--kd); letter-spacing: -0.02em; color: var(--kink-soft);
}
.tag i {
  position: absolute; width: calc(16 * var(--px)); height: calc(16 * var(--px));
  background: var(--paper); border: calc(2 * var(--px)) solid var(--select);
}
.tag i:nth-of-type(1) { left: calc(-11 * var(--px)); top: calc(-11 * var(--px)); }
.tag i:nth-of-type(2) { right: calc(-11 * var(--px)); top: calc(-11 * var(--px)); }
.tag i:nth-of-type(3) { left: calc(-11 * var(--px)); bottom: calc(-11 * var(--px)); }
.tag i:nth-of-type(4) { right: calc(-11 * var(--px)); bottom: calc(-11 * var(--px)); }
.cv .card {
  background: var(--paper); border: 0.667px solid var(--black); border-radius: calc(8 * var(--px));
  box-shadow: 1.334px 1.334px 0 var(--black);
  padding: calc(13.3 * var(--px)) calc(18.7 * var(--px));
  font: 400 calc(14 * var(--px)) / 1.5 var(--kb); letter-spacing: -0.02em; color: rgb(36 43 48 / .9);
  display: flex; flex-direction: column; gap: calc(21 * var(--px));
}
.cv .card.big { font-size: calc(16 * var(--px)); gap: calc(24 * var(--px)); color: var(--kink); }
.cv .card .ct { font: 500 calc(16 * var(--px)) / 1.5 var(--kb); color: var(--kink); }
.cv .card.big .ct { font-weight: 600; }
.cv .card ul { padding-left: 1.5em; }
.wf {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 234.67 / 100;
  background: var(--paper); border: calc(1.333 * var(--px)) solid var(--black);
  border-radius: calc(13.333 * var(--px)); box-shadow: calc(1.333 * var(--px)) calc(1.333 * var(--px)) 0 var(--black);
  padding: calc(16 * var(--px)) calc(24 * var(--px));
  font: 400 calc(18.667 * var(--px)) / 1.43 var(--kb); color: var(--black);
}
.stats {
  position: relative; aspect-ratio: 642 / 456; background: var(--paper);
  border-radius: calc(16 * var(--px)); filter: drop-shadow(0 4px 15px rgb(0 0 0 / .25));
  container-type: inline-size;
}
.stats > * { --px: calc(100cqw / 642); position: absolute; margin: 0; left: calc(var(--x) / 642 * 100%); top: calc(var(--y) / 456 * 100%); white-space: nowrap; }
.stats > img { width: calc(var(--w) / 642 * 100%); }
.stats .num { font: 500 calc(40 * var(--px)) / 1.5 var(--kd); letter-spacing: -0.02em; color: var(--black); }
.stats .cap { font: 400 calc(18 * var(--px)) / 1.444 var(--kb); color: rgb(36 36 36 / .9); transform: translateX(-50%); }
.stats .lb { font: 600 calc(18 * var(--px)) / 1.5 var(--kb); letter-spacing: -0.02em; color: rgb(36 36 36 / .9); }


@media (max-width: 959px) {
  .cv {
    aspect-ratio: auto; max-width: none; container-type: normal; --px: 1px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  }
  .kitchen > .cv { padding: 40px 16px 48px; }
  .blk > .cv.over { width: 100%; }
  .cv > .it, .cv > .it.auto { position: static; width: auto; max-width: 100%; white-space: normal; }
  .cv > .it.img { width: calc(var(--w) * 1px); }
  .cv > .it.wide-img { margin-inline: -16px; width: calc(100% + 32px); max-width: none; }
  .cv > .it.card, .cv > .it.stats { width: min(calc(var(--w) * 1px), 100%); }
  .cv > .it.wf { width: min(260px, 100%); }
  .cv > .it.arrow, .cv > .it.deco { display: none; }
  .cv > .it.tag { margin-top: 28px; margin-left: 11px; }
  .cv > .it.kh + .it.tag { margin-top: 8px; }
  .cv > .it.lb, .cv > .it.h6 { margin-top: 20px; }
  .cv > .it.n { max-width: 34em; }
}


/* boards inside the reading column pick up the page's quieter cards */
.row .cv .card { border: 0; box-shadow: 0 0 0 1px var(--rule); }
.cv .shot img { border-radius: calc(10 * var(--px)); box-shadow: 0 0 0 1px rgb(36 43 48 / .14), 0 calc(10 * var(--px)) calc(30 * var(--px)) rgb(36 43 48 / .12); }
.cv .card .q { font-style: italic; color: var(--kink-soft); }
.cv .card.dark { background: #0b1412; color: #e4e6e9; }
.cv .card.dark .ct { color: #ffffff; }
@media (min-width: 960px) {
  .cv > .card.eq { min-height: calc(var(--mh) * var(--px)); }
  .cv > .card.eq .q { margin-top: auto; }
}
@media (max-width: 959px) {
  .kitchen > .cv { padding: 36px 20px 44px; }
  .cv > .it.scroll { width: calc(100% + 40px); max-width: none; margin-inline: -20px; padding: 4px 20px 12px; overflow-x: auto; }
  .cv > .it.scroll img { width: 860px; max-width: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .case { grid-template-columns: 1fr; gap: 18px; padding-block: 32px; }
  .case .thumb { order: -1; width: 100%; }
  .notes { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; }
  .roles { grid-template-columns: 1fr; }
  .row { padding-top: 68px; }
  .kitchen { margin-top: 72px; border-radius: 14px; }
  .principle { margin-top: 80px; }
  .principle-in { padding-block: 56px; }
  .okr-k li { grid-template-columns: 1fr; }
  .bar-nav a { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js mark { background-size: 100% 36%; }
}

/* ---------- version 5: one clear story per case ---------- */
.cs { width: var(--col); margin-inline: auto; }
.cs-head { display: flex; flex-direction: column; gap: 14px; padding-block: clamp(28px, 5vw, 56px) 0; }
.cs-head .back { margin-bottom: 18px; }
.cs-head h1 { font: 400 clamp(29px, 4.6vw, 40px)/1.22 var(--serif); letter-spacing: -0.016em; color: var(--ink); text-wrap: balance; }
.facts { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 16px 28px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.facts > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts dt { font: 500 12px/18px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { font: 400 15px/1.5 var(--sans); color: var(--text); }
.facts .res dd b { font: 400 22px/1.2 var(--serif); color: var(--ink); margin-right: 4px; }
.cs > .frame {
  --w: min(var(--wide), 100vw - 2 * var(--gutter));
  width: var(--w); max-width: none; margin: 44px calc((var(--col) - var(--w)) / 2) 0;
}
.sec { display: flex; flex-direction: column; gap: 18px; padding-top: 80px; scroll-margin-top: 8px; }
.sec h2 { font: 400 27px/1.25 var(--serif); letter-spacing: -0.012em; color: var(--ink); }
.sec strong { font-weight: 500; color: var(--ink); }
.brief { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 12px; background: var(--sunk); color: var(--muted); font-size: 16px; line-height: 1.6; }
.brief span { font: 500 12px/18px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.evidence { margin-top: 8px; }
.did { list-style: none; padding: 0; display: flex; flex-direction: column; }
.did li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--rule); }
.did li:last-child { border-bottom: 1px solid var(--rule); }
.did li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .75; }
.context { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.more-res { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.sec .say { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: clamp(24px, 3.8vw, 30px); }
.cs + .kitchen { margin-top: 88px; }
main > .wide { margin-top: 24px; }
.next { margin-top: 104px; border-top: 1px solid var(--rule); }
.next-t { font-size: 24px; text-wrap: balance; }
/* home */
.case .hook .go { display: inline-block; font-style: normal; font-family: var(--sans); font-size: .8em; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.case:hover .hook .go { opacity: 1; transform: none; }
.home .case { padding-block: 32px; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .facts > div { flex-direction: row; align-items: baseline; gap: 14px; }
  .facts dt { flex: 0 0 64px; }
  .sec { padding-top: 64px; }
}


/* ---------- version 6: version 3's Figma-file playfulness, quieter, in the narrow column ---------- */
:root { --hl: #fff1b8; --edge: #24262b; --sticky: #fff4c2; --sticky-ink: #2a2b2f; }
:root[data-theme="dark"] { --hl: rgb(255 214 77 / .26); --edge: #5a5c66; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hl: rgb(255 214 77 / .26); --edge: #5a5c66; } }

/* selection handles, size badge and cursors come back on case pages */
.hero .hd, .fr .hd { display: inline; }
.hero .hd i, .fr .hd i {
  position: absolute; z-index: 2; width: 8px; height: 8px; background: var(--bg);
  border: 1.5px solid var(--select); pointer-events: none;
}
.hero .hd i:nth-child(1), .fr .hd i:nth-child(1) { left: -5px; top: -5px; }
.hero .hd i:nth-child(2), .fr .hd i:nth-child(2) { right: -5px; top: -5px; }
.hero .hd i:nth-child(3), .fr .hd i:nth-child(3) { left: -5px; bottom: -5px; }
.hero .hd i:nth-child(4), .fr .hd i:nth-child(4) { right: -5px; bottom: -5px; }
.hero .dim {
  display: block; position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%); z-index: 3;
  padding: 0 5px; border-radius: 3px; background: #6347e6; color: #ffffff; font: 500 10.5px/16px var(--sans); white-space: nowrap;
}
.hero .dim:empty { display: none; }
.hero .cur, .fr .cur { display: block; position: absolute; z-index: 4; left: calc(100% - 12px); top: calc(100% - 8px); pointer-events: none; }
.fr .mp-me { --me: #069afc; color: var(--me); }
.fr .mp-me b { background: var(--me); color: #ffffff; }
.hero .mp-guest b { color: #ffffff; background: #6347e6; }
.hero .mp-guest { color: #6347e6; }

/* the hero picture is a selected Figma frame with its name above it */
.hero .frame { overflow: visible; border-radius: 0; box-shadow: none; background: transparent; margin-top: 18px; }
.hero .frame .clip { overflow: hidden; background: #ffffff; box-shadow: 0 0 0 1px var(--rule); }
.hero .frame.sel { outline: 1.5px solid var(--select); outline-offset: 0; }
.hero .frame::before {
  content: attr(data-name); position: absolute; left: 0; bottom: calc(100% + 6px);
  font: 500 12px/16px var(--sans); color: var(--select-ink);
}

/* the 30-second summary as four sticky notes on the canvas */
.notes { gap: 22px; }
.note {
  padding: 16px 18px 18px; border: 0.667px solid var(--edge); border-radius: 8px; background: var(--surface);
  box-shadow: 2px 2px 0 var(--edge); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.note:nth-child(odd) { transform: rotate(-0.6deg); }
.note:nth-child(even) { transform: rotate(0.5deg); }
.note:hover { transform: rotate(0) translateY(-3px); }
.note p { font-size: 15.5px; }
.note.res { background: var(--sticky); color: var(--sticky-ink); border-color: #24262b; box-shadow: 2px 2px 0 #24262b; }
.note.res h2 { color: #5e626b; }
.note.res .big { color: var(--sticky-ink); }

/* brief and problem side by side, the found one selected, with the hand-drawn arrow between */
.stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-block: 34px 46px; }
.fr { position: relative; border-radius: 0; font-size: 15.5px; line-height: 1.6; }
.fr-label { position: absolute; left: 0; bottom: calc(100% + 6px); margin: 0; font: 500 12px/16px var(--sans); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.fr-found { box-shadow: none; outline: 1.5px solid var(--select); }
.fr-found .fr-label { color: var(--select-ink); }
.fr-arrow {
  display: block; position: absolute; z-index: 3; left: 50%; top: calc(100% - 18px); width: 150px; height: auto; max-width: none;
  transform: translateX(-50%) rotate(180deg); pointer-events: none; opacity: .85;
}
:root[data-theme="dark"] .fr-arrow { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fr-arrow { filter: invert(1); } }

/* highlighter, hand-drawn cards */
mark { background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 0 / 100% 100%; padding: 2px 0; }
.js mark { background-size: 0% 100%; }
.js mark.in { background-size: 100% 100%; }
.note-card, .okr { border: 0.667px solid var(--edge); border-radius: 8px; box-shadow: 2px 2px 0 var(--edge); }
.metric .big { background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 80% / 100% 38%; padding-inline: 3px; }
.row-h h2 { display: inline-block; padding-bottom: 4px; border-bottom: 3px solid var(--ink); }

@media (max-width: 640px) {
  .stage { grid-template-columns: 1fr; gap: 40px; }
  .fr-arrow { display: none; }
  .notes { gap: 16px; }
  .hero .cur, .fr .cur { left: auto; right: 4px; }
}

/* ---------- Design Kitchen pictures settle in as they reach the screen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ld {
    opacity: 0; transform: translateY(14px) scale(.985);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .95s cubic-bezier(.2, .7, .2, 1);
  }
  .ld.in { opacity: 1; transform: none; }
  .ld.ld-quiet { transform: none; transition: opacity .6s ease; }
}
@media (prefers-reduced-motion: reduce) { .note:nth-child(n) { transform: none; } }

/* ---------- simple previous / next at the end of a case ---------- */
.pager {
  width: var(--col); margin: 96px auto 0; padding-block: 28px 72px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.pn { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-decoration: none; color: var(--ink); font: 400 19px/1.35 var(--serif); }
.pn span { font: 400 13px/20px var(--sans); color: var(--muted); transition: color .2s; }
.pn.nxt { text-align: right; align-items: flex-end; }
.pn:hover span { color: var(--accent); }
.pn:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); }
@media (max-width: 480px) { .pn { font-size: 17px; } }

/* ---------- Jeton: final UI board, a Figma canvas like the Design Kitchen ---------- */
.ui-board {
  padding: 0 clamp(20px, 8.6%, 110px) clamp(40px, 6vw, 72px);
  display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 8px;
}
.ui-head { display: flex; align-items: center; gap: 16px; }
.ui-head img { width: 40px; height: 40px; }
.ui-head b { display: block; font: 500 24px/1.3 "Jost", var(--sans); color: #383d44; }
.ui-head span { font: 400 15px/1.4 "Inter", var(--sans); color: #000000; }
.ui-tag {
  position: relative; align-self: flex-start; margin: 6px 0 0 8px; padding: 10px 14px;
  border: 2px solid #947efb; font: 500 19px/1.4 "Jost", var(--sans); color: #5e626b;
}
.ui-tag i { position: absolute; width: 12px; height: 12px; background: #ffffff; border: 1.5px solid #947efb; }
.ui-tag i:nth-of-type(1) { left: -8px; top: -8px; } .ui-tag i:nth-of-type(2) { right: -8px; top: -8px; }
.ui-tag i:nth-of-type(3) { left: -8px; bottom: -8px; } .ui-tag i:nth-of-type(4) { right: -8px; bottom: -8px; }
.ui-row { display: grid; gap: clamp(20px, 3vw, 36px); align-items: start; }
.ui-a { grid-template-columns: minmax(0, 1280fr) minmax(0, 400fr); }
.ui-b { grid-template-columns: 1fr 1fr; }
.ui-shot { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ui-shot figcaption { font: 500 12px/16px "Inter", var(--sans); color: #6c6f79; transition: color .2s; }
.ui-shot img {
  display: block; width: 100%; height: auto; border-radius: 6px; background: #ffffff;
  box-shadow: 0 0 0 1px rgb(36 43 48 / .12), 0 10px 28px rgb(36 43 48 / .10); transition: box-shadow .2s;
}
.ui-shot:hover figcaption { color: #6347e6; }
.ui-shot:hover img { box-shadow: 0 0 0 1.5px #947efb, 0 10px 28px rgb(36 43 48 / .10); }
.ui-note { max-width: 34em; font: 400 15px/1.55 "Inter", var(--sans); color: rgb(36 36 36 / .9); }
@media (max-width: 720px) {
  .ui-a, .ui-b { grid-template-columns: 1fr; }
  .ui-a .ui-shot:last-child { width: min(260px, 70%); }
}

/* ---------- hover on every picture in the Design Kitchen: the Figma selection outline ---------- */
.kitchen .it.img img, .ui-shot img { transition: box-shadow .2s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.kitchen .it.img:hover { z-index: 5; }
.kitchen .it.img:hover img {
  box-shadow: 0 0 0 1.5px #947efb, 0 12px 30px rgb(36 43 48 / .14);
  transform: translateY(-2px);
}
.ui-shot:hover img { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .kitchen .it.img:hover img, .ui-shot:hover img { transform: none; } }

/* ---------- highlighter in dark mode: a soft lavender instead of muddy yellow ---------- */
:root[data-theme="dark"] { --hl: rgb(148 126 251 / .30); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hl: rgb(148 126 251 / .30); } }

/* ---------- onboarding user flow, drawn like a Figma flow on the kitchen canvas ---------- */
.uflow {
  width: 100%; margin: 4px 0 0; padding: 26px 22px 22px; border-radius: 14px; background: #f6f6f6; color: #242b30;
  box-shadow: 0 0 0 1px var(--rule); display: flex; flex-direction: column; gap: 18px;
  background-image: radial-gradient(rgb(36 43 48 / .10) 1px, transparent 1px); background-size: 16px 16px;
}
.uf-tag {
  position: relative; align-self: flex-start; margin: 0 0 4px 6px; padding: 6px 10px;
  border: 1.5px solid #947efb; background: #ffffff; font: 500 14px/1.3 "Jost", var(--sans); color: #5e626b;
}
.uf-tag i { position: absolute; width: 8px; height: 8px; background: #ffffff; border: 1.5px solid #947efb; }
.uf-tag i:nth-of-type(1) { left: -5px; top: -5px; } .uf-tag i:nth-of-type(2) { right: -5px; top: -5px; }
.uf-tag i:nth-of-type(3) { left: -5px; bottom: -5px; } .uf-tag i:nth-of-type(4) { right: -5px; bottom: -5px; }
.uf-lane { display: flex; flex-direction: column; gap: 8px; }
.uf-name { font: 500 11.5px/16px "Inter", var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #6c6f79; }
.uf-track { list-style: none; margin: 0; padding: 14px 0 6px; display: flex; align-items: center; }
.uf-node {
  position: relative; flex: 1 1 0; min-width: 0; padding: 10px 8px; text-align: center;
  background: #ffffff; border: 1.333px solid #242b30; border-radius: 10px; box-shadow: 1.5px 1.5px 0 #242b30;
  font: 400 13px/1.3 "Inter", var(--sans); color: #242b30;
}
.uf-node.start { border-radius: 999px; }
.uf-node.end { border-radius: 999px; font-weight: 500; }
.uf-node.drop { border-style: dashed; background: #fff1ef; color: #b42318; border-color: #c2412d; box-shadow: none; }
.uf-node.ok { background: #e7f6ee; color: #145c3d; border-color: #1f7a4d; box-shadow: 1.5px 1.5px 0 #1f7a4d; }
.uf-node.new { border: 2px solid #947efb; box-shadow: 2px 2px 0 #6347e6; font-weight: 600; color: #3c2db3; }
.uf-node.new .hd i { position: absolute; width: 7px; height: 7px; background: #ffffff; border: 1.5px solid #947efb; }
.uf-node.new .hd i:nth-child(1) { left: -5px; top: -5px; } .uf-node.new .hd i:nth-child(2) { right: -5px; top: -5px; }
.uf-node.new .hd i:nth-child(3) { left: -5px; bottom: -5px; } .uf-node.new .hd i:nth-child(4) { right: -5px; bottom: -5px; }
.uf-node.new .hd { display: inline; }
.uf-badge {
  position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); white-space: nowrap;
  padding: 1px 6px; border-radius: 3px; background: #6347e6; color: #ffffff; font: 500 10.5px/16px "Inter", var(--sans);
}
.uf-arr { position: relative; flex: 0 0 22px; height: 1.5px; background: #242b30; margin: 0 2px; }
.uf-arr::after {
  content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 6px solid #242b30; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.uf-note { font: 400 13.5px/1.5 "Inter", var(--sans); color: #5e626b; }
@media (max-width: 560px) {
  .uf-track { flex-direction: column; align-items: stretch; padding-top: 6px; }
  .uf-node { flex: none; }
  .uf-node.new { margin-top: 12px; }
  .uf-arr { flex: 0 0 18px; width: 1.5px; height: 18px; align-self: center; margin: 2px 0; }
  .uf-arr::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%);
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid #242b30; border-bottom: 0; }
}

/* ---------- the result note in dark mode: soft lavender instead of yellow ---------- */
:root[data-theme="dark"] .note.res { background: #2b2647; color: #ece9ff; border-color: #a594ff; box-shadow: 2px 2px 0 #a594ff; }
:root[data-theme="dark"] .note.res h2 { color: #c9c0ff; }
:root[data-theme="dark"] .note.res .big { color: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note.res { background: #2b2647; color: #ece9ff; border-color: #a594ff; box-shadow: 2px 2px 0 #a594ff; }
  :root:not([data-theme="light"]) .note.res h2 { color: #c9c0ff; } :root:not([data-theme="light"]) .note.res .big { color: #ffffff; } }

/* ---------- live site link ---------- */
.meta a.live { color: var(--ink); text-underline-offset: 3px; }
.meta a.live:hover { color: var(--accent); }

/* ---------- three phones in a row (EKOS final UI) ---------- */
.ui-c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ui-shot.ph img { border-radius: 16px; background: transparent; }
@media (max-width: 720px) { .ui-c { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===================================================================== v7: revision brief */

/* visually hidden, still read by screen readers */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* skip link: visible on focus */
.skip { position: fixed; z-index: 100; left: 12px; top: -60px; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 500 15px/22px var(--sans); text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* focus rings, clearly visible in both themes */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* comfortable targets for standalone controls */
.theme { width: 44px; height: 44px; margin-right: -14px; }
.copy { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.bar-nav a { padding: 11px 10px; }
.mail { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.mail:hover { text-decoration-color: var(--ink); }
.hello-links a { padding-block: 10px; }

/* decorations: visible, but never in the way */
.hd, .dim, .cur, .mp, .ek-cursor, .fr-arrow, .cv > .it.arrow, .cv > .it.deco, .uf-tag i, .ui-tag i, .tag i { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .ek-cursor, .ek-cursor * , .thumb img, .theme span, mark { transition: none !important; animation: none !important; }
  .case:hover .thumb img { transform: none; }
}
@media (max-width: 560px) { .hero .cur { display: none; } }

/* home: featured, more, earlier */
.home .case { align-items: start; }
.home .hook { font-size: 24px; }
.desc { font: 400 16px/1.55 var(--sans); color: var(--text); max-width: 30em; }
.badge { align-self: flex-start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--ink); font: 500 13px/20px var(--sans); letter-spacing: 0.01em; }
.stat { font-size: 14.5px; color: var(--muted); }
.sec-more { margin-top: 72px; }
.more-work .case { grid-template-columns: minmax(0, 1fr) minmax(0, 200px); }
.more-work .hook { font-size: 21px; }
.archive { list-style: none; padding: 0; margin: 0; }
.archive li { border-bottom: 1px solid var(--rule); }
.archive a { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2px 20px; padding: 18px 0; text-decoration: none; color: var(--ink); }
.archive .a-l { grid-row: span 2; font: 500 13px/24px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.archive .a-t { font: 400 19px/1.35 var(--serif); }
.archive .a-d { font: 400 15px/1.55 var(--sans); color: var(--muted); }
.archive a:hover .a-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 560px) {
  .more-work .case { grid-template-columns: 1fr; }
  .archive a { grid-template-columns: 1fr; }
  .archive .a-l { grid-row: auto; }
}

/* case opening: stage badge and contents */
.hero .badge { margin-top: 2px; }
.notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }
.toc { width: var(--col); margin: 44px auto 0; padding: 18px 20px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule); }
.toc-h { font: 500 13px/20px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.toc a { display: inline-block; padding: 8px 10px 8px 0; margin-right: 8px; font: 400 15px/22px var(--sans); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.toc a:hover { text-decoration-color: var(--ink); }
.row, .kitchen { scroll-margin-top: 24px; }

/* evidence labels */
.metric .kind, .kind-h { font: 500 13px/20px var(--sans); letter-spacing: 0.04em; color: var(--muted); }
.kind-h { text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }

/* the options table in Reports */
.tbl-wrap { width: 100%; overflow-x: auto; }
.opt { width: 100%; border-collapse: collapse; font: 400 15px/1.5 var(--sans); color: var(--text); }
.opt caption { text-align: left; padding-bottom: 10px; font: 500 13px/20px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.opt th, .opt td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--rule); }
.opt thead th { font: 500 13px/20px var(--sans); color: var(--muted); border-top: 0; }
.opt tbody th { font-weight: 500; color: var(--ink); width: 34%; }
.opt .pick-row th, .opt .pick-row td { background: var(--tint); }
.opt .pick-row th { padding-left: 10px; }
.chosen { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--ink); font: 500 12px/18px var(--sans); }

/* Design explorations heading (was a <b>) */
.kh-h { display: block; font: 500 calc(28 * var(--px)) / 1.5 var(--kd); letter-spacing: -0.02em; color: var(--kslate); }
@media (max-width: 760px) { .kh-h { font-size: 22px; } }

/* readable small captions */
.ui-shot figcaption { font-size: 13.5px; line-height: 20px; color: #5d606a; }

/* image inspection: a real button on each detailed screenshot */
.zoomable { position: relative; }
.zoom {
  position: absolute; z-index: 4; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 10px; background: rgb(29 31 36 / .78); color: #ffffff; cursor: zoom-in;
  opacity: 0; transition: opacity .15s;
}
.zoom svg { width: 18px; height: 18px; }
.zoomable:hover .zoom, .zoom:focus-visible { opacity: 1; }
@media (hover: none) { .zoom { opacity: .9; } }
.zoom:focus-visible { outline: 2.5px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 5px #5a45d6; }
.zoomable img { cursor: zoom-in; }
.hero .frame .zoom { top: 12px; right: 12px; }
@media (prefers-reduced-motion: reduce) { .zoom { transition: none; } }

.lb { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: transparent; }
.lb::backdrop { background: rgb(12 13 16 / .95); }
.lb-in { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 24px; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; overflow: auto; }
.lb img { display: block; max-width: min(1600px, 100%); height: auto; background: #ffffff; border-radius: 6px; }
.lb figcaption { max-width: 60em; font: 400 15px/1.5 var(--sans); color: #ececf0; text-align: center; }
.lb-x { position: absolute; top: 12px; right: 12px; min-width: 44px; min-height: 44px; padding: 10px 16px; border: 1px solid rgb(255 255 255 / .4); border-radius: 999px; background: #1d1f24; color: #ffffff; font: 500 15px/20px var(--sans); cursor: pointer; }
.lb-x:focus-visible { outline: 2.5px solid #ffffff; outline-offset: 3px; }

/* screenshots keep their own colours in dark mode */
.kitchen img, .ui-shot img, .frame img, .thumb img { filter: none; }
.uf-name { font-size: 13px; }
.okr-o span, .chosen { font-size: 13px; }

/* ---------- "On this page" on the right, like the v4 case studies ---------- */
.toc ol { flex-direction: row; }
@media (min-width: 1180px) {
  .toc {
    position: fixed; z-index: 20; top: 140px; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0;
    left: calc(50% + var(--col) / 2 + 56px); width: min(210px, calc(50vw - var(--col) / 2 - 88px));
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .35s, transform .35s, visibility 0s .35s;
  }
  .toc.show { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s, visibility 0s; }
  .toc-h { margin-bottom: 14px; text-transform: none; letter-spacing: 0; font: 400 14px/20px var(--sans); }
  .toc ol { display: block; }
  .toc a {
    display: block; margin: 0; padding: 7px 0 7px 16px; border-left: 1px solid var(--rule);
    font: 400 14.5px/21px var(--sans); color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s;
  }
  .toc a:hover { color: var(--ink); }
  .toc a[aria-current] { color: var(--ink); font-weight: 500; border-left: 2px solid var(--ink); padding-left: 15px; }
}
@media (min-width: 1180px) and (prefers-reduced-motion: reduce) { .toc, .toc.show { transition: none; transform: none; } }

.not-found { width: var(--col); margin-inline: auto; padding-block: clamp(72px, 14vw, 160px) 96px; }
.not-found h1 { max-width: 12em; margin-block: 24px; font: 400 clamp(36px, 7vw, 64px)/1.12 var(--serif); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.not-found > p:not(.eyebrow) { max-width: 31em; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 36px; font: 500 15px/24px var(--sans); }
.not-found-home { display: inline-flex; align-items: center; gap: 24px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; }
.not-found-home:hover { border-color: var(--accent); color: var(--accent); }
