/* markobera.com — white paper, hairline grid, one electric blue. */
:root {
  --paper: #ffffff;
  --ink: #0a0a0c;
  --ink-2: #33343a;
  --muted: #8a8b92;
  --rule: #e4e5ea;
  --rule-strong: #0a0a0c;
  --tint: #f4f5f8;
  --accent: #2b2bff;
  --serif: "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- top bar: one floating black pill */
.bar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 5;
  display: flex; justify-content: center; padding: 12px var(--gutter) 0; pointer-events: none;
}
.bar__pill {
  pointer-events: auto; width: 100%; max-width: 980px;
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px;
  border-radius: 999px; background: rgba(10, 10, 12, 0.92); color: #fff;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -12px rgba(10, 10, 12, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.bar .brand { color: #fff; margin-right: auto; text-decoration: none; }
.bar .brand:hover { color: #fff; }
.bar__nav { display: flex; gap: 2px; }
.bar__nav a {
  position: relative; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, 0.62);
  transition: color .25s, background-color .25s;
}
.bar__nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.bar__nav a.is-on { color: #fff; }
.bar__nav a.is-on::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.bar__lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font: 500 11px/1 var(--mono); letter-spacing: .06em; }
.bar__lang > * { padding: 7px 9px; border-radius: 999px; text-decoration: none; color: rgba(255, 255, 255, 0.55); }
.bar__lang a:hover { color: #fff; }
.bar__lang [aria-current] { background: #fff; color: var(--ink); }
.bar__cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font: 500 13px/1 var(--sans); white-space: nowrap;
  transition: background-color .25s;
}
.bar__cta i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--accent); font-style: normal; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.bar__cta:hover { color: #fff; background: #1a1ae0; }
.bar__cta:hover i { transform: rotate(-45deg); }
@media (max-width: 860px) { .bar__nav { display: none; } }
@media (max-width: 420px) { .bar__cta span { display: none; } .bar__cta { padding: 5px; } .bar__pill { padding-left: 14px; } }


/* ---------- masthead */
.mast { padding-block: clamp(40px, 8vw, 96px) clamp(8px, 2vw, 16px); }
.mast__line {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule-strong);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
.mast__name {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font: 400 clamp(64px, 14vw, 188px)/0.86 var(--serif);
  letter-spacing: -0.045em;
}
.lede {
  max-width: 34ch; margin: 0;
  font: 400 clamp(22px, 2.6vw, 32px)/1.3 var(--serif);
  letter-spacing: -0.01em; color: var(--ink);
}
.avail { margin: 28px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; margin-right: 8px; vertical-align: 1px; }

/* ---------- sections */
.block { padding-block: clamp(48px, 7vw, 88px) 0; }
.sec {
  margin: 0 0 28px; padding-top: 10px; border-top: 1px solid var(--rule-strong);
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}
h3 { font: 500 22px/1.2 var(--serif); letter-spacing: -0.01em; margin: 0 0 8px; }

/* ---------- featured */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--rule);
}
.feature:first-of-type { padding-top: 0; }
.feature h3 { font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px; }
.feature h3 a { text-decoration: none; }
.feature p { color: var(--ink-2); }
.kicker { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.kicker .mono { color: var(--accent); margin-right: 6px; }
.status { font-size: 12px; margin: 0 0 14px; color: var(--ink); }
.more { display: inline-block; margin-top: 18px; font-weight: 500; font-size: 15px; }
.feature__shot { display: block; }
.feature__shot:hover .shot img { transform: scale(1.015); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature__shot { order: -1; }
}

/* ---------- screenshots */
.shot {
  margin: 0; border: 1px solid var(--rule); background: var(--tint);
  overflow: hidden; aspect-ratio: 16 / 10;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.shot--empty { display: grid; place-items: center; text-align: center; color: var(--muted); font: 400 13px/1.5 var(--mono);
  background: repeating-linear-gradient(135deg, var(--tint) 0 12px, #fff 12px 24px); }
.shot--empty b { font: 500 22px/1.4 var(--serif); color: var(--ink); }
.shot--wide { aspect-ratio: 16 / 9; margin-top: clamp(28px, 4vw, 48px); }

/* ---------- figures */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule-strong); }
.figs div { padding: 16px 16px 4px 0; }
.figs div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.figs dt { font: 400 clamp(34px, 4.4vw, 56px)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.figs dd { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.figs--small { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.figs--small dt { font-size: 34px; }
@media (max-width: 720px) {
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figs div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- columns */
.cols4, .cols3 { display: grid; gap: 28px clamp(20px, 3vw, 40px); }
.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols4 > div, .cols3 > div { border-top: 1px solid var(--rule); padding-top: 14px; }
.cols4 p, .cols3 p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.cols4 .mono.accent { font-size: 12px; margin-bottom: 10px; }
.upcoming { margin-top: 40px; }
.upcoming > div { border-top-color: var(--accent); }
@media (max-width: 960px) { .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols4, .cols3 { grid-template-columns: 1fr; } }

/* ---------- about */
.about__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.portrait { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--rule); background: var(--tint); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__text p { font: 400 clamp(19px, 1.9vw, 23px)/1.45 var(--serif); margin: 0 0 18px; max-width: 40ch; }
.about__text p:first-child::first-letter { float: left; font-size: 3.4em; line-height: 0.85; padding: 6px 8px 0 0; color: var(--accent); }
@media (max-width: 720px) { .about__grid { grid-template-columns: 1fr; } .portrait { max-width: 320px; } }

/* ---------- contact */
.contact__lead { margin: 0 0 8px; color: var(--muted); }
.contact__mail {
  display: inline-block; font: 400 clamp(28px, 6vw, 80px)/1.05 var(--serif); letter-spacing: -0.035em;
  text-decoration: none; border-bottom: 2px solid var(--ink); margin-bottom: 20px; word-break: break-word;
}
.contact__mail:hover { border-color: var(--accent); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(64px, 9vw, 120px); padding-block: 18px 32px;
  border-top: 1px solid var(--rule-strong); font: 400 12px/1.5 var(--mono); color: var(--muted);
}

/* ---------- case study */
.case__head { padding-block: clamp(28px, 5vw, 56px) clamp(28px, 4vw, 44px); }
.case__head h1 { font: 400 clamp(52px, 10vw, 128px)/0.9 var(--serif); letter-spacing: -0.045em; margin: 0 0 24px; }
.case__head .lede { max-width: 40ch; }
.case__head > p:first-child { margin: 0 0 clamp(24px, 4vw, 44px); color: var(--muted); }
.case__head > p:first-child a { text-decoration: none; color: var(--ink); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: clamp(28px, 4vw, 44px) 0 0; }
.meta div { border-top: 1px solid var(--rule); padding: 10px 16px 10px 0; }
.meta dt { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 14px; }

.prose { margin-top: clamp(40px, 6vw, 72px); }
.prose .row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 4vw, 56px); padding-block: 28px; border-top: 1px solid var(--rule); }
.prose h2 { font: 500 clamp(22px, 2.4vw, 28px)/1.15 var(--serif); letter-spacing: -0.015em; margin: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 64ch; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; }
.prose li { margin-bottom: 10px; }
.prose b { color: var(--ink); font-weight: 600; }
.prose code { font: 14px var(--mono); background: var(--tint); padding: 1px 5px; }
@media (max-width: 720px) { .prose .row { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.split > div { padding: 16px 20px 8px 0; }
.split > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.split h3 { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.split > div:nth-child(3) h3 { color: var(--accent); }
.split ul { list-style: none; margin: 0; padding: 0; }
.split li { font-size: 15px; line-height: 1.5; color: var(--ink-2); padding: 10px 0; border-top: 1px solid var(--rule); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-strong); margin-top: 20px; }
}

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.gfig { margin: 0; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

.nextcase a { display: inline-block; font: 400 clamp(36px, 6vw, 72px)/1 var(--serif); letter-spacing: -0.035em; text-decoration: none; margin-top: 8px; }

/* ---------- motion (quiet) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shot img { transition: none; }
}

/* ======================================================================
   Instrument panel layer (formerly the "2046" edition). Hairline grid, corner brackets, one electric blue.
   ====================================================================== */
body {
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgba(10,10,12,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,12,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
}
::selection { background: var(--accent); color: #fff; }

.brand { font: 500 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
/* The six stripes from the 1996 edition, kept as the mark. */
.brand::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: linear-gradient(#61bb46 0 16.66%, #fdb827 16.66% 33.33%, #f5821f 33.33% 50%, #e03a3e 50% 66.66%, #963d97 66.66% 83.33%, #009ddc 83.33%);
}

.mast__line { border-bottom: 1px solid var(--rule); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.mast__line span::before { content: "▸ "; color: var(--accent); }
.clock { font-variant-numeric: tabular-nums; }
.mast__name {
  font-weight: 200; letter-spacing: -0.065em; line-height: .82;
  font-size: clamp(72px, 16vw, 230px);
}
.mast__name span { display: inline-block; }
.lede { font-family: var(--sans); font-weight: 300; letter-spacing: -0.02em; max-width: 30ch; }
.avail { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.dot { border-radius: 50%; box-shadow: 0 0 0 0 rgba(43,43,255,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43,43,255,0); } 100% { box-shadow: 0 0 0 0 rgba(43,43,255,0); } }

/* numbered section headers */
main { counter-reset: sec; }
.sec { border-top-color: var(--rule); color: var(--ink); counter-increment: sec; display: flex; gap: 14px; align-items: center; }
.sec::before { content: counter(sec, decimal-leading-zero) " /"; color: var(--accent); }
.sec::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(to right, var(--rule) 0 4px, transparent 4px 8px); }

h3 { font-weight: 400; letter-spacing: -0.03em; }
.feature h3 { font-weight: 300; letter-spacing: -0.05em; font-size: clamp(36px, 5vw, 64px); }
.kicker .mono { color: var(--accent); }
.status { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.more { text-decoration: none; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--ink); padding: 10px 16px; border-radius: 999px; transition: background .25s, color .25s; }
.more:hover { background: var(--ink); color: #fff; }

/* corner brackets on panels */
.shot, .portrait {
  position: relative; border: 0; border-radius: 4px; overflow: visible; background: var(--tint);
}
.shot img, .portrait img { border-radius: 4px; }
.shot { overflow: hidden; }
.shot::before, .portrait::before {
  content: ""; position: absolute; inset: -8px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--ink), var(--ink)) top left / 14px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top left / 1px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 14px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 1px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 1px 14px no-repeat;
}
.feature__shot, .shot--wide, .gallery .shot { padding: 0; }
.feature__shot { position: relative; padding: 8px; }
.shot--empty { background: var(--tint); }
.shot--empty span::before { content: "SIGNAL PENDING"; display: block; color: var(--accent); margin-bottom: 6px; letter-spacing: .1em; }
.feature__shot:hover .shot img { transform: scale(1.03); }
.portrait { padding: 0; }
.portrait img { filter: none; }

.figs { border-top-color: var(--rule); }
.figs dt { font-weight: 200; letter-spacing: -0.05em; color: var(--ink); }
.figs dd { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

.cols4 > div, .cols3 > div {
  border: 1px solid var(--rule); border-radius: 6px; padding: 18px; background: rgba(255,255,255,.8);
  transition: border-color .25s, transform .25s;
}
.cols4 > div:hover, .cols3 > div:hover { border-color: var(--accent); transform: translateY(-2px); }
.upcoming > div { border-style: dashed; border-color: var(--accent); }

.about__text p { font-family: var(--sans); font-weight: 300; letter-spacing: -0.015em; }
.about__text p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
.contact__mail { font-weight: 200; letter-spacing: -0.05em; border-bottom: 1px solid var(--accent); }

.case__head h1 { font-weight: 200; letter-spacing: -0.065em; }
.meta dt { color: var(--accent); }
.prose h2 { font-weight: 400; letter-spacing: -0.03em; }
.prose code { border-radius: 3px; color: var(--accent); }
.split { border-top-color: var(--rule); gap: 12px; }
.split > div { border: 1px solid var(--rule) !important; border-radius: 6px; padding: 16px !important; background: rgba(255,255,255,.85); }
.split > div:nth-child(3) { border-color: var(--accent) !important; }
.nextcase a { font-weight: 200; letter-spacing: -0.05em; }
.foot { border-top-color: var(--rule); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

.js .reveal { transform: translateY(24px); filter: blur(6px); transition: opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1), filter .9s ease; }
.js .reveal.in { transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .js .reveal { filter: none; transform: none; transition: none; }
}

/* ---------- media: phone screens, videos, strong CTA */
.phone { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--rule); background: var(--tint); display: block; }
.vid { margin: 0; }
.vid video { display: block; width: 100%; height: auto; background: var(--tint); }
.vid--phone video { border-radius: 18px; border: 1px solid var(--rule); aspect-ratio: 9 / 16; object-fit: cover; }
.vid--wide video { border: 1px solid var(--rule); border-radius: 4px; aspect-ratio: 16 / 10; object-fit: cover; }
.vid figcaption, .phones figcaption, .gfig figcaption { margin-top: 10px; font: 400 12px/1.45 var(--mono); color: var(--muted); }

.feature__media { min-width: 0; }
.card-media { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 12px; align-items: end; }
.card-media > a { display: block; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.card-media > a:hover { transform: translateY(-4px); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.thumbs .shot::before { display: none; }
/* On phones the card media becomes a swipeable strip. */
@media (max-width: 820px) {
  .card-media {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .card-media::-webkit-scrollbar { display: none; }
  .card-media > * { scroll-snap-align: start; }
}

.cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 26px;
  padding: 14px 14px 14px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 500 15px/1 var(--sans); letter-spacing: -0.01em;
  transition: background .25s, transform .25s cubic-bezier(.16,1,.3,1);
}
.cta i {
  font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.cta:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.cta:hover i { background: #fff; color: var(--accent); transform: translateX(3px); }

/* ---------- case: media wall */
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.phones .vid figcaption { color: var(--accent); }
.phones figure { margin: 0; }
@media (max-width: 640px) {
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* ---------- case: timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0 12px 24px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 19px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.timeline time { font-size: 12px; color: var(--accent); padding-top: 3px; }
.timeline p { margin: 0; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- case: features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat { border: 1px solid var(--rule); border-radius: 6px; padding: 22px; background: rgba(255,255,255,.85); display: grid; gap: 20px; align-content: start; }
.feat--img { grid-template-columns: minmax(0, 1fr) 150px; align-items: start; }
.feat h3 { font-size: 22px; margin-bottom: 10px; }
.feat p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.feat b { color: var(--ink); font-weight: 500; }
.feat .mono.accent { margin-bottom: 8px; font-size: 12px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .feat--img { grid-template-columns: 1fr; } .feat--img .phone { max-width: 200px; } }

/* ---------- readability + project panels (30.09.) */
/* Top line under the bar: was 11px grey, now reads at a glance. */
.mast__line {
  font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--ink);
  padding-bottom: 14px; border-bottom-color: var(--ink);
}
.mast__line span::before { content: "■ "; font-size: 9px; vertical-align: 2px; }
.mast__line .clock { color: var(--accent); }
.lede { font-weight: 400; color: var(--ink); }
.avail { color: var(--ink); }

/* Each featured project is its own panel with a numbered header strip. */
.feature {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--rule); border-radius: 10px; background: #fff;
  padding: 0 clamp(18px, 3vw, 40px) clamp(24px, 3vw, 40px);
  margin-bottom: clamp(28px, 4vw, 56px);
  box-shadow: 0 1px 0 rgba(10,10,12,.04), 0 18px 40px -28px rgba(10,10,12,.25);
  transition: border-color .3s, box-shadow .3s;
}
.feature:first-of-type { padding-top: 0; }
.feature:hover { border-color: rgba(43,43,255,.45); box-shadow: 0 1px 0 rgba(10,10,12,.04), 0 24px 50px -28px rgba(43,43,255,.35); }
.feature__bar {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 0 calc(-1 * clamp(18px, 3vw, 40px)); padding: 12px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid var(--rule); border-radius: 10px 10px 0 0; background: var(--tint);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
}
.feature__bar b { font-weight: 500; color: var(--accent); font-size: 14px; }
.feature__bar span:last-child { color: var(--accent); }
.feature .kicker { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.feature .figs dd { color: var(--ink-2); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
}

/* ---------- index of work: control panel */
.ix {
  position: relative; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(10,10,12,.04), 0 24px 60px -40px rgba(43,43,255,.35);
}
/* a slow scan beam that passes over the panel once it boots */
.ix::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(43,43,255,.07) 70%, rgba(43,43,255,.35) 99%, transparent);
  transform: translateY(-130px); opacity: 0;
}
.ix.on::after { animation: scan 2.4s cubic-bezier(.4,0,.2,1) .2s 1; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-130px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--ix-h, 900px)); } }

.ix__head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 22px; background: var(--ink); color: #fff;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
}
.ix__head span:last-child { color: #9d9dff; }
.caret { display: inline-block; width: 8px; height: 14px; margin-left: 6px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ix__cols, .ix__row {
  display: grid; align-items: center; gap: 18px;
  grid-template-columns: 44px minmax(0, 3.2fr) minmax(0, 2.2fr) minmax(0, 3fr) 28px;
  padding-inline: 22px;
}
.ix__cols { padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ix__cols span:nth-child(3) { display: none; } /* "what it is" lives under the name */

.ix__label {
  display: flex; justify-content: space-between; margin: 0; padding: 18px 22px 10px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
}
.ix__label span:last-child { color: var(--muted); }

.ix__row {
  position: relative; padding-block: 16px; text-decoration: none; color: var(--ink);
  border-top: 1px solid var(--rule); isolation: isolate;
}
/* hover: a blue wash sweeps in from the left, with a laser line underneath */
.ix__row::before, .ix__row::after { content: ""; position: absolute; left: 0; right: 0; transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.ix__row::before { inset-block: 0; z-index: -1; background: linear-gradient(90deg, rgba(43,43,255,.09), rgba(43,43,255,.02) 70%, transparent); }
.ix__row::after { bottom: -1px; height: 1px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ix__row--link:hover::before, .ix__row--link:hover::after, .ix__row--link:focus-visible::before { transform: scaleX(1); }
.ix__row--link:hover { color: var(--ink); }

.ix__no { font-size: 13px; color: var(--muted); transition: color .3s; }
.ix__row--link .ix__no { color: var(--accent); }
.ix__name { display: grid; gap: 3px; min-width: 0; }
.ix__name b { font: 400 clamp(20px, 2vw, 26px)/1.15 var(--sans); letter-spacing: -0.03em; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.ix__name small { font-size: 14px; color: var(--ink-2); transition: transform .45s cubic-bezier(.16,1,.3,1) .03s; }
.ix__row--link:hover .ix__name b, .ix__row--link:hover .ix__name small { transform: translateX(8px); }

.ix__status { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.45; text-transform: uppercase; letter-spacing: .04em; }
.led { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; background: var(--muted); }
.led--live { background: var(--accent); box-shadow: 0 0 0 0 rgba(43,43,255,.55); animation: pulse 2s infinite; }
.led--hold { background: #ff9d1c; box-shadow: 0 0 8px rgba(255,157,28,.7); animation: breathe 2.6s ease-in-out infinite; }
.led--done { background: var(--ink); }
@keyframes breathe { 50% { opacity: .35; } }

.ix__stack { display: flex; flex-wrap: wrap; gap: 6px; }
.ix__stack em {
  font: normal 400 11px/1 var(--mono); padding: 5px 8px; border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink-2); background: #fff; transition: border-color .3s, color .3s;
}
.ix__row--link:hover .ix__stack em { border-color: rgba(43,43,255,.35); color: var(--accent); }

.ix__go {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  border: 1px solid var(--rule); color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .45s cubic-bezier(.16,1,.3,1);
}
.ix__go:empty { visibility: hidden; }
.ix__row--link:hover .ix__go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* boot sequence: rows slide in one after another when the panel reaches the screen */
.js .ix .ix__row, .js .ix .ix__label { opacity: 0; transform: translateX(-12px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
.js .ix.on .ix__row, .js .ix.on .ix__label { opacity: 1; transform: none; }
.js .ix .ix__row { transition-property: opacity, transform, color; }

/* floating preview that follows the cursor (desktop only, built by site.js) */
.ix-peek {
  position: fixed; left: 0; top: 0; z-index: 20; pointer-events: none; margin: 0;
  width: 300px; border-radius: 10px; overflow: hidden; background: var(--tint);
  border: 1px solid rgba(43,43,255,.35); box-shadow: 0 30px 60px -20px rgba(10,10,12,.35), 0 0 0 6px rgba(255,255,255,.7);
  opacity: 0; scale: .8; transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg));
  transition: opacity .3s ease, scale .4s cubic-bezier(.16,1,.3,1);
}
.ix-peek.on { opacity: 1; scale: 1; }
.ix-peek[data-shape="phone"] { width: 190px; }
.ix-peek img { width: 100%; height: auto; display: block; }

@media (max-width: 820px) {
  .ix__cols { display: none; }
  .ix__row { grid-template-columns: 30px minmax(0, 1fr) 28px; row-gap: 10px; padding-inline: 16px; }
  .ix__status, .ix__stack { grid-column: 2 / 3; }
  .ix__go { grid-column: 3; grid-row: 1; }
  .ix__head, .ix__label { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ix::after, .caret, .led { animation: none !important; }
  .js .ix .ix__row, .js .ix .ix__label { opacity: 1; transform: none; transition: none; }
}

/* ---------- masthead: lede beside availability, jobs row underneath */
.mast { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 0; }
.mast__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(24px, 4vw, 64px); align-items: end; }
.mast__grid .lede { max-width: 36ch; }
.mast__grid .avail { margin: 0; justify-self: end; text-align: right; line-height: 2; }
@media (max-width: 820px) {
  .mast__grid { grid-template-columns: 1fr; }
  .mast__grid .avail { justify-self: start; text-align: left; }
}

.figs--top { margin-top: clamp(28px, 4vw, 48px); }
.figs--top dt { font-weight: 200; font-size: clamp(44px, 6vw, 84px); }
.figs--top div:first-child dt { color: var(--accent); }

/* ---------- before the code: one screen + list of jobs, cycles on its own */
.before { margin-top: clamp(28px, 4vw, 48px); }
.before__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap;
  margin: 0 0 12px; padding-top: 10px; border-top: 1px solid var(--ink);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.before__head span:first-child { color: var(--accent); font-weight: 500; }
.before__head span:first-child::before { content: "■ "; font-size: 9px; vertical-align: 2px; }
.before__head span:last-child { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; }
.jobs { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.jobs__screen { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--ink); }
.jobs__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.jobs__clip.is-on { opacity: 1; }
.jobs__still.is-on { animation: stillzoom 3s ease-out both; }
@keyframes stillzoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.jobs__screen .reel__tc { left: 10px; top: 10px; }
.jobs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--rule); }
.jobs__row {
  position: relative; width: 100%; display: grid; grid-template-columns: 40px minmax(140px, 230px) 1fr; align-items: baseline; gap: 4px 16px;
  padding: 13px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--muted);
  font: inherit; text-align: left; cursor: pointer; transition: color .35s;
}
.jobs__row b { font: 300 clamp(20px, 2.2vw, 28px)/1.1 var(--sans); letter-spacing: -0.02em; color: inherit; transition: color .35s; }
.jobs__no { font-size: 11px; }
.jobs__txt { font-size: 15px; line-height: 1.45; }
.jobs__row:hover, .jobs__row.is-on { color: var(--ink); }
.jobs__row.is-on b, .jobs__row.is-on .jobs__no { color: var(--accent); }
.jobs__bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.jobs__row.is-on .jobs__bar { animation: jobfill var(--job-ms, 4200ms) linear forwards; }
.jobs[data-paused] .jobs__row.is-on .jobs__bar { animation: none; transform: scaleX(1); }
@keyframes jobfill { to { transform: scaleX(1); } }
@media (max-width: 820px) {
  .jobs { grid-template-columns: 1fr; }
  .jobs__screen { aspect-ratio: 4 / 5; max-height: 62vh; }
  .jobs__row { grid-template-columns: 32px 1fr; padding: 12px 0; }
  .jobs__txt { grid-column: 2; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .reel__tc::before { animation: none; } .jobs__clip { transition: none; } .jobs__row.is-on .jobs__bar { animation: none; transform: scaleX(1); } }

/* ---------- where I think this is going: Marko's view, big and plain */
.future { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.future li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: clamp(20px, 3vw, 36px) 0; border-bottom: 1px solid var(--rule); }
.future__no { color: var(--accent); font-size: 12px; padding-top: .9em; }
.future p { margin: 0; max-width: 30ch; font: 200 clamp(26px, 3.4vw, 46px)/1.15 var(--sans); letter-spacing: -0.025em; }
@media (max-width: 820px) { .future li { grid-template-columns: 36px 1fr; } }

/* Short line under a section title (Projects). */
.sec__lead { margin: -8px 0 clamp(20px, 3vw, 36px); max-width: 60ch; color: var(--ink-2); font-size: 17px; }
#profile .cols3 p b { font-weight: 500; color: var(--ink); }
.contact__cv { margin: 20px 0 18px; }
.contact__phone { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 4px; }
.contact__phone .cta { margin-top: 0; }
.cta--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* MEF logo in the education card */
.edu-logos { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.edu-logos img { display: block; height: 56px; width: auto; }

/* Bigger menu pill on desktop (Marko: "too small on PC"). */
@media (min-width: 861px) {
  .bar { top: calc(env(safe-area-inset-top, 0px) + 16px); }
  .bar__pill { max-width: 1180px; gap: 12px; padding: 8px 8px 8px 26px; }
  .bar .brand { font-size: 16px; }
  .bar__nav { gap: 4px; }
  .bar__nav a { padding: 13px 18px; font-size: 14px; }
  .bar__lang { font-size: 13px; padding: 4px; }
  .bar__lang > * { padding: 9px 12px; }
  .bar__cta { font-size: 15px; gap: 12px; padding: 6px 6px 6px 22px; }
  .bar__cta i { width: 36px; height: 36px; }
}

/* Experience as its own section (05.10.): bigger clip, each job = title over a short line. */
.before.block { margin-top: 0; }
.jobs { grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.jobs__screen { border-radius: 14px; box-shadow: 0 24px 60px -30px rgba(10, 10, 12, .45); }
.jobs__list { border-top: 1px solid var(--rule-strong); }
.jobs__row { grid-template-columns: 44px 1fr auto; align-items: center; padding: 16px 12px 16px 0; border-radius: 0; transition: color .35s, background-color .35s; }
.jobs__body { display: flex; flex-direction: column; gap: 4px; }
.jobs__row b { font-size: clamp(22px, 2.3vw, 30px); }
.jobs__txt { font-size: 15px; color: var(--ink-2); opacity: .75; transition: opacity .35s; }
.jobs__row:hover .jobs__txt, .jobs__row.is-on .jobs__txt { opacity: 1; }
.jobs__row.is-on { background: linear-gradient(90deg, rgba(43, 43, 255, .06), transparent 70%); }
.jobs__row[data-last] { margin-top: 10px; border-top: 1px dashed var(--rule-strong); }
.jobs__row[data-last] b { font-size: clamp(18px, 1.8vw, 22px); }
.jobs__go { font: 400 18px/1 var(--mono); color: var(--accent); }
@media (max-width: 820px) {
  .jobs__row { grid-template-columns: 32px 1fr auto; padding: 14px 0; }
  .jobs__txt { grid-column: auto; }
}

/* ---------- bio at the top (06.10.): profile card + numbered lines */
.bio { display: grid; grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(16px, 2.5vw, 32px); }
.bio__card { position: relative; margin: 0; }
.bio__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--ink); box-shadow: 0 30px 70px -36px rgba(10, 10, 12, .55); }
.bio__photo img { width: 100%; height: 100%; object-fit: cover; animation: bioZoom 14s ease-in-out infinite alternate; }
@keyframes bioZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.bio__photo::before, .bio__photo::after { content: ""; position: absolute; z-index: 2; width: 26px; height: 26px; border: 2px solid #fff; opacity: .9; }
.bio__photo::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.bio__photo::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.bio__scan { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(43, 43, 255, .0) 40%, rgba(43, 43, 255, .35) 50%, rgba(43, 43, 255, 0) 60%, transparent 100%);
  background-size: 100% 240%; animation: bioScan 2.4s cubic-bezier(.6,0,.2,1) .4s 1 both; mix-blend-mode: screen; }
@keyframes bioScan { from { background-position: 0 120%; } to { background-position: 0 -120%; } }
.bio__status { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px;
  background: rgba(10, 10, 12, .55); color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); }
.bio__status .dot { background: #3dff8a; box-shadow: 0 0 10px #3dff8a; border-radius: 50%; animation: bioPulse 1.8s ease-in-out infinite; }
@keyframes bioPulse { 50% { opacity: .35; } }
.bio__tags { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; }
.bio__tags span { padding: 7px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .04em; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px) saturate(1.5); -webkit-backdrop-filter: blur(12px) saturate(1.5);
  animation: bioIn .7s cubic-bezier(.16,1,.3,1) both; }
.bio__tags span:nth-child(2) { animation-delay: .1s; } .bio__tags span:nth-child(3) { animation-delay: .2s; } .bio__tags span:nth-child(4) { animation-delay: .3s; }
@keyframes bioIn { from { opacity: 0; transform: translateY(8px); } }
.bio__lead { margin: 0 0 clamp(18px, 2.4vw, 30px); max-width: 26ch; font: 300 clamp(26px, 3.1vw, 44px)/1.15 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.bio__lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.bio__lines li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule);
  animation: bioIn .8s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(.35s + var(--i) * .12s); }
.bio__lines li > span { color: var(--accent); font-size: 12px; padding-top: .35em; }
.bio__lines p { margin: 0; max-width: 58ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--ink-2); }
.bio__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: clamp(18px, 2.4vw, 28px); }
.bio__cta .avail { margin: 0; }
@media (max-width: 820px) {
  .bio { grid-template-columns: 1fr; }
  .bio__card { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .bio__photo img, .bio__scan, .bio__tags span, .bio__lines li, .bio__status .dot { animation: none; } }

/* Text card in the jobs screen for a job without a clip yet (the bank). */
.jobs__card { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(20px, 2.4vw, 32px); color: #fff;
  background: radial-gradient(120% 80% at 80% 0%, rgba(43, 43, 255, .55), transparent 60%), linear-gradient(160deg, #15151c, #0a0a0e 70%); }
.jobs__card::before { content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; }
.jobs__card > * { position: relative; }
.jobs__card .mono { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .1em; }
.jobs__card b { font: 200 clamp(34px, 3.6vw, 52px)/1 var(--sans); letter-spacing: -0.04em; }
.jobs__card small { font: 400 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); }
/* Plain photo in the bio (06.10.): no corners, no zoom. */
.bio__photo::before, .bio__photo::after { content: none; }
.bio__photo img { animation: none; }

/* Section titles as real headings (06.10., Marko: "too small"). Number stays small above the title. */
.sec { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 clamp(14px, 2vw, 22px); padding-top: 14px;
  border-top: 1px solid var(--rule-strong); text-transform: none; letter-spacing: 0; font: inherit; }
.sec::before { font: 500 12px/1 var(--mono); letter-spacing: .1em; }
.sec::after { content: none; }
.sec span { font: 300 clamp(36px, 5vw, 68px)/1.02 var(--sans); letter-spacing: -0.035em; color: var(--ink); }
.case .sec span { font-size: clamp(30px, 3.6vw, 48px); }
.sec__lead { margin: 0 0 clamp(24px, 3.4vw, 44px); max-width: 52ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); }
/* Question above each bio answer (06.10.) */
.bio .bio__q { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bio__lines li > div > p:last-child { margin: 0; max-width: 58ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--ink-2); }
/* Availability line and the e-mail button on one centred row */
.bio__cta { justify-content: flex-start; align-items: center; gap: 14px 28px; }
.bio__cta .avail { display: inline-flex; align-items: center; margin: 0; line-height: 1.3; text-align: left; }
.bio__cta .avail .dot { flex: none; }
/* Phones: one column for the jobs (the 06.10 desktop grid above must not leak to mobile). */
@media (max-width: 820px) {
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .jobs__list, .jobs__body { min-width: 0; }
  .jobs__screen { max-height: 62vh; aspect-ratio: 4 / 5; }
}

/* Tech stack (inside Education and skills) */
.stack { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--rule-strong); padding-top: 14px; }
.stack h3 { margin: 0 0 18px; }
.stack__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--rule); }
.stack__row > p { margin: 6px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tk { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 7px 12px 7px 9px; border: 1px solid var(--rule); background: var(--paper);
  font-size: 14px; line-height: 1.25; color: var(--ink); transition: border-color .2s, color .2s; }
.tk svg { width: 18px; height: 18px; flex: none; fill: currentColor; color: var(--ink-2); transition: color .2s; }
.tk__letter { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border: 1px solid currentColor;
  font: 600 9px/1 var(--mono); color: var(--ink-2); }
.tk > span:last-child { display: flex; flex-direction: column; }
.tk small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.tk:hover { border-color: var(--accent); }
.tk:hover svg, .tk:hover .tk__letter { color: var(--accent); }
@media (max-width: 720px) {
  .stack__row { grid-template-columns: 1fr; gap: 10px; }
  .stack__row > p { margin: 0; }
  .tk { font-size: 13px; min-height: 44px; }
}


/* Text-only project card (heybera, 07.11.2026): no images on the home page, they live on the case page. */
.feature--text { grid-template-columns: 1fr; }
.feature--text .feature__text { max-width: 760px; }

/* One screenshot per row (heybera case page, 07.11.2026): screens shown big. */
.gallery.gallery--1 { grid-template-columns: 1fr; }
