@font-face{font-family:"Fraunces";src:url(../fonts/fraunces-latin-soft-normal.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url(../fonts/fraunces-latin-wonk-italic.woff2) format("woff2");font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url(../fonts/inter-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
/* O'Beirne Advisory, round 1. Rebar UI basilika tokens (warm cream and navy, coral action, Fraunces + Inter). Light only.
   Token values are the real basilika values; fonts are loaded by name (installed on the render machine). */
:root, [data-theme="light"] {
  color-scheme: light;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --primary: #b53824; --primary-hover: #99301d; --primary-text: #fff;
  --primary-ink: color-mix(in srgb, var(--primary) 80%, var(--text));
  --coral: #e9705c;
  --text: #1d2040; --text-2: #5a5f78;
  --bg: #fbf6ee; --bg-2: #f4ecdf; --bg-3: #ebe1d0; --raised: #fffdf9;
  --border: rgba(18,20,43,.12); --border-strong: rgba(18,20,43,.24);
  --inverse: #1d2040; --on-inverse: #fbf6ee; --on-inverse-2: #c2c4d2;
  --tint-1: #f7ddd2; --tint-2: #eee0c9; --tint-3: #dfe3f6; --tint-4: #e7ecd9;
  --shadow: 0 1px 2px rgba(18,20,43,.05), 0 8px 24px rgba(18,20,43,.07);
  --shadow-lg: 0 4px 10px rgba(18,20,43,.08), 0 24px 56px rgba(10,11,22,.16);
  --good: #2f7a4f; --blue: #3d5fb4; --amber: #b07a10;
  --grid: rgba(18,20,43,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.eyebrow { color: var(--primary-ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 999px; font: 600 14px var(--font-sans); text-decoration: none; cursor: pointer; border: 1px solid var(--border-strong); background: var(--raised); color: var(--text); transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn svg { width: 16px; height: 16px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.mark i { width: 30px; height: 30px; border-radius: 9px; background: var(--inverse); color: var(--coral); display: grid; place-items: center; font: 600 17px var(--font-display); font-style: normal; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--bg-2); }

/* hero A */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--tint-1); color: var(--primary-ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.badge b { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero h1 { font-size: clamp(38px, 4.5vw, 62px); line-height: 1.04; letter-spacing: -.025em; margin: 22px 0 22px; }
.hero h1 em { font-style: italic; color: var(--primary-ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.lede { font-size: 19px; color: var(--text-2); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proofline { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text); font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; }
.proofline span { display: inline-flex; align-items: center; gap: 8px; }
.proofline svg { width: 18px; height: 18px; color: var(--primary); }
.panel { background: var(--raised); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 22px 22px 14px; }
.panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.panel-top b { font-size: 14px; }
.panel-top small { color: var(--text-2); font-size: 12px; }
.dots { display: flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-3); }
.panel svg.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 20px; padding: 6px 4px 8px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 0; border-top: 3px solid var(--coral); border-radius: 2px; }
.legend i.plan { border-top: 2px dashed var(--text-2); }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 20px; background: var(--raised); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 26px 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 600 42px/1.05 var(--font-display); letter-spacing: -.02em; }
.stat span { color: var(--text-2); font-size: 14px; display: block; margin-top: 6px; }

/* sections */
section { padding: 96px 0; }
.alt { background: var(--bg-2); }
.sh { max-width: 720px; margin-bottom: 44px; }
.sh h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; margin: 10px 0 14px; }
.sh p { color: var(--text-2); font-size: 18px; }

/* services */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.ico svg { width: 24px; height: 24px; }
.svc .card:nth-child(1) .ico { background: var(--tint-1); }
.svc .card:nth-child(2) .ico { background: var(--tint-3); }
.svc .card:nth-child(3) .ico { background: var(--tint-4); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--text-2); }
.card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; }
.card li { display: flex; gap: 10px; align-items: flex-start; }
.card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-top: 9px; flex: none; }
.when { display: inline-block; margin-top: 20px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }

/* proof bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.b { border-radius: 24px; padding: 32px; border: 1px solid var(--border); background: var(--raised); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 230px; }
.b .kick { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.b .big { font: 600 clamp(48px, 6vw, 84px)/1 var(--font-display); letter-spacing: -.03em; }
.b p { color: var(--text-2); max-width: 44ch; }
.b.s3 { grid-column: span 3; } .b.s2 { grid-column: span 2; }
.b.coral { background: var(--tint-1); }
.b.navy { background: var(--inverse); color: var(--on-inverse); border-color: transparent; }
.b.navy .kick, .b.navy p { color: var(--on-inverse-2); }
.b.navy .big { color: var(--coral); }
.b.blue { background: var(--tint-3); } .b.sage { background: var(--tint-4); } .b.sand { background: var(--tint-2); }
.b.s2 .big { font-size: clamp(40px, 4.2vw, 56px); }
.arrow { display: inline-block; color: var(--on-inverse-2); margin: 0 .08em; }

/* process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; border-top: 2px dashed var(--border-strong); }
.step { position: relative; padding: 0 28px 0 0; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--inverse); color: var(--coral); display: grid; place-items: center; font: 600 17px var(--font-display); position: relative; z-index: 1; margin-bottom: 22px; }
.step h3 { font-size: 26px; margin-bottom: 4px; }
.step .dur { color: var(--primary-ink); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.step p { color: var(--text-2); }
.step .out { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.step .out b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 2px; }

/* projects */
.proj { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.p { grid-column: span 2; background: var(--raised); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; transition: transform .25s, box-shadow .25s; }
a.p:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.p.wide { grid-column: span 3; }
.thumb { height: 190px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pbody { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ptop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p h3 { font-size: 22px; }
.url { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; background: var(--bg-3); color: var(--text-2); }
.tag.live { background: var(--tint-4); color: var(--good); }
.tag.soon { background: var(--tint-2); color: var(--amber); }
.p p { color: var(--text-2); font-size: 14.5px; }
.stack { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--text-2); }

/* background */
.bg2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: start; }
.roles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.roles li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.roles b { font-weight: 600; display: block; }
.roles small { color: var(--text-2); font-size: 14px; }
.roles time { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--raised); font-size: 13.5px; font-weight: 600; }
.side h3 { font-size: 15px; font-family: var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-ink); font-weight: 700; margin: 0 0 14px; }
.side > div + div { margin-top: 34px; }
.side p { color: var(--text-2); }

/* cta */
.cta { background: var(--inverse); color: var(--on-inverse); border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--coral) 35%, transparent), transparent 70%); pointer-events: none; }
.cta h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; margin-bottom: 14px; }
.cta p { color: var(--on-inverse-2); font-size: 18px; max-width: 46ch; }
.cta .go { display: grid; gap: 12px; position: relative; z-index: 1; }
.cta .btn.primary { background: var(--coral); border-color: var(--coral); color: #0a0b16; justify-content: center; min-height: 54px; font-size: 15px; }
.cta .btn.ghost { background: transparent; color: var(--on-inverse); border-color: rgba(251,246,238,.3); justify-content: center; min-height: 54px; }
.cta .mail { color: var(--on-inverse-2); font-size: 14px; text-align: center; }

footer { padding: 36px 0 56px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* hero B (dark navy, type-led) */

/* tablet / phone */
@media (max-width: 960px) {
  .hero .wrap, .bg2, .cta { grid-template-columns: 1fr; }
  .svc, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { padding: 0 0 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { grid-column: span 2; border-left: 0; border-top: 1px solid var(--border); }
  .bento .b.s3, .bento .b.s2 { grid-column: span 6; }
  .proj .p, .proj .p.wide { grid-column: span 6; }
  .nav { display: none; } .hdr .wrap { gap: 12px; } .hdr .btn { margin-left: auto; }
  .cta { padding: 40px 28px; }
  }
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 36px; }
  .lede { font-size: 17px; }
  .stat { padding: 20px; } .stat b { font-size: 32px; }
  .b { padding: 24px; min-height: 0; }
  .mark { font-size: 18px; }
  .hdr .btn { padding: 0 16px; }
  .hdr }

/* screenshot thumbnails */
.thumb.shot { height: 240px; }
.thumb.shot .frame { position: absolute; left: 9%; top: 30px; width: 88%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(10,11,22,.28), 0 2px 6px rgba(10,11,22,.2); border: 1px solid rgba(10,11,22,.14); transform: rotate(var(--tilt, -1deg)); transform-origin: 20% 0; }
.thumb.shot .frame img { display: block; width: 100%; height: auto; }
.thumb.shot .bar { display: flex; gap: 6px; padding: 9px 12px; background: #eee9e0; border-bottom: 1px solid rgba(10,11,22,.1); }
.thumb.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9c3b6; }
.thumb.shot.tv .frame { border-radius: 10px; border: 5px solid #2a2d52; box-shadow: 0 0 0 1px rgba(251,246,238,.15), 0 22px 46px rgba(0,0,0,.5); }
.p.wide .thumb.shot { height: 280px; }
.p.wide .thumb.shot .frame { left: 10%; width: 86%; }

.proj .thumb { height: 240px; }
.proj .p.wide .thumb.shot { height: 280px; }

/* ---- Seal and header: room to breathe ----
   The header is tall and unhurried, with the seal at a size where its links can be read. It tightens once the page scrolls. */
.seal { --seal-bg: #b53824; --seal-fg: #fbf6ee; flex: none; display: block; }
.hdr .wrap { height: 132px; gap: 28px; transition: height .35s cubic-bezier(.4,0,.2,1); }
.mark { gap: 22px; font-size: 26px; white-space: nowrap; }
.mark-text { white-space: nowrap; }
.mark .seal { width: 72px; height: 91px; transition: width .35s cubic-bezier(.4,0,.2,1), height .35s cubic-bezier(.4,0,.2,1); }
.nav { gap: 8px; }
.nav a { font-size: 15px; padding: 12px 15px; white-space: nowrap; }
.hdr .btn { min-height: 50px; padding: 0 28px; font-size: 15px; white-space: nowrap; }
.hdr.is-scrolled .wrap { height: 80px; }
.hdr.is-scrolled .mark .seal { width: 44px; height: 56px; }
.hero { padding-top: 104px; }
footer { padding: 72px 0 88px; }
.fmark { display: inline-flex; align-items: center; gap: 20px; }
@media (max-width: 960px) {
  .hdr .wrap { height: 96px; }
  .mark { gap: 16px; font-size: 22px; }
  .mark .seal { width: 54px; height: 68px; }
  .hdr.is-scrolled .wrap { height: 68px; }
  .hdr.is-scrolled .mark .seal { width: 38px; height: 48px; }
  .hero { padding-top: 64px; }
}
@media (max-width: 560px) {
  .hdr .wrap { height: 84px; }
  .mark { gap: 12px; font-size: 17px; }
  .mark .seal { width: 42px; height: 53px; }
  .hdr .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .hdr.is-scrolled .wrap { height: 64px; }
  .hdr.is-scrolled .mark .seal { width: 34px; height: 43px; }
  .hero { padding-top: 40px; }
  footer { padding: 48px 0 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hdr .wrap, .mark .seal { transition: none; } }

/* In-page links land below the sticky header */
section[id] { scroll-margin-top: 88px; }

/* Background: a large portrait, a compact bio, and a logo carousel */
.about { padding-top: 96px; padding-bottom: 88px; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 540px) 1fr; gap: 80px; align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 2px 6px rgba(10,11,22,.12), 0 28px 64px rgba(10,11,22,.28); background: #1c2a33; position: relative; z-index: 1; }
.about-photo::after { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 30px; background: var(--tint-1); z-index: 0; }
.about-photo figcaption { position: absolute; z-index: 2; left: 20px; bottom: 20px; display: inline-flex; gap: 10px; align-items: center; padding: 9px 16px; border-radius: 999px; background: rgba(251,246,238,.92); color: var(--text); font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); }
.about-photo figcaption span { color: var(--text-2); font-weight: 500; }
.about-copy h2 { margin: 12px 0 22px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; max-width: 18ch; }
.lede2 { color: var(--text-2); font-size: 19px; line-height: 1.6; max-width: 46ch; }
.about-facts { display: grid; gap: 30px; margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--border); }
.about-facts h3 { margin: 0 0 10px; font: 700 13px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--primary-ink); }
.about-facts p { color: var(--text-2); max-width: 52ch; }
.logos-label { margin: 88px 0 28px; text-align: center; color: var(--text-2); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 88px; width: max-content; margin: 0; padding: 12px 44px; list-style: none; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; display: grid; place-items: center; height: 76px; }
.marquee-track img { display: block; height: 46px; width: auto; max-width: 220px; filter: grayscale(1) contrast(1.05); opacity: .7; transition: filter .25s, opacity .25s; }
.marquee-track li:hover img { filter: none; opacity: 1; }
.marquee-track .m-spark-nel img { height: 70px; filter: grayscale(1) contrast(1.9) brightness(.7); opacity: .85; }
.marquee-track .m-spark-nel:hover img { filter: none; opacity: 1; }
.marquee-track .m-sai-global img { height: 36px; }
.marquee-track .wordmark { font: 700 24px/1 var(--font-sans); letter-spacing: -.01em; color: var(--text-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 44px)); } }
@media (max-width: 960px) {
  .about { padding-top: 64px; padding-bottom: 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-photo { max-width: 520px; width: calc(100% - 22px); }
  .logos-label { margin-top: 64px; }
  .marquee-track { gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 36px 56px; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}
.marquee-track .m-apprise img { height: 62px; filter: grayscale(1) contrast(1.8) brightness(.5); opacity: .85; }
.marquee-track .m-apprise:hover img { filter: none; opacity: 1; }

/* Products: five equal cards revolving on a single row */
.proj-carousel { position: relative; overflow: hidden; padding: 28px 0 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.proj-carousel .proj { display: flex; flex-wrap: nowrap; gap: 24px; width: max-content; padding: 0 12px; animation: proj-rotate 75s linear infinite; }
.proj-carousel:hover .proj, .proj-carousel:focus-within .proj { animation-play-state: paused; }
.proj-carousel .p, .proj-carousel .p.wide { flex: none; width: min(560px, 86vw); }
.proj-carousel .thumb, .proj-carousel .thumb.shot { height: 280px; }
.proj-carousel .thumb.shot .frame { left: 10%; width: 86%; }
@keyframes proj-rotate { to { transform: translateX(calc(-50% - 12px)); } }
@media (prefers-reduced-motion: reduce) {
  .proj-carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; }
  .proj-carousel .proj { animation: none; }
  .proj-carousel .p { scroll-snap-align: center; }
  .proj-carousel .p[aria-hidden="true"] { display: none; }
}
.marquee-track .m-gs-enc img { height: 44px; }

/* AI service card: a wide fourth card under the three */
.svc .card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 56px; align-items: center; }
.svc .card.wide .ico { background: var(--tint-2); }
.svc .card.wide ul { margin: 0; }
.proofline a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.proofline a:hover { color: var(--primary-ink); border-bottom-color: currentColor; }
@media (max-width: 960px) { .svc .card.wide { grid-template-columns: 1fr; row-gap: 20px; } }

/* Hero chart: an animated story (see js/site.js) */
.panel .band { opacity: .28; transition: opacity .5s ease; }
.panel .band.on { opacity: .8; }
.panel .band-labels text { opacity: .55; transition: opacity .5s ease, fill .5s ease; }
.panel .band-labels text.on { opacity: 1; fill: var(--text); }
.panel .tag { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.panel .tag.on { opacity: 1; transform: none; }
.panel #end { opacity: 0; transition: opacity .4s ease; }
.panel #end.on { opacity: 1; }
.panel #head { transition: opacity .4s ease; }
.story { border-top: 1px solid var(--border); margin: 6px -2px 0; padding: 14px 2px 6px; }
.story-stage { min-height: 5.6em; transition: opacity .35s ease; }
.story-stage.swap { opacity: 0; }
.story-kick { display: block; margin-bottom: 4px; color: var(--primary-ink); font: 700 11.5px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.story-text { margin: 0; font: 600 19px/1.32 var(--font-display); font-variation-settings: "SOFT" 100; letter-spacing: -.01em; color: var(--text); text-wrap: pretty; }
.story-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.story-steps { display: flex; gap: 8px; }
.story-steps button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-3); cursor: pointer; transition: width .3s ease, background .3s ease; }
.story-steps button[aria-current="true"] { width: 30px; border-radius: 999px; background: var(--primary); }
.story-play { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--raised); color: var(--text); cursor: pointer; }
.story-play svg { width: 14px; height: 14px; }
.story-play:hover { border-color: var(--text); }
@media (max-width: 560px) { .story-text { font-size: 17px; } .story-stage { min-height: 8.6em; } }
@media (prefers-reduced-motion: reduce) { .panel .band, .panel .band-labels text, .panel .tag, .panel #end, .story-stage { transition: none; } }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--border); }
.qa { border-bottom: 1px solid var(--border); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px; font: 600 20px/1.3 var(--font-display); color: var(--text); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 400 28px/1 var(--font-sans); color: var(--coral); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.qa p { margin: 0 0 24px; padding: 0 48px 0 4px; color: var(--text-2); font-size: 17px; max-width: 66ch; }
@media (max-width: 560px) { .qa summary { font-size: 18px; } .qa p { padding-right: 4px; } }
@media (prefers-reduced-motion: reduce) { .qa summary::after { transition: none; } }

/* hero byline */
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--text-2); font-size: 14.5px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 1px solid var(--border); }
.byline span { display: grid; line-height: 1.3; }
.byline b { color: var(--text); font-weight: 650; }

