/* ===== Blog, article, press, careers and legal pages (same grid as About: 72 | 450 | 450 | 876) ===== */
.intro-sub { font-size: var(--t20); line-height: 1.5; max-width: 640px; }
.ul { text-decoration: underline; text-underline-offset: 3px; }
/* Blog index */
.bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 24px; padding: clamp(56px, 5vw, 96px) var(--g) clamp(80px, 7.3vw, 140px); }
.bcard { display: flex; flex-direction: column; gap: 21px; }
.bcard .img { aspect-ratio: 876 / 560; border-radius: 8px; overflow: hidden; }
.bcard p { line-height: 1.5; }
.bcard .img .ui { transition: transform .9s cubic-bezier(.16,1,.3,1); }
.bcard:hover .img .ui { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 14px)) scale(var(--s, .6)); }
.m .bcard .stage { clip-path: inset(100% 0 0 0); transition: clip-path 1.25s cubic-bezier(.76,0,.24,1) var(--d, 0ms); }
.m .bcard.in .stage { clip-path: inset(0 0 0 0); }
/* Article */
.acover { padding: clamp(40px, 3.75vw, 72px) var(--g) 0; }
.acover .stage { aspect-ratio: 1776 / 760; border-radius: 8px; }
.article { display: grid; grid-template-columns: 450fr 450fr 876fr; padding: clamp(56px, 5vw, 96px) var(--g) clamp(64px, 6.25vw, 120px); }
.article .lbl { grid-column: 1; }
.article .prose { grid-column: 2 / span 2; max-width: 700px; }
.prose { display: flex; flex-direction: column; gap: 20px; line-height: 1.5; }
.prose h2 { font-size: var(--t28); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--mute); }
.prose p:first-child, .article .prose > p:first-child { color: var(--ink); }
.prose .back { padding-top: 24px; }
.more { border-top: 1px solid var(--line); padding: clamp(64px, 6.25vw, 120px) 0 0; }
.more .bgrid { padding-top: 0; }
/* Label rows (press, careers, legal) */
.lrows, .legal-body { padding: clamp(64px, 6.25vw, 120px) var(--g); display: flex; flex-direction: column; gap: clamp(56px, 5vw, 96px); }
.legal-body { gap: clamp(40px, 3.75vw, 64px); }
.lrow { display: grid; grid-template-columns: 450fr 1326fr; }
.lrow > .lbl { padding-top: 2px; }
.lrow .prose { max-width: 700px; }
.lrow .prose p:first-child { color: var(--ink); }
.legal-body .lrow { border-top: 1px solid var(--line); padding-top: clamp(32px, 2.9vw, 56px); }
.legal-body .lrow:first-child { border-top: 0; padding-top: 0; }
.legal-body .prose p:first-child { color: var(--mute); }
/* Press assets */
.assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1100px; }
.asset { display: flex; flex-direction: column; border: 1px solid #e5e5e3; border-radius: 8px; overflow: hidden; transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s; }
.asset:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.asset .art { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18%; }
.asset .art img { width: 100%; height: auto; max-height: 100%; }
.asset.wh .art img { filter: invert(1); }
.asset.bk .art { background: #f8f7f5; color: #000; }
.asset.wh .art { background: #0a0a0a; color: #fff; }
.asset.gy .art { background: #d8d8d8; color: #000; padding: 26%; }
.asset.gy .art img { width: 46%; }
.asset .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; font-size: 16px; }
.asset .cap b { font-weight: 500; }
.note { font-size: 16px; line-height: 1.5; margin-top: 20px; max-width: 700px; }
/* Careers principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principles > div { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.principles .pn { font-size: clamp(64px, 6vw, 120px); line-height: .8; letter-spacing: -0.04em; }
.principles h2 { font-size: var(--t28); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
.principles p { line-height: 1.5; max-width: 420px; }
@media (max-width: 1100px) { .principles { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .bgrid, .bgrid.two { grid-template-columns: 1fr; gap: 48px; }
  .article, .lrow { grid-template-columns: 1fr; gap: 16px; }
  .article .prose { grid-column: 1; }
  .acover .stage { aspect-ratio: 4 / 3; }
  .assets { grid-template-columns: 1fr; }
}
/* ===== Brand accents: navy #0F2C45, sky #93E4FF ===== */
:root { --navy: #0F2C45; --sky: #93E4FF; }
::selection { background: var(--sky); color: var(--navy); }
.progress { background: var(--navy); }
.pt { background: var(--navy); }
.loader .pen { stroke: var(--navy); }
.ld-bar i { background: var(--navy); }
.cursor.view { background: var(--navy); mix-blend-mode: normal; }
.cursor.view span { color: #fff; }
.menu { background: var(--navy); color: #fff; }
.menu .dot, .menu .dot::after { background: var(--sky); }
.menu-links a { transition: color .25s; }
.menu-links a:hover { opacity: 1; color: var(--sky); }
.contact { background: var(--navy); color: #fff; border-top: 0; }
.contact .row { border-bottom: 0; }
.contact .u { background-image: linear-gradient(var(--sky), var(--sky)); }
.contact .u:hover { color: var(--sky); }
.prod-tabs button[aria-selected="true"] { border-color: var(--navy); }
.nav .links a[aria-current] { text-decoration-color: var(--navy); text-decoration-thickness: 2px; }
/* Footer: navy, with sky only for highlights */
.footer { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.14); }
.cols h4 { color: #fff; }
.cols a { color: rgba(255,255,255,.62); }
.cols a:hover { color: var(--sky); }
.foot-bottom .big { color: var(--sky); }
.foot-bottom .legal { color: rgba(255,255,255,.62); }
.foot-bottom .legal a { transition: color .2s; }
.foot-bottom .legal a:hover { color: var(--sky); }
/* Blog covers are images (editable in /admin) */
.post .img, .bcard .img { overflow: hidden; background: #eceae6; }
.post .img img, .bcard .img img, .acover .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.post:hover .img { transform: none; }
.post:hover .img img, .bcard:hover .img img { transform: scale(1.035); }
.acover .cover { aspect-ratio: 1776 / 760; border-radius: 8px; overflow: hidden; background: #eceae6; }
.m .post .img, .m .bcard .img { clip-path: inset(100% 0 0 0); transition: clip-path 1.25s cubic-bezier(.76,0,.24,1) var(--d, 0ms); }
.m .post.in .img, .m .bcard.in .img { clip-path: inset(0 0 0 0); }
.person img.photo { object-fit: cover; display: block; }
@media (max-width: 760px) { .acover .cover { aspect-ratio: 4 / 3; } }
/* Hero trim paths: the logo keeps drawing itself until the hero has been scrolled past */
.trim-hero .hero-logo .lt-pen { visibility: hidden; }
.hpen { fill: none; stroke: currentColor; stroke-width: var(--w); stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1 3; stroke-dashoffset: 1.02; shape-rendering: geometricPrecision; }
.m.ready .hpen { animation: htrim 5.2s cubic-bezier(.76,0,.24,1) infinite; animation-delay: calc(var(--i) * .14s); }
.m.ready.trim-done .hpen { animation: none; stroke-dashoffset: 0; }
@keyframes htrim { 0% { stroke-dashoffset: 1.02; } 38%, 62% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1.02; } }
/* Keep the hero logo as crisp vectors while it moves (no blurry bitmap layer) */
.m .hero-logo { will-change: auto; }
/* No loading screen */
.loader { display: none !important; }
/* Nav content and the Surce logo in brand navy */
.nav, .nav a, .nav .place { color: var(--navy); }
.nav .dot::after { background: var(--navy); }
.hero-logo { color: var(--navy); }
/* Headings in brand navy (product mockups keep their own colours) */
main :is(h1, h2, h3, .d40, .d55, .service .num):not(.stage *, .ui *) { color: var(--navy); }
/* ===== Insights (blog) page ===== */
.ins-hero { padding: clamp(40px, 4vw, 80px) var(--g) clamp(40px, 3.6vw, 64px); display: flex; flex-direction: column; gap: 24px; border-bottom: 1px solid var(--line); }
.ins-hero .eyebrow { color: var(--navy); display: inline-flex; align-items: center; gap: 10px; }
.ins-hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(147,228,255,.35); }
.ins-hero h1 { max-width: 900px; }
.ins { padding: 0 var(--g) clamp(80px, 7.3vw, 140px); }
.ins [hidden] { display: none !important; }
.ins-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0; flex-wrap: wrap; }
.ins-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.ins-filter button { font: inherit; font-size: 15px; color: var(--navy); background: transparent; border: 1px solid rgba(15,44,69,.2); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.ins-filter button:hover { border-color: var(--navy); }
.ins-filter button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ins-count { font-size: 15px; }
.ins-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--mute); }
.ins-meta span + span::before { content: "·"; margin-right: 14px; color: #c4c4c0; }
.ins-meta .ins-cat + span::before { content: none; }
.ins-cat { background: #e4f7fe; color: var(--navy); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.ins .img { position: relative; overflow: hidden; border-radius: 12px; background: #f4f1ea; aspect-ratio: 3 / 2; }
.ins .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.ins a:hover .img img { transform: scale(1.035); }
.ins-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 4vw, 80px); align-items: center; padding: 8px 0 clamp(56px, 5vw, 96px); border-bottom: 1px solid var(--line); }
.ins-txt { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.ins-txt p { font-size: var(--t20); line-height: 1.5; max-width: 520px; }
.ins-go { color: var(--navy); font-weight: 500; display: inline-flex; gap: 10px; align-items: center; border-bottom: 1.5px solid var(--navy); padding-bottom: 3px; }
.ins-go i { font-style: normal; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.ins-feature:hover .ins-go i { transform: translateX(5px); }
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 4.4vw, 80px) 24px; padding-top: clamp(48px, 4.4vw, 80px); }
.ins-card { display: flex; flex-direction: column; gap: 16px; }
.ins-card .img { margin-bottom: 6px; }
.ins-card h3 { font-size: clamp(20px, 1.46vw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; color: var(--navy); transition: opacity .25s; }
.ins-card:hover h3 { opacity: .75; }
.ins-card p { line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ins-empty { padding: 64px 0; }
.m .ins .img { clip-path: inset(100% 0 0 0); transition: clip-path 1.25s cubic-bezier(.76,0,.24,1) var(--d, 0ms); }
.m .ins .in .img { clip-path: inset(0 0 0 0); }
@media (max-width: 1000px) { .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ins-feature { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ins-grid { grid-template-columns: 1fr; } .ins-count { display: none; } }
/* Article covers are illustrations: show more of them */
.acover .cover { aspect-ratio: 16 / 9; max-width: 1280px; margin: 0 auto; background: #f4f1ea; border-radius: 12px; }
/* Pure white surfaces */
:root { --soft: #fff; --paper: #fff; }
.app .rows i.g { background: #fff; }
/* ===== About page ===== */
.about-rows { border-top: 1px solid var(--line); }
.beliefs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.beliefs > div { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.beliefs p.mute { line-height: 1.5; max-width: 440px; }
.principles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.voice { display: flex; flex-direction: column; gap: clamp(10px, 1vw, 18px); }
.voice .d40 { line-height: 1.2; }
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pcard { border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 2.2vw, 36px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; transition: border-color .3s, transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s; }
.pcard:hover { border-color: var(--sky); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,44,69,.08); }
.pcard p { line-height: 1.5; max-width: 460px; }
.pcard .u { margin-top: 8px; color: var(--navy); }
@media (max-width: 1100px) { .principles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .beliefs, .pcards, .principles.four { grid-template-columns: 1fr; } .voice .d40 { font-size: 24px; } }
/* Inner pages have no hero logo, so the nav logo is always visible */
html:not(:has(.hero-logo)) .nav .brand { opacity: 1 !important; transform: none !important; pointer-events: auto; }
.pcard h2, .beliefs h2 { font-weight: 400; }