/* ursol.pro — 2026 design. One stylesheet; js/site-2026-c.js adds the interactive parts. */
:root {
  --bg: #FBFBFA;
  --band: #FFFFFF;
  --ink: #111315;
  --body: #3D4248;
  --label: #5A6067;
  --rule: #E2E3DF;
  --accent: #B23A0B;
  --accent-tint: #FFF1EA;
  --teal: #0F766E;
  --teal-tint: #E6F2F0;
  --radius: 10px;
  --display: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --placeholder: #E9EAE6;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --max: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

p, h1, h2, h3 { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: var(--mono);
  color: var(--label);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--label);
  text-transform: uppercase;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 10;
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand,
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.brand { font-weight: 600; font-size: 16px; }
.nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  font-size: 15px;
}
.nav .nav-cv { font-weight: 500; color: var(--accent); }
.nav .nav-cv:hover { color: var(--ink); }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-end;
  padding-top: 96px;
  padding-bottom: 72px;
}
.hero-text { flex: 999 1 560px; min-width: 0; }
.hero .eyebrow { margin-bottom: 24px; font-weight: 400; }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 820px;
}
.lede {
  margin-top: 32px;
  font-size: clamp(18px, 2.2vw, 20px);
  color: var(--body);
  max-width: 680px;
}
.actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-secondary:hover { border-color: var(--accent); }
.btn-link {
  border-color: transparent;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portrait { flex: 1 1 240px; max-width: 280px; }
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  background: var(--placeholder);
}

/* Results band */
.band {
  background: var(--band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.figure {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.figure-label { margin-top: 6px; color: var(--body); }
.results .source {
  grid-column: 1 / -1;
  font-size: 13px;
}

/* Work */
.work-intro { padding-top: 96px; padding-bottom: 24px; }
.work-intro h2 { margin-bottom: 8px; }
.work-intro .statement {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 760px;
}

.case {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--ink);
  scroll-margin-top: 16px;
}
.case:last-of-type { padding-bottom: 96px; }
.case-head { flex: 1 1 280px; max-width: 320px; }
.case-num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.case-head h3 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.case-meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--label);
}
.case-body { flex: 999 1 520px; min-width: 0; }
.case-body p { color: var(--body); }
.case-body .k { margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.case-body strong { font-weight: 600; color: var(--ink); }

.facets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 40px;
}
.facet-wide {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.case-stack { display: flex; flex-direction: column; gap: 32px; }
.case-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--placeholder);
}

.list-rows > div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.list-rows > div:first-child { padding-top: 0; }
.list-rows > div:last-child { padding-bottom: 0; border-bottom: 0; }
.list-rows .k { margin-bottom: 4px; }

.case-body > p + p { margin-top: 20px; }

/* Experience */
.experience .wrap { padding-top: 80px; padding-bottom: 80px; }
.experience h2 { margin-bottom: 32px; }
.xp { list-style: none; margin: 0; padding: 0; }
.xp li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.xp li:last-child { border-bottom: 1px solid var(--rule); }
.xp .when {
  flex: 0 0 180px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--label);
}
.xp .what { flex: 999 1 400px; min-width: 0; }
.xp .what strong { font-weight: 600; }

/* Contact */
.contact { padding-top: 96px; padding-bottom: 64px; }
.contact .statement {
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 760px;
}
.contact-links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
  font-size: 18px;
}
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
.copyright { margin-top: 64px; font-size: 13px; }

