:root {
  --bg: #f5f4f0;
  --panel: #ebe9e3;
  --ink: #2f2f2f;          /* matches the logo */
  --muted: #7a776f;
  --line: #d6d3ca;
  --display: "Raleway", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1200px;
  --iso: repeating-linear-gradient(30deg, transparent 0 23px, rgba(47,47,47,.07) 23px 24px),
         repeating-linear-gradient(150deg, transparent 0 23px, rgba(47,47,47,.07) 23px 24px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; }
section { max-width: var(--max); margin-inline: auto; padding: clamp(3rem, 7vw, 5.5rem) var(--pad); }
.label { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: .85rem var(--pad); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 300; letter-spacing: .25em; text-transform: uppercase; font-size: .85rem; }
.brand b { font-weight: 800; }
.mark { width: 34px; height: 34px; color: var(--ink); }
.site-nav { display: flex; gap: 2rem; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.site-nav a { color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.name { font-family: var(--display); text-transform: uppercase; line-height: 1; margin-bottom: 1.75rem; }
.name span { display: block; font-weight: 300; letter-spacing: .45em; font-size: clamp(1.1rem, 2.4vw, 1.7rem); margin-bottom: .4rem; }
.name b { display: block; font-weight: 800; letter-spacing: .32em; font-size: clamp(2.2rem, 6vw, 4.6rem); }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.25; letter-spacing: -.01em; max-width: 34ch; text-wrap: pretty; }
h1 .aside { display: block; margin-top: .6rem; font-weight: 300; font-size: .7em; color: var(--muted); }
.sub { margin-top: 1.25rem; color: var(--muted); font-size: 1.02rem; }
.sub b { color: var(--ink); font-weight: 600; }
.hero-mark { width: 100%; max-width: 380px; justify-self: end; color: var(--ink); }
.hero-mark * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,0,.2,1) forwards; }
.hero-mark circle:nth-of-type(2) { animation-delay: .15s; }
.hero-mark g path:nth-child(1) { animation-delay: .5s; }
.hero-mark g path:nth-child(2) { animation-delay: .9s; }
.hero-mark g path:nth-child(3) { animation-delay: .7s; }
.hero-mark g path:nth-child(4), .hero-mark g path:nth-child(5) { animation-delay: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--ink); padding: .9rem 0; }
.ticker-track { display: flex; width: max-content; gap: 2.5rem; animation: slide 75s linear infinite; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .3em; text-transform: uppercase; }
.ticker-track span::after { content: "◇"; margin-left: 2.5rem; font-weight: 300; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Work */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2rem); }
.card { display: block; }
.visual { aspect-ratio: 16 / 10; background: var(--panel); background-image: var(--iso); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; margin-bottom: 1.1rem; transition: border-color .3s; }
.visual img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .visual { border-color: var(--ink); }
.kicker { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: .35rem 0 .3rem; letter-spacing: -.01em; }
.card h3::after { content: " →"; display: inline-block; opacity: 0; transform: translateX(-6px); transition: .25s; }
.card:hover h3::after { opacity: 1; transform: none; }
.stat { color: var(--muted); font-size: .95rem; }
.stat b { color: var(--ink); font-weight: 600; margin-right: .2rem; }
.stat b + b, .stat b:nth-of-type(2) { margin-left: .6rem; }