/* selected work */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.wcase { grid-column: span 3; background: var(--raised); border: 1px solid var(--border); border-radius: 20px; padding: 26px 28px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.wcase.first { grid-column: span 6; }
.wc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.wc-top img { height: 34px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.wcase h3 { font-size: 22px; line-height: 1.2; }
.wcase.first h3 { font-size: 26px; }
.wcase p { color: var(--text-2); font-size: 15.5px; margin: 0; max-width: 70ch; }

/* background gloss */
.gloss { font-size: 13.5px; color: var(--text-2); margin: 0 0 10px; max-width: 46ch; }

/* also built */
.also { padding: 72px 0; }
.ab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ab { background: var(--raised); border: 1px solid var(--border); border-radius: 16px; padding: 12px 12px 16px; box-shadow: var(--shadow); }
.ab img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; margin-bottom: 12px; }
.ab h3 { font-size: 17px; margin: 0 4px 4px; }
.ab p { font-size: 13.5px; color: var(--text-2); margin: 0 4px; }

/* mobile layout */
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 36px; }
  .sh { margin-bottom: 28px; }
  .sh p { font-size: 16.5px; }
  .work-grid { grid-template-columns: 1fr; gap: 14px; }
  .wcase, .wcase.first { grid-column: auto; padding: 20px 20px 22px; }
  .wcase h3, .wcase.first h3 { font-size: 20px; }
  .wcase p { font-size: 15px; }
  .svc .card ul { display: none; }
  .svc .card { padding: 22px; }
  .svc .card .when { margin-top: 12px; display: block; }
  .ab-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ab h3 { font-size: 15.5px; }
  .ab p { font-size: 12.5px; }
  .also { padding: 48px 0; }
  .stat { padding: 18px 20px; }
  .stat b { font-size: 32px; }
  .about-photo img { max-height: 420px; object-fit: cover; object-position: 50% 15%; }
  #insights .ins-controls, #insights .ins-dots { display: none; }
  .ins-carousel { overflow: visible; padding: 28px var(--gutter) 8px; margin-top: 8px; }
  .ins-track { display: grid; width: auto; padding-right: 0; gap: 34px; }
  .ins-track > .ins { flex: none; width: 100%; }
  .ins-thumb { aspect-ratio: 16 / 9; }
}
.ab img { height: auto; }
.wcase.first .wc-top img { height: 52px; max-width: 220px; }
@media (max-width: 720px) {
  .ins-thumb { aspect-ratio: 21 / 9; }
  .wcase.first .wc-top img { height: 44px; }
  .step, .steps > * { padding-top: 0; }
}