@media (max-width: 640px) {
  .hero { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .portrait { max-width: 220px; }
  .btn-link { padding: 0 4px; }
  .work-intro { padding-top: 64px; }
  .case { padding-top: 40px; padding-bottom: 40px; }
  .case:last-of-type { padding-bottom: 64px; }
  .case-head { max-width: none; }
  .experience .wrap { padding-top: 56px; padding-bottom: 56px; }
  .xp .when { flex-basis: 100%; }
  .contact { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.case-media { margin: 0; }

/* Range strip (after hero): What I bring + proof links */
.range { padding-bottom: 64px; }
.range h2 { margin-bottom: 16px; }
.range .xp li { padding: 16px 0; }
.range .xp .when { flex-basis: 220px; text-transform: uppercase; letter-spacing: 0.04em; }
.range-note { margin-top: 16px; font-size: 13px; }
@media (max-width: 640px) { .range .xp .when { flex-basis: 100%; } }

/* ---- 2026-b: personality layer ---- */
h1, h3, .figure, .statement, .stats-mini strong { font-family: var(--display); }
.hero h1 { font-weight: 700; letter-spacing: -0.03em; }

/* Link underline slide */
.case-body a, .contact-links a, .btn-link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.btn-link { border-radius: 0; padding: 0 2px; margin-left: 10px; }

/* Icons */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.case-meta span { display: block; }
.contact-links a { gap: 10px; }
.contact-links .ic { color: var(--accent); }

/* Case number badge */
.case-num span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-weight: 500; }
.case:nth-of-type(even) .case-num span { background: var(--teal-tint); color: var(--teal); }

/* Portrait + image frames */
.portrait img { border-radius: var(--radius); }
.frame, .gallery li, .icon-grid img { overflow: hidden; border-radius: var(--radius); }
.case-media img { border-radius: 0; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Logos strip */
.logos { padding-bottom: 56px; }
.logos .eyebrow { margin-bottom: 16px; }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.logos img { height: 32px; width: auto; max-width: 160px; object-fit: contain; filter: brightness(0); opacity: .6; }
.logos li:hover img { opacity: 1; }

/* Azur / earlier work */
.funnel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--label) !important; }
.funnel span:not([aria-hidden]) { padding: 6px 14px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.stats-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats-mini li { padding: 16px; border-radius: var(--radius); background: var(--teal-tint); }
.stats-mini strong { display: block; font-size: 24px; font-weight: 700; color: var(--teal); letter-spacing: -0.01em; }
.stats-mini span { font-size: 14px; color: var(--body); }
.bullets { margin: 0; padding-left: 20px; color: var(--body); }
.bullets li + li { margin-top: 8px; }
.bullets li::marker { color: var(--accent); }
.icon-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 16px 12px; overflow: visible !important; border-radius: 0 !important; }
.icon-grid li { text-align: center; font-size: 12px; color: var(--label); line-height: 1.3; }
.icon-grid img { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 14px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; color: var(--label); background: var(--band); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.card { padding: 16px; border-radius: var(--radius); background: var(--accent-tint); }
.card .k { color: var(--accent); }
.card p { font-size: 15px; }

/* Reveal on scroll (JS adds .motion to <html> unless reduced motion or ?static) */
.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .logos ul { gap: 16px 32px; }
  .logos img { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .motion .reveal { opacity: 1; transform: none; }
  .step-panel, .shot { animation: none !important; transition: none !important; }
}
.logos .logo-color img { filter: grayscale(100%); height: 40px; }

/* ---- R&D pipeline (no JS: ordered list; JS: tablist + one panel) ---- */
.pipeline { padding-top: 24px; border-top: 1px solid var(--rule); }
.steps { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; }
.step-name { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.step-n { display: inline-block; min-width: 1.6em; font-family: var(--mono); font-size: 14px; color: var(--accent); }
.steps dl { margin: 0; }
.steps dl > div + div { margin-top: 6px; }
.steps dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--label); }
.steps dd { margin: 0; color: var(--body); }

.step-tabs { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.step-note { margin: 16px 0 0; font-size: 15px; color: var(--body); }
.step-tab {
  position: relative; font: inherit; font-size: 15px; font-weight: 500; text-align: left;
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 4px;
  background: var(--band); color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.step-tab:hover { border-color: var(--accent); }
.step-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-tab[aria-selected="true"] .step-n { color: #fff; }
.step-tab:focus-visible, .step-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.steps.is-tabs { display: block; margin-top: 0; }
.steps.is-tabs .step-panel { padding: 20px 0 0; animation: step-in .2s var(--ease); }
.steps.is-tabs .step-name { display: none; }
.steps.is-tabs dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; }
.steps.is-tabs dl > div + div { margin-top: 0; }
@keyframes step-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .step-tabs { grid-template-columns: 1fr; }
  .steps.is-tabs dl { grid-template-columns: 1fr; }
}

/* ---- Experience: rows link to their case ---- */
.xp .what a { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.xp .what a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---- Screenshot enlarge (buttons + dialog injected by JS) ---- */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery li:has(.zoom:focus-visible) { overflow: visible; }
.shot { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--band); color: var(--ink); }
.shot[open] { animation: shot-in .2s var(--ease); }
.shot::backdrop { background: rgba(17, 19, 21, .72); }
.shot figure { margin: 0; }
.shot img { width: 100%; height: auto; max-height: calc(100vh - 120px); object-fit: contain; background: var(--ink); }
.shot figcaption { padding: 12px 16px; padding-right: 110px; color: var(--body); font-size: 15px; }
.shot-close { position: absolute; right: 12px; bottom: 6px; min-height: 40px; padding: 0 16px; font: inherit; font-size: 15px; border: 1px solid var(--ink); border-radius: 4px; background: var(--band); color: var(--ink); cursor: pointer; }
.shot-close:hover { border-color: var(--accent); color: var(--accent); }
.shot-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes shot-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---- Azur portfolio scatter: icon cloud + funnel strip. Drift only with .motion (off for reduced motion / ?static) ---- */
.scatter-wrap { display: flex; flex-direction: column; gap: 12px; }
.scatter {
  position: relative; height: 400px; overflow: hidden;
  border-radius: 12px; background: var(--teal-tint);
}
.scatter .ico {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--size); height: var(--size); max-width: none;
  transform: translate(-50%, -50%);
  border-radius: 22%; border: 1px solid var(--rule); background: var(--band);
}
.scatter .featured { z-index: 2; }
.scatter .secondary { z-index: 1; opacity: .75; }
.scatter .faded { opacity: .2; filter: blur(1px); }
.motion .scatter .ico { animation: drift 7s ease-in-out infinite alternate; animation-delay: calc(var(--delay) * -1); }
.motion .scatter .faded { animation-duration: 9s; }
@keyframes drift {
  from { transform: translate(-50%, calc(-50% - 6px)); }
  to   { transform: translate(-50%, calc(-50% + 6px)); }
}
@media (max-width: 640px) {
  .scatter { height: 340px; }
  .scatter :is(.featured, .secondary) { left: var(--mx, var(--x)); top: var(--my, var(--y)); }
  .scatter .featured { width: calc(var(--size) * .74); height: calc(var(--size) * .74); }
  .scatter .secondary { width: calc(var(--size) * .82); height: calc(var(--size) * .82); }
  .scatter .faded { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scatter .ico { animation: none !important; } }

/* ---- Case standfirst: one-line lead at the top of each case body ---- */
.case-body .standfirst { grid-column: 1 / -1; margin: 0; font-size: 20px; line-height: 1.45; color: var(--ink); max-width: 62ch; }
.list-rows > .standfirst { padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.list-rows > .standfirst + div { padding-top: 20px; }
@media (max-width: 640px) { .case-body .standfirst { font-size: 18px; } }

/* ---- Video click-to-load (no JS: a link to YouTube; JS: button -> nocookie iframe) ---- */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.video-link, .video-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; text-decoration: none; background-image: none !important; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-link:hover img, .video-play:hover img { opacity: 1; }
.video-label {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px 8px 12px; border-radius: 4px;
  background: var(--band); color: var(--ink); font: 500 15px/1.3 var(--sans); text-align: left;
}
.video-label::before { content: ""; flex: none; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--accent); }
.video-play:focus-visible, .video-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

/* ---- Galleries: grid on desktop, scroll-snap strip on mobile ---- */
.gallery .cap { margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--label); }
.gallery-portrait { grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
.gallery-portrait li { overflow: visible; border-radius: 0; }
.gallery-portrait .zoom, .gallery-portrait > li > img { overflow: hidden; border-radius: var(--radius); }
.gallery-portrait img { aspect-ratio: 9 / 16; object-position: top; }
.gallery-one { grid-template-columns: 1fr; margin-top: 16px; max-width: 360px; }
@media (max-width: 640px) {
  .gallery:not(.gallery-one) {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); padding-bottom: 6px;
  }
  .gallery:not(.gallery-one) > li { flex: 0 0 78%; scroll-snap-align: start; }
  .gallery-portrait > li { flex-basis: 44% !important; }
}

/* ---- What I bring: "See:" proof links; target row flashes for 1.2s (JS) ---- */
.proof { margin-top: 4px; font-size: 15px; color: var(--label); }
.xp .proof a { display: inline-block; padding: 4px 0; color: var(--ink); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.xp .proof a:hover { color: var(--accent); }
@media (max-width: 640px) { .xp .proof a { padding: 10px 0; min-height: 44px; } }
#rnd-role, #rnd-business, #rnd-pipeline, #mttf2-role, #mttf2-decisions, #lava-escape { scroll-margin-top: 24px; }
.flash { border-radius: 6px; animation: flash 1.2s ease-out; }
.flash:focus { outline: none; }
@keyframes flash { from { background-color: var(--accent-tint); box-shadow: 0 0 0 10px var(--accent-tint); } to { background-color: transparent; box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none !important; background-color: var(--accent-tint); box-shadow: 0 0 0 10px var(--accent-tint); } }
