/* ---------- Tokens (sampled from the original site) ---------- */
:root {
  --ink: #2f2e2e;
  --ink-2: #414141;
  --muted: #575757;
  --soft: #7d7d7d;
  --indigo: #5a4dd0;
  --blue: #3d9be9;
  --lavender: #a586fc;
  --lilac: #e3dff3;
  --dot: #dedbf1;
  --card: #f9f9f9;
  --line: #ececec;
  --navy-1: #12151f;
  --navy-2: #1b2246;
  --panel: #161b31;

  --sans: "Open Sans", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav: "Barlow", "Avenir Next", system-ui, sans-serif;

  --max: 980px;
  --gutter: clamp(20px, 5vw, 40px);
  --header: 82px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 clamp(17px, 1.6vw, 20px)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(90, 77, 208, 0.22); color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header); background: #fff;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font: 500 18px/26px var(--nav); color: var(--ink-2); text-decoration: none; }
.brand img { width: 29px; height: 39px; }
.nav-links { display: flex; gap: clamp(24px, 4vw, 44px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font: 500 18px/26px var(--nav); color: var(--ink-2); text-decoration: none; padding: 6px 0;
  transition: color 0.4s;
}
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a:hover { color: #a8a8a7; }

/* Projects dropdown */
.nav-links li { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 7px); right: 0; z-index: 60; margin: 0; padding: 0; list-style: none;
  min-width: 333px; width: max-content; background: rgba(255, 255, 255, 0.7); border-radius: 5px;
  visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { visibility: visible; opacity: 1; transition: opacity 0.2s, visibility 0s; }
.nav-links .submenu a { display: block; padding: 0 5px; font: 500 18px/33px var(--nav); text-align: right; color: var(--ink-2); white-space: nowrap; transition: color 0.4s; }
.nav-links .submenu a[aria-current="page"] { color: var(--blue); }
.nav-links .submenu a:hover { color: #a8a8a7; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-left: auto; margin-right: -10px; cursor: pointer; color: var(--ink-2); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; transition: transform 0.2s, top 0.2s, background 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 640px) {
  .site-header { height: 68px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.2);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 20px; border-top: 1px solid var(--line); }
  .nav-links li:first-child > a { border-top: 0; }
  .submenu { position: static; visibility: visible; opacity: 1; min-width: 0; width: auto; background: none; padding: 0 0 8px 16px; transition: none; }
  .submenu::before { display: none; }
  .nav-links .submenu a { text-align: left; font-size: 17px; line-height: 40px; border-top: 0; padding: 0; white-space: normal; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero .hello { color: var(--indigo); font-size: clamp(17px, 2vw, 20px); margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 36px); font-weight: 700; line-height: 1.3; color: var(--ink); max-width: 11.5em; }
.hero h1 .circled { position: relative; display: inline-block; white-space: nowrap; }
.hero h1 .ln { display: block; white-space: nowrap; }
.hero h1 .circled svg {
  /* A hand-drawn-looking OVAL around "delightful." (continuous elliptical curvature, no flat
     edges/corners -- a rounded-rectangle read as "not a circle"). Slightly tighter on the left,
     where it sits close to "and", and looser on the right/top/bottom where there's room; a small
     organic wobble and an open, slightly overlapping stroke (the path doesn't close at the exact
     start point) give it a sketched feel. Positioned in em so it scales with the responsive
     headline. Verified numerically against the word's real rendered pixels (a canvas-drawn ink
     mask, not just its bounding box) plus the neighboring word "and" and the line above, at both
     desktop and mobile sizes: the drawn curve never touches a letter, "and", or the line above.
     Re-verify the same way before changing these numbers -- a few px of clearance doesn't show up
     reliably in a screenshot at this scale. */
  position: absolute; left: -0.167064em; top: -0.205738em; width: 6.01142em; max-width: none; height: 1.86665em;
  fill: none; stroke: var(--indigo); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none; overflow: visible; transform: rotate(-1.2deg);
}
.hero h1 .circled svg path { vector-effect: non-scaling-stroke; }
.hero .intro { color: var(--muted); margin: 32px 0 36px; max-width: 30em; }
.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  font-size: clamp(16px, 1.6vw, 20px); padding: 13px 22px; border-radius: 8px; transition: background-color 0.4s;
}
.btn:hover { background: #8864ec; }

.hero-art { position: relative; aspect-ratio: 671 / 545; width: 100%; }
.hero-art .arch { position: absolute; right: 0; bottom: 0; width: 100%; }
.hero-art .photo { position: absolute; left: 6%; bottom: 0; width: 89%; }
@media (min-width: 901px) {
  /* Bleed the photo past the page's normal right margin, like the original: text keeps the
     standard left gutter, the picture's column runs to the true browser edge (no right gutter)
     and grows to fill it, up to its natural size. A real grid column (not absolute positioning)
     so the picture can never overlap the text -- it only ever takes the space actually left over. */
  .hero .wrap {
    grid-template-columns: 440px minmax(280px, 1fr);
    gap: clamp(20px, 1.6vw, 32px);
    max-width: none;
    padding-left: max(var(--gutter), calc((100vw - (var(--max) + var(--gutter) * 2)) / 2 + var(--gutter)));
    padding-right: 0;
  }
  /* left-aligned within its track (not pushed to the far right) so it always sits close to the
     text; any width left over once it hits its own 671px cap becomes outer margin on the right
     instead of a gap opening up between the text and the picture. */
  .hero-art { width: 100%; max-width: 671px; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 671px; margin: 8px auto 0; aspect-ratio: 671 / 451; }
  /* Once the photo has dropped below the text, let the text use the full row width (still inside
     the normal left/right margins) instead of stopping at its narrower two-column measure and
     leaving a lopsided gap on the right. */
  .hero .intro { max-width: none; }
  .hero .wrap {
    max-width: none;
    padding-left: max(var(--gutter), calc((100vw - (var(--max) + var(--gutter) * 2)) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100vw - (var(--max) + var(--gutter) * 2)) / 2 + var(--gutter)));
  }
}

/* ---------- Logo marquee ---------- */
.logos { overflow: hidden; padding: 8px 0 clamp(32px, 5vw, 56px); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.logos-track img { height: clamp(40px, 6vw, 64px); width: auto; margin: 0 clamp(8px, 2vw, 24px); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Featured projects ---------- */
.projects { padding: clamp(24px, 4vw, 48px) 0 clamp(45px, 6.3vw, 78px); }
.projects .wrap { max-width: calc(795px + 2 * var(--gutter)); }
.projects h2 { font-size: clamp(24px, 3vw, 28px); font-weight: 400; color: #323232; margin-bottom: clamp(24px, 4vw, 40px); }
.project-list { display: grid; gap: clamp(56px, 8vw, 96px); max-width: 795px; margin: 0 auto; }
.project { position: relative; display: block; text-decoration: none; }
.project .shot {
  position: relative; overflow: hidden; background: var(--card);
  border-radius: clamp(16px, 3vw, 30px); box-shadow: 0 0 4px rgba(65, 65, 65, 0.24);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.project .shot img { width: 100%; display: block; }
.project .cap { color: var(--ink); padding: 14px 4px 0; }
.project .meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.project .meta img { height: 18px; width: auto; display: block; }
.project .meta span { font-size: 14px; font-weight: 600; line-height: 1; }
.project .cap h3 { font-size: clamp(20px, 2.4vw, 25px); font-weight: 700; line-height: 1.3; }

/* Hover/focus (anywhere on the card, image or text): lift the thumbnail with a
   soft shadow underneath it, rather than dimming the image. Text stays as-is
   since it's always visible below the thumbnail already. */
@media (hover: hover) {
  .project:hover .shot, .project:focus-visible .shot {
    box-shadow: 0 24px 40px -16px rgba(20, 20, 20, 0.35), 0 6px 16px rgba(20, 20, 20, 0.1);
    transform: translateY(-4px);
  }
}

/* ---------- Connect / footer ---------- */
.connect { background: linear-gradient(332deg, var(--navy-1) 0%, var(--navy-2) 100%); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.connect .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.connect .kicker { color: var(--lavender); font-weight: 600; font-size: 20px; margin-bottom: 18px; }
.connect h2 { font-size: clamp(28px, 3.6vw, 36px); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.connect p.sub { font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.86); }
.form { background: var(--panel); border-radius: 4px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.85); margin-bottom: 6px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); padding: 11px 12px; color: var(--ink);
  background: #fff; border: 1px solid #000; border-radius: 3px;
}
.form input:hover, .form textarea:hover { border-color: #414141; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--lavender); outline-offset: 1px; }
.form button {
  font: 400 16px var(--sans); color: #fff; background: var(--indigo); border: 0; border-radius: 100px;
  padding: 12px 36px; cursor: pointer; justify-self: start; transition: background-color 0.2s ease-in-out;
}
.form button:hover { background: #666; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .status { grid-column: 1 / -1; font-size: 14px; color: rgba(255, 255, 255, 0.8); min-height: 1.2em; }

.social { display: flex; justify-content: flex-end; gap: 20px; padding: 23px clamp(12px, 1.2vw, 14px) 21px; }
.social a { display: block; }
.social img { width: 30px; height: 30px; }

@media (max-width: 820px) {
  .connect .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about { padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 9vw, 112px); }
.about-top {
  display: grid; grid-template-columns: auto auto; gap: clamp(24px, 6vw, 88px); align-items: center;
  width: fit-content; max-width: 100%; margin: 0 auto clamp(40px, 6vw, 72px);
}
.about-top img { width: clamp(150px, 26vw, 242px); }
.about-top h1 { font: 500 clamp(32px, 5vw, 42px)/1.15 var(--nav); color: var(--ink-2); margin-bottom: 0.62em; }
.about-top h1 em { font-style: normal; color: var(--indigo); }
.about-top .tags { font: 500 clamp(17px, 2vw, 20px)/1.3 var(--nav); color: var(--soft); max-width: 22em; }
.about-body { max-width: 42em; margin: 0 auto; }
.about-body p { font: 500 clamp(17px, 2vw, 20px)/1.7 var(--nav); color: var(--ink-2); margin-bottom: 2.4em; }
.about-body p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .about-top { grid-template-columns: 1fr; text-align: center; justify-items: center; width: auto; }
}

/* ---------- Project pages (mirrors the original Wix case studies) ----------
   Vertical rhythm is data-driven: every gap between blocks is a spacer (.sp) whose
   height is the gap measured on the original site, scaled by viewport width so it
   holds exactly at ~1280px and shrinks proportionally on smaller screens. */
.pp { --t: #414141; color: var(--t); font-size: 17px; overflow-x: clip; }
.pp p { margin: 0; line-height: 31px; }
.pp p + p { margin-top: 31px; }
.pp strong, .pp b { font-weight: 700; }
.pp a { color: inherit; }
.pp ul, .pp ol { margin: 0; padding-left: 1.3em; }
.pp li { margin: 0; line-height: 31px; }
.pp img, .pp video { display: block; max-width: 100%; height: auto; }
.pp figure { margin: 0; }
.pp .blue { color: var(--blue); }
.pp .r8, .pp video.r8b { border-radius: 8px; }
.pp video.r8b { border: 1px solid #d4d4d2; }
.pp .r12 { border-radius: 12px; }
.pp .r24s { border-radius: 24px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.31); }
.pp .r4b, .pp video.r4b { border-radius: 4px; border: 1px solid #d4d4d2; box-sizing: border-box; }
.pp h1, .pp h2, .pp h3 { margin: 0; }
.pp h1.title, .pp h2 { font-size: 27px; font-weight: 700; line-height: 1.39; }
.pp h2.big { font-size: clamp(32px, 5vw, 42px); line-height: 1.38; }
.pp h3 { font-size: 20px; font-weight: 700; line-height: 1.4; }
.eyebrow, .pp p.eyebrow { font: 700 16px/23px var(--sans); color: #8864ec; margin: 0; }

/* spacer + responsive paddings (values are px at >=1280px) */
.sp { height: clamp(calc(var(--g) * 0.3px), calc(var(--g) * 0.078125vw), calc(var(--g) * 1px)); }
.padt { padding-top: clamp(calc(var(--pt) * 0.3px), calc(var(--pt) * 0.078125vw), calc(var(--pt) * 1px)); }
.padb { padding-bottom: clamp(calc(var(--pb) * 0.3px), calc(var(--pb) * 0.078125vw), calc(var(--pb) * 1px)); }
.hgt { min-height: clamp(calc(var(--h) * 0.45px), calc(var(--h) * 0.078125vw), calc(var(--h) * 1px)); }

.col  { max-width: calc(795px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: calc(980px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wide2 { max-width: calc(980px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.max1265 { max-width: 1265px; margin: 0 auto; }
.col843 { max-width: calc(843px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.banner { position: relative; overflow: hidden; background: #242323; aspect-ratio: var(--ar, 1265 / 681); min-height: 220px; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner[data-fade] { background: transparent; }
.banner.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.banner.split > img { position: static; }

.meta { display: grid; grid-template-columns: var(--cols, 309fr 355fr 131fr); gap: 0 12px; margin: 0; }
.meta dt { font: 700 18px/28px var(--sans); }
.meta dd { margin: 5px 0 0; font-size: 15px; line-height: 30px; }
.meta:not(.two) > div:nth-child(2) dd { max-width: 200px; }
.meta.two { --cols: 441px 330px; row-gap: 38px; padding-left: 41px; grid-template-rows: 134px 67px; }
.meta.two dt { font: 700 18px/32.4px var(--sans); }
.meta.two dd { margin: 0; font-size: 15px; line-height: 34.5px; }
.metaband { background: #f9f9f9; }
.pp-agent .meta { --cols: 220fr 260fr 315fr; gap: 0 8px; }

.band { background: var(--bg, #f9f9f9); }
.band.dark { --bg: #414141; color: #f9f9f9; }
.band.dark p, .band.dark h2, .band.dark h3 { color: #f9f9f9; }
.band.g250 { --bg: #fafafa; }
.band.g240 { --bg: #f0f0f0; }
.band.g212 { --bg: #d4d4d2; }

.fig img { margin: 0 auto; }
.pp img[style*="max-width"] { margin-left: auto; margin-right: auto; }
.pp p.figcap { font-size: 15px; line-height: 23px; color: #727272; margin: 11px 0 0; }
.pp p.figcap + p.figcap { margin-top: 0; }
.pp p.figcap.i { font-style: italic; font-size: 14px; line-height: 25px; margin-top: 10px; }
.figcap.c { text-align: center; }

.callout { display: flex; gap: 26px; align-items: center; background: #f9f9f9; border-radius: 10px; padding: 6px 26px; font-size: 15px; }
.callout svg { flex: none; width: 34px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.callout p { line-height: 31px; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 25px); align-items: start; }
.duo .pc { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.31); overflow: hidden; }
.duo.sq .pc { border-radius: 0; box-shadow: 0 1px 3px rgba(64, 102, 124, 0.5); }
.duo .pc img { width: 100%; }
.duo.plain .pc { background: none; box-shadow: none; border-radius: 0; overflow: visible; }

/* Agent Chat: pinned vertical photo gallery (photo positions are computed in script.js) */
.hgal { --vh: 100vh; position: relative; --gh: min(74vh, 780px); }
.hgal-stage { position: sticky; top: 0; height: 100vh; height: var(--vh); display: flex; align-items: center; overflow: hidden; }
.hgal-view { width: 100%; height: var(--gh); overflow: hidden; outline: none; }
.hgal-track { position: relative; width: 100%; will-change: transform; }
.hgal-track img { position: absolute; display: block; object-fit: cover; }
.hgal:not(.ready) .hgal-track img { opacity: 0; }
.hgal { --half: clamp(18px, 4.6875vw, 60px); --halfup: clamp(11px, 2.85vw, 36.5px); margin-top: calc(-1 * ((var(--vh) - var(--gh)) / 4 + var(--halfup))); margin-bottom: calc(-1 * ((var(--vh) - var(--gh)) / 4 + var(--half))); }
/* reduced motion: unpinned, the mosaic just flows down the page */
.hgal.static { margin-top: calc(-1 * var(--halfup) * 0.65); margin-bottom: 0; height: auto !important; }
.hgal.static .hgal-stage { position: static; height: auto; display: block; }
.hgal.static .hgal-view { height: auto; overflow: visible; }
.hgal.static .hgal-track { transform: none !important; }

/* photo bands with overlaid text */
.photoband { position: relative; overflow: hidden; background: #fff; display: flex; align-items: center; }
.photoband > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.photoband > .wide { position: relative; width: 100%; }
.photoband h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.39; color: #242323; }
.photoband p { color: #242323; }

/* alternating media/text features */
.feature { display: grid; grid-template-columns: var(--tw, 420px) minmax(0, 1fr); column-gap: clamp(24px, 4.2vw, 54px); align-items: center; max-width: 1265px; margin: 0 auto; padding: 0 clamp(16px, 0.47vw, 6px) 0 clamp(16px, 4.2vw, 54px); }
.feature .fm { justify-self: end; width: 100%; max-width: var(--vw, 720px); }
.feature.flip { grid-template-columns: minmax(0, 1fr) var(--tw, 420px); padding: 0 clamp(16px, 1.2vw, 15px) 0 clamp(16px, 4.3vw, 55px); }
.feature.flip .fm { justify-self: start; order: -1; }
.feature .ft h2 { margin: 0 0 25px; }
.feature .ft p + p { margin-top: 0; }
.feature .fm video, .feature .fm img { width: 100%; }
.pp .feature .ft h2.fs25 { font-size: 25px; }
.feature .num { font: 700 16px/23px var(--sans); color: #8864ec; margin: 0 0 20px; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; row-gap: 24px; } .feature .fm, .feature.flip .fm { order: 2; justify-self: stretch; max-width: none; } .feature .ft { padding: 0; } }

.grid4 { display: grid; grid-template-columns: minmax(0, 460fr) minmax(0, 505fr); gap: clamp(16px, 3.1vw, 40px) clamp(16px, 3.4vw, 43px); justify-content: center; max-width: calc(1008px + 2 * var(--gutter)); padding: 0 var(--gutter); margin: 0 auto; }
.grid4 img { width: 100%; height: auto; max-width: none !important; }

/* Panel: numbered insights */
.n795 { max-width: 795px; margin: 0 auto; }
.insight { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 352px); column-gap: clamp(20px, 5.9vw, 76px); justify-content: start; align-items: center; margin-left: auto; margin-right: auto; max-width: 848px; }
.insight .tx { position: relative; }
.insight .n { position: absolute; left: -42px; top: -68px; font: 700 clamp(90px, 10.2vw, 130px)/1 var(--sans); color: #f0f0f0; z-index: 0; pointer-events: none; }
.insight .tx p { position: relative; z-index: 1; line-height: 31px; }
.insight .im { display: flex; gap: 0; justify-content: flex-start; }
.insight .im img { height: auto; min-width: 0; flex: 0 1 auto; margin: 0; }
@media (max-width: 720px) { .insight { grid-template-columns: 1fr; row-gap: 20px; } .insight .n { left: auto; right: 0; top: -20px; } }
.numlist { list-style: none; padding: 0 !important; }
.pp p[data-n] { position: relative; padding-left: 29px; }
.pp p[data-n]::before { content: attr(data-n) "."; position: absolute; left: 0; font-weight: 400; }

.bleedpair { display: grid; grid-template-columns: minmax(0, 641fr) minmax(0, 723fr); column-gap: 13px; max-width: 1377px; margin: 0 auto; padding: 0 clamp(12px, 2.3vw, 29px); }
.bleedpair img { width: 100%; }
@media (max-width: 720px) { .bleedpair { grid-template-columns: 1fr; row-gap: 24px; } }

/* Update icon */
.prob { display: grid; grid-template-columns: minmax(0, 552fr) minmax(0, 396fr); gap: clamp(20px, 2.5vw, 32px); align-items: center; }
.prob h3 { font-size: 17px; line-height: 31px; }
.prob p { font-size: 15px; line-height: 31px; }
@media (max-width: 720px) { .prob { grid-template-columns: 1fr; } }
.pp p.statement { font-size: clamp(19px, 1.75vw, 22px); font-weight: 700; text-align: center; line-height: 1.86; max-width: 813px; margin: 0 auto; }
.tint { position: relative; overflow: hidden; background: #fff; display: flex; align-items: center; }
.tint > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.tint > .wide { position: relative; width: 100%; }
.tint h2 { font-size: clamp(22px, 2.35vw, 30px); line-height: 1.83; margin: 0 0 0 clamp(0px, 10.3vw, 132px); color: var(--t); max-width: 700px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; }
.principles img { margin: 0 auto; height: 83px; width: auto; }
.principles h3 { font-size: 17px; line-height: 31px; margin: 0; color: #f9f9f9; }
.principles p { font-size: 15px; line-height: 26px; }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.pp h2.stepd { font-size: 22px; line-height: 1.86; }

/* Stardog */
.pp.sd p { line-height: 37.4px; }
.pp.sd p + p { margin-top: 37.4px; }
.pp.sd h2 { line-height: 1.4; }
.bluebold { color: #008afc; font-weight: 700; }
.ocards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ocard { border: 1px solid #d5d5d5; border-radius: 3px; padding: 27px 34px 29px; background: #fff; }
.ocard h3 { font-size: 17px; line-height: 41px; font-weight: 700; margin-bottom: 15px; }
.ocard p { font-size: 17px; line-height: 37.4px; }
@media (max-width: 600px) { .ocards { grid-template-columns: 1fr; } }
.rowcard { display: grid; grid-template-columns: minmax(0, 433fr) minmax(0, 420fr); gap: clamp(20px, 3.2vw, 40px); align-items: start; height: var(--ch, 320px); background: #f0f0f0; border-radius: 10px; padding: 38px 41px; }
.rowcard h3 { font-size: 17px; line-height: 44px; font-weight: 400; display: flex; align-items: center; gap: 16px; margin: 0; }
.rowcard h3 i { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #3a7ebf; color: #fff; display: grid; place-items: center; font: normal 400 20px var(--sans); }
.rowcard p { font-size: 17px; line-height: 37.4px; margin: 0; }
.rowcard .rm { background: #fff; padding: 10px; display: grid; gap: 8px; align-self: center; }
.rowcard .rm img { width: 100%; }
@media (max-width: 720px) { .rowcard { grid-template-columns: 1fr; padding: 24px 20px; height: auto; } .users { height: auto; } }
.users { background: #fff; padding: 18px 20px; height: 285px; }
.users .hd { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 13px; line-height: 21px; color: #4d5b6a; }
.users .ar { height: 6px; background: #3a7ebf; margin: 8px 0 14px; position: relative; border-radius: 3px; }
.users .ar::after { content: ""; position: absolute; right: -4px; top: -6px; border-left: 12px solid #3a7ebf; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.users .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 13px; }
.users .cols b { display: block; font-weight: 400; margin: 6px 0; line-height: 21px; }
.users .cols small { display: block; font-size: 12px; line-height: 1.4; padding: 8px 4px; background: #dbe6f2; }
.users .cols .hl small { background: #7aa5d6; color: #fff; }
.users svg { width: 40px; height: 40px; margin: 0 auto; fill: #a9c4de; }
.itable { background: #fafafa; padding: 36px 34px 89px; }
.itable .hdr, .itable .irow { display: grid; grid-template-columns: minmax(0, 397fr) 40px minmax(0, 385fr); gap: clamp(8px, 2vw, 24px); align-items: start; }
.itable .hdr { font-weight: 700; font-size: 20px; line-height: 45px; margin-bottom: 27px; }
.itable .irow { height: var(--rh, 160px); }
.itable .irow .a { font-size: 17px; line-height: 30.6px; }
.itable .irow .a b { display: block; color: #008afc; line-height: 37.4px; margin-bottom: 8px; }
.itable .irow .b { background: #fff; padding: 20px 24px; font-size: 17px; line-height: 30.6px; margin-top: 20px; }
.itable .irow .arr { text-align: center; font-size: 28px; line-height: 1; margin-top: 62px; }
@media (max-width: 720px) { .meta.two { --cols: 1fr; padding-left: 0; grid-template-rows: none; } .itable .irow { height: auto !important; margin-bottom: 24px; } .itable { padding: 24px 18px 40px; } .itable .hdr { display: none; } .itable .irow { grid-template-columns: 1fr; gap: 8px; } .itable .irow .arr { transform: rotate(90deg); margin: 0; } .itable .irow .b { margin-top: 0; } }
.listbox { background: #f9f9f9; padding: 32px 65px 32px 44px; font-size: 17px; }
.listbox ol { margin: 0; padding-left: 49px; }
.listbox li { line-height: 37.4px; }
/* Before/after slider (self-built replica of the original's third-party widget) */
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 1800 / 1001; overflow: hidden;
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ba-slider:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-sizing: border-box;
  box-shadow: 0 0 12px rgba(51, 51, 51, 0.5); display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.ba-handle::before, .ba-handle::after { content: ""; width: 0; height: 0; border: 5px solid transparent; }
.ba-handle::before { border-right-color: #fff; margin-right: 1px; }
.ba-handle::after { border-left-color: #fff; margin-left: 1px; }
.ba-caps { display: flex; margin-top: 30px; }
.ba-caps span { flex: 1; text-align: center; font-size: 15px; color: var(--ink-2); }
.zoom { position: relative; overflow: hidden; background: #242323; height: clamp(360px, 62vw, 785px); }
.zoom img { width: 100%; height: 100%; object-fit: cover; }
.player video { width: 100%; background: #0e1a1f; }

/* closing */
.outcomes h2 { text-align: center; }
.works h2 { font-size: 20px; line-height: 37px; }
.works .rowlist { display: flex; flex-wrap: wrap; gap: clamp(20px, 3.7vw, 48px); }
.works a { display: block; width: min(var(--tw, 264px), 44%); text-decoration: none; }
.works a img { width: 100%; height: auto; aspect-ratio: 239 / 151; object-fit: cover; }
.works a[style*="264"] img { aspect-ratio: 264 / 151; }
.works a span { display: block; margin-top: 8px; font-size: 14px; line-height: 20px; color: #828282; text-align: center; }
.works a span { padding: 0 8%; }
@media (max-width: 720px) {
  .works .rowlist { flex-direction: column; align-items: center; gap: 32px; }
  .works a { width: min(var(--tw, 264px), 100%); }
}

.to-top {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(65, 65, 65, 0.55); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, background-color 0.3s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: rgba(65, 65, 65, 0.85); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 720px) { .meta { --cols: 1fr 1fr !important; row-gap: 20px; } .meta > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .meta { --cols: 1fr !important; } .meta.two { --cols: 1fr !important; } }

/* ---------- Home spacing (measured on the original at 1280px; scales down proportionally) ---------- */
.hero { padding: clamp(24px, calc(69 * 0.078125vw), 69px) 0 0; overflow-x: clip; }
.hero .wrap { align-items: end; gap: clamp(24px, 2.2vw, 28px); }
@media (max-width: 900px) { .hero .wrap { max-width: none; } }
.hero .hello { font-size: 20px; font-weight: 600; line-height: 24px; margin: 0 0 28px; }
.hero h1 { font-size: clamp(22px, 3.3vw, 36px); line-height: 1.36; max-width: none; }
@media (max-width: 900px) { .hero h1 { font-size: clamp(24px, 7.3vw, 36px); } }
.hero .intro { font-size: 19px; line-height: 28px; margin: clamp(28px, calc(61 * 0.078125vw), 61px) 0 clamp(24px, calc(42 * 0.078125vw), 42px); }
@media (min-width: 901px) { .hero .intro { max-width: 500px; } }
.btn { padding: 0; height: 52px; min-width: 228px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.logos { margin-top: clamp(44px, calc(148 * 0.078125vw), 148px); padding: 0; }
.logos-track img { height: clamp(52px, 6.8vw, 87px); }
.projects { padding: clamp(48px, calc(163 * 0.078125vw), 163px) 0 clamp(67px, calc(240 * 0.078125vw), 240px); }
.projects h2 { font-weight: 700; color: #323232; line-height: 33px; margin-bottom: clamp(24px, calc(44 * 0.078125vw), 44px); }
.project-list { gap: clamp(72px, calc(140 * 0.078125vw), 140px); }
@media (min-width: 901px) { .hero .wrap { min-height: clamp(360px, calc(546 * 0.078125vw), 546px); } }
@media (max-width: 900px) { .hero .wrap { align-items: start; } }

/* ---------- Motion ----------
   Matches the original site's scroll-reveal (a Wix "float in" effect): each text block floats up
   60px while fading in, individually, as it's scrolled to -- not one block sliding in together.
   Measured directly from the original's CSS (@keyframes + per-element animation rules):
     motion-floatIn: 800ms, cubic-bezier(0.445, 0.05, 0.55, 0.95), translateY(60px) -> 0, opacity 0 -> 1
     motion-fadeIn:  1200ms, same easing, opacity only (used for one large banner heading)
   Images never animate on the original, and one short pull-quote plays with no animation either --
   both are left without a .reveal class rather than exempted here. */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 0.8s cubic-bezier(0.445, 0.05, 0.55, 0.95), transform 0.8s cubic-bezier(0.445, 0.05, 0.55, 0.95); }
.reveal.in { opacity: 1; transform: none; }
.reveal-fade { opacity: 0; transition: opacity 1.2s cubic-bezier(0.445, 0.05, 0.55, 0.95); }
.reveal-fade.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-fade { opacity: 1; transform: none; transition: none; }
  .logos-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 12px; }
  .logos-track [aria-hidden="true"] { display: none; }
  .project .shot, .project .cap, .btn, .nav-links a, .form button, .site-header { transition: none; }
}

/* ---------- Agent Chat: review sections ---------- */
.pp .lab { font: 700 20px/28px var(--sans); color: var(--blue); margin: 0; }
.duo.arrow { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); column-gap: 10px; row-gap: 14px; align-items: center; }
.duo.arrow .lab { align-self: end; padding-left: 2px; }
.duo.arrow img { width: 100%; height: auto; border-radius: 4px; }
.duo.arrow .arr { width: 40px; height: 14px; stroke: #414141; fill: none; stroke-width: 1.4; }
.duo.plain .pc img { border-radius: 4px; }
.trio { display: flex; gap: clamp(10px, 2.2vw, 22px); align-items: flex-start; }
.trio figure { margin: 0; flex: var(--w) 1 0; min-width: 0; }
.trio img { width: 100%; height: auto; border-radius: 10px; }
.pp .trio p.figcap { font-size: 17px; line-height: 26px; margin-top: 14px; }
.insights { display: grid; gap: 24px; }
.insights .ins { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; }
.insights .n { font-size: 24px; font-weight: 700; color: var(--blue); }
.insights h3 { font-size: 17px; line-height: 26px; }
.insights p { line-height: 26px; }
.pp .prob .num { font: 700 16px/23px var(--sans); color: var(--blue); margin: 0 0 8px; }
.pp h2.sm { font-size: 22px; line-height: 1.4; margin: 0 0 12px; }
.band.lightblue { --bg: #f1f5f9; }
.draft { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 5.6vw, 88px); align-items: center; }
.draft img { width: 100%; height: auto; }
.compare { display: flex; align-items: stretch; gap: 10px; margin-top: 56px; }
@media (max-width: 720px) { .trio { flex-direction: column; gap: 24px; } .trio figure { flex: none; width: 100%; } .prob { grid-template-columns: 1fr; } .draft { grid-template-columns: 1fr; } .duo.arrow { grid-template-columns: 1fr; } .duo.arrow .arr { transform: rotate(90deg); justify-self: center; } }
@media (max-width: 720px) {
  .duo.arrow > span { display: none; }
  .duo.arrow > :nth-child(1) { order: 1; } .duo.arrow > :nth-child(4) { order: 2; } .duo.arrow > :nth-child(5) { order: 3; }
  .duo.arrow > :nth-child(3) { order: 4; } .duo.arrow > :nth-child(6) { order: 5; }
}

/* Agent Chat: "A review should start a conversation" rows */
.rv { display: grid; grid-template-columns: minmax(0, 50%) minmax(0, 1fr); column-gap: 7.5%; align-items: center; }
.rv img { width: 100%; height: auto; }
.pp .rv .rn { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--blue); margin: 0 0 6px; }
.pp .rv h2 { font-size: 28px; line-height: 1.39; margin: 0 0 20px; }
@media (max-width: 720px) { .rv { grid-template-columns: 1fr; row-gap: 20px; } .pp .rv h2 { font-size: 24px; line-height: 1.39; } }
.pp .compare .cl { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--blue); margin: 0 0 6px; }
.pp .compare .cv { font-size: 17px; line-height: 26px; font-weight: 700; margin: 0; }
.compare > div:not(.mid) { flex: 1 1 0; min-width: 0; }
.compare .mid { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px; color: #727272; font-size: 16px; }
.compare .mid i { display: block; width: 2px; height: 22px; background: #cfe0f5; }
@media (max-width: 900px) { .draft { grid-template-columns: 1fr; } }

/* headings marked class="center" are centered (the class had no rule before) */
.pp .center { text-align: center; }

.rv.rv2 { grid-template-columns: minmax(0, 50%) minmax(0, 1fr); column-gap: 7.5%; }
@media (max-width: 720px) { .rv.rv2 { grid-template-columns: 1fr; } }

/* Lightweight first draft: wider than the reading column so the screenshot is easier to read */
.draftwrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 2.2vw, 48px); }
.img-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; }
.img-zoom img { display: block; width: 100%; height: auto; }
.img-zoom::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20, 22, 28, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transition: opacity 0.2s;
}
.img-zoom:hover::after, .img-zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .img-zoom::after { opacity: 1; } }

/* Click-to-enlarge viewer */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; overflow: auto; background: rgba(15, 17, 22, 0.9); }
.lb-stage { min-height: 100%; display: flex; padding: 56px 24px; box-sizing: border-box; }
.lb-img { margin: auto; display: block; width: auto; height: auto; max-width: min(100%, 2000px); max-height: calc(100vh - 112px); border-radius: 6px; background: #fff; cursor: zoom-in; }
.lightbox.actual .lb-img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-close { position: fixed; top: 14px; right: 18px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font: 400 26px/40px var(--sans); cursor: pointer; }
.lb-close:hover, .lb-close:focus-visible { background: rgba(255, 255, 255, 0.28); }

/* Agent Chat: "How might we make agentic engineering feel intuitive" banner (text over a washed-out photo) */
/* height follows the width (871/1992 = 43.7vw) but is set with min-height, not aspect-ratio, which would force a minimum width */
.photoband2 { min-height: clamp(380px, 43.7vw, 1000px); background: #dce8fb; }
.photoband2 > img.bg { opacity: 1; object-position: 30% 50%; }
.photoband2 .pb-in { position: relative; width: 100%; min-width: 0; box-sizing: border-box; padding: 40px clamp(20px, 5vw, 60px); text-align: center; }
.photoband2 h2 { overflow-wrap: break-word; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.38; color: #414141; max-width: 690px; margin: 0 auto; }
.pp .photoband2 p { overflow-wrap: break-word; color: #414141; line-height: 35px; max-width: 900px; margin: 32px auto 0; }
@media (max-width: 720px) { .photoband2 { padding: 0; } .photoband2 h2 { font-size: 28px; } .pp .photoband2 p { line-height: 30px; margin-top: 20px; } }

/* Agent Chat: manual editing -> AI-powered design (scroll-driven, pinned) */
.evo { position: relative; }
.evo-in { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; min-height: 100vh; }
.evo-in > h2, .evo-s { grid-column: 1; }
.pp .evo h2 { font-size: 30px; line-height: 42px; margin: 0 0 48px; }
.pp .evo h2 .blue { color: #328de8; }
.evo-s { display: contents; }
.evo-t { grid-column: 1; grid-row: 2; margin: 0 0 14px; }
.evo-i { grid-column: 1; grid-row: 3; width: 103.09%; max-width: none; margin: 0 -1.546%; height: auto; display: block; } /* screenshots carry ~1.5% shadow padding per side */
.evo-cap { grid-column: 1; grid-row: 4; display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font: 600 15px/1.3 "Open Sans", sans-serif; color: #7a7a7a; }
.evo-dot { width: 9px; height: 9px; border-radius: 50%; background: #b4b4b4; flex: none; }
.evo-s[data-state="1"] .evo-cap { color: #328de8; }
.evo-s[data-state="1"] .evo-dot { background: #328de8; }
.evo-seg { display: flex; gap: 6px; margin-left: auto; }
.evo-seg i { width: 28px; height: 3px; border-radius: 2px; background: #d9dde3; }
.evo-seg i.on { background: #414141; }
.evo-s[data-state="1"] .evo-seg i.on { background: #328de8; }
.pp .evo-t h3 { font-size: 21px; line-height: 30px; font-weight: 700; color: #414141; margin: 0 0 6px; }
.pp .evo-t p { margin: 0; color: #5c5c5c; }
.evo:not(.static) .evo-t, .evo:not(.static) .evo-i, .evo:not(.static) .evo-cap { will-change: opacity; }
/* pinned mode: both states overlay each other in the same grid cells */
.evo:not(.static) .evo-in { position: sticky; top: 0; }
/* stacked mode (short windows / reduced motion): both states shown one after the other */
.evo.static .evo-in { display: block; min-height: 0; position: static; }
.evo.static .evo-s { display: block; margin: 0 0 56px; }
.evo.static .evo-s:last-child { margin-bottom: 0; }
.evo.static .evo-t { margin: 0 0 14px; }
@media (max-width: 720px) { .pp .evo h2 { font-size: 24px; line-height: 34px; } .pp .evo-t h3 { font-size: 19px; line-height: 27px; } .evo-cap { font-size: 14px; } .evo-seg i { width: 20px; } }

/* one persistent caption while pinned: colours and labels blend from original to new */
.evo-live { grid-column: 1; grid-row: 4; display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font: 600 15px/1.3 "Open Sans", sans-serif; color: #7a7a7a; }
.evo-labs { display: grid; }
.evo-labs span { grid-area: 1 / 1; }
.evo-l1 { opacity: 0; }
.evo:not(.static) .evo-cap { display: none; }
.evo.static .evo-live { display: none; }
@media (max-width: 720px) { .evo-live { font-size: 14px; } }

/* ---------- Agent chat: challenges intro ---------- */
.pp h2.ch-title { font-size: clamp(25px, 3.5vw, 34px); line-height: 1.4; text-align: center; }
.pp .ch-lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.8; }
.pp .ch-eyebrow { font-size: 18px; line-height: 26px; color: #727272; letter-spacing: 0.01em; }
.ch-pair { display: grid; grid-template-columns: minmax(0, 1282fr) minmax(0, 1446fr); gap: 12px; align-items: start; }
.ch-pair img { width: 100%; height: auto; border-radius: 6px; }
.ch-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 48px); align-items: start; }
.ch-cols > div > img { width: 100%; max-width: 300px; margin: 0 auto; }
.pp .ch-item .ch-n { display: block; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.pp .ch-item h3 { font-size: 20px; line-height: 30px; color: #111; margin-bottom: 6px; }
.pp .ch-item p { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
.pp .ch-dir { border: 2px solid #4a88de; border-radius: 32px; background: #eff5ff; padding: clamp(20px, 2.8vw, 26px) clamp(20px, 2.8vw, 27px) clamp(22px, 3vw, 27px); }
.pp .ch-dir p.ch-dir-eyebrow { font-size: 18px; line-height: 26px; font-weight: 600; color: #3b8ee6; margin-bottom: 18px; }
.pp .ch-dir h2 { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.85; color: #101828; margin-bottom: 10px; }
.pp .ch-dir p { font-size: clamp(17px, 2vw, 20px); line-height: 1.95; color: #1d2433; }
.pp .ch-dir p + p { margin-top: 1.95em; }
@media (max-width: 720px) { .ch-pair, .ch-cols { grid-template-columns: 1fr; } .ch-pair { gap: 24px; } }

.ch-pair figure { position: relative; outline-offset: 3px; }
.pp .ch-pair p.ch-tip {
  position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 14px 10px 38px;
  background: rgba(20, 20, 30, 0.9); color: #fff; font-size: 14px; line-height: 21px; border-radius: 8px;
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.pp .ch-pair .ch-i {
  position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff;
  font: italic 700 12px/15px Georgia, serif; text-align: center; box-sizing: border-box;
}
.ch-pair figure::after {
  content: "i"; position: absolute; right: 10px; bottom: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(20, 20, 30, 0.72); color: #fff; font: italic 700 14px/24px Georgia, serif; text-align: center;
  transition: opacity 0.2s;
}
.ch-pair figure:hover::after, .ch-pair figure:focus-within::after { opacity: 0; }
.ch-pair figure:hover p.ch-tip, .ch-pair figure:focus-within p.ch-tip { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pp .ch-pair p.ch-tip { transition: none; transform: none; } }
.ch-pair figure:focus:not(:focus-visible) { outline: none; }

.ch-pair figure[data-zoom] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: clamp(16px, 4vw, 48px); background: rgba(12, 12, 18, 0.88); opacity: 0; transition: opacity 0.2s ease; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; background: #fff; transform: scale(0.96); transition: transform 0.25s ease; cursor: default; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox.open img { transform: none; }
.lightbox-cap { margin: 0; max-width: 820px; color: #d8d8e0; font-size: 15px; line-height: 22px; text-align: center; }
.lightbox-cap:empty { display: none; }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 28px; line-height: 40px; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox img { transition: none; transform: none; } }

.evo-seg i { position: relative; cursor: pointer; transition: opacity 0.2s; }
.evo-seg i::after { content: ""; position: absolute; inset: -12px -4px; }
.evo-seg i:hover { opacity: 0.7; }
.evo-seg i:focus-visible { outline: 2px solid #328de8; outline-offset: 1px; border-radius: 2px; }

@supports (height: 100svh) { .hgal { --vh: 100svh; --gh: min(74svh, 780px); } }

/* Agent Chat: outcome stat cards */
.pp .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3.3vw, 32px); }
.pp .stat { background: #f8fbff; border: 1px solid #dfe9f6; border-radius: 22px; min-height: 160px; padding: 22px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pp .stat .sn { font-size: clamp(34px, 4.8vw, 46px); line-height: 1.15; font-weight: 700; color: #4488e0; margin: 0 0 14px; }
.pp .stat .sl { font-size: clamp(16px, 1.9vw, 19px); line-height: 1.3; font-weight: 600; color: #414141; margin: 0; max-width: 15em; }
@media (max-width: 720px) { .pp .stats { grid-template-columns: 1fr; } .pp .stat { min-height: 132px; } }

/* Agent Chat: gallery title stays pinned above the gallery */
.hgal-title { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: calc((var(--vh) - var(--gh)) / 2); margin: 0; padding: 0 var(--gutter) clamp(12px, 3.2vh, 30px); box-sizing: border-box; display: flex; align-items: flex-end; justify-content: center; text-align: center; }
.pp .hgal-title { font-size: min(clamp(18px, calc((var(--vh) - var(--gh)) / 2 * 0.3), 30px), 6.2vw); line-height: 1.35; }
.hgal, .hgal.static { margin-top: 0; }
.hgal.static .hgal-title { position: static; height: auto; display: block; padding: 0 var(--gutter) 24px; }
.pp .hgal.static .hgal-title { font-size: clamp(22px, 5.6vw, 30px); }

/* Agent Chat: "What I learned from engineers" */
.pp .lrn h2 { font-size: 30px; line-height: 1.3; color: #131a2b; }
.pp .lrn .lrn-lead { font-size: 18px; line-height: 38px; color: #4a5162; }
.lrn .trio { gap: clamp(10px, 2.2vw, 22px); }
.lrn .trio img { border-radius: 16px; height: clamp(240px, 41vw, 401px); object-fit: cover; }
.pp .lrn .trio p.figcap { font-size: 18px; line-height: 26px; color: #6b7280; margin-top: 12px; }
.pp .lrn .lrn-eyebrow { font-size: 17px; line-height: 1.3; letter-spacing: .02em; color: #6b7280; margin: 0 0 22px; }
.pp .lrn .lrn-eyebrow.lrn-blue { color: #2f7fdc; margin: 0 0 14px; font-weight: 600; }
.lrn-cards { display: grid; gap: 26px; margin: 0 0 48px; }
.lrn-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; background: #f9fafc; border: 1px solid #e6eaf0; border-radius: 18px; padding: 24px 28px 24px 30px; }
.pp .lrn .lrn-n { font-size: 20px; line-height: 32px; font-weight: 700; color: #2f7fdc; }
.pp .lrn .lrn-card h3 { font-size: 22px; line-height: 32px; font-weight: 700; color: #131a2b; margin: 0 0 6px; }
.pp .lrn .lrn-card p { font-size: 18px; line-height: 35px; color: #4a5162; margin: 0; }
.lrn-decision { background: #f0f6fd; border: 2px solid #3d86dc; border-radius: 22px; padding: 26px 28px 28px; }
.pp .lrn .lrn-decision h3 { font-size: 22px; line-height: 32px; font-weight: 700; color: #131a2b; margin: 0 0 14px; }
.pp .lrn .lrn-decision p:not(.lrn-eyebrow) { font-size: 18px; line-height: 35px; color: #3d4557; margin: 0; }
@media (max-width: 720px) {
  .pp .lrn h2 { font-size: 24px; }
  .lrn .trio img { height: auto; aspect-ratio: 4 / 3; }
  .pp .lrn .lrn-lead, .pp .lrn .lrn-card p, .pp .lrn .lrn-decision p:not(.lrn-eyebrow) { font-size: 16px; line-height: 29px; }
  .lrn-card { grid-template-columns: 40px minmax(0, 1fr); padding: 20px 18px; }
  .pp .lrn .lrn-card h3 { font-size: 19px; line-height: 27px; }
  .pp .lrn .lrn-decision h3 { font-size: 19px; line-height: 27px; }
  .lrn-decision { padding: 22px 18px; }
}

/* Agent Chat: "A lightweight first draft" */
.band.lightblue { --bg: #f6f8fb; }
.draftwrap { max-width: 1290px; }
.pp .draftwrap h2.dtitle { font-size: clamp(24px, 2.35vw, 30px); line-height: 1.3; color: #414141; }
.pp .draftwrap .dintro { max-width: 900px; margin: 0 auto; font-size: 17px; line-height: 1.85; color: #4a4a4a; }
.draft2 { display: grid; grid-template-columns: minmax(0, 366px) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 49px); align-items: center; }
.draft2 .img-zoom img { width: 100%; height: auto; }
.dl { display: grid; gap: 0; }
.di { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: start; padding: 4px 0; }
.di-i { width: 30px; height: auto; fill: none; stroke: #414141; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; }
.di-i.blue { stroke: #3d8ce3; }
.pp .di .de { font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: .02em; color: #3d8ce3; margin: 0 0 8px; }
.pp .di h3 { font-size: 19px; line-height: 1.4; font-weight: 700; color: #414141; margin: 0 0 6px; }
.pp .di .dd { font-size: 17px; line-height: 31px; color: #555; margin: 0; }
.dsep { border: 0; border-top: 1px solid #d5d9df; margin: 26px 0; }
@media (max-width: 900px) { .draft2 { grid-template-columns: 1fr; gap: 36px; } .pp .draftwrap .dintro { text-align: left; } }

.pp img[data-zoom] { cursor: zoom-in; }
.pp img[data-zoom]:focus:not(:focus-visible) { outline: none; }

/* Agent Chat: goal -> constraint -> design response (scroll-driven, pinned) */
.ag { position: relative; --vh: 100vh; }
@supports (height: 100svh) { .ag { --vh: 100svh; } }
.ag-stage { position: sticky; top: 0; height: 100vh; height: var(--vh); overflow: hidden; background: linear-gradient(180deg, #e8eefb 0%, #f5f8fd 100%); }
.ag-bg { position: absolute; left: 0; top: 0; width: 100%; height: min(100%, calc(100vw / 2.287)); object-fit: cover; object-position: 50% 0; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); }
.ag-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240,245,253,.97) 0%, rgba(240,245,253,.9) 40%, rgba(240,245,253,.35) 72%, rgba(240,245,253,.05) 100%); }
.ag-s { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.ag-in { width: 100%; }
.pp .ag-eb { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: .09em; color: #2f7fdc; margin: 0 0 16px; }
.pp .ag h2 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.22; color: #2b303b; margin: 0 0 18px; max-width: 700px; }
.pp .ag-p { font-size: 18px; line-height: 1.7; color: #4a505c; margin: 0; max-width: 700px; }
.pp .col.ag-in > p.ag-lab { font-size: 15px; line-height: 23px; font-weight: 400; letter-spacing: 0; color: #727272; margin: 11px 0 0 -.37%; max-width: none; text-align: left; }
.pp .ag-p + .ag-pair { margin-top: 30px; }
.ag-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.ag-pair img { width: 101.5%; max-width: none; margin: 0 -.75%; height: auto; display: block; }
/* This pair are self-contained graphics (their own white card, shadow and callout baked in),
   not edge-to-edge screenshots, so they get a plain, uncropped, contained treatment instead. */
.ag-pair.ag-pair-cards img { width: 100%; max-width: 100%; margin: 0; }
.ag-rail { position: absolute; z-index: 3; left: clamp(14px, 2.6vw, 40px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
.ag-rail li { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #cdd5e1; transition: background .3s, box-shadow .3s; }
.ag-rail li + li { margin-top: 30px; }
.ag-rail li + li::before { content: ""; position: absolute; left: 5px; bottom: 12px; width: 2px; height: 30px; background: #d5dbe6; }
.ag-rail li + li::after { content: ""; position: absolute; left: 5px; bottom: 12px; width: 2px; height: calc(30px * var(--f, 0)); background: #2f7fdc; }
.ag-rail li.done { background: #8fbcf3; }
.ag-rail li.on { background: #2f7fdc; box-shadow: 0 0 0 4px rgba(47,127,220,.18); }
/* stacked mode: short windows, phones, reduced motion */
.ag.static .ag-stage { position: relative; height: auto; overflow: hidden; padding: clamp(56px, 9vw, 96px) 0; }
.ag.static .ag-s { position: relative; inset: auto; opacity: 1 !important; transform: none !important; margin: 0 0 clamp(56px, 9vw, 88px); }
.ag.static .ag-s:last-child { margin-bottom: 0; }
.ag.static .ag-rail { display: none; }
.ag.static .ag-bg { opacity: .55; object-position: 80% 50%; -webkit-mask-image: none; mask-image: none; }
.ag.static .ag-veil { background: linear-gradient(180deg, rgba(240,245,253,.88), rgba(240,245,253,.92)); }
.ag.static .ag-s > * { position: relative; }
@media (max-width: 720px) {
  .pp .ag h2 { font-size: 26px; line-height: 1.22; margin-bottom: 12px; max-width: none; }
  .pp .ag-p { font-size: 15.5px; line-height: 1.6; max-width: none; }
  .pp .ag-eb { font-size: 13px; margin-bottom: 12px; }
  .pp .col.ag-in > p.ag-lab { font-size: 14px; line-height: 21px; margin: 10px 0 0 -.5%; }
  .pp .ag-p + .ag-pair { margin-top: 18px; }
  /* two screenshots become overlapping, offset cards so each scene fits one phone screen */
  .ag-pair { display: block; }
  .ag-pair img { width: 76%; max-width: none; margin: 0 -.5% 0 -.5%; }
  .ag-pair img + img { margin-top: calc((100vw - 40px) * -0.2); margin-left: auto; margin-right: -.5%; box-shadow: 0 10px 24px rgba(20,40,80,.14); border-radius: 12px; }
  .ag-pair.ag-pair-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .ag-pair.ag-pair-cards img, .ag-pair.ag-pair-cards img + img { width: 100%; max-width: 100%; margin: 0; box-shadow: none; border-radius: 0; }
  .pp .ag .ag-bg { left: auto; right: 0; width: auto; max-width: none; height: 46%; aspect-ratio: 1992 / 871; object-position: 100% 0; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .pp .ag h2 { font-size: 23px; }
  .pp .ag-p { font-size: 14.5px; line-height: 1.5; }
  .ag-pair img { width: 68%; }
  .ag-pair img + img { margin-top: calc((100vw - 40px) * -0.16); }
  .ag-pair.ag-pair-cards img, .ag-pair.ag-pair-cards img + img { width: 100%; margin-top: 0; }
}

@media (max-width: 900px) {
  .ag-rail { top: 18px; left: var(--gutter, 20px); transform: none; flex-direction: row; }
  .ag-rail li + li { margin-top: 0; margin-left: 30px; }
  .ag-rail li + li::before { left: auto; right: 12px; bottom: 5px; width: 30px; height: 2px; }
  .ag-rail li + li::after { left: auto; right: 12px; bottom: 5px; height: 2px; width: calc(30px * var(--f, 0)); }
  .ag-s { padding-top: 34px; box-sizing: border-box; }
}

/* Agent chat: text-only blocks use the original site's 795px reading column */
.pp .col:not(:has(> :not(h1, h2, p, .sp, dl))), .pp .col.ch, .pp .col:has(> .ch-dir) { max-width: calc(795px + 2 * var(--gutter)); }

/* Header follows the original site's edge margins (logo 38px from the left; menu ends ~102px from the right) */
.site-header .wrap { max-width: none; padding: 0 102px 0 38px; }
@media (max-width: 1024px) { .site-header .wrap { padding: 0 38px; } }
@media (max-width: 640px) { .site-header .wrap { padding: 0 var(--gutter); } }

/* Agent chat: section headings and lead text share the 795px reading column */
.pp .col > :is(h1, h2, h3, p):not([class*="eyebrow"]) { max-width: 795px; margin-left: auto; margin-right: auto; }
.pp .col > .outcomes + .sp + :is(p, div) { max-width: 843px; margin-left: auto; margin-right: auto; }
.pp .principles { max-width: 718px; margin-left: auto; margin-right: auto; }
.pp-agent .evo-in > h2, .pp-agent .evo-t { width: 100%; max-width: 795px; margin-left: auto; margin-right: auto; }

/* clickable progress stepper */
.ag-nav { display: contents; }
.ag-rail li button { position: absolute; inset: -10px; width: auto; height: auto; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ag-rail li button:focus-visible { outline: 2px solid #2f7fdc; outline-offset: -2px; }
.ag-rail li:hover:not(.on) { background: #9dc3f4; }

.pp .col.lrn { max-width: calc(795px + 2 * var(--gutter)); }

.pp-agent .rv { max-width: 795px; margin-left: auto; margin-right: auto; }
.pp-agent .stats { max-width: 843px; margin-left: auto; margin-right: auto; }

/* See my other works: three thumbnails share the 795px reading column */
@media (min-width: 721px) {
  .pp .works { max-width: 795px; margin-left: auto; margin-right: auto; }
  .pp .works .rowlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
  .pp .works a { width: auto; }
}

/* Stardog: "Prototype Design" banner stays pinned in the viewport while the page scrolls past it (Wix "Fixed" background effect) */
.pdpin { position: relative; }
.pdpin .zoom { position: sticky; top: 0; }
@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  .pdpin { height: auto !important; }
  .pdpin .zoom { position: relative; top: auto; }
}

/* Stardog: the three before/after screenshots run much wider than the text column */
.sd-shots { max-width: min(1640px, 94vw); }
.sd-shots img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* Let the title reflow naturally to fill the row (like the paragraph does) instead of keeping
   three fixed short lines, once the layout has stacked -- font size is untouched. */
@media (max-width: 900px) {
  /* Let the whole title reflow to fill the row's full width, like the paragraph, instead of
     three fixed short lines. */
  .hero h1 .ln { display: inline; white-space: normal; }

}

/* Agent Chat: solution videos with a hover play/pause control */
.fm-video { position: relative; }
.fm-video .vid-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(20, 22, 26, 0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.fm-video .vid-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.fm-video .vid-toggle .i-play { display: none; }
.fm-video .vid-toggle.is-paused .i-pause { display: none; }
.fm-video .vid-toggle.is-paused .i-play { display: block; }
.fm-video:hover .vid-toggle, .fm-video:focus-within .vid-toggle, .fm-video .vid-toggle.is-paused {
  opacity: 1; transform: none;
}
.fm-video .vid-toggle:hover { background: rgba(20, 22, 26, 0.75); }
.fm-video .vid-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .fm-video .vid-toggle { opacity: 1; transform: none; } }
@media (hover: none) { .fm-video .vid-toggle { opacity: 1; transform: none; } } /* touch: no hover, so always show it */

/* Agent Chat: on narrow screens, double the space between the "Our decision" box and "A review should start a conversation" */
@media (max-width: 720px) { .sp.sp-lrn-after { height: clamp(calc(var(--g) * 0.6px), calc(var(--g) * 0.15625vw), calc(var(--g) * 2px)); } }

/* Agent Chat: "initial proposed design" screenshot (single wide graphic; sized so the pinned scene still fits the window height) */
.pp .ag-p + .ag-single { margin-top: 30px; }
.ag-single img { display: block; height: auto; max-width: none; margin-left: -.75%; width: max(56%, min(101.5%, calc((var(--vh) - 330px) * 1.74))); }
.ag.static .ag-single img { width: 101.5%; }
@media (max-width: 720px) {
  .pp .ag-p + .ag-single { margin-top: 18px; }
  .ag-single img { width: 101%; margin-left: -.5%; }
}

/* Agent Chat: "Reuse the foundation" -- one wide before/after graphic with a caption under each half */
.pp .ag-p + .ag-single.ag-wide { margin-top: 30px; }
.ag-single.ag-wide { margin-left: -.75%; width: max(56%, min(101.5%, calc((var(--vh) - 330px) * 1.984))); }
.ag-single.ag-wide img { width: 100%; margin-left: 0; }
.ag.static .ag-single.ag-wide { width: 101.5%; }
.ag-caps { display: grid; grid-template-columns: 55.35% minmax(0, 1fr); }
.pp .ag-caps p.ag-lab { font-size: 15px; line-height: 23px; font-weight: 400; letter-spacing: 0; color: #727272; margin: 11px 0 0; max-width: none; text-align: left; }
.pp .ag-caps p.ag-lab:first-child { padding-left: .5%; }
@media (max-width: 720px) {
  .pp .ag-p + .ag-single.ag-wide { margin-top: 18px; }
  .ag-single.ag-wide { margin-left: -.5%; width: 101%; }
  .pp .ag-caps p.ag-lab { font-size: 14px; line-height: 21px; margin-top: 10px; }
}
