/* Shared styles for the work (case study) pages. */
:root{
  --bg:#eef0f7;
  --card:#eef0f7;
  --ink:#3d3a52;
  --sub:#5f5b75;
  --peach:#ffc9a8;
  --mint:#aef1d6;
  --lav:#c9bbf5;
  --sky:#aedcf9;
  --rose:#f6c6e0;
  --accent:#435dd5;
  --accent-2:#6340d9;
  --shadow-d: rgba(61,58,82,0.08);
  --shadow-l: rgba(255,255,255,0.45);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
html, body{overflow-x:clip; width:100%;} /* clip, not hidden: hidden would stop the sticky header from sticking */
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Manrope', sans-serif;
  line-height:1.7;
}
img{max-width:100%; height:auto; display:block;}
a{color:var(--accent);}
a:hover{color:var(--accent-2);}
.wrap{max-width:1160px; margin:0 auto; padding:0 32px;}

.clay{
  background:var(--card);
  border-radius:18px;
  box-shadow: 6px 6px 16px var(--shadow-d), -6px -6px 16px var(--shadow-l);
}

/* Header */
header{position:sticky; top:0; z-index:50; background:var(--bg); box-shadow:0 4px 14px var(--shadow-d); line-height:1.6;}
.header-inner{
  display:flex; justify-content:space-between; align-items:center;
  max-width:1160px; margin:0 auto; padding:18px 32px; position:relative;
}
.logo{font-family:'Raleway', sans-serif; font-weight:700; font-size:1.25rem; color:var(--ink); display:flex; align-items:center; gap:18px; text-decoration:none;}
.logo:hover{color:var(--ink);}
.logo-badge{width:40px; height:40px; display:block; border-radius:22%; box-shadow:2px 2px 6px var(--shadow-d), -2px -2px 6px var(--shadow-l);}
header nav ul{display:flex; gap:10px; list-style:none;}
header nav a{
  color:var(--ink); text-decoration:none; font-weight:600; font-size:0.9rem;
  padding:10px 18px; border-radius:10px; display:inline-block; transition:box-shadow .2s;
}
header nav a:hover, header nav a[aria-current="page"]{color:var(--ink); box-shadow:inset 3px 3px 7px var(--shadow-d), inset -3px -3px 7px var(--shadow-l);}
.nav-toggle{display:none;}
.hamburger{display:none; flex-direction:column; justify-content:center; gap:5px; width:40px; height:40px; cursor:pointer;}
.hamburger span{width:22px; height:2px; background:var(--ink); border-radius:2px; transition:transform .2s, opacity .2s;}
.nav-toggle:checked ~ .hamburger span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle:checked ~ .hamburger span:nth-child(2){opacity:0;}
.nav-toggle:checked ~ .hamburger span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* Hero */
.cs-hero{padding:64px 0 40px;}
.breadcrumb{display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:0.85rem; font-weight:600; color:var(--sub); margin-bottom:22px;}
.breadcrumb a{color:var(--sub); text-decoration:none;}
.breadcrumb a:hover{color:var(--accent);}
.cs-tag{display:inline-block; background:var(--mint); color:var(--ink); padding:5px 14px; border-radius:10px; font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.5px;}
.cs-hero h1{
  font-family:'Raleway', sans-serif; font-weight:700;
  font-size:clamp(2.2rem, 4.6vw, 3.4rem); line-height:1.12; max-width:900px; margin-bottom:20px;
}
.cs-lede{font-size:clamp(1.08rem, 1.6vw, 1.3rem); color:var(--sub); max-width:760px; line-height:1.6;}
.cs-hero-split{display:grid; grid-template-columns:minmax(0, 1fr) 240px; gap:56px; align-items:start;}
.cs-glance{margin-top:36px; background:#fff; border-radius:18px; padding:8px 26px; box-shadow:8px 8px 22px var(--shadow-d), -8px -8px 22px var(--shadow-l); font-size:0.95rem; line-height:1.55;}
.cs-glance div{display:grid; grid-template-columns:140px minmax(0, 1fr); gap:20px; padding:14px 0; border-top:1px solid rgba(61,58,82,0.08);}
.cs-glance div:first-child{border-top:0;}
.cs-glance dt{font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; color:var(--sub); padding-top:3px;}
.cs-glance dd{color:var(--ink);}
.cs-hero-wide{margin-top:48px;}
.cs-hero-wide .cs-hero-media{width:100%;}
.cs-hero-media{background:#fff; border-radius:22px; padding:clamp(18px, 3vw, 36px); box-shadow:8px 8px 22px var(--shadow-d), -8px -8px 22px var(--shadow-l);}
.cs-hero-media img{margin:0 auto;}
/* Laptop mockup with a vector screen laid over the photo so the screen text stays crisp; the screen's position is a fraction of the 1469x896 laptop image */
.cs-hero-media .laptop{position:relative; max-width:1469px; margin:0 auto;}
.cs-hero-media .laptop img{width:100%;}
.cs-hero-media .laptop .laptop-screen{position:absolute; left:13.274%; top:12.165%; width:70.728%; height:72.768%;}

/* "On this page" list, shown beside the title */
.cs-toc{padding-top:6px;}
.cs-toc p{font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; color:var(--sub); margin-bottom:12px;}
.cs-toc ol{list-style:none; border-left:2px solid rgba(61,58,82,0.1);}
.cs-toc a{display:block; padding:6px 0 6px 16px; margin-left:-2px; border-left:2px solid transparent; color:var(--sub); text-decoration:none; font-size:0.9rem; font-weight:600; line-height:1.4;}
.cs-toc a:hover{color:var(--ink);}
.cs-toc a.active{color:var(--accent); border-left-color:var(--accent);}
/* Reading column */
.cs-layout{padding:32px 0 80px;}
.cs-body{max-width:760px; min-width:0; margin:0 auto;}

.cs-section{padding-top:24px; margin-bottom:44px; scroll-margin-top:96px;}
.cs-section h2{
  font-family:'Raleway', sans-serif; font-weight:700; font-size:clamp(1.6rem, 3vw, 2rem); line-height:1.2;
  margin-bottom:18px; display:flex; align-items:center; gap:14px;
}
.cs-body h3{font-family:'Raleway', sans-serif; font-weight:700; font-size:1.2rem; margin:30px 0 10px;}
.cs-body p{margin-bottom:16px;}
.cs-body strong{font-weight:700;}
.cs-body ul{margin:0 0 20px; padding-left:0; list-style:none;}
.cs-body ul li{position:relative; padding-left:22px; margin-bottom:8px;}
.cs-body ul li::before{content:""; position:absolute; left:4px; top:0.72em; width:7px; height:7px; border-radius:50%; background:var(--accent-2); opacity:0.55;}
.cs-body ul.pill-list{display:flex; flex-wrap:wrap; gap:10px;}
.cs-body ul.pill-list li{padding:6px 14px; margin:0; border-radius:10px; background:var(--card); font-size:0.88rem; font-weight:600; box-shadow:3px 3px 8px var(--shadow-d), -3px -3px 8px var(--shadow-l);}
.cs-body ul.pill-list li::before{display:none;}

/* Figures */
.cs-figure{margin:30px 0 34px;}
.cs-figure .frame{position:relative; border-radius:16px; overflow:hidden; background:#fff; box-shadow:6px 6px 16px var(--shadow-d), -6px -6px 16px var(--shadow-l);}
.cs-figure.bare .frame{background:none; box-shadow:none; border-radius:0;}
.cs-figure figcaption{margin-top:12px; font-size:0.88rem; color:var(--sub); line-height:1.5;}
.zoom{display:block; cursor:zoom-in;}
.cs-figure.wide{margin-left:-48px; margin-right:-48px;}

/* Tall screenshots: show the top of the page and let people open the full image */
.cs-figure.shot .frame{max-height:620px;}
.cs-figure.shot .frame::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:140px; pointer-events:none;
  background:linear-gradient(to bottom, rgba(238,240,247,0), rgba(238,240,247,0.96));
}
.view-full{
  position:absolute; left:50%; bottom:20px; transform:translateX(-50%); z-index:2;
  font-family:'Manrope', sans-serif; font-weight:600; font-size:0.9rem; color:#fff; white-space:nowrap;
  padding:11px 22px; border-radius:12px; border:none; cursor:pointer; text-decoration:none;
  background:linear-gradient(145deg, #8558e3, #6a48e0 60%, #435dd5);
  box-shadow:4px 4px 10px var(--shadow-d);
}
.view-full:hover{color:#fff; transform:translateX(-50%) translateY(-2px);}

/* Galleries */
.cs-gallery{columns:2; column-gap:18px; margin:30px 0 34px;}
.cs-gallery.photos{columns:3;}
.cs-gallery .frame{display:inline-block; width:100%; vertical-align:top; break-inside:avoid; margin-bottom:18px; border-radius:14px; overflow:hidden; background:#fff; box-shadow:5px 5px 14px var(--shadow-d), -5px -5px 14px var(--shadow-l);}
.cs-gallery .frame img{transition:transform .3s ease;}
.cs-gallery .frame:hover img{transform:scale(1.02);}

/* Quotes and statements */
.cs-quote{margin:34px 0; padding:32px 36px; display:flex; gap:24px; align-items:center;}
.cs-quote img{width:96px; height:96px; border-radius:50%; object-fit:cover; flex:none;}
.cs-quote p{font-family:'Raleway', sans-serif; font-size:1.25rem; font-weight:600; line-height:1.45; margin-bottom:12px;}
.cs-quote cite{font-style:normal; font-size:0.9rem; color:var(--sub); line-height:1.5; display:block;}
.cs-statement{
  margin:40px 0; padding:4px 0 4px 26px; border-left:4px solid var(--lav);
  font-family:'Raleway', sans-serif; font-weight:700; font-size:clamp(1.35rem, 2.6vw, 1.75rem); line-height:1.35;
}

/* Video */
.cs-video{margin:30px 0 34px;}
.cs-video .ratio{position:relative; aspect-ratio:16/9; border-radius:16px; overflow:hidden; background:#1d1b2b; box-shadow:6px 6px 16px var(--shadow-d), -6px -6px 16px var(--shadow-l);}
.cs-video iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
.cs-video .placeholder{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#e9e6ff; text-align:center; padding:20px;}
.cs-video .placeholder strong{font-family:'Raleway', sans-serif; font-size:1.1rem;}
.cs-video .placeholder span{font-size:0.85rem; opacity:0.75;}
.cs-video figcaption{margin-top:12px; font-size:0.88rem; color:var(--sub);}

/* Buttons */
.btn-row{display:flex; gap:16px; flex-wrap:wrap; margin:24px 0 30px;}
.btn{
  font-family:'Manrope', sans-serif; font-weight:600; font-size:0.95rem;
  padding:14px 26px; border-radius:12px; text-decoration:none; display:inline-block;
  transition:transform .15s, box-shadow .15s; border:none; cursor:pointer;
}
.btn-fill{background:linear-gradient(145deg, #8558e3, #6a48e0 60%, #435dd5); color:#fff; box-shadow:4px 4px 10px var(--shadow-d), -2px -2px 7px var(--shadow-l);}
.btn-fill:hover{color:#fff;}
.btn-ghost{background:var(--bg); color:var(--ink); box-shadow:4px 4px 10px var(--shadow-d), -4px -4px 10px var(--shadow-l);}
.btn:hover{transform:translateY(-3px);}

/* Next project */
.cs-next{padding:0 0 80px;}
.cs-next .wrap{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
.cs-next a:only-child{grid-column:2;}
.cs-next a.cs-prev{justify-content:flex-start; text-align:left;}
.cs-next a:not(.cs-prev){text-align:right;}
.cs-next a{display:flex; justify-content:space-between; align-items:center; gap:24px; padding:34px 40px; text-decoration:none; color:var(--ink); transition:transform .2s;}
.cs-next a:hover{transform:translateY(-4px); color:var(--ink);}
.cs-next .label{font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; color:var(--sub); display:block; margin-bottom:6px;}
.cs-next .title{font-family:'Raleway', sans-serif; font-weight:700; font-size:clamp(1.3rem, 2.6vw, 1.8rem); line-height:1.2;}
.cs-next .arrow{font-size:1.8rem; color:var(--accent-2); flex:none;}

/* Lightbox */
.lightbox{border:none; padding:0; background:transparent; max-width:100vw; max-height:100vh; width:100vw; height:100vh;}
.lightbox::backdrop{background:rgba(29,27,43,0.86);}
.lightbox .lb-scroll{width:100%; height:100%; overflow:auto; display:flex; justify-content:center; align-items:flex-start; padding:56px 24px 24px;}
.lightbox img{max-width:min(1400px, 100%); height:auto; border-radius:10px; margin:auto;}
.lightbox .lb-close{
  position:fixed; top:14px; right:18px; width:42px; height:42px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(255,255,255,0.16); color:#fff; font-size:26px; line-height:1;
}
/* The X is drawn rather than typed, so it sits exactly in the center of the circle in any font */
.lightbox .lb-close{padding:0; font-size:0;}
.lightbox .lb-close::before, .lightbox .lb-close::after{content:""; position:absolute; left:50%; top:50%; width:18px; height:2.5px; border-radius:2px; background:#fff; transform:translate(-50%,-50%) rotate(45deg);}
.lightbox .lb-close::after{transform:translate(-50%,-50%) rotate(-45deg);}
.lightbox .lb-close:hover{background:rgba(255,255,255,0.3);}
.lightbox .lb-count{position:fixed; top:22px; left:24px; margin:0; color:rgba(255,255,255,0.85); font-size:0.85rem; font-weight:600;}
.lightbox .lb-nav{
  position:fixed; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(255,255,255,0.16); color:#fff; font-size:34px; line-height:1; padding-bottom:4px; z-index:1;
}
.lightbox .lb-nav:hover{background:rgba(255,255,255,0.3);}
.lightbox .lb-close:focus-visible, .lightbox .lb-nav:focus-visible{outline:2px solid #c9bbf5; outline-offset:2px;}
.lightbox .lb-prev{left:18px;}
.lightbox .lb-next{right:18px;}
.lightbox.single .lb-nav, .lightbox.single .lb-count{display:none;}
.lightbox:not(.single) .lb-scroll{padding-left:86px; padding-right:86px;}
@media (max-width:700px){
  .lightbox .lb-nav{top:auto; bottom:18px; transform:none; width:46px; height:46px;}
  .lightbox .lb-prev{left:calc(50% - 56px);}
  .lightbox .lb-next{right:calc(50% - 56px);}
  .lightbox:not(.single) .lb-scroll{padding:56px 12px 84px;}
}

footer{text-align:center; padding:30px; color:var(--sub); font-size:0.85rem;}

@media (max-width:1000px){
  .cs-hero-split{grid-template-columns:minmax(0, 1fr); gap:28px;}
  .cs-hero-wide{margin-top:36px;}
  .cs-figure.wide{margin-left:0; margin-right:0;}
}
@media (max-width:900px){
  .hamburger{display:flex;}
  /* The checkbox stays in the keyboard order (Space opens the menu); only its box is hidden */
  .nav-toggle{display:block; position:absolute; right:32px; width:1px; height:1px; padding:0; margin:0; opacity:0;}
  .nav-toggle:focus-visible ~ .hamburger{outline:3px solid #5b3fc4; outline-offset:3px; border-radius:8px;}
  .nav-toggle:not(:checked) ~ nav{visibility:hidden;}
  header nav{position:absolute; top:100%; left:0; right:0; background:var(--bg); box-shadow:0 10px 20px var(--shadow-d); max-height:0; overflow:hidden; transition:max-height .3s ease, visibility .3s;}
  header nav ul{flex-direction:column; gap:4px; padding:10px 32px 24px;}
  header nav a{display:block; padding:14px 20px; font-size:1rem;}
  .nav-toggle:checked ~ nav{max-height:320px;}
}
@media (max-width:700px){
  .cs-gallery, .cs-gallery.photos{columns:1;}
  .cs-quote{flex-direction:column; align-items:flex-start; padding:26px 22px;}
  .cs-figure.shot .frame{max-height:460px;}
  .cs-next a{padding:26px 22px;}
  .cs-next .wrap{grid-template-columns:1fr; gap:16px;}
  .cs-next a:only-child{grid-column:auto;}
}
@media (max-width:480px){
  .wrap{padding:0 20px;}
  .cs-glance{padding:4px 20px;}
  .cs-glance div{grid-template-columns:1fr; gap:4px;}
  .header-inner{padding:16px 20px;}
  .cs-hero{padding:40px 0 28px;}
  .cs-hero-media{border-radius:16px;}
  .btn-row{flex-direction:column; align-items:stretch;}
  .btn{text-align:center;}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .cs-gallery .frame img, .cs-next a, .btn{transition:none;}
}
.cs-body ul ul{margin:8px 0 4px;}

/* Image placeholders: stand-ins for images still to be added */
.cs-placeholder{
  aspect-ratio:16/10; border:2px dashed rgba(124,92,240,0.45); border-radius:16px;
  /* Soft blue-to-lavender wash from the site palette */
  background:linear-gradient(120deg, rgba(174,220,249,0.6), rgba(201,187,245,0.6));
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  text-align:center; padding:24px; color:var(--ink);
}
.cs-placeholder.wide{aspect-ratio:16/8;}
.cs-placeholder .ph-label{font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; color:var(--accent-2);}
.cs-placeholder strong{font-family:'Raleway', sans-serif; font-size:1.1rem; line-height:1.3;}
.cs-placeholder .ph-note{font-size:0.85rem; color:var(--sub); max-width:380px; line-height:1.5;}
.cs-pair{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:30px 0 34px; align-items:start;}
.cs-pair .cs-figure{margin:0;}
/* Show a taller image at the height set on its frame, trimming from the bottom; the full image still opens on click */
.frame.crop-top img{width:100%; height:100%; object-fit:cover; object-position:top;}
@media (max-width:700px){
  .cs-pair{grid-template-columns:1fr;}
}

/* Interactive sitemap (VCS Hub) */
.sitemap ul{margin:0;}
.sitemap ul li{padding-left:0; margin-bottom:0;}
.sitemap ul li::before{display:none;}
.sitemap .sm-feat{list-style:disc;}
.sitemap{--sm-line:#b9bfd8; background:var(--bg); border-radius:18px; padding:16px; box-shadow:6px 6px 16px var(--shadow-d), -6px -6px 16px var(--shadow-l);}
.sm-title{font-family:'Raleway', sans-serif; font-size:1.3rem; font-weight:700; line-height:1.3; margin:4px 4px 14px;}
.sm-toolbar{display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; margin-bottom:14px;}
.sm-seg{display:inline-flex; background:#e1e4f1; border-radius:12px; padding:3px;}
.sm-seg button, .sm-roles button, .sm-zoom button{font:600 0.85rem 'Manrope', sans-serif; color:var(--ink); border:none; cursor:pointer;}
.sm-seg button{background:transparent; padding:6px 16px; border-radius:9px;}
.sm-seg button[aria-pressed="true"]{background:#fff; box-shadow:0 1px 4px var(--shadow-d);}
.sm-roles{display:flex; flex-wrap:wrap; align-items:center; gap:6px;}
.sm-roles-label{font-size:0.82rem; color:var(--sub); margin-right:2px;}
.sm-roles button{display:inline-flex; align-items:center; gap:6px; background:#fff; padding:5px 11px; border-radius:999px; box-shadow:inset 0 0 0 1px #dfe2f0;}
.sm-roles button[aria-pressed="true"]{background:var(--ink); color:#fff; box-shadow:none;}
.sm-shape{flex:none;}

.sm-stage{position:relative;}
.sm-viewport{position:relative; height:min(68vh, 620px); min-height:380px; overflow:hidden; border-radius:12px; background:#f7f8fc; background-image:radial-gradient(#dfe3f1 1px, transparent 1px); background-size:22px 22px; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none;}
.sm-viewport:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
.sm-viewport.is-dragging{cursor:grabbing;}
.sm-svg{display:block; width:100%; height:100%;}
.sm-lines path{fill:none; stroke:var(--sm-line); stroke-width:1.6;}
.sm-node{cursor:pointer;}
.sm-node text{font:600 14px 'Manrope', sans-serif; fill:var(--ink);}
.sm-node text.sm-cat{font:700 16px 'Raleway', sans-serif;}
.sm-node text.sm-count{font:500 12px 'Manrope', sans-serif; fill:#4d6b5f;}
.sm-box{fill:#fff; stroke:#d6daec; stroke-width:1.2;}
.t-root .sm-box{fill:var(--sky); stroke:#8cc5ec;}
.t-category .sm-box{fill:var(--mint); stroke:#7fd8b5;}
.t-series .sm-box, .t-series .sm-stack{fill:#fde9f3; stroke:#e9a9cb;}
.t-dynamic .sm-box{fill:#fff7e3; stroke:#e0b45c; stroke-dasharray:5 4;}
.sm-node:hover .sm-box{stroke:var(--accent); stroke-width:2;}
.sm-node.is-path .sm-box{stroke:var(--accent); stroke-width:2;}
.sm-node.is-selected .sm-box{stroke:var(--accent); stroke-width:3.5;}
.sm-node, .sm-tree li{transition:opacity .2s ease;}
.sm-node.is-dim{opacity:0.18;}

.sm-zoom{position:absolute; right:12px; bottom:12px; display:flex; gap:6px;}
.sm-zoom button{width:38px; height:38px; border-radius:10px; background:#fff; font-size:1.15rem; line-height:1; box-shadow:0 2px 8px rgba(61,58,82,0.14); display:flex; align-items:center; justify-content:center;}
.sm-zoom button[data-zoom="fit"]{font-size:0.75rem;}
.sm-zoom button:hover{color:var(--accent);}
.sm-hint{position:absolute; left:12px; bottom:12px; margin:0; max-width:calc(100% - 210px); font-size:0.78rem; color:var(--sub); background:rgba(255,255,255,0.9); padding:6px 12px; border-radius:999px; pointer-events:none; transition:background .2s, color .2s;}
.sm-hint.is-loud{background:var(--ink); color:#fff;}

.sm-panel{position:absolute; top:12px; right:12px; bottom:62px; width:min(330px, calc(100% - 24px)); overflow:auto; background:#fff; border-radius:14px; padding:20px 22px; box-shadow:0 8px 30px rgba(61,58,82,0.18); font-size:0.9rem; line-height:1.55;}
.sm-panel[hidden]{display:none;}
.sm-panel h3{font-family:'Raleway', sans-serif; font-size:1.25rem; line-height:1.25; margin:4px 30px 8px 0;}
.sm-panel h4{font-size:0.8rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--sub); margin:16px 0 6px;}
.sm-panel p{margin:0 0 8px;}
.sm-close{position:absolute; top:12px; right:12px; width:32px; height:32px; border:none; border-radius:50%; background:#eef0f7; color:var(--ink); font-size:20px; line-height:1; cursor:pointer;}
.sm-crumbs{font-size:0.78rem; color:var(--sub); margin-right:34px !important;}
.sm-type{display:flex; align-items:center; gap:8px; font-size:0.82rem; color:var(--sub);}
.sm-rolelist{list-style:none; display:flex; flex-wrap:wrap; gap:6px 14px; padding:0; margin:0;}
.sm-rolelist li{display:inline-flex; align-items:center; gap:6px; font-size:0.85rem;}
.sm-feat{padding-left:18px; margin:0;}
.sm-feat li{margin:3px 0;}
.sm-note{font-size:0.82rem; color:var(--sub); background:#f3f4fa; padding:8px 10px; border-radius:8px; margin-top:12px !important;}

.sm-legend{list-style:none; display:flex; flex-wrap:wrap; gap:6px 20px; padding:0; margin:12px 4px 0; font-size:0.8rem; color:var(--sub);}
.sm-legend li{display:inline-flex; align-items:center; gap:8px;}
.sm-swatch{display:inline-block; width:22px; height:14px; border-radius:4px; border:1.2px solid #d6daec; background:#fff; flex:none;}
.sm-swatch.t-category{background:var(--mint); border-color:#7fd8b5;}
.sm-swatch.t-series{background:#fde9f3; border-color:#e9a9cb; box-shadow:3px 3px 0 -1px #fde9f3, 3px 3px 0 0 #e9a9cb;}
.sm-swatch.t-dynamic{background:#fff7e3; border:1.5px dashed #e0b45c;}

/* List view */
.sm-list{max-height:min(68vh, 620px); overflow:auto; background:#fff; border-radius:12px; padding:14px 18px;}
.sm-tree, .sm-tree ul{list-style:none; margin:0; padding:0;}
.sm-tree ul{margin-left:12px; padding-left:16px; border-left:1.6px solid #e1e4f1;}
.sm-tree li{margin:2px 0;}
.sm-tree summary, .sm-li-plain{padding:5px 8px; border-radius:8px; font-size:0.92rem;}
.sm-tree summary{cursor:pointer;}
.sm-tree summary:hover{background:#f3f4fa;}
.sm-li-plain{padding-left:25px;}
.li-category > details > summary .sm-li-title, .li-category > .sm-li-plain .sm-li-title{font-family:'Raleway', sans-serif; font-weight:700;}
.sm-li-title{font-weight:600;}
.sm-tag{font-size:0.7rem; font-weight:600; padding:1px 8px; border-radius:999px; margin-left:4px; vertical-align:1px;}
.sm-tag.t-series{background:#fde9f3; color:#9c3f71;}
.sm-tag.t-dynamic{background:#fff1cc; color:#7a5a12;}
.sm-li-body{font-size:0.86rem; line-height:1.55; padding:4px 10px 10px 26px; max-width:620px;}
.sm-li-body h4{font-size:0.74rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--sub); margin:10px 0 4px;}
.sm-li-body p{margin:0 0 6px;}
.sm-li-body ul{border-left:none; margin-left:0;}
.sm-li-body .sm-rolelist{padding-left:0;}
.sm-li-body .sm-feat{padding-left:18px;}
.sm-tree li.is-dim > details > summary, .sm-tree li.is-dim > .sm-li-plain{opacity:0.3;}

/* Full screen */
.sitemap.is-full{position:fixed; inset:0; z-index:1000; border-radius:0; display:flex; flex-direction:column; padding:14px;}
.sitemap:fullscreen{background:var(--bg);}
.sitemap.is-full .sm-stage{flex:1; display:flex;}
.sitemap.is-full .sm-stage[hidden]{display:none;}
.sitemap.is-full .sm-viewport{height:auto; flex:1;}
.sitemap.is-full .sm-list{max-height:none; flex:1;}
html.sm-locked, html.sm-locked body{overflow:hidden;}

@media (max-width:700px){
  .sitemap{padding:12px;}
  .sm-roles-label{width:100%;}
  .sm-viewport{height:62vh;}
  .sm-panel{left:12px; width:auto; top:auto; max-height:60%;}
  .sm-hint{display:none;}
}
@media (prefers-reduced-motion:reduce){ .sm-node, .sm-tree li, .sm-hint{transition:none;} }

/* Password gate (pretend protection; see work.js) */
.cs-gate:not(.is-open) .cs-gate-content{display:none;}
.cs-gate.is-open .cs-gate-box{display:none;}
.cs-gate-content:focus{outline:none;}
.cs-gate-box{margin:30px 0 34px; padding:30px 24px; text-align:center; border-radius:16px; border:2px dashed #c9bbf5; background:linear-gradient(120deg, rgba(174,220,249,0.6), rgba(201,187,245,0.6)); color:var(--accent-2);}
.cs-gate-title{font-family:'Raleway', sans-serif; font-weight:700; font-size:1.1rem; color:var(--ink); margin:8px 0 2px;}
.cs-gate-note{font-size:0.9rem; color:var(--sub); margin:0 0 16px;}
.cs-gate-row{display:flex; justify-content:center; gap:10px; flex-wrap:wrap;}
.cs-gate-row input{font:500 0.95rem 'Manrope', sans-serif; color:var(--ink); padding:11px 16px; border-radius:12px; border:1.5px solid #d6daec; background:#fff; width:min(240px, 100%);}
.cs-gate-row input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(67,93,213,0.18);}
.cs-gate-row .btn{padding:11px 22px; border:none; cursor:pointer;}
.cs-gate-error{font-size:0.85rem; color:#b42318; margin:10px 0 0; min-height:1.2em;}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

/* Visa Assistant prototype card: a CSS miniature of the prototype that links to it */
.proto-card{display:block; color:var(--ink); text-decoration:none; transition:transform .25s ease, box-shadow .25s ease;}
.proto-card:hover{transform:translateY(-3px); color:var(--ink);}
.proto-card:focus-visible{outline:3px solid var(--accent); outline-offset:4px;}
.proto-thumb{position:relative; aspect-ratio:16/9; background:#f5f5f5; overflow:hidden; border-bottom:1px solid #e6e7ef;}
.proto-thumb img{display:block; height:100%; width:auto;}
.proto-thumb i, .proto-thumb b{display:block; height:6px; border-radius:3px; background:#d9dbe3;}
.pt-hdr{position:absolute; left:0; right:0; top:0; height:9%; background:#fff; border-bottom:1px solid #e3e3e3; display:flex; align-items:center; gap:3%; padding:0 2.2%;}
.pt-hdr img{height:42%;}
.pt-hdr i{width:22%; background:#c9d1f4;}
.pt-nav{position:absolute; left:0; top:9%; bottom:0; width:15%; background:#fff; border-right:1px solid #e3e3e3; padding:3% 2%; display:flex; flex-direction:column; gap:9%;}
.pt-nav i:nth-child(2){background:#c9d1f4; width:80%;}
.pt-main{position:absolute; left:18%; top:15%; right:34%; display:flex; flex-direction:column; gap:10px;}
.pt-main b{height:12px; width:38%; background:#b9bccb;}
.pt-main .short{width:60%;}
.pt-main span{display:block; height:30px; border-radius:6px; background:#fff;}
.pt-panel{position:absolute; top:9%; right:0; bottom:0; width:29%; background:#fff; border-left:1px solid #e3e3e3; box-shadow:-6px 0 18px rgba(20,52,203,.08); display:flex; flex-direction:column;}
.pt-tab{position:absolute; left:-12%; top:0; width:12%; height:12%; background:#1434cb; border-radius:5px 0 0 5px;}
.pt-top{height:12%; display:flex; align-items:center; justify-content:center; gap:5%; border-bottom:1px solid #e3e3e3;}
.pt-top img{height:36%;}
.pt-top em{font:600 clamp(7px, 1.2vw, 11px)/1 'Manrope', sans-serif; font-style:normal; color:#1434cb;}
.pt-chat{flex:1; padding:7% 8%; display:flex; flex-direction:column; gap:7px;}
.pt-chat .hi{width:45%; background:#9aa6e6;}
.pt-chat .hi2{width:80%; background:#1434cb; opacity:.75;}
.pt-cards{display:grid; grid-template-columns:1fr 1fr; gap:6%; margin-top:4px;}
.pt-cards span{display:block; aspect-ratio:2/1.1; border:1px solid #dcdcdc; border-radius:5px;}
.pt-chips{display:flex; flex-wrap:wrap; gap:5px; margin-top:4px;}
.pt-chips u{position:relative; display:block; height:9px; width:42%; border:1px solid #1434cb; border-radius:9px;}
.pt-chips u.sel{width:62%; background:#1434cb;}
.pt-ring{position:absolute; left:50%; top:50%; width:22px; height:22px; margin:-11px 0 0 -11px; border-radius:50%; border:2.5px solid #7c3aed; box-shadow:0 0 0 1px #fff, inset 0 0 0 1px #fff;}
.pt-ring::after{content:""; position:absolute; inset:-2.5px; border-radius:50%; border:2.5px solid #9a5cff; animation:pt-pulse 1.6s cubic-bezier(.2,.6,.35,1) 3;}
.proto-card:hover .pt-ring::after{animation-iteration-count:infinite;}
@keyframes pt-pulse{0%{transform:scale(1); opacity:.9;} 100%{transform:scale(2.2); opacity:0;}}
.pt-bubble{margin-top:4px; background:#e5edfc; border-radius:0 7px 7px 7px; padding:7%; display:flex; flex-direction:column; gap:5px;}
.pt-bubble i{background:#b7c6ef;}
.pt-bubble .short{width:55%;}
.pt-input{height:11%; margin:0 6% 6%; border:1px solid #9a9a9a; border-radius:5px;}
.proto-body{padding:24px 26px 28px;}
.proto-tag{display:inline-block; font-size:0.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-2);}
.proto-body h4{font-family:'Raleway', sans-serif; font-weight:700; font-size:1.3rem; margin:6px 0 8px; color:var(--ink);}
.proto-body p{margin:0 0 20px; color:var(--sub); line-height:1.6;}
.proto-body .btn{display:inline-block;}
@media (max-width:640px){
  .pt-main span{height:16px;}
  .pt-ring{width:16px; height:16px; margin:-8px 0 0 -8px;}
}
@media (prefers-reduced-motion:reduce){
  .pt-ring::after{animation:none;}
  .proto-card{transition:none;}
}

/* Low Rider Tarot Studio embed (fun projects) */
.cs-figure.studio .frame{height:clamp(620px, 90vh, 880px);}
.cs-figure.studio iframe{display:block; width:100%; height:100%; border:0;}
@media (max-width:560px){ .cs-figure.studio .frame{height:600px;} }

/* Skills applied: chips under a section heading, named and colored to match the skill groups on the About page */
.cs-body .skills{display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin:20px 0 0; padding:0; list-style:none;}
.cs-body .skills li{margin:0; padding:3px 10px; border-radius:8px; font-size:0.78rem; font-weight:600; line-height:1.5;}
.cs-body .skills li::before{display:none;}
.cs-body .skills li.skills-label{padding:3px 4px 3px 0; background:none; color:var(--sub); font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.6px;}
.cs-body .skills li[data-p="content"]{background:#e3e7fb; color:#2c3a99;}
.cs-body .skills li[data-p="leadership"]{background:#eeeafd; color:#53459f;}
.cs-body .skills li[data-p="impact"]{background:#d9f6ea; color:#1d6248;}
.cs-body .skills li[data-p="design"]{background:#dcf0fc; color:#1b5a83;}

/* Stat citations: highlighted when a home page stat link lands on them */
.stat-cite{border-radius:4px; transition:background-color .6s ease, box-shadow .6s ease; -webkit-box-decoration-break:clone; box-decoration-break:clone;}
.stat-cite.is-lit{background-color:#e4dcfd; box-shadow:0 0 0 4px #e4dcfd;}

/* Content design engagement model (Leading design programs): scale stats, then three tiers on one connecting panel */
.cs-body .eng-model{margin:30px 0 8px;}
.cs-body .eng-stats{display:grid; grid-template-columns:repeat(5,1fr); gap:12px; list-style:none; padding:0; margin:0 0 16px;}
.cs-body .eng-stats li{margin:0; padding:16px 16px 18px; background:#fff; border-radius:16px; font-size:0.82rem; line-height:1.35; color:var(--sub); box-shadow:4px 4px 12px var(--shadow-d), -4px -4px 12px var(--shadow-l);}
.cs-body .eng-stats li::before{display:none;}
.cs-body .eng-stats b{display:block; font-family:'Raleway',sans-serif; font-size:1.9rem; font-weight:800; line-height:1.1; color:var(--ink); margin-bottom:6px;}
.cs-body .eng-stats li.is-us{background:#5b3fc4; color:#fff;}
.cs-body .eng-stats li.is-us b{color:#fff;}
.cs-body .eng-panel{padding:26px 22px 22px; border-radius:22px; background:linear-gradient(135deg, #d6ecfc, #e2dbfb 55%, #f9dfee);}
.cs-body .eng-panel h4{font-family:'Raleway',sans-serif; font-size:1.3rem; font-weight:700; color:var(--ink); margin:0 0 4px;}
.cs-body .eng-panel > p{font-size:0.95rem; color:var(--ink); opacity:0.8; margin:0 0 18px;}
.cs-body .eng-tiers{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; list-style:none; padding:0; margin:0;}
.cs-body .eng-tiers > li{margin:0; display:flex; flex-direction:column; padding:20px 18px 18px; background:#fff; border-radius:16px;}
.cs-body .eng-tiers > li::before{display:none;}
.cs-body .eng-head{display:flex; flex-direction:column; align-items:flex-start; gap:6px; margin-bottom:16px;}
.cs-body .eng-sub{padding-left:2px;}
.cs-body .eng-name{font-family:'Raleway',sans-serif; font-weight:700; font-size:0.9rem; color:var(--ink); padding:7px 14px; border-radius:999px; line-height:1.2;}
.cs-body .eng-sub{font-size:0.76rem; color:var(--sub);}
.cs-body .tier-consult .eng-name{background:var(--sky);}
.cs-body .tier-review .eng-name{background:var(--lav);}
.cs-body .tier-embed .eng-name{background:var(--mint);}
.cs-body .eng-tiers dl{margin:0 0 18px; flex:1;}
.cs-body .eng-tiers dt{font-size:0.62rem; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--sub); margin-top:14px;}
.cs-body .eng-tiers dt:first-child{margin-top:0;}
.cs-body .eng-tiers dd{margin:4px 0 0; font-size:0.8rem; line-height:1.45; color:var(--ink);}
.cs-body .eng-meter{display:flex; align-items:center; gap:6px;}
.cs-body .eng-meter span{flex:1; font-size:0.6rem; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--sub);}
.cs-body .eng-meter i{width:24px; height:10px; border-radius:5px; background:#e6e8f1;}
.cs-body .tier-consult .eng-meter i.on{background:#2f6fb0;}
.cs-body .tier-review .eng-meter i.on{background:#5b3fc4;}
.cs-body .tier-embed .eng-meter i.on{background:#1f8f66;}
@media (max-width:900px){
  .cs-body .eng-stats{grid-template-columns:repeat(3,1fr);}
  .cs-body .eng-tiers{grid-template-columns:1fr;}
}
@media (max-width:520px){
  .cs-body .eng-stats{grid-template-columns:1fr 1fr;}
}

/* Experience Matters growth stats (Leading design programs): three cards on one gradient panel */
.cs-body .em-stats{display:grid; grid-template-columns:1fr auto 2fr 1fr; align-items:stretch; gap:10px; margin:30px 0 8px; padding:14px; border-radius:22px; background:linear-gradient(135deg, #d6ecfc, #e2dbfb 55%, #f9dfee);}
.cs-body .em-card{display:flex; flex-direction:column; padding:18px 18px 16px; background:#fff; border-radius:16px; min-width:0;}
.cs-body .em-after{flex-direction:row; justify-content:space-between; gap:12px;}
.cs-body .em-col{display:flex; flex-direction:column;}
.cs-body .em-label{font-size:0.66rem; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--sub); line-height:1.4;}
.cs-body .em-num{font-family:'Raleway',sans-serif; font-size:2.6rem; font-weight:800; line-height:1.15; margin:8px 0 6px; color:var(--ink); white-space:nowrap;}
.cs-body .em-purple{color:#5b3fc4;}
.cs-body .em-blue{color:var(--accent);}
.cs-body .em-cap{font-size:0.82rem; line-height:1.35; color:var(--sub);}
.cs-body .em-badge{margin:-6px -6px -4px 0; padding:6px 16px 4px; border-radius:14px; background:#5b3fc4;}
.cs-body .em-badge .em-num, .cs-body .em-badge .em-cap{color:#fff;}
.cs-body .em-arrow{align-self:center; font-size:1.6rem; color:var(--ink);}
@media (max-width:760px){
  .cs-body .em-stats{grid-template-columns:1fr;}
  .cs-body .em-arrow{justify-self:center; transform:rotate(90deg);}
}
/* Raleway defaults to old-style figures; big stat numbers read better as lining figures */
.cs-body .em-num, .cs-body .eng-stats b{font-variant-numeric:lining-nums; font-feature-settings:"lnum" 1;}

/* Looping, muted video clips shown like images */
.cs-loop video{display:block; width:100%; height:auto;}

/* Narrow screenshots (like a 500px-wide email) stay at their natural width so they don't blur */
.cs-figure.shot.narrow{max-width:500px; margin-left:auto; margin-right:auto;}

/* Email client mockup around a newsletter screenshot (Leading design programs) */
.cs-body .inbox{border-radius:16px; overflow:hidden; background:#fff; box-shadow:8px 8px 22px var(--shadow-d), -8px -8px 22px var(--shadow-l); border:1px solid #e3e5ee;}
.cs-body .inbox-bar{display:flex; align-items:center; gap:16px; padding:10px 14px; background:#f4f5fa; border-bottom:1px solid #e3e5ee;}
.cs-body .inbox-dots{display:flex; gap:6px;}
.cs-body .inbox-dots i{width:10px; height:10px; border-radius:50%; background:#d9dbe6;}
.cs-body .inbox-search{flex:1; max-width:320px; padding:5px 12px; border-radius:8px; background:#fff; border:1px solid #e3e5ee; font-size:0.75rem; color:#9a97ad;}
.cs-body .inbox-body{display:grid; grid-template-columns:210px minmax(0,1fr);}
.cs-body .inbox-list{list-style:none; margin:0; padding:0; border-right:1px solid #e3e5ee; background:#fafbfd;}
.cs-body .inbox-list li{margin:0; padding:12px 14px; border-bottom:1px solid #eceef4; display:flex; flex-direction:column; gap:6px; position:relative;}
.cs-body .inbox-list li::before{display:none;}
.cs-body .inbox-list li i{display:block; height:7px; border-radius:4px; background:#e6e8f0;}
.cs-body .inbox-list li.is-open{background:#e9ecfb; padding-left:22px; gap:2px;}
.cs-body .inbox-list b{font-size:0.74rem; color:var(--ink);}
.cs-body .inbox-subj{font-size:0.72rem; font-weight:600; color:var(--ink);}
.cs-body .inbox-prev{font-size:0.68rem; line-height:1.35; color:var(--sub);}
.cs-body .inbox-unread{position:absolute; left:9px; top:16px; width:7px; height:7px; border-radius:50%; background:var(--accent);}
.cs-body .inbox-read{display:flex; flex-direction:column; min-width:0;}
.cs-body .inbox-head{padding:14px 18px 12px; border-bottom:1px solid #eceef4;}
.cs-body .inbox-title{margin:0 0 10px; font-family:'Raleway',sans-serif; font-weight:700; font-size:1rem; color:var(--ink);}
.cs-body .inbox-from{display:flex; align-items:center; gap:10px; font-size:0.74rem; color:var(--sub);}
.cs-body .inbox-from b{display:block; color:var(--ink);}
.cs-body .inbox-avatar{width:30px; height:30px; border-radius:50%; background:#161616; color:#fff; font-size:0.6rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.cs-body .inbox-date{margin-left:auto; white-space:nowrap;}
.cs-body .inbox-scroll{height:560px; overflow-y:auto; background:#eef0f4; padding:16px; overscroll-behavior:contain;}
.cs-body .inbox-scroll img{display:block; width:100%; max-width:500px; height:auto; margin:0 auto; box-shadow:0 2px 10px rgba(0,0,0,0.08);}
.cs-body .inbox-scroll:focus-visible{outline:2px solid var(--accent); outline-offset:-2px;}
@media (max-width:700px){
  .cs-body .inbox-body{grid-template-columns:1fr;}
  .cs-body .inbox-list{display:none;}
  .cs-body .inbox-scroll{height:480px; padding:10px;}
}
/* Experience Matters stats: a title row, and each card tinted with its number's color */
.cs-body .em-title{grid-column:1/-1; margin:2px 6px 4px; font-family:'Raleway',sans-serif; font-size:1.05rem; font-weight:700; color:var(--ink);}
.cs-body .em-tone-ink{background:#f5f4f9; box-shadow:inset 0 4px 0 #3d3a52;}
.cs-body .em-tone-purple{background:#f4f0fe; box-shadow:inset 0 4px 0 #5b3fc4;}
.cs-body .em-tone-blue{background:#eef2fd; box-shadow:inset 0 4px 0 #435dd5;}

/* Team map (Leading design programs): content designers by business unit */
.cs-body .team-map{margin:26px 0 22px; padding:22px; border-radius:22px; background:linear-gradient(135deg, #d6ecfc, #e2dbfb 55%, #f9dfee);}
.cs-body .tm-title{font-family:'Raleway',sans-serif; font-size:1.05rem; font-weight:700; color:var(--ink); margin:0 0 2px;}
.cs-body .tm-sub{font-size:0.88rem; color:var(--ink); opacity:0.8; margin:0 0 16px;}
.cs-body .tm-units{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; list-style:none; padding:0; margin:0;}
.cs-body .tm-units > li{margin:0; display:flex; flex-direction:column; padding:16px 16px 14px; background:#fff; border-radius:16px; box-shadow:inset 0 4px 0 var(--tm-c);}
.cs-body .tm-units > li::before{display:none;}
.cs-body .tm-cms{--tm-c:#5b3fc4; --tm-bg:#efeafd;}
.cs-body .tm-vas{--tm-c:#1f8f66; --tm-bg:#e3f8ef;}
.cs-body .tm-consumer{--tm-c:#c2651f; --tm-bg:#fdeee3;}
.cs-body .tm-ds{--tm-c:#2f6fb0; --tm-bg:#e3f0fc;}
.cs-body .tm-kind{font-size:0.62rem; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--sub);}
.cs-body .tm-name{font-family:'Raleway',sans-serif; font-size:0.95rem; line-height:1.3; color:var(--ink); margin:6px 0 14px; flex:1;}
.cs-body .tm-people{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px;}
.cs-body .tm-person{position:relative; width:34px; height:34px; border-radius:50%; background:var(--tm-bg); display:flex; align-items:center; justify-content:center;}
.cs-body .tm-person svg{width:20px; height:20px; fill:var(--tm-c);}
.cs-body .tm-person.is-me{background:var(--tm-c);}
.cs-body .tm-person.is-me svg{fill:#fff;}
.cs-body .tm-person em{position:absolute; bottom:-7px; left:50%; transform:translateX(-50%); font-style:normal; font-size:0.56rem; font-weight:700; line-height:1; padding:2px 5px; border-radius:6px; background:#fff; color:var(--tm-c); box-shadow:0 1px 3px rgba(0,0,0,0.12);}
.cs-body .tm-count{font-size:0.76rem; color:var(--sub);}
@media (max-width:900px){ .cs-body .tm-units{grid-template-columns:1fr 1fr;} }
@media (max-width:480px){ .cs-body .tm-units{grid-template-columns:1fr;} }
.cs-body .tm-person.is-dotted{background:#fff; outline:2px dashed var(--tm-c); outline-offset:-2px;}
.cs-body .tm-person.is-dotted svg{opacity:0.55;}
.cs-body .eng-stats-title{font-family:'Raleway',sans-serif; font-size:1.05rem; font-weight:700; color:var(--ink); margin:0 0 12px;}

/* Program timeline (Leading design programs): five milestones on one line */
.cs-body .program-timeline{margin:20px 0 30px; padding:22px 22px 24px; border-radius:22px; background:linear-gradient(135deg, #d6ecfc, #e2dbfb 55%, #f9dfee);}
.cs-body .tl-title{font-family:'Raleway',sans-serif; font-size:1.05rem; font-weight:700; color:var(--ink); margin:0 0 2px;}
.cs-body .tl-sub{font-size:0.88rem; color:var(--ink); opacity:0.8; margin:0 0 18px;}
.cs-body .tl-list{display:grid; grid-template-columns:repeat(5,1fr); gap:10px; list-style:none; padding:0; margin:0; position:relative;}
.cs-body .tl-list::before{content:""; position:absolute; left:8px; right:8px; top:8px; height:3px; border-radius:2px; background:linear-gradient(90deg, #2f6fb0, #5b3fc4 60%, #c23a82);}
.cs-body .tl-list > li{margin:0; padding:0; position:relative;}
.cs-body .tl-list > li::before{content:""; display:block; width:19px; height:19px; border-radius:50%; background:#fff; border:4px solid #5b3fc4; box-sizing:border-box; margin-bottom:12px; position:relative; z-index:1;}
.cs-body .tl-list > li:nth-child(1)::before{border-color:#2f6fb0;}
.cs-body .tl-list > li:nth-child(2)::before{border-color:#4a57c8;}
.cs-body .tl-list > li:nth-child(4)::before{border-color:#8a3aa8;}
.cs-body .tl-list > li:nth-child(5)::before{border-color:#c23a82; background:#c23a82;}
.cs-body .tl-year{display:block; font-family:'Raleway',sans-serif; font-weight:800; font-size:1.35rem; color:var(--ink); font-variant-numeric:lining-nums; font-feature-settings:"lnum" 1;}
.cs-body .tl-text{display:block; margin-top:4px; font-size:0.82rem; line-height:1.4; color:var(--ink);}
@media (max-width:760px){
  .cs-body .tl-list{grid-template-columns:1fr; gap:16px; padding-left:30px;}
  .cs-body .tl-list::before{left:8px; right:auto; top:8px; bottom:8px; width:3px; height:auto; background:linear-gradient(180deg, #2f6fb0, #5b3fc4 60%, #c23a82);}
  .cs-body .tl-list > li::before{position:absolute; left:-30px; top:2px; margin:0;}
}
.cs-body .tl-items{list-style:none; margin:4px 0 0; padding:0;}
.cs-body .tl-items li{position:relative; margin:0 0 4px; padding-left:12px; font-size:0.82rem; line-height:1.4; color:var(--ink);}
.cs-body .tl-items li::before{content:""; position:absolute; left:0; top:0.55em; width:5px; height:5px; border-radius:50%; background:#5b3fc4; display:block;}
/* Timeline line ends in an arrowhead pointing toward what's next */
.cs-body .tl-list::before{right:12px;}
.cs-body .tl-list::after{content:""; position:absolute; right:0; top:3.5px; width:0; height:0; border-top:6px solid transparent; border-bottom:6px solid transparent; border-left:12px solid #c23a82;}
@media (max-width:760px){
  .cs-body .tl-list::before{right:auto; bottom:12px;}
  .cs-body .tl-list::after{right:auto; left:3.5px; top:auto; bottom:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:12px solid #c23a82; border-bottom:0;}
}

/* "Programs I shaped" link cards (Leading design programs) */
.cs-body .prog-cards{display:grid; grid-template-columns:1fr 1fr; gap:14px; list-style:none; padding:0; margin:20px 0 22px;}
.cs-body .prog-cards > li{margin:0; padding:0;}
.cs-body .prog-cards > li::before{display:none;}
.cs-body .prog-card{display:flex; flex-direction:column; height:100%; position:relative; padding:10px 10px 14px; border-radius:16px; background:#fff; color:var(--ink); text-decoration:none; box-shadow:5px 5px 14px var(--shadow-d), -5px -5px 14px var(--shadow-l); transition:transform .2s;}
.cs-body .prog-card:hover{transform:translateY(-4px);}
.cs-body .prog-card img{display:block; width:100%; height:auto; aspect-ratio:2/1; object-fit:cover; border-radius:10px;}
.cs-body .pc-body{display:flex; flex-direction:column; padding:12px 30px 0 6px;}
.cs-body .pc-role{font-size:0.66rem; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--sub);}
.cs-body .prog-card b{font-family:'Raleway',sans-serif; font-size:1rem; margin:4px 0 4px;}
.cs-body .pc-out{font-size:0.84rem; line-height:1.4; color:var(--sub);}
.cs-body .pc-arrow{position:absolute; right:14px; bottom:12px; font-size:1.15rem; color:var(--accent-2);}
@media (max-width:560px){ .cs-body .prog-cards{grid-template-columns:1fr;} }
/* Desktop: the 3 business units sit in a row, and Design System & Platforms spans beneath them all */
@media (min-width:901px){
  .cs-body .tm-units{grid-template-columns:repeat(3,1fr);}
  .cs-body .tm-units > li.tm-ds{grid-column:1/-1; display:grid; grid-template-columns:1fr auto; grid-template-areas:"kind people" "name people" "name count"; column-gap:24px; align-items:center;}
  .cs-body .tm-ds .tm-kind{grid-area:kind;}
  .cs-body .tm-ds .tm-name{grid-area:name; margin:6px 0 0; align-self:start;}
  .cs-body .tm-ds .tm-people{grid-area:people; margin:0; justify-content:flex-end;}
  .cs-body .tm-ds .tm-count{grid-area:count; text-align:right;}
}
/* Timeline with six milestones */
.cs-body .tl-list{grid-template-columns:repeat(6,1fr);}
.cs-body .tl-list > li:nth-child(4)::before{border-color:#7440b8;}
.cs-body .tl-list > li:nth-child(5)::before{border-color:#8a3aa8; background:#fff;}
.cs-body .tl-list > li:nth-child(6)::before{border-color:#c23a82; background:#c23a82;}
@media (max-width:760px){ .cs-body .tl-list{grid-template-columns:1fr;} }

/* Timeline expands into a larger view (work.js adds the button and dialog) */
.cs-body .program-timeline.can-expand{position:relative; cursor:zoom-in; transition:box-shadow .2s;}
.cs-body .program-timeline.can-expand:hover{box-shadow:0 10px 28px rgba(45,35,90,0.18);}
.cs-body .can-expand .tl-title, .cs-body .can-expand .tl-sub{padding-right:120px;}
.cs-body .tl-expand{position:absolute; top:18px; right:18px; display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border:none; border-radius:999px; background:#fff; color:var(--ink); font:600 0.82rem 'Manrope',sans-serif; cursor:zoom-in; box-shadow:0 2px 8px rgba(61,58,82,0.14);}
.cs-body .tl-expand:hover{color:var(--accent);}
.cs-body .tl-expand:focus-visible{outline:2px solid #5b3fc4; outline-offset:2px;}
.lightbox.tl-dialog .lb-scroll{padding:72px 24px 24px;}
.tl-dialog .cs-body{display:block; width:min(1400px,100%); max-width:none; margin:auto; padding:0;}
.tl-dialog .cs-body .program-timeline{margin:0; padding:clamp(24px,3.4vw,52px);}
.tl-dialog .cs-body .tl-title{font-size:clamp(1.3rem,2.2vw,2rem); margin-bottom:6px;}
.tl-dialog .cs-body .tl-sub{font-size:clamp(1rem,1.3vw,1.2rem); opacity:1; margin-bottom:32px;}
.tl-dialog .cs-body .tl-list{gap:22px;}
.tl-dialog .cs-body .tl-year{font-size:clamp(1.6rem,2.3vw,2.2rem);}
.tl-dialog .cs-body .tl-text, .tl-dialog .cs-body .tl-items li{font-size:14px; line-height:1.45;}
.tl-dialog .cs-body .tl-text, .tl-dialog .cs-body .tl-items{margin-top:8px;}
.tl-dialog .cs-body .tl-items li{margin-bottom:10px; padding-left:16px;}
@media (max-width:760px){
  .lightbox.tl-dialog .lb-scroll{padding:72px 12px 24px;}
  .tl-dialog .cs-body .tl-list{padding-bottom:26px;}
}

/* Hero collage (Leading design programs): program artifacts from IBM and Visa, tilted and layered */
.program-collage{position:relative; aspect-ratio:16/8.4; border-radius:22px; overflow:hidden; background:linear-gradient(120deg, var(--sky), var(--lav) 55%, var(--rose)); box-shadow:8px 8px 22px var(--shadow-d), -8px -8px 22px var(--shadow-l);}
.program-collage .cl-card{position:absolute; margin:0; padding:5px; background:#fff; border-radius:12px; box-shadow:0 14px 30px rgba(45,35,90,0.22); transition:transform .3s ease, box-shadow .3s ease;}
.program-collage .cl-card img{display:block; width:100%; height:auto; border-radius:8px;}
.program-collage .cl-card:hover{z-index:9; box-shadow:0 20px 40px rgba(45,35,90,0.3);}
.program-collage .c-news{left:4%; top:9%; width:15%; transform:rotate(-6deg); z-index:2;}
.program-collage .c-cpb{left:11%; top:52%; width:30%; transform:rotate(4deg); z-index:4;}
.program-collage .c-em{left:21%; top:8%; width:38%; transform:rotate(-2deg); z-index:3;}
.program-collage .c-vpds{left:61%; top:7%; width:31%; transform:rotate(3.5deg); z-index:2;}
.program-collage .c-de{left:47%; top:46%; width:40%; transform:rotate(-3deg); z-index:5;}
.program-collage .c-news:hover{transform:rotate(-6deg) translateY(-6px);}
.program-collage .c-cpb:hover{transform:rotate(4deg) translateY(-6px);}
.program-collage .c-em:hover{transform:rotate(-2deg) translateY(-6px);}
.program-collage .c-vpds:hover{transform:rotate(3.5deg) translateY(-6px);}
.program-collage .c-de:hover{transform:rotate(-3deg) translateY(-6px);}
.program-collage .cl-tag{position:absolute; top:-9px; left:12px; padding:3px 10px; border-radius:999px; font-size:0.66rem; font-weight:700; letter-spacing:0.8px; text-transform:uppercase; color:#fff; box-shadow:0 2px 6px rgba(0,0,0,0.18);}
.program-collage .cl-ibm{background:#3d3a52;}
.program-collage .cl-visa{background:#435dd5;}
@media (max-width:700px){
  .program-collage{aspect-ratio:4/3.4;}
  .program-collage .c-news, .program-collage .c-vpds{display:none;}
  .program-collage .c-em{left:6%; top:8%; width:66%;}
  .program-collage .c-cpb{left:4%; top:55%; width:52%;}
  .program-collage .c-de{left:40%; top:46%; width:56%;}
}

/* Terminology (Visa Commercial Solutions Hub): term changes table and governance panel */
.cs-body .term-panel{margin:26px 0 30px; padding:8px 24px 12px; border-radius:16px; background:#fff; box-shadow:5px 5px 14px var(--shadow-d), -5px -5px 14px var(--shadow-l);}
.term-table{width:100%; border-collapse:collapse; text-align:left; font-size:0.92rem; line-height:1.45;}
.term-table caption{text-align:left; padding:14px 0 8px; font-family:'Raleway',sans-serif; font-size:1.05rem; font-weight:700; color:var(--ink);}
.term-table th, .term-table td{padding:12px 16px 12px 0; vertical-align:top; border-top:1px solid #e6e8f1;}
.term-table thead th{border-top:none; padding-top:4px; font-size:0.7rem; font-weight:700; letter-spacing:0.6px; text-transform:uppercase; color:var(--sub);}
.term-table tbody th{font-weight:500; color:var(--sub); width:22%;}
.term-table td:nth-child(2){width:42%;}
.term-table td strong{color:var(--accent-2);}
.term-table .term-def{display:block; margin-top:2px; font-size:0.86rem; line-height:1.45;}
.term-table small{display:block; font-size:0.8rem;}
.cs-body .term-gov{padding:22px 22px 24px; border-radius:22px; background:linear-gradient(135deg, #d6ecfc, #e2dbfb 55%, #f9dfee);}
.cs-body .tg-title{font-family:'Raleway',sans-serif; font-size:1.05rem; font-weight:700; margin:0 0 2px;}
.cs-body .tg-sub{font-size:0.88rem; margin:0 0 16px;}
.cs-body .tg-label{font-size:0.88rem; font-weight:700; margin:20px 0 10px;}
.cs-body .tg-layers, .cs-body .tg-asks{display:grid; gap:10px; list-style:none; padding:0; margin:0;}
.cs-body .tg-layers{grid-template-columns:repeat(4,1fr);}
.cs-body .tg-layers li{margin:0; padding:12px 8px; border-radius:12px; background:#5b3fc4; color:#fff; text-align:center; font-size:0.88rem; font-weight:700;}
.cs-body .tg-layers li::before{display:none;}
.cs-body .tg-asks{grid-template-columns:1fr 1fr; counter-reset:tg;}
.cs-body .tg-asks li{counter-increment:tg; display:flex; gap:12px; margin:0; padding:14px 16px; border-radius:14px; background:#fff; font-size:0.9rem; line-height:1.4;}
.cs-body .tg-asks li::before{content:counter(tg); position:static; width:auto; height:auto; background:none; opacity:1; font-family:'Raleway',sans-serif; font-weight:800; color:#5b3fc4; font-feature-settings:"lnum" 1;}
@media (max-width:560px){
  .cs-body .tg-layers{grid-template-columns:1fr 1fr;}
  .cs-body .tg-asks{grid-template-columns:1fr;}
  .cs-body .term-panel{padding:8px 16px 12px;}
  .term-table{font-size:0.84rem;}
  .term-table th, .term-table td{padding-right:10px;}
}

/* Skip link: appears on keyboard focus */
.skip-link{position:absolute; left:16px; top:-80px; z-index:1000; padding:12px 20px; border-radius:12px; background:#fff; color:#3d3a52; font-weight:700; text-decoration:none; box-shadow:0 4px 14px rgba(61,58,82,0.25);}
.skip-link:focus{position:fixed; top:12px; outline:3px solid #5b3fc4; outline-offset:2px;}
main:focus{outline:none;}


/* Pause button on looping clips */
.cs-loop{position:relative;}
.cs-loop-btn{position:absolute; right:14px; bottom:14px; padding:9px 16px; border:none; border-radius:999px; background:rgba(29,27,43,0.86); color:#fff; font:600 0.85rem 'Manrope',sans-serif; cursor:pointer;}
.cs-loop-btn:focus-visible{outline:3px solid #fff; outline-offset:-5px;}

/* Site engagement events (Leading design programs): a two-column list on a soft gradient card */
.cs-body .event-card{margin:20px 0 22px; padding:22px 24px 20px; border-radius:22px; background:linear-gradient(135deg, #d6ecfc, #e2dbfb 55%, #f9dfee);}
.cs-body .event-title{font-family:'Raleway',sans-serif; font-size:1.05rem; font-weight:700; margin:0 0 12px;}
.cs-body .event-list{columns:2; column-gap:32px; margin:0; padding:0;}
.cs-body .event-list li{break-inside:avoid; margin:0 0 8px;}
.cs-body .event-list li::before{background:#5b3fc4; opacity:1;}
.cs-body .event-more{margin:6px 0 0; font-style:italic;}
@media (max-width:560px){ .cs-body .event-list{columns:1;} }

/* "It's about time" statements (IBM Racial Equity in Design): large type, with the rest of each line in IBM red like the project's site */
.cs-body .rq{position:relative; padding:6px 0 6px 28px; border-left:6px solid #f84a53;}
.cs-body .cs-section.rq{margin-bottom:56px;}
.cs-body .rq-pair{margin:34px 0 8px;}
.cs-body .cs-section h2.rq-label{display:block; margin:0 0 14px; font-family:'Manrope',sans-serif; font-size:0.78rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; line-height:1.4; color:var(--sub);}
.cs-body .rq-line{margin:0; font-family:'Raleway',sans-serif; font-weight:700; font-size:clamp(1.75rem, 4.2vw, 2.6rem); line-height:1.2; letter-spacing:-0.01em; color:#f84a53; text-wrap:balance;}
.cs-body .rq-line span{display:block; color:var(--ink);}
.cs-body .rq-pair .rq-line{font-size:clamp(1.5rem, 3.4vw, 2.1rem);}
.cs-body .rq-pair .rq-line + .rq-line{margin-top:22px; padding-top:22px; border-top:1px solid rgba(61,58,82,0.12);}

/* Galleries break out of the text column to match the hero image width */
.cs-body .cs-gallery{width:min(1096px, 100vw - 64px); margin-left:calc(50% - min(548px, 50vw - 32px));}
@media (max-width:480px){
  .cs-body .cs-gallery{width:calc(100vw - 40px); margin-left:calc(50% - 50vw + 20px);}
}
@media (min-width:901px){ .cs-body .cs-gallery{columns:3;} }

/* A row of three captioned photos at the hero width (Brand: Mar Engineering Consulting merch and cards) */
.cs-body .cs-row3{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; align-items:start; margin:30px 0 34px; width:min(1096px, 100vw - 64px); margin-left:calc(50% - min(548px, 50vw - 32px));}
.cs-body .cs-row3 > .cs-figure{margin:0;}
.cs-body .cs-row3 .frame{aspect-ratio:4/3;}
.cs-body .cs-row3 .frame img{width:100%; height:100%; object-fit:cover;}
.cs-body .cs-row3 figcaption{font-size:0.84rem;}
@media (max-width:700px){
  .cs-body .cs-row3{grid-template-columns:1fr; width:auto; margin-left:0;}
}