/* line-drawn UI placeholders (match logo stroke style) */
.ui { border: 2px solid var(--ink); background: var(--bg); display: flex; flex-direction: column; gap: 8px; padding: 14px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover .ui, .card:hover .cube { transform: translateY(-8px); }
.ui.browser { width: 68%; height: 72%; border-radius: 6px; }
.ui.phone { width: 26%; height: 82%; border-radius: 18px; padding-top: 20px; }
.ui i { display: block; border: 1.5px solid var(--ink); border-radius: 3px; height: 12px; }
.ui .bar { border: 0; height: 2px; background: var(--ink); width: 40%; }
.ui .search { height: 22px; border-radius: 11px; }
.ui .row.s { width: 60%; }
.ui .tile { height: 34%; }
.cube { width: 52%; color: var(--ink); transition: transform .5s cubic-bezier(.2,.8,.2,1); }

/* Quote */
.quote { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.quote blockquote { font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2.6rem); letter-spacing: -.01em; max-width: 24ch; margin-inline: auto; }
.quote p { margin-top: 1rem; font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.portrait { aspect-ratio: 4 / 5; background: var(--panel); background-image: var(--iso); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .85rem; overflow: hidden; }
.portrait { position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Crops the square group photo to the left person (source x 80–560, y 60–660) */
.portrait img.framed { position: absolute; width: 166.7%; height: auto; max-width: none; left: -16.7%; top: -10%; }
.about-copy p { font-size: 1.05rem; max-width: 56ch; margin-bottom: 1rem; color: var(--muted); }
.about-copy .about-lede { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; color: var(--ink); }
.facts { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.facts dd { margin: 0; }

/* Experience */
.xp li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 5rem; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); align-items: baseline; transition: padding .25s; }
.xp li:last-child { border-bottom: 1px solid var(--line); }
.xp li:hover { padding-left: .6rem; }
.co { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.role { color: var(--muted); }
.yr { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; text-align: right; }
.text-link { display: inline-block; margin-top: 1.5rem; font-weight: 600; border-bottom: 1px solid var(--ink); }

/* Contact */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact-mark { width: 72px; height: 72px; color: var(--ink); margin-bottom: 1.5rem; }
.contact h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .15em; text-transform: uppercase; }
.email { display: inline-block; margin-top: 1rem; font-size: clamp(1.1rem, 2.4vw, 1.5rem); border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.email:hover { color: var(--muted); }
.social { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }
.social a:hover { color: var(--ink); }
.site-footer { display: flex; justify-content: space-between; max-width: var(--max); margin-inline: auto; padding: 1.5rem var(--pad); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Case study */
.cs-hero { padding-bottom: 1.5rem; }
.back { display: inline-block; margin-bottom: 2rem; font-family: var(--display); font-weight: 600; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.back:hover { color: var(--ink); }
.cs-hero h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); max-width: none; letter-spacing: -.02em; }
.cs-hero .lede { font-size: 1.15rem; color: var(--muted); margin: 1rem 0 2rem; max-width: 50ch; }
.tldr { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ink); }
.tldr div { padding: 1rem 1rem 1rem 0; }
.tldr dt { font-family: var(--display); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); }
.tldr dd { margin: .25rem 0 0; font-weight: 500; }
.tldr.five { grid-template-columns: repeat(5, 1fr); }
.cs-visual { aspect-ratio: 16 / 8; margin-top: 2rem; }
.step { display: grid; grid-template-columns: 12rem 1fr; gap: 2rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.step h2 { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; padding-top: .3rem; }
.step ul { display: grid; gap: .6rem; font-size: 1.15rem; }
.step li::before { content: "◇ "; font-size: .8em; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.shot { aspect-ratio: 4 / 3; background: var(--panel); background-image: var(--iso); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.metrics div { background: var(--bg); padding: 1.5rem; }
.metrics.two { grid-template-columns: repeat(2, 1fr); }
.metrics b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; }
.metrics span { color: var(--muted); font-size: .9rem; }
.compare { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); --pos: 50%; user-select: none; }
.compare .layer { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.compare .before { background: var(--panel); color: var(--muted); }
.compare .after { background: var(--ink); color: var(--bg); clip-path: inset(0 0 0 var(--pos)); }
.compare .line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--bg); box-shadow: 0 0 0 1px var(--ink); pointer-events: none; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }

/* Crooked Con case study */
.unofficial { border: 1px solid var(--ink); padding: .8rem 1rem; margin-bottom: 2rem; max-width: 60ch; font-size: .95rem; }
.phone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2.5vw, 2rem); margin-top: 2rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--panel); background-image: var(--iso); border: 1px solid var(--line); }
.phone-row figure, .gallery figure { margin: 0; }
.phone-row img, .gallery img { width: 100%; display: block; border: 2px solid var(--ink); border-radius: 18px; background: #fff; }
/* Hero phones: thick dark bezel around the screen (never covering it), taller crop */
.phone-row figure { padding: 9px; background: #16171b; border-radius: 34px; box-shadow: 0 18px 40px rgba(20, 20, 30, .18); }
.phone-row figure img { border: 0; border-radius: 25px; aspect-ratio: 1170 / 2250; object-fit: cover; object-position: top; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; }
.gallery .bezel { padding: 8px; background: #16171b; border-radius: 30px; box-shadow: 0 14px 32px rgba(20, 20, 30, .16); }
.gallery .bezel img { border: 0; border-radius: 22px; aspect-ratio: 1170 / 2000; object-fit: cover; object-position: top; }
.gallery .bezel img.pos-bottom { object-position: bottom; }
.gallery figcaption, .wide-shot figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.gallery figcaption b { color: var(--ink); }
.wide-shot { margin: 1.5rem 0 0; }
.wide-shot img { width: 100%; display: block; border: 1px solid var(--line); }
/* Cropped preview that fades out, implying there's more */
.faded .clip { position: relative; max-height: 280px; overflow: hidden; }
.faded .clip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.note { margin-top: 1.25rem; color: var(--muted); max-width: 60ch; }
.note b { color: var(--ink); font-weight: 600; }
.step ul li b { font-weight: 600; }
.pull { margin: 1.5rem 0 0; font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3; }
.pull cite, .quotes cite { display: block; margin-top: .6rem; font-family: var(--display); font-style: normal; font-weight: 700; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.moments div { background: var(--bg); padding: 1.25rem; }
.moments dt { font-family: var(--display); font-weight: 700; margin-bottom: .4rem; }
.moments dd { margin: 0; color: var(--muted); font-size: .95rem; }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline li::before { content: none; }
.timeline span { font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.quotes blockquote { margin: 0; padding: 1.25rem; border: 1px solid var(--line); font-size: 1.05rem; }
.compare.phone-compare { aspect-ratio: 1170 / 1500; max-width: 400px; margin-top: 1.5rem; }
.compare img.layer { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare .ctag { position: absolute; top: .75rem; font-family: var(--display); font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: .25rem .5rem; pointer-events: none; }
.compare .ctag.l { left: .75rem; } .compare .ctag.r { right: .75rem; }

/* Interactive app demo in a phone bezel */
/* The phone keeps a real phone's proportions (390×844 screen) and is scaled
   as a whole by script.js so it always fits the window height. */
.live-phone-wrap { --s: 1; position: relative; width: calc(412px * var(--s)); height: calc(866px * var(--s)); }
.live-phone { position: absolute; top: 0; left: 0; width: 412px; height: 866px; padding: 11px; background: #16171b; border-radius: 52px; box-shadow: 0 24px 50px rgba(20, 20, 30, .2); transform: scale(var(--s)); transform-origin: top left; }
.live-phone iframe { display: block; width: 390px; height: 844px; border: 0; border-radius: 41px; background: #2557ec; }
/* Try it: heading on top, phone centered across the full page width */
.step.try-step { grid-template-columns: 1fr; gap: 1.5rem; }
.try { display: flex; justify-content: center; }
/* Start screen over the phone, so nobody misses the intro splash */
.demo-start { position: absolute; inset: 11px; border: 0; border-radius: 41px; background: #2557ec; color: #fdf6e3; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font: inherit; transition: opacity .4s ease; }
.demo-start svg { position: absolute; width: 130%; left: -15%; top: 12%; fill: rgba(255,255,255,.08); transform: rotate(-12deg); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.demo-start:hover svg { transform: rotate(12deg) scale(1.04); }
.ds-label { position: relative; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .12em; text-transform: uppercase; background: #f3e06a; color: #0c1a44; padding: 16px 30px; border-radius: 999px; box-shadow: 0 10px 30px rgba(8, 18, 60, .35); transition: transform .25s; }
.demo-start:hover .ds-label { transform: scale(1.05); }
.demo-start:focus-visible { outline: 4px solid #f3e06a; outline-offset: -8px; }
.ds-sub { position: relative; font-size: 17px; opacity: .85; }
.demo-start.gone { opacity: 0; pointer-events: none; }

/* Wide featured card */
.card.wide { grid-column: 1 / -1; }
/* Crooked Con hero card: the project's own brand blue, fanned phones */
.visual.cc { position: relative; display: block; background: #2557ec; border-color: #2557ec; }
.cc-star { position: absolute; width: 70%; left: 15%; top: -18%; fill: rgba(255,255,255,.08); transform: rotate(-12deg); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.card:hover .cc-star { transform: rotate(24deg) scale(1.05); }
/* Phone = dark bezel wrapping the screen, so the frame never covers screen content */
.cc-phone { position: absolute; width: 21%; padding: 5px; background: #0c1a44; border-radius: 26px; box-shadow: 0 30px 60px rgba(8, 18, 60, .45); transition: transform .6s cubic-bezier(.2,.8,.2,1); backface-visibility: hidden; will-change: transform; outline: 1px solid transparent; }
.cc-phone img { display: block; width: 100%; height: auto; border-radius: 21px; backface-visibility: hidden; }
.cc-phone:nth-of-type(1) { left: 7%; top: 22%; transform: rotate(-9deg); }
.cc-phone:nth-of-type(2) { left: 28%; top: 9%; transform: rotate(-3deg); z-index: 2; }
.cc-phone:nth-of-type(3) { left: 51%; top: 9%; transform: rotate(3deg); z-index: 2; }
.cc-phone:nth-of-type(4) { left: 72%; top: 22%; transform: rotate(9deg); }
.card:hover .cc-phone:nth-of-type(1) { transform: translate(-14px, -10px) rotate(-12deg); }
.card:hover .cc-phone:nth-of-type(2) { transform: translateY(-18px) rotate(-4deg); }
.card:hover .cc-phone:nth-of-type(3) { transform: translateY(-18px) rotate(4deg); }
.card:hover .cc-phone:nth-of-type(4) { transform: translate(14px, -10px) rotate(12deg); }
.card:hover .visual.cc { border-color: #0c1a44; }
.tag-unofficial { display: inline-block; margin-left: .5rem; padding: .1rem .45rem; border: 1px solid var(--muted); font-size: .62rem; letter-spacing: .15em; vertical-align: 1px; }

/* Unnamed Video Game card: the wiki's own night-navy and gold, two stacked desktop screens */
.visual.wb { position: relative; display: block; background: #0f1520; border-color: #0f1520; background-image: radial-gradient(circle at 85% 15%, rgba(214, 160, 70, .22), transparent 55%); }
.wb-shot { position: absolute; width: 68%; padding: 4px; padding-top: 12px; background: #2a3242; border-radius: 6px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); transition: transform .6s cubic-bezier(.2,.8,.2,1); backface-visibility: hidden; will-change: transform; outline: 1px solid transparent; }
.wb-shot::before { content: ""; position: absolute; top: 4px; left: 6px; width: 18px; height: 4px; background: radial-gradient(circle, #d6a046 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; }
.wb-shot img { display: block; width: 100%; height: auto; border-radius: 2px; }
.wb-shot:nth-of-type(1) { left: 6%; top: 10%; transform: rotate(-4deg); }
.wb-shot:nth-of-type(2) { left: 27%; top: 30%; transform: rotate(2deg); z-index: 2; }
.card:hover .wb-shot:nth-of-type(1) { transform: translate(-10px, -8px) rotate(-6deg); }
.card:hover .wb-shot:nth-of-type(2) { transform: translate(10px, -6px) rotate(3deg); }
.card:hover .visual.wb { border-color: #d6a046; }

/* Unnamed Video Game case study */
.status { display: grid; gap: 0; border-top: 1px solid var(--line); }
.status div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.status dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding: .2rem .5rem; border: 1px solid var(--ink); white-space: nowrap; }
.status dd.draft { border-style: dashed; color: var(--muted); border-color: var(--muted); }
.status dd.todo { border-color: transparent; color: var(--muted); }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: stage; }
.stages div { background: var(--bg); padding: 1.1rem 1.1rem 1.25rem; counter-increment: stage; }
.stages dt { font-family: var(--display); font-weight: 700; margin-bottom: .35rem; }
.stages dt::before { content: "0" counter(stage); display: block; font-size: .7rem; letter-spacing: .2em; color: var(--muted); margin-bottom: .5rem; }
.stages dd { margin: 0; color: var(--muted); font-size: .92rem; }
.stages div.first { background: var(--ink); color: var(--bg); }
.stages div.first dt::before, .stages div.first dd { color: #c9c6bd; }
.desk { margin: 0; }
.desk .frame { padding: 6px; padding-top: 18px; background: #16171b; border-radius: 10px; box-shadow: 0 18px 40px rgba(20, 20, 30, .18); position: relative; }
.desk .frame::before { content: ""; position: absolute; top: 7px; left: 10px; width: 28px; height: 5px; background: radial-gradient(circle, #5c5f68 2px, transparent 2.5px) 0 0 / 9px 5px repeat-x; }
.desk img { display: block; width: 100%; height: auto; border-radius: 3px; }
.desk figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.desk figcaption b { color: var(--ink); }
.desk-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
.desk + .desk, .desk-row + .desk, .desk + .desk-row { margin-top: 1.75rem; }
.desk-row .desk { margin-top: 0; }
.diagram { margin: 0; }
.diagram img { display: block; width: 100%; height: auto; border-radius: 4px; }
.diagram figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.diagram + .diagram { margin-top: 1.75rem; }
/* Lore-book entry */
.lore { margin-top: 3rem; padding: clamp(1.75rem, 4vw, 3rem) 0; border-block: 1px solid var(--ink); position: relative; }
.lore::before, .lore::after { content: "◇"; position: absolute; left: 50%; transform: translateX(-50%); background: var(--bg); padding: 0 .75rem; color: var(--ink); font-size: .9rem; line-height: 1; }
.lore::before { top: -.5rem; } .lore::after { bottom: -.5rem; }
.lore-kicker { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lore-title { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: .04em; text-align: center; margin: .4rem 0 2rem; }
.lore-body { columns: 2 22rem; column-gap: 2.5rem; font-size: 1.05rem; line-height: 1.7; }
.lore-body p { margin: 0 0 1rem; break-inside: avoid; }
.lore-body p:first-child::first-letter { float: left; font-family: var(--display); font-weight: 800; font-size: 3.6em; line-height: .82; padding: .3rem .55rem 0 0; }
.lore-quote { margin: 1.5rem auto 0; max-width: 40ch; text-align: center; font-family: var(--display); font-weight: 300; font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.4; }
.lore-quote cite { display: block; margin-top: .75rem; font-family: var(--display); font-style: normal; font-weight: 700; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.wip-hero {background: #0f1520; background-image: radial-gradient(circle at 85% 10%, rgba(214, 160, 70, .2), transparent 50%); border: 1px solid #0f1520; padding: clamp(1.25rem, 4vw, 3rem); margin-top: 2rem; }
.wip-hero .desk .frame { background: #2a3242; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .hero-mark * { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; max-width: 120px; }
  .grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
  .step { grid-template-columns: 1fr; gap: .75rem; }
  .tldr, .tldr.five { grid-template-columns: repeat(2, 1fr); }
  .stages, .world-facts { grid-template-columns: repeat(2, 1fr); }
  .desk-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 1rem var(--pad); }
  .brand span { display: none; }
  .xp li { grid-template-columns: 1fr auto; }
  .xp .role { grid-column: 1 / -1; grid-row: 2; font-size: .9rem; }
  .metrics, .shots { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .moments, .quotes { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
  .visual.cc { aspect-ratio: 4 / 3; }
  .cc-phone { width: 30%; }
  .cc-phone:nth-of-type(1), .cc-phone:nth-of-type(4) { display: none; }
  .cc-phone:nth-of-type(2) { left: 17%; }
  .cc-phone:nth-of-type(3) { left: 53%; }
}

/* ===== Agentic Onboarding case study ===== */
.cs-hero h1 s, .card h3 s { color: var(--muted); font-weight: 300; text-decoration-thickness: .07em; text-decoration-color: var(--ink); }
.ao-hero { margin-top: 2rem; padding: clamp(1.25rem, 4vw, 3rem); background: #eceefb; border: 1px solid #dfe1f5;
  background-image: radial-gradient(circle at 12% 85%, rgba(255, 176, 120, .45), transparent 32%), radial-gradient(circle at 88% 12%, rgba(120, 128, 240, .25), transparent 40%); }
.ao-hero .desk .frame { background: #1b1f3a; }
.desk video { display: block; width: 100%; height: auto; border-radius: 3px; }

.bars-title, .state-label { font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.bars { display: grid; gap: .5rem; }
.bar { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 1rem; }
.bar > span { font-size: .95rem; }
.bar i, .bar .stack { display: flex; height: 2.4rem; }
.bar i { width: 0; background: var(--ink); color: var(--bg); align-items: center; justify-content: flex-end; font-style: normal; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.reveal.visible .bar i { width: var(--w); }
.bar i b { padding: 0 .7rem; font-family: var(--display); font-weight: 800; font-size: .95rem; white-space: nowrap; }
.bar i.ref { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.bar .stack { width: 100%; gap: 3px; }
.bar .stack i { justify-content: center; }
.bar .stack i.later { background: #6d6a62; }
.bar .stack i.opt { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink); }

.versus { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: 1rem; }
.versus th { text-align: left; font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); padding: 0 1rem .6rem 0; }
.versus td { padding: .85rem 1rem .85rem 0; border-top: 1px solid var(--line); vertical-align: top; width: 50%; }
.versus td:first-child { color: var(--muted); }
.versus td:last-child { font-weight: 500; }

.f100 { margin-top: 2rem; }
.f100-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 2fr; gap: 4px; }
.f100-seg { padding: .9rem .9rem; min-height: 4.6rem; display: flex; flex-direction: column; justify-content: center; }
.f100-seg b { font-family: var(--display); font-weight: 700; font-size: .95rem; line-height: 1.2; }
.f100-seg span { display: block; margin-top: .3rem; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; opacity: .75; }
.f100-seg.clock, .f100-seg.live { background: var(--ink); color: var(--bg); }
.f100-seg.pace { border: 1.5px dashed var(--ink); }
.f100-ticks { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.f100-ticks .mid { font-style: italic; }

.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; align-items: start; }
.states figure { margin: 0; }
.states img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 30px rgba(20, 20, 30, .1); }

@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr; gap: .3rem; }
  .f100-row { grid-template-columns: 1fr; }
  .f100-ticks .mid { display: none; }
  .states { grid-template-columns: 1fr; }
}

/* Agentic Onboarding card: the prototype's lavender and peach, the reveal over the pre-live homepage */
.visual.ao { position: relative; display: block; background: #eceefb; border-color: #dfe1f5;
  background-image: radial-gradient(circle at 10% 90%, rgba(255, 176, 120, .55), transparent 35%), radial-gradient(circle at 90% 10%, rgba(120, 128, 240, .3), transparent 45%); }
.visual.ao .wb-shot { background: #1b1f3a; box-shadow: 0 24px 50px rgba(27, 31, 58, .35); }
.visual.ao .wb-shot::before { background: radial-gradient(circle, #8b90e6 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; }
.card:hover .visual.ao { border-color: #1b1f3a; }
.ao-phone { position: absolute; right: 8%; top: 9%; width: 27%; z-index: 2; filter: drop-shadow(0 22px 40px rgba(27, 31, 58, .35)); transform: rotate(3deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ao-phone { padding: 4px; background: #1b1f3a; border-radius: 22px; }
.ao-phone img { display: block; width: 100%; height: auto; border-radius: 18px; }
.card:hover .ao-phone { transform: translate(8px, -10px) rotate(4deg); }

/* Selected work cards: one shared isometric-grid background, tinted per project */
.visual.ao, .visual.cc, .visual.wb, .visual.bs {
  --iso-tint: rgba(47, 47, 47, .07);
  background-color: var(--card-bg);
  background-image: repeating-linear-gradient(30deg, transparent 0 23px, var(--iso-tint) 23px 24px),
                    repeating-linear-gradient(150deg, transparent 0 23px, var(--iso-tint) 23px 24px);
  border-color: var(--card-line);
}
.visual.ao { --card-bg: #e9e9f2; --card-line: #d6d6e6; --iso-tint: rgba(64, 64, 230, .09); }
.visual.cc { --card-bg: #e6e9f2; --card-line: #d2d8ea; --iso-tint: rgba(37, 87, 236, .11); }
.visual.wb { --card-bg: #ebe7dd; --card-line: #dcd4c2; --iso-tint: rgba(176, 128, 48, .13); }
.visual.cc .cc-star { fill: rgba(37, 87, 236, .08); }
/* Content Optimization card: the workshop's lilac, principles behind the north-star screen */
.visual.wb.co { --card-bg: #ecebf6; --card-line: #dad8ee; --iso-tint: rgba(124, 92, 230, .1); }
.visual.co .wb-shot { background: #1b1f3a; box-shadow: 0 24px 50px rgba(27, 31, 58, .3); }
.visual.co .wb-shot::before { background: radial-gradient(circle, #b9a6f5 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; }
.visual.co .wb-shot:nth-of-type(1) { left: 30%; top: 14%; width: 64%; transform: rotate(2deg); }
.card:hover .visual.co .wb-shot:nth-of-type(1) { transform: translate(8px, -6px) rotate(3deg); }
/* The workshop principles as sticky notes, stacked down the left */
.co-stickies { position: absolute; left: 5%; top: 7%; bottom: 7%; width: 27%; margin: 0; padding: 0; list-style: none; display: grid; grid-template-rows: repeat(4, 1fr); gap: 5%; z-index: 2; }
.co-stickies li { min-height: 0; display: flex; align-items: center; padding: 0 .55rem; background: #f6d36b; color: #2a2410;
  font-family: var(--body, Inter, sans-serif); font-size: clamp(.5rem, .9vw, .66rem); font-weight: 500; line-height: 1.2;
  box-shadow: 0 10px 18px rgba(27, 31, 58, .22); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.co-stickies li:nth-child(1) { transform: rotate(-4deg); }
.co-stickies li:nth-child(2) { transform: rotate(3deg) translateX(10%); background: #d4c6fb; }
.co-stickies li:nth-child(3) { transform: rotate(-2deg); }
.co-stickies li:nth-child(4) { transform: rotate(4deg) translateX(8%); background: #d4c6fb; }
.card:hover .co-stickies li:nth-child(odd) { transform: translate(-6px, -3px) rotate(-6deg); }
.card:hover .co-stickies li:nth-child(even) { transform: translate(14%, -3px) rotate(6deg); }
.card:hover .visual.co { border-color: #1b1f3a; }
.wip-hero { background-color: #ebe7dd; border-color: #dcd4c2;
  background-image: repeating-linear-gradient(30deg, transparent 0 23px, rgba(176, 128, 48, .13) 23px 24px),
                    repeating-linear-gradient(150deg, transparent 0 23px, rgba(176, 128, 48, .13) 23px 24px); }
.ao-hero { background-color: #e9e9f2; border-color: #d6d6e6;
  background-image: repeating-linear-gradient(30deg, transparent 0 23px, rgba(64, 64, 230, .09) 23px 24px),
                    repeating-linear-gradient(150deg, transparent 0 23px, rgba(64, 64, 230, .09) 23px 24px); }

.bars-head { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 1rem; }

.lead-in { margin-top: 1.25rem; font-size: 1.15rem; max-width: none; }
.lead-in b { font-weight: 600; }

.device-row { display: grid; grid-template-columns: 1fr 24%; gap: 1.5rem; align-items: start; }
.device-row .desk .frame img { aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.phone { margin: 0; }
.phone-frame { padding: 5px; background: #16171b; border-radius: 26px; box-shadow: 0 18px 40px rgba(20, 20, 30, .18); }
.phone-frame img { display: block; width: 100%; aspect-ratio: 402 / 874; object-fit: cover; object-position: top; border-radius: 21px; }
@media (max-width: 760px) { .device-row { grid-template-columns: 1fr; } .phone { max-width: 260px; margin-inline: auto; } }

/* Problem example: one listing, what the AI got wrong next to what it missed */
.listing-eg { margin: 1.25rem 0 0; max-width: 36rem; }
.listing-eg figcaption { font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.eg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.eg-card { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-top-width: 4px; background: var(--panel); }
.eg-card b { font-size: 1.05rem; }
.eg-label { font-family: var(--display); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eg-tag { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.eg-card.wrong { border-top-color: #c2412b; }
.eg-card.wrong .eg-label { color: #a3321f; }
.eg-card.missing { border-top-color: #c9a227; }
.eg-card.missing .eg-label { color: #8a6d12; }
@media (max-width: 560px) { .eg-pair { grid-template-columns: 1fr; } }

/* "Why I joined" table: each row is one disagreement, with the question it answers */
.versus.debate th[scope="row"] { font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); padding: .85rem 1rem .85rem 0; border-top: 1px solid var(--line); vertical-align: top; width: 30%; }
.versus.debate td { width: 35%; }
@media (max-width: 560px) {
  .versus.debate thead { display: none; }
  .versus.debate tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding: .6rem 0; }
  .versus.debate th[scope="row"] { grid-column: 1 / -1; border: 0; padding: 0 0 .3rem; width: auto; }
  .versus.debate td { border: 0; padding: 0 .75rem 0 0; width: auto; }
}

/* Workshop: three steps as a strip, and partner findings as cards */
.ws-steps { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; counter-reset: none; }
.ws-steps li { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--line); background: var(--panel); }
.ws-steps li::before { content: none; }
.ws-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -.62rem; top: 50%; transform: translateY(-50%); z-index: 1; width: 1.2rem; text-align: center; background: var(--bg); color: var(--muted); font-size: .9rem; }
.ws-steps span { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.ws-steps b { font-size: 1.02rem; }
.ws-steps em { font-style: normal; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.ws-findings { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ws-findings div { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; border-left: 3px solid var(--ink); background: var(--panel); }
.ws-findings b { font-size: 1.02rem; line-height: 1.3; }
.ws-findings span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
@media (max-width: 640px) {
  .ws-steps, .ws-findings { grid-template-columns: 1fr; }
  .ws-steps li:not(:last-child)::after { content: "↓"; right: auto; left: 1.1rem; top: auto; bottom: -.75rem; transform: none; }
}

/* Workshop principles: four cards that expand to the full definition */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }
.principles details { border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.principles details[open] { border-color: var(--ink); background: var(--bg); }
.principles summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; padding: 1rem 1.1rem; font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.principles summary::-webkit-details-marker { display: none; }
.principles summary span { font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .1em; color: var(--muted); padding-top: .2rem; }
.principles summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.principles details[open] summary::after { transform: rotate(45deg); }
.principles summary:hover::after, .principles summary:focus-visible::after { color: var(--ink); }
.principles summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.principles details p { margin: 0; padding: 0 1.1rem 1rem calc(1.1rem + 1.6rem); color: var(--muted); font-size: .92rem; line-height: 1.5; }
.principles details p + p { padding-top: 0; }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }

/* Prototype step list (used under the coded prototypes) */
.proto { margin: 1.25rem 0 0; }
.proto-title { margin: 0 0 .75rem; color: var(--muted); font-size: .95rem; }
.proto-title b { color: var(--ink); }
.proto-steps { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; gap: .4rem; counter-reset: step; }
.proto-steps li { counter-increment: step; flex: 1 1 0; min-width: 0; padding: .55rem .5rem .5rem; border-top: 3px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.35; cursor: pointer; transition: border-color .3s, color .3s; }
.proto-steps li::before { content: counter(step) ". "; font-weight: 700; }
.proto-steps li.on { border-top-color: var(--ink); color: var(--ink); }
.proto-steps li:hover, .proto-steps li:focus-visible { color: var(--ink); outline: none; }
@media (max-width: 640px) {
  .proto-steps { flex-direction: column; gap: 0; }
  .proto-steps li { display: none; border-top: 0; padding: .3rem 0 0; }
  .proto-steps li.on { display: block; }
}

/* Coded prototypes (Optimizing AI Content). A fixed 1280x800 screen, scaled to fit its frame. */
.pp-frame { position: relative; background: #1b1f3a; padding: 6px; padding-top: 18px; border-radius: 8px; box-shadow: 0 24px 50px rgba(27, 31, 58, .22); }
.pp-frame::before { content: ""; position: absolute; top: 6px; left: 10px; width: 22px; height: 5px; background: radial-gradient(circle, #8b90e6 1.8px, transparent 2.2px) 0 0 / 7px 5px repeat-x; }
.pp-frame::after { content: "Paused"; position: absolute; top: 3px; right: 10px; font: 600 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8b90e6; opacity: 0; transition: opacity .2s; }
.is-paused .pp-frame::after { opacity: 1; }
.pp-view { position: relative; aspect-ratio: 1280 / 800; overflow: hidden; border-radius: 3px; background: #fff; }
.pp-stage { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; transform: scale(var(--pp-s, .66)); transform-origin: 0 0;
  font-family: var(--sans); color: #1b1f3a; font-size: 14px; line-height: 1.45; background: #fff; overflow: hidden; }
.pp-stage *, .pp-stage *::before, .pp-stage *::after { box-sizing: border-box; }
.pp-stage svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-stage button { font: inherit; border: 0; cursor: default; }
.pp-stage .no-anim, .pp-stage.no-anim * { transition: none !important; }

/* chrome */
.pp-header { position: absolute; inset: 0 0 auto 0; height: 72px; background: #191d3a; color: #fff; display: flex; align-items: center; padding: 0 24px; }
.pp-logo { width: 40px; height: 40px; }
.pp-prop { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pp-prop img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.pp-prop b { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.pp-prop span { font-size: 11px; opacity: .85; }
.pp-chev { margin-left: 14px; }
.pp-user { margin-left: 40px; width: 26px !important; height: 26px !important; }
.pp-user .f { fill: #191d3a; stroke: none; }
.pp-user circle:first-child { fill: #fff; stroke: none; }
.pp-rail { position: absolute; left: 0; top: 72px; width: 100px; }
.pp-main { position: absolute; left: 100px; top: 72px; right: 0; bottom: 0; transition: right .55s cubic-bezier(.2,.8,.2,1); }
.panel-open .pp-main { right: 384px; }

/* property page */
.pp-page { position: absolute; inset: 0; padding: 26px 30px 0; transition: opacity .4s; }
.pp-page.behind { opacity: 0; }
.pp-page-head { display: flex; align-items: center; gap: 18px; }
.pp-score { position: relative; width: 92px; height: 92px; border-radius: 50%; border: 2px solid #4c4ae8; padding: 5px; flex: none; }
.pp-score img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pp-score b { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); background: #4c4ae8; color: #fff; font-size: 15px; font-weight: 600; padding: 3px 12px; border-radius: 14px; }
.pp-page-head h4 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.pp-page-head p { margin: 4px 0 0; font-size: 13px; }
.pp-search { margin-left: auto; width: 446px; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 4px 0 14px; border-radius: 22px; border: 1px solid #d9d7f6; box-shadow: 0 2px 10px rgba(76, 74, 232, .14); transition: box-shadow .2s, border-color .2s, width .55s; }
.panel-open .pp-search { width: 300px; }
.pp-search.focus { border-color: #4c4ae8; box-shadow: 0 0 0 3px rgba(76, 74, 232, .18); }
.pp-search svg { width: 18px; height: 18px; color: #555a73; flex: none; }
.pp-search span { flex: 1; text-align: center; font-size: 14px; white-space: nowrap; overflow: hidden; }
.pp-search.focus span { text-align: left; }
.pp-search button { background: #4c4ae8; color: #fff; height: 32px; padding: 0 14px; border-radius: 16px; font-weight: 600; font-size: 13px; transition: transform .15s; }
.pp-search button i { font-style: normal; }
.pp-tabs { display: flex; gap: 32px; margin: 44px 0 0 14px; font-size: 14px; font-weight: 500; }
.pp-tabs span { padding-bottom: 10px; border-bottom: 2px solid transparent; transition: border-color .3s; }
.pp-tabs span.on { border-color: #4c4ae8; }
.pp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; transition: opacity .35s; }
.pp-cards.hide { opacity: 0; pointer-events: none; }
.pp-card { padding: 22px 24px; border-radius: 14px; box-shadow: 0 2px 14px rgba(27, 31, 58, .1); display: flex; flex-direction: column; }
.pp-card.hi { background: #f4f3fe; }
.pp-card-top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.pp-card-top em { font-style: normal; font-size: 12px; background: #e7e6fd; color: #3c3ab8; padding: 3px 10px; border-radius: 5px; }
.pp-card.hi .pp-card-top em { background: #4c4ae8; color: #fff; }
.pp-card-top img { max-height: 58px; max-width: 46%; }
.pp-card b { margin-top: 18px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.pp-card p { margin: 10px 0 18px; font-size: 14px; flex: 1; }
.pp-card button { height: 46px; border-radius: 23px; background: #ecebfc; font-weight: 600; font-size: 13px; }
.pp-card button.pri { background: #4c4ae8; color: #fff; }
.panel-open .pp-card p { font-size: 13px; }

/* spaces (simple task end state) */
.pp-spaces { position: absolute; left: 30px; right: 30px; top: 206px; display: grid; gap: 16px; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.pp-spaces.show { opacity: 1; transform: none; }
.pp-space { border: 1px solid #e4e3f3; border-radius: 14px; padding: 18px 22px; }
.pp-space.dim { opacity: .55; }
.pp-space-head { display: flex; align-items: center; gap: 14px; }
.pp-space-head img { width: 84px; }
.pp-space-head b { display: block; font-size: 18px; font-weight: 600; }
.pp-space-head span { font-size: 12px; color: #6b6f86; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pp-chips span { font-size: 13px; padding: 6px 14px; border-radius: 16px; background: #f4f3fe; border: 1px solid #dcdaf8; }
.pp-chips span.new { background: #4c4ae8; color: #fff; border-color: #4c4ae8; display: inline-flex; gap: 10px; align-items: center; transition: transform .4s cubic-bezier(.3,1.6,.5,1), opacity .4s; }
.pp-chips span.new em { font-style: normal; font-size: 11px; opacity: .85; }
.pp-chips span.new.enter { transform: scale(.6); opacity: 0; }

/* canvas (complex task) */
.pp-canvas { position: absolute; inset: 14px 16px 14px 14px; border: 1px solid #e4e3f3; border-radius: 14px; background: #fff; display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.pp-canvas.show { opacity: 1; transform: none; }
.pp-canvas-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px 4px; }
.pp-canvas-top span { flex: 1; }
.pp-plus { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d9d8ea !important; background: #fff; display: grid; place-items: center; }
.pp-plus svg { width: 18px; height: 18px; }
.pp-apply { height: 36px; padding: 0 18px; border-radius: 18px; background: #c9c8f8; color: #fff; font-weight: 600; font-size: 13px; transition: background .3s; }
.pp-apply.ready, .pp-apply.saved { background: #4c4ae8; }
.pp-canvas-body { flex: 1; overflow: hidden; padding: 0 40px 20px; }
.pp-canvas-body h3 { margin: 4px 0 14px; font-size: 26px; font-weight: 600; border-radius: 6px; display: inline-block; padding: 0 6px; margin-left: -6px; }
.pp-canvas-body section { border: 1px solid #e4e3f3; border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; }
.pp-canvas-body section.in { opacity: 1; transform: none; }
.pp-canvas-body header { font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; }
.pp-canvas-body header::after { content: "⌃"; font-weight: 400; }
.pp-canvas-body section .pp-chips { margin-top: 10px; }
.pp-canvas-body section p { margin: 8px 0 0; font-size: 13px; }
.pp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pp-photos img { width: 100%; height: 104px; object-fit: cover; border-radius: 8px; }
.flash { animation: pp-flash 1.4s ease; }
@keyframes pp-flash { 0%, 30% { background: #dedcff; box-shadow: 0 0 0 4px #dedcff; } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
.pp-chips span.flash { animation: pp-flash-chip 1.4s ease; }
@keyframes pp-flash-chip { 0%, 30% { background: #4c4ae8; color: #fff; } 100% { background: #f4f3fe; color: inherit; } }

/* assistant panel */
.pp-panel { position: absolute; top: 86px; right: 14px; bottom: 14px; width: 360px; border: 1px solid #e4e3f3; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(27, 31, 58, .12); display: flex; flex-direction: column; transform: translateX(400px); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.panel-open .pp-panel { transform: none; }
.pp-panel-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px 6px; color: #1b1f3a; }
.pp-panel-top span { flex: 1; }
.pp-panel-top svg { width: 20px; height: 20px; }
.pp-panel-top .dots circle { fill: currentColor; stroke: none; }
.pp-msgs { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 6px 16px 10px; display: flex; flex-direction: column; gap: 12px; }
.pp-msgs::-webkit-scrollbar { display: none; }
.pp-msgs > * { transition: opacity .35s, transform .35s; flex: none; }
.pp-msgs > .enter, .pp-attach > .enter { opacity: 0; transform: translateY(8px); }
.pp-me { align-self: flex-end; max-width: 86%; background: #191d3a; color: #fff; font-size: 13px; padding: 9px 14px; border-radius: 12px 12px 3px 12px; }
.pp-me-long { font-size: 12px; line-height: 1.5; }
.pp-thumbs { display: flex; gap: 6px; margin-bottom: 8px; }
.pp-thumbs img { width: 42px; height: 34px; object-fit: cover; border-radius: 4px; }
.pp-ai { font-size: 13px; }
.pp-ai b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pp-ai p { margin: 0; }
.pp-ai p b { display: inline; font-size: inherit; margin: 0; }
.pp-think { display: flex; gap: 5px; padding: 10px 0; }
.pp-think i { width: 7px; height: 7px; border-radius: 50%; background: #4c4ae8; animation: pp-dot 1s infinite ease-in-out; }
.pp-think i:nth-child(2) { animation-delay: .15s; } .pp-think i:nth-child(3) { animation-delay: .3s; }
@keyframes pp-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.pp-propose, .pp-q { background: #f4f3fe; border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.pp-space-mini { background: #fff; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 6px rgba(27, 31, 58, .08); }
.pp-space-mini b { font-size: 17px; font-weight: 600; }
.pp-space-mini span { display: block; font-size: 12px; color: #4c4ae8; font-weight: 600; }
.pp-space-mini img { width: 64px; }
.pp-feature { background: #fff; border-radius: 10px; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.pp-feature b { font-size: 15px; font-weight: 600; }
.pp-btns { display: flex; justify-content: flex-end; gap: 8px; }
.pp-btns button, .pp-q > button { height: 34px; padding: 0 16px; border-radius: 17px; background: transparent; font-weight: 600; font-size: 12px; transition: transform .15s; }
.pp-stage button.pri { background: #4c4ae8; color: #fff; }
.pp-stage .pressed { transform: scale(.95); }
.pp-done { display: flex; align-items: center; gap: 10px; background: #f4f3fe; border-radius: 14px; padding: 12px; }
.pp-done > i { width: 22px; height: 22px; border-radius: 50%; background: #1f8a4c; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; flex: none; }
.pp-done .pp-space-mini { flex: 1; }
.pp-space-card { display: flex; justify-content: space-between; align-items: center; border: 2px solid #191d3a; border-radius: 14px; padding: 12px 16px; }
.pp-space-card b { display: block; font-size: 14px; font-weight: 600; }
.pp-space-card span { font-size: 11px; color: #6b6f86; }
.pp-space-card img { width: 40px; }
.pp-q em { font-style: normal; font-size: 11px; color: #3c3ab8; background: #e2e0fc; justify-self: start; padding: 2px 8px; border-radius: 5px; }
.pp-q .pp-space-mini img { width: 44px; }
.pp-q-box { background: #fff; border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.pp-q-box > b { font-size: 15px; font-weight: 600; }
.pp-field { border: 1px solid #b9b8cc; border-radius: 8px; padding: 6px 12px 8px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.pp-field.focus { border-color: #4c4ae8; box-shadow: 0 0 0 3px rgba(76, 74, 232, .15); }
.pp-field small { display: block; font-size: 10px; color: #6b6f86; }
.pp-field span { font-size: 14px; }
.pp-q > button { width: 100%; }
.pp-q.answered { padding-bottom: 12px; }
.pp-ok { margin: 0; font-size: 12px; color: #1f8a4c; font-weight: 600; }
.pp-input { margin: 0 16px; border: 1px solid #d9d8ea; border-radius: 12px; min-height: 92px; padding: 10px 12px 44px; position: relative; transition: border-color .2s, min-height .3s; }
.pp-input.focus { border-color: #4c4ae8; }
.pp-input.tall { min-height: 200px; }
.pp-input-text { font-size: 12px; line-height: 1.5; max-height: 140px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.pp-attach { display: flex; gap: 6px; }
.pp-attach img { width: 48px; height: 38px; object-fit: cover; border-radius: 5px; margin-bottom: 8px; transition: opacity .3s, transform .3s; }
.pp-send { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: #c9c8f8 !important; color: #fff; display: grid; place-items: center; transition: background .2s, transform .15s; }
.pp-input.focus .pp-send { background: #4c4ae8 !important; }
.pp-send svg { width: 16px; height: 16px; }
.pp-panel small { text-align: center; font-size: 10px; color: #6b6f86; padding: 8px 0 10px; }
.pp-stage .ph { color: #6b6f86; }
.pp-stage .typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; background: #4c4ae8; margin-left: 1px; vertical-align: -2px; animation: pp-caret .8s steps(1) infinite; }
@keyframes pp-caret { 50% { opacity: 0; } }

/* cursor */
.pp-cursor { position: absolute; left: 0; top: 0; z-index: 20; width: 0; height: 0; opacity: 0; transform: translate(640px, 500px); transition: opacity .3s; pointer-events: none; }
.pp-cursor.show { opacity: 1; }
.pp-cursor svg { position: absolute; left: -3px; top: -2px; width: 26px !important; height: 26px !important; fill: #191d3a; stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.pp-cursor::before { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(76, 74, 232, .35); transform: scale(0); opacity: 0; }
.pp-cursor.tap::before { animation: pp-tap .45s ease-out; }
@keyframes pp-tap { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* DM Sans (free, close to the product font) inside the coded prototypes */
.pp-stage, .pp-stage button, .pp-stage input { font-family: "DM Sans", var(--sans) !important; }
/* direct edit on the canvas */
.pp-chips span.editing { background: #fff; border-color: #4c4ae8; box-shadow: 0 0 0 3px rgba(76, 74, 232, .15); min-width: 150px; }
.pp-edited { margin-left: auto; margin-right: 12px; font-style: normal; font-size: 11px; font-weight: 500; color: #4c4ae8; background: #ecebfc; padding: 2px 8px; border-radius: 5px; align-self: center; }

/* Merged facts diagram (Optimizing AI Content) */
.merge { --m-s: #dfe6ea; --m-s-ink: #2d4a57; --m-c: #f1ddd6; --m-c-ink: #8a3f2c;
  margin: 1.25rem 0 0; padding: 1.75rem; border: 1px solid var(--line); background: var(--panel);
  display: grid; grid-template-columns: 1.15fr auto 1fr; gap: 1.25rem; align-items: center; }
.merge-label { margin: 0 0 .75rem; font-family: var(--display); font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.merge-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }
.merge-box { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; background: var(--bg); border: 1px solid var(--line); }
.merge-box > b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: .2rem; }
.merge .m-head { display: block; padding: .45rem .7rem; background: var(--ink); color: var(--bg); font-size: .82rem; font-weight: 600; }
.merge .m-s, .merge .m-c { display: inline-block; padding: .3rem .6rem; font-size: .78rem; line-height: 1.3; }
.merge .m-s { background: var(--m-s); color: var(--m-s-ink); }
.merge .m-c { background: var(--m-c); color: var(--m-c-ink); }
.merge-before .merge-box > .m-s, .merge-before .merge-box > .m-c { align-self: flex-start; }
.m-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.merge .m-wide { display: block; font-style: italic; }
.merge-arrow { display: grid; justify-items: center; gap: .4rem; width: 9rem; text-align: center; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.merge-arrow svg { width: 100%; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.merge-key { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.merge-key span { display: inline-flex; align-items: center; gap: .45rem; }
.merge-key i { display: inline-block; width: 14px; height: 14px; padding: 0 !important; }
.merge-note { margin-left: auto; color: var(--ink); }
@media (max-width: 760px) {
  .merge { grid-template-columns: 1fr; padding: 1.25rem; }
  .merge-arrow { width: auto; }
  .merge-arrow svg { width: 22px; height: 60px; transform: rotate(90deg); }
  .merge-note { margin-left: 0; }
}

/* Optimizing AI Content hero: original plan behind, principles between, north star in front */
.co-hero { position: relative; margin: 2.5rem 0 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #dad8ee;
  background-color: #ecebf6;
  background-image: repeating-linear-gradient(30deg, transparent 0 23px, rgba(124, 92, 230, .1) 23px 24px),
                    repeating-linear-gradient(150deg, transparent 0 23px, rgba(124, 92, 230, .1) 23px 24px); }
.co-shot { position: absolute; padding: 5px; padding-top: 14px; background: #1b1f3a; border-radius: 7px; box-shadow: 0 30px 60px rgba(27, 31, 58, .28); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.co-shot::before { content: ""; position: absolute; top: 5px; left: 8px; width: 20px; height: 4px; background: radial-gradient(circle, #8b90e6 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; }
.co-shot img { display: block; width: 100%; height: auto; border-radius: 2px; }
.co-shot.before { left: 4%; top: 9%; width: 50%; transform: rotate(-4deg); filter: saturate(.75); }
.co-shot.before img { opacity: .9; }
.co-shot.after { right: 4%; top: 15%; width: 58%; transform: rotate(2deg); z-index: 2; }
.co-tag { position: absolute; left: 12px; bottom: -14px; padding: .35rem .7rem; background: #fff; color: #1b1f3a; font-family: var(--display); font-size: clamp(.55rem, 1.1vw, .72rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(27, 31, 58, .18); white-space: nowrap; }
.co-tag.dark { background: #4c4ae8; color: #fff; left: auto; right: 12px; }
.co-notes { position: absolute; left: 30%; bottom: 6%; z-index: 3; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; width: 30%; }
.co-notes li { aspect-ratio: 1 / .62; display: flex; align-items: center; padding: .5rem .65rem; background: #f6d36b; color: #2a2410; font-size: clamp(.55rem, 1.05vw, .8rem); font-weight: 600; line-height: 1.2; box-shadow: 0 10px 20px rgba(27, 31, 58, .25); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.co-notes li:nth-child(1) { transform: rotate(-5deg); }
.co-notes li:nth-child(2) { transform: rotate(3deg) translateY(6%); background: #d4c6fb; }
.co-notes li:nth-child(3) { transform: rotate(2deg); background: #d4c6fb; }
.co-notes li:nth-child(4) { transform: rotate(-3deg) translateY(4%); }
.co-hero:hover .co-shot.before { transform: translate(-8px, -6px) rotate(-6deg); }
.co-hero:hover .co-shot.after { transform: translate(6px, -6px) rotate(3deg); }
.co-hero:hover .co-notes li:nth-child(odd) { transform: rotate(-7deg) translateY(-4px); }
.co-hero:hover .co-notes li:nth-child(even) { transform: rotate(6deg) translateY(-2px); }
@media (max-width: 640px) {
  .co-hero { aspect-ratio: 4 / 3.4; }
  .co-shot.before { width: 66%; top: 6%; }
  .co-shot.after { width: 74%; top: 30%; }
  .co-notes { left: 3%; bottom: 4%; width: 46%; gap: .35rem; }
  .co-tag { font-size: .5rem; letter-spacing: .08em; }
}
/* Hero notes sit in the bottom-left corner, clear of the north star screen */
.co-notes { left: 3%; bottom: 5%; width: 31%; }
.co-shot.before .co-tag { top: -14px; bottom: auto; }
@media (max-width: 640px) { .co-notes { left: 3%; bottom: 4%; width: 40%; } }

/* Homepage feedback: quotes crossfade in one spot */
.quote-stack { display: grid; }
.quote-item { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.quote-item.on { opacity: 1; visibility: visible; transition: opacity .7s ease .5s, visibility 0s; }
.quote-item figcaption { margin-top: 1rem; font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.quote-dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1.75rem; }
.quote-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.quote-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.quote-dots button[aria-current="true"]::before { background: var(--ink); transform: scale(1.3); }
.quote-dots button:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

/* No orphan words: balance short display text, and let paragraphs avoid a lone last word */
h1, h2, h3, h4, blockquote, .lede, .lead-in, figcaption, .kicker { text-wrap: balance; }
p, li, dd, td, th, .pull { text-wrap: pretty; }

/* Navigation prototypes (Simplifying Complex Navigation): Partner Central chrome, search and switcher */
.pp-stage svg.fill { fill: currentColor; stroke: none; }
.nv-header { position: absolute; inset: 0 0 auto 0; height: 72px; background: #0c0e1c; color: #fff; display: flex; align-items: center; padding-right: 24px; }
.nv-logo { height: 72px; }
.nv-prop { margin-left: auto; margin-right: 28px; display: flex; align-items: center; gap: 12px; background: transparent; color: #fff; padding: 6px 10px; border-radius: 10px; text-align: left; transition: background .2s; }
.tip .nv-prop, .info-open .nv-prop, .switch-open .nv-prop { background: rgba(255, 255, 255, .1); }
.nv-prop b { display: block; font-size: 17px; font-weight: 500; line-height: 1.2; }
.nv-prop small { font-size: 11px; opacity: .8; }
.nv-prop svg { width: 20px; height: 20px; }
.nv-av { display: inline-block; width: 36px; height: 36px; border-radius: 50%; flex: none; background: radial-gradient(circle at 30% 30%, hsl(var(--h) 70% 72%), hsl(var(--h) 55% 38%)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.nv-icons { display: flex; gap: 22px; align-items: center; }
.nv-icons svg { width: 24px; height: 24px; }
.nv-sbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #fff; transition: background .2s; }
.search-open .nv-sbtn { background: rgba(255, 255, 255, .16); }
.nv-side { position: absolute; left: 0; top: 72px; bottom: 0; width: 230px; padding: 14px 0; border-right: 1px solid #e6e6ef; display: flex; flex-direction: column; }
.nv-side span { padding: 6px 22px; font-size: 13px; color: #3a3d55; border-left: 3px solid transparent; transition: background .3s, border-color .3s; }
.nv-side span.on { background: #eef0ff; border-left-color: #3b5bdb; font-weight: 500; color: #1b1f3a; }
.nv-main { position: absolute; left: 230px; top: 72px; right: 0; bottom: 0; padding: 30px 40px; background: #f7f7fa; }
.nv-main h3 { margin: 0 0 22px; font-size: 28px; font-weight: 500; display: inline-block; padding: 0 6px; margin-left: -6px; border-radius: 6px; }
.nv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nv-stats > div { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(27, 31, 58, .08); }
.nv-stats small { display: block; font-size: 12px; color: #6b6f86; }
.nv-stats b { font-size: 28px; font-weight: 500; }
.nv-panel { margin-top: 20px; background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(27, 31, 58, .08); }
.nv-panel > b { font-size: 15px; font-weight: 500; }
.nv-rows > div { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 12px 0; border-top: 1px solid #eee; font-size: 13px; }
.nv-rows > div:first-child { margin-top: 10px; }
.nv-rows.tall > div { padding: 15px 0; }
.nv-rows span:last-child { color: #1f8a4c; }

/* popovers */
.nv-pop { position: absolute; top: 66px; z-index: 5; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(12, 14, 28, .22); padding: 16px 18px; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; pointer-events: none; transition: opacity .25s, transform .25s; }
.search-open .nv-search, .info-open .nv-info, .switch-open .nv-switch { opacity: 1; transform: none; }
.nv-search { right: 120px; width: 400px; }
.nv-field { display: flex; align-items: center; gap: 10px; border: 2px solid #3b5bdb; border-radius: 10px; padding: 10px 12px; font-size: 18px; font-weight: 500; }
.nv-field span { flex: 1; }
.nv-field .ph { font-weight: 400; font-size: 15px; }
.nv-field svg { width: 20px; height: 20px; color: #1b1f3a; }
.nv-field.small { font-size: 14px; padding: 8px 10px; border-width: 1px; border-color: #b9b8cc; margin-top: 12px; }
.nv-field.small .ph { font-size: 14px; }
.nv-label { margin: 16px 0 6px; font-size: 13px; font-weight: 500; color: #1b1f3a; }
.nv-res { display: flex; gap: 12px; align-items: center; padding: 8px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; transition: background .2s; }
.nv-res svg { width: 22px; height: 22px; color: #1b1f3a; flex: none; }
.nv-res b { font-weight: 500; }
.nv-res small { display: block; font-size: 12px; color: #6b6f86; }
.nv-res.hover { background: #eef0ff; }
.nv-res mark { background: none; color: #3b5bdb; font-weight: 700; }
.nv-all b { color: #3b5bdb; }
.nv-skel { display: grid; gap: 14px; padding: 18px 0 8px; }
.nv-skel i { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #ececf3, #f7f7fb, #ececf3); background-size: 200% 100%; animation: nv-shimmer 1s linear infinite; }
.nv-skel i:nth-child(odd) { width: 70%; }
@keyframes nv-shimmer { to { background-position: -200% 0; } }

/* switcher */
.nv-tip { position: absolute; top: 74px; right: 300px; z-index: 6; background: #1b1f3a; color: #fff; font-size: 12px; padding: 8px 12px; border-radius: 8px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.tip .nv-tip { opacity: 1; transform: none; }
.nv-info, .nv-switch { right: 220px; width: 340px; }
.nv-info-head { display: flex; justify-content: space-between; align-items: center; }
.nv-info-head b { font-size: 18px; font-weight: 500; }
.nv-info-head em { font-style: normal; font-size: 11px; background: #e3f5ea; color: #1f8a4c; padding: 3px 8px; border-radius: 5px; }
.nv-info > small { display: block; font-size: 12px; color: #6b6f86; margin-top: 4px; }
.nv-info hr { border: 0; border-top: 1px solid #eee; margin: 12px 0 0; }
.nv-contact { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.nv-contact svg { width: 18px; height: 18px; color: #3b5bdb; }
.nv-link { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 500; color: #3b5bdb; }
.nv-link svg { width: 15px; height: 15px; }
.nv-btn { display: block; width: 100%; margin-top: 10px; height: 40px; border-radius: 20px !important; border: 1px solid #1b1f3a !important; background: #fff; font-size: 13px; font-weight: 500; transition: transform .15s; }
.nv-btn.ghost { margin-top: 12px; }
.nv-switch-head { display: flex; align-items: center; gap: 10px; }
.nv-switch-head svg { width: 20px; height: 20px; }
.nv-switch-head b { font-size: 15px; font-weight: 500; }
.nv-list { margin-top: 10px; max-height: 360px; overflow: hidden; }
.nv-pr { display: flex; align-items: center; gap: 10px; padding: 8px 6px; margin: 0 -6px; border-radius: 8px; max-height: 60px; overflow: hidden; transition: opacity .3s, max-height .35s, padding .35s; }
.nv-pr .nv-av { width: 32px; height: 32px; }
.nv-pr span { flex: 1; }
.nv-pr b { display: block; font-size: 14px; font-weight: 500; }
.nv-pr small { font-size: 11px; color: #6b6f86; }
.nv-pr svg { width: 20px; height: 20px; color: #3b5bdb; }
.nv-pr.gone { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.nv-pr.pressed { background: #eef0ff; }
.nv-toast { position: absolute; left: 50%; bottom: 28px; z-index: 6; transform: translate(-50%, 20px); background: #1b1f3a; color: #fff; font-size: 14px; padding: 12px 18px; border-radius: 10px; opacity: 0; transition: opacity .3s, transform .3s; }
.nv-toast b { font-weight: 500; }
.toast .nv-toast { opacity: 1; transform: translate(-50%, 0); }
.nv-prop.flash { animation: nv-flash 1.4s ease; }
@keyframes nv-flash { 0%, 30% { background: rgba(129, 147, 255, .45); } 100% { background: rgba(255, 255, 255, .1); } }

/* Simplifying Complex Navigation: hero, ideal-vs-achievable cards, phased plan */
.nv-hero { position: relative; margin: 2.5rem 0 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #d3dbee;
  background-color: #e9eef7;
  background-image: repeating-linear-gradient(30deg, transparent 0 23px, rgba(59, 91, 219, .1) 23px 24px),
                    repeating-linear-gradient(150deg, transparent 0 23px, rgba(59, 91, 219, .1) 23px 24px); }
.nv-hero-shot { position: absolute; left: 4%; top: 9%; width: 58%; padding: 5px; padding-top: 14px; background: #1b1f3a; border-radius: 7px; box-shadow: 0 30px 60px rgba(27, 31, 58, .28); transform: rotate(-2deg); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.nv-hero-shot::before { content: ""; position: absolute; top: 5px; left: 8px; width: 20px; height: 4px; background: radial-gradient(circle, #8b90e6 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; }
.nv-hero-shot img { display: block; width: 100%; height: auto; border-radius: 2px; }
.nv-hero-card { position: absolute; border-radius: 12px; overflow: visible; box-shadow: 0 24px 50px rgba(27, 31, 58, .25); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.nv-hero-card img { display: block; width: 100%; height: auto; border-radius: 12px; }
.nv-hero-card.info { left: 54%; top: 40%; width: 23%; transform: rotate(-3deg); z-index: 2; }
.nv-hero-card.list { left: 74%; top: 7%; width: 22%; transform: rotate(3deg); z-index: 3; }
.nv-hero .co-tag { left: 12px; right: auto; bottom: -14px; }
.nv-hero-card.list .co-tag { left: auto; right: 10px; }
.nv-hero:hover .nv-hero-shot { transform: translate(-6px, -4px) rotate(-3deg); }
.nv-hero:hover .nv-hero-card.info { transform: translate(-4px, 6px) rotate(-5deg); }
.nv-hero:hover .nv-hero-card.list { transform: translate(6px, -4px) rotate(5deg); }
@media (max-width: 640px) {
  .nv-hero { aspect-ratio: 4 / 3.6; }
  .nv-hero-shot { width: 78%; }
  .nv-hero-card.info { left: 8%; top: 52%; width: 40%; }
  .nv-hero-card.list { left: 56%; top: 34%; width: 38%; }
}
.nv-vs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.nv-vs > div { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem; border: 1px solid var(--line); background: var(--panel); }
.nv-vs > div.pick { background: var(--bg); border-color: var(--ink); }
.nv-vs-label { font-family: var(--display); font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nv-vs b { font-size: 1.15rem; }
.nv-vs p { margin: 0; color: var(--muted); font-size: .95rem; }
.nv-vs em { margin-top: auto; padding-top: .5rem; font-style: normal; font-size: .82rem; font-weight: 600; }
.nv-vs > div:not(.pick) em { color: var(--muted); text-decoration: line-through; }
.nv-phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; counter-reset: none; }
.nv-phases li { display: flex; flex-direction: column; gap: .35rem; padding: .8rem .7rem; border: 1px solid var(--line); border-top: 3px solid var(--line); background: var(--bg); min-width: 0; }
.nv-phases li::before { content: none; }
.nv-phases span { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.nv-phases b { font-size: .82rem; line-height: 1.3; font-weight: 600; }
.nv-phases em { font-style: normal; font-size: .72rem; line-height: 1.35; color: var(--muted); }
.nv-phases li.done { border-top-color: var(--ink); }
.nv-phases li.done span, .nv-phases li.done em { color: var(--ink); font-weight: 700; }
.nv-phases li.cut { background: var(--panel); }
.nv-phases li.cut b { text-decoration: line-through; color: var(--muted); }
.nv-phases li.ai { border-style: dashed; border-top-style: solid; }
.quotes.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .nv-vs { grid-template-columns: 1fr; }
  .nv-phases { grid-template-columns: repeat(2, 1fr); }
}

/* Navigation card: search under the header, switcher list in front */
.visual.wb.nv { --card-bg: #e9eef7; --card-line: #d3dbee; --iso-tint: rgba(59, 91, 219, .1); }
.visual.nv .wb-shot { background: #1b1f3a; box-shadow: 0 24px 50px rgba(27, 31, 58, .3); left: 6%; top: 14%; width: 66%; transform: rotate(-2deg); }
.visual.nv .wb-shot::before { background: radial-gradient(circle, #8b90e6 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; }
.nv-card-list { position: absolute; right: 7%; top: 9%; width: 28%; z-index: 2; transform: rotate(3deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.nv-card-list img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 40px rgba(27, 31, 58, .28); }
.card:hover .visual.nv .wb-shot { transform: translate(-8px, -6px) rotate(-3deg); }
.card:hover .nv-card-list { transform: translate(8px, -8px) rotate(5deg); }
.card:hover .visual.nv { border-color: #1b1f3a; }

/* Search sheet sits 8px below the 40px search button (button bottom = 56px) */
.nv-main .nv-search { top: -8px; } /* it lives inside the main area, which starts 72px down */
.nv-menu { width: 24px !important; height: 24px !important; margin: 0 14px 0 22px; flex: none; }
/* Switcher: the page names its property, and its contents reload on switch */
.nv-sub { display: inline-flex; align-items: center; gap: 10px; margin: -10px 0 18px; padding: 4px 10px 4px 4px; border-radius: 20px; font-size: 15px; font-weight: 500; }
.nv-sub em { font-style: normal; font-size: 12px; font-weight: 400; color: #6b6f86; }
.nv-av.sm { width: 26px; height: 26px; }
.nv-panel, .nv-sub { transition: opacity .3s; }
.reloading .nv-panel, .reloading .nv-sub { opacity: .25; }
.nv-sub.flash { animation: nv-sub-flash 1.4s ease; }
@keyframes nv-sub-flash { 0%, 30% { background: #dfe4ff; } 100% { background: transparent; } }
.nv-sub { display: flex; width: max-content; margin-top: -6px; }

/* Navigation case study: four identifiers diagram */
.ids { margin: 1.5rem 0 0; padding: 2.25rem 1.75rem 1.5rem; border: 1px solid var(--line); background: var(--panel); }
.ids-row { position: relative; display: flex; align-items: center; gap: 1rem; max-width: 30rem; margin: 1.5rem auto 2.25rem; padding: 1rem 1.25rem; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(27, 31, 58, .12); font-family: "DM Sans", var(--sans); color: #1b1f3a; }
.ids-img { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: url("images/navigation/switcher-list.png") -32px -628px / 536px auto; }
.ids-text { flex: 1; min-width: 0; }
.ids-text b { position: relative; display: inline-block; font-size: 1.15rem; font-weight: 500; }
.ids-text small { display: block; color: #6b6f86; font-size: .85rem; margin-top: .15rem; }
.ids-text small span { position: relative; }
.ids-row > svg { width: 22px; height: 22px; fill: none; stroke: #1b1f3a; stroke-width: 2; }
.ids [data-n]::after { content: attr(data-n); position: absolute; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 .7rem/1 var(--sans); }
.ids-img::after { left: -10px; top: -10px; }
.ids-text b::after { right: -26px; top: -14px; }
.ids-text small span::after { left: 50%; transform: translateX(-50%); bottom: -30px; }
.ids-key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; counter-reset: id; }
.ids-key li { counter-increment: id; display: flex; flex-direction: column; gap: .3rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; line-height: 1.4; }
.ids-key li::before { content: counter(id); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 .7rem/1 var(--sans); }
.ids-key b { color: var(--ink); font-size: .95rem; }

/* Two brands side by side */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.brands figure { margin: 0; padding: 1.25rem; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 1rem; justify-items: center; }
.brands figcaption { justify-self: start; font-family: var(--display); font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.brands-head { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 14px rgba(27, 31, 58, .1); }
.brands-list { width: 70%; height: auto; border-radius: 10px; box-shadow: 0 14px 30px rgba(27, 31, 58, .16); }

/* Documentation fan */
.docs-fan { position: relative; height: clamp(260px, 38vw, 420px); margin-top: 1.5rem; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.docs-fan img { position: absolute; top: 9%; width: 34%; height: auto; box-shadow: 0 20px 40px rgba(27, 31, 58, .2); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.docs-fan img:nth-child(1) { left: 6%; transform: rotate(-5deg); }
.docs-fan img:nth-child(2) { left: 33%; top: 6%; transform: rotate(1deg); z-index: 2; }
.docs-fan img:nth-child(3) { left: 60%; transform: rotate(5deg); }
.docs-fan:hover img:nth-child(1) { transform: translate(-8px, -6px) rotate(-7deg); }
.docs-fan:hover img:nth-child(3) { transform: translate(8px, -6px) rotate(7deg); }
@media (max-width: 760px) {
  .ids-key { grid-template-columns: 1fr 1fr; }
  .brands { grid-template-columns: 1fr; }
}
/* Anatomy: each component with a numbered list of its parts */
.anat-title { margin: 0 0 .6rem; font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.anat { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); background: var(--panel); }
.anat figure { margin: 0; display: grid; place-items: center; }
.anat img { max-width: 100%; max-height: 300px; width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 26px rgba(27, 31, 58, .14); }
.anat ol { margin: 0; padding: 0; list-style: none; counter-reset: a; display: grid; gap: .45rem; }
.anat li { counter-increment: a; display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.anat li::before { content: counter(a); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 .7rem/1 var(--sans); }
@media (max-width: 760px) { .anat { grid-template-columns: 1fr; } }
/* Anatomy hover: point to the part being described */
.anat-img { position: relative; display: inline-block; line-height: 0; }
.anat-hl { position: absolute; border: 2px solid #3b5bdb; border-radius: 6px; background: rgba(59, 91, 219, .1); box-shadow: 0 0 0 4px rgba(59, 91, 219, .15); opacity: 0; transition: opacity .2s, left .25s, top .25s, width .25s, height .25s; pointer-events: none; }
.anat-hl.on { opacity: 1; }
.anat li[data-box], .ids-key li { cursor: default; border-radius: 6px; transition: color .2s; }
.anat li[data-box]:hover, .anat li[data-box]:focus-visible, .ids-key li:hover, .ids-key li:focus-visible { color: #3b5bdb; outline: none; }
.ids [data-n] { transition: background .2s, box-shadow .2s; }
.ids .hl { background-color: rgba(59, 91, 219, .1); box-shadow: 0 0 0 2px #3b5bdb; border-radius: 6px; }
.ids .ids-img.hl { border-radius: 50%; }
/* Switcher row hover: same blue outline box as the other anatomy panels */
.ids .hl { background-color: rgba(59, 91, 219, .1); box-shadow: none; outline: 2px solid #3b5bdb; outline-offset: 4px; border-radius: 6px; }
.ids .ids-img.hl { border-radius: 50%; }
/* Switcher row: no number badges on the row itself; hover does the pointing */
.ids [data-n]::after { content: none; }

/* Anatomy panels: one shared style on the case study's blue isometric grid */
.anat, .ids { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; margin-top: 1.25rem; padding: 1.75rem 1.5rem; border: 1px solid #d3dbee;
  background-color: #e9eef7;
  background-image: repeating-linear-gradient(30deg, transparent 0 23px, rgba(59, 91, 219, .1) 23px 24px),
                    repeating-linear-gradient(150deg, transparent 0 23px, rgba(59, 91, 219, .1) 23px 24px); }
.ids-row { margin: 0 auto; width: 100%; max-width: 26rem; }
.ids-key { grid-template-columns: 1fr; gap: .45rem; }
.ids-key li { flex-direction: row; align-items: center; gap: .6rem; padding-top: 0; border-top: 0; font-size: .95rem; color: var(--ink); }
.ids-key li b { font-size: .95rem; font-weight: 400; }
.ids-key li b::after { content: ":"; }
.ids-key li { white-space: nowrap; }
.ids-key li > b + * , .ids-key li { }
@media (max-width: 760px) { .anat, .ids { grid-template-columns: 1fr; } .ids-key li { white-space: normal; } }
/* Anatomy panels: plain site background instead of the grid */
.anat, .ids { background: var(--panel); border-color: var(--line); }
.tldr.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .tldr.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tldr.six { grid-template-columns: repeat(2, 1fr); } }

/* ===== Blue Sky case study ===== */
.bs-hero { margin-top: 2rem; padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  background: #e6edfb; background-image: repeating-linear-gradient(30deg, transparent 0 23px, rgba(32, 96, 230, .08) 23px 24px), repeating-linear-gradient(150deg, transparent 0 23px, rgba(32, 96, 230, .08) 23px 24px); border: 1px solid #d3ddf3; }
.bs-hero .phone-frame video { display: block; width: 100%; aspect-ratio: 580 / 1258; object-fit: cover; border-radius: 21px; background: #2b6be8; }
.bs-hero-copy .pull { max-width: 18ch; }
.bs-persona { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem; background: var(--panel); border: 1px solid var(--line); }
.bs-persona img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid #e8603c; }
.bs-persona p + p { margin-top: .6rem; }
.bs-persona-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.bs-persona-quote { font-family: var(--display); font-weight: 300; font-size: 1.15rem; }
.bs-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: bs; }
.bs-journey li { background: var(--bg); padding: 1.1rem 1.1rem 1.25rem; counter-increment: bs; }
.bs-journey em { display: inline-block; margin-bottom: .6rem; padding: .15rem .5rem; border: 1px solid var(--line); font-style: normal; font-family: var(--display); font-weight: 700; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bs-journey li::before { content: none !important; display: none !important; }
.step .pull b { font-weight: 800; }
.bs-goals li { background: var(--panel); }
.bs-journey li.mine em { border-color: rgba(255, 255, 255, .6); color: #fff; }
.bs-journey b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.bs-journey span { display: block; margin-top: .35rem; font-size: .88rem; color: var(--muted); }
.bs-journey li.mine { background: #2b6be8; color: #fff; }
.bs-journey li.mine span { color: rgba(255, 255, 255, .78); }
@media (max-width: 760px) {
  .bs-hero { grid-template-columns: 1fr; } .bs-hero .phone { max-width: 240px; margin-inline: auto; }
  .bs-persona { grid-template-columns: 1fr; } .bs-persona img { width: 120px; }
  .bs-journey { grid-template-columns: 1fr 1fr; }
}
/* Homepage card */
.visual.bs { position: relative; display: block; --card-bg: #e6edfb; --card-line: #d3ddf3; --iso-tint: rgba(32, 96, 230, .1); }
.bs-phone { position: absolute; width: 23%; padding: 4px; background: #16171b; border-radius: 22px; box-shadow: 0 24px 50px rgba(20, 40, 100, .3); transition: transform .6s cubic-bezier(.2,.8,.2,1); backface-visibility: hidden; will-change: transform; }
.bs-phone img { display: block; width: 100%; aspect-ratio: 580 / 1258; object-fit: cover; object-position: top; border-radius: 18px; }
.bs-phone:nth-of-type(1) { left: 14%; top: 18%; transform: rotate(-7deg); }
.bs-phone:nth-of-type(2) { left: 38.5%; top: 8%; z-index: 2; }
.bs-phone:nth-of-type(3) { left: 63%; top: 18%; transform: rotate(7deg); }
.card:hover .bs-phone:nth-of-type(1) { transform: translate(-10px, -8px) rotate(-10deg); }
.card:hover .bs-phone:nth-of-type(2) { transform: translateY(-14px); }
.card:hover .bs-phone:nth-of-type(3) { transform: translate(10px, -8px) rotate(10deg); }
.card:hover .visual.bs { border-color: #2b6be8; }
.bs-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--panel); background-image: var(--iso); border: 1px solid var(--line); }
.bs-row.three { grid-template-columns: repeat(3, 1fr); padding-inline: clamp(1.25rem, 7vw, 5rem); }
.bs-row figure { margin: 0; }
.bs-row video, .bs-row .phone-frame img { display: block; width: 100%; aspect-ratio: 402 / 874; object-fit: cover; object-position: top; border-radius: 21px; background: #fff; }
.bs-ai-help { margin-top: 1.5rem; }
.bs-ai-help ul li + li { margin-top: .4rem; }
@media (max-width: 760px) { .bs-row, .bs-row.three { grid-template-columns: 1fr 1fr; padding-inline: 1.25rem; } }/* Soft loop: a white layer fades over the screen before the video rewinds (script.js) */
.soft-loop { position: relative; }
.soft-loop::after { content: ""; position: absolute; inset: 5px; border-radius: 21px; background: #fff; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.soft-loop.looping::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .soft-loop::after { transition: none; } }/* Sound toggle (labeled button that unmutes a video by id) */
.sound-toggle { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem .55rem .8rem; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.sound-toggle:hover, .sound-toggle[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.sound-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sound-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .spk { fill: currentColor; stroke: none; }
.sound-toggle .on { display: none; }
.sound-toggle[aria-pressed="true"] .on { display: inline; }
.sound-toggle[aria-pressed="true"] .off { display: none; }.sound-toggle.sm { margin-top: .75rem; gap: .35rem; padding: .3rem .65rem .3rem .5rem; font-size: .58rem; letter-spacing: .14em; }
.sound-toggle.sm svg { width: 14px; height: 14px; }
.bs-row figure { display: flex; flex-direction: column; align-items: center; }
.bs-row figure .phone-frame { width: 100%; }
/* ===== How I work (homepage) ===== */
.how-lede { font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3; max-width: 32ch; }
.how-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.how-row.flip .how-copy { order: 2; }
.how-verb { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; gap: .8rem; }
.how-verb span { color: var(--ink); }
.how-copy h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -.01em; margin: .6rem 0 .9rem; }
.how-copy > p { color: var(--muted); }
.how-copy ul { margin-top: 1.25rem; }
.how-copy li + li { margin-top: .5rem; }
.how-visual .docs-fan { margin-top: 0; }
.how-cap { margin-top: .7rem; font-size: .88rem; color: var(--muted); }
.how-cap a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.how-shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px rgba(20, 20, 30, .12); }
.how-stack { position: relative; padding: clamp(1rem, 3vw, 2rem); background: var(--panel); background-image: var(--iso); border: 1px solid var(--line); }
.how-stack .how-shot:first-child { width: 72%; }
.how-stack .how-shot.sm { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); width: 48%; border-radius: 6px; }
.how-shot.doc { max-height: 520px; object-fit: cover; object-position: top; }
.how-quote { font-size: clamp(1.05rem, 1.8vw, 1.3rem); margin-top: 1.75rem; }
@media (max-width: 860px) { .how-row { grid-template-columns: 1fr; } .how-row.flip .how-copy { order: 0; } }
.inline-link { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.how { padding-top: 0; }
.how > .how-row:first-of-type { margin-top: 0; }
.quote-cta { display: inline-block; margin-top: 1.75rem; font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; padding: .7rem 1.2rem; border: 1px solid var(--ink); border-radius: 999px; transition: background .2s, color .2s; }
.quote-cta:hover { background: var(--ink); color: var(--bg); }
#process { scroll-margin-top: 64px; }
.how-flow { grid-column: 1 / -1; margin: 0; }
.how-flow img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20, 20, 30, .1); }
.how-flow figcaption { margin-top: .7rem; font-size: .88rem; color: var(--muted); }
.how-flow figcaption b { color: var(--ink); }
.how-flow figcaption a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.docs-fan.with-flow { height: clamp(320px, 42vw, 480px); }
.docs-fan.with-flow > img { top: 5%; width: 30%; }
.docs-fan.with-flow > img:nth-child(1) { left: 9%; }
.docs-fan.with-flow > img:nth-child(2) { left: 35%; top: 3%; }
.docs-fan.with-flow > img:nth-child(3) { left: 61%; }
.fan-flow { position: absolute; left: 4%; right: 4%; bottom: 6%; z-index: 3; display: block; background: #fff; border: 1px solid var(--line); box-shadow: 0 22px 44px rgba(27, 31, 58, .22); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.fan-flow img { display: block; width: 100%; height: auto; }
.fan-flow:hover { transform: translateY(-4px); }
.docs-fan .fan-flow img { position: static; width: 100%; top: auto; left: auto; transform: none; box-shadow: none; }
.docs-fan.with-flow { height: clamp(280px, 33vw, 400px); background: var(--panel); background-image: var(--iso); }
.docs-fan.with-flow .fan-flow { bottom: 7%; }
/* Mobile fixes */
@media (max-width: 760px) {
  .quotes.three { grid-template-columns: 1fr; }
  .bar i b { padding: 0 .35rem; font-size: .8rem; }
  .status div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; }
  .status dt { flex: 1 1 12rem; }
  .bs-row.three figure:last-child { grid-column: 1 / -1; width: calc(50% - .4rem); justify-self: center; }
  .sound-toggle.sm { white-space: nowrap; letter-spacing: .08em; font-size: .56rem; padding: .3rem .55rem .3rem .45rem; }
}
/* Let section content shrink on narrow phones instead of pushing past the edge */
.step > * { min-width: 0; }
@media (max-width: 360px) { .sound-toggle.sm { white-space: normal; text-align: left; } .metrics.two { grid-template-columns: 1fr; } }
.pp-frame { overflow: hidden; }
/* How I work: no hover movement on the docs panel */
.docs-fan.with-flow img, .docs-fan.with-flow .fan-flow { transition: none; }
.docs-fan.with-flow:hover > img:nth-child(1) { transform: rotate(-5deg); }
.docs-fan.with-flow:hover > img:nth-child(3) { transform: rotate(5deg); }
.docs-fan.with-flow .fan-flow:hover { transform: none; }
.docs-fan.with-flow .fan-flow img, .docs-fan.with-flow:hover .fan-flow img { transform: none !important; transition: none; }