.about-link { margin: 26px 0 0; }

/* round 2: outcome line and compact Rebar UI strip */
.wc-result { font-weight: 650; color: var(--primary-ink); font-size: 15.5px; margin: 0; }
.wcase.first .wc-result { font-size: 17px; }
.also-one { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: center; }
.also-one .ab.one { margin: 0; }
.also-one figcaption { font-size: 13.5px; color: var(--text-2); margin: 0 4px 2px; }
.also-copy h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; margin: 10px 0 14px; }
.also-copy p { color: var(--text-2); font-size: 17px; max-width: 56ch; margin: 0; }
@media (max-width: 720px) { .also-one { grid-template-columns: 1fr; gap: 24px; } .also { padding: 40px 0; } .also-copy p { font-size: 16px; } .wc-result { font-size: 15px; } }

/* round 3: Rebar UI proof line inside the AI card */
.ai-proof { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.ai-proof img { width: 132px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--border); flex: none; }
.ai-proof p { margin: 0; font-size: 14.5px; color: var(--text-2); max-width: 70ch; }
@media (max-width: 720px) { .ai-proof { flex-direction: column; align-items: flex-start; gap: 12px; } .ai-proof img { width: 150px; } }
.ai-proof.logo img { width: 64px; height: 64px; aspect-ratio: 1; object-fit: contain; border: 0; border-radius: 0; }
.go .intro-link { display: block; margin-top: 10px; color: rgba(255,255,255,.72); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.go .intro-link:hover { color: #fff; }
.go .intro-link { text-align: center; }
.hero-proof { margin: 18px 0 0; font-size: 14.5px; color: var(--text-2); max-width: 54ch; }
