/* Ikedi J. Nwogu portfolio. Body classes: v-a (classic rows), v-b (sky behind
   everything, projects on white cards), v-c (sky hero, grid of tiles). */
@font-face { font-family: Urbanist; src: url(../assets/fonts/urbanist-latin-300-normal.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Urbanist; src: url(../assets/fonts/urbanist-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Urbanist; src: url(../assets/fonts/urbanist-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Urbanist; src: url(../assets/fonts/urbanist-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Urbanist; src: url(../assets/fonts/urbanist-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #141414; --muted: #4a4f55; --line: #e6e9ee; --bg: #ffffff; --soft: #f5f7f9;
  --sky: linear-gradient(180deg, #e9f6ff 0%, #92d2f8 12%, #5cbaf2 38%, #5fbdf2 72%, #a6daf8 100%);
  --max: 1240px; --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Urbanist, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid #1E6FD9; outline-offset: 3px; border-radius: 6px; }

/* ── Nav ── */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(20px, 4vw, 64px); }
.logo img { height: 74px; width: auto; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); font-size: 17px; font-weight: 500; }
.nav nav a { text-decoration: none; }
.nav nav a:not(.li):hover { text-decoration: underline; text-underline-offset: 6px; }
.li { width: 44px; height: 44px; border-radius: 10px; background: #111; color: #fff; display: grid; place-items: center; }
.li svg { width: 22px; height: 22px; }

/* ── Sky ── */
.sky { position: relative; overflow: hidden; background: var(--sky); color: #fff; }
.cl { position: absolute; pointer-events: none; user-select: none; opacity: .9; animation: drift 60s linear infinite alternate; }
.c0 { width: 620px; left: -160px; bottom: -40px; }
.c1 { width: 560px; right: -140px; top: 90px; animation-duration: 75s; }
.c4 { width: 420px; left: 38%; top: 54%; opacity: .55; animation-duration: 90s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(80px); } }
@media (prefers-reduced-motion: reduce) { .cl { animation: none; } html { scroll-behavior: auto; } }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 140px 24px 90px; }
.hero-in { position: relative; z-index: 2; max-width: 980px; }
.eyebrow { margin: 0 0 10px; font-size: 20px; font-weight: 500; letter-spacing: .02em; opacity: .95; }
.hero h1 { margin: 0; font-size: clamp(44px, 7vw, 92px); line-height: 1.02; font-weight: 600; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(20, 80, 140, .18); }
.lede { margin: 22px auto 0; max-width: 620px; text-wrap: balance; font-size: clamp(18px, 2vw, 23px); font-weight: 500; line-height: 1.45; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; text-decoration: none; font-size: 16px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.scroll span { font-size: 22px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border: 1.5px solid var(--ink); border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 17px; background: transparent; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.solid { background: #fff; color: #0f3d66; border-color: #fff; }
.btn.solid:hover { background: #0f3d66; color: #fff; border-color: #0f3d66; }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn.ghost:hover { background: rgba(255, 255, 255, .18); }

/* ── Work ── */
.work { max-width: 1360px; margin: 0 auto; padding: 90px clamp(20px, 4vw, 48px) 40px; }
.sec { margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ttl { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; font-weight: 500; letter-spacing: -.01em; }
.meta { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.body { margin: 14px 0 0; color: #23272b; max-width: 560px; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
/* Every project button is the same size, whatever its label. */
.btns .btn { min-width: 168px; }

.row { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: 70px 0; }
.row.flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, .82fr); }
.row + .row { border-top: 1px solid var(--line); }
.row.flip .txt { order: 2; }
.row .shot { width: 100%; height: auto; max-height: 600px; object-fit: contain; }
.row .shot.tall { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; }
video.shot { display: block; }

.more { margin-top: 70px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.mini { background: var(--soft); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.mini .ttl { font-size: 30px; }
.mini .shot { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

.about { margin: 100px auto 90px; max-width: 820px; text-align: center; }
.about p { font-size: 21px; line-height: 1.6; margin: 16px 0 28px; color: #23272b; }

.contact { text-align: center; padding: 110px 24px; }
.contact h2 { position: relative; z-index: 2; margin: 0; font-size: clamp(34px, 5vw, 60px); font-weight: 600; letter-spacing: -.01em; }
.contact p { position: relative; z-index: 2; margin: 12px 0 0; font-size: 20px; font-weight: 500; }
.contact .hero-btns { position: relative; z-index: 2; }

.foot { text-align: center; padding: 48px 20px 56px; color: var(--muted); font-size: 15px; }
.foot img { height: 54px; width: auto; margin: 0 auto 10px; }

/* ── B: sky behind the whole page, projects on white cards ── */
.v-b { background: linear-gradient(180deg, #e9f6ff 0, #92d2f8 110px, #5cbaf2 420px, #5fbdf2 55%, #8fd0f7 85%, #cfeafb 100%); }
.v-b .work::before, .v-b .work::after { content: ''; position: absolute; width: 640px; height: 230px; background: url(../assets/img/pw-cloud-0.webp) center / contain no-repeat; opacity: .75; pointer-events: none; }
.v-b .work::before { left: -260px; top: 32%; }
.v-b .work::after { right: -280px; top: 64%; background-image: url(../assets/img/pw-cloud-1.webp); }
.v-b .row, .v-b .mini, .v-b .about { position: relative; z-index: 1; }
.v-b .work { position: relative; }
.v-b .sec { color: #fff; }
.v-b .work > .sec { text-align: center; font-size: 16px; }
.v-b .row { background: #fff; border-radius: 32px; padding: 54px; margin: 26px 0; box-shadow: 0 30px 60px -30px rgba(15, 60, 110, .45); border: 0; }
.v-b .row + .row { border-top: 0; }
.v-b .more .sec { text-align: center; }
.v-b .mini { background: #fff; box-shadow: 0 30px 60px -30px rgba(15, 60, 110, .45); }
.v-b .about { background: rgba(255, 255, 255, .92); border-radius: 32px; padding: 56px; max-width: none; }
.v-b .about .sec { color: var(--muted); }
.v-b .contact, .v-b .hero { background: transparent; }
.v-b .foot { color: #0f3d66; }

/* ── C: sky hero, then a grid of tiles ── */
.v-c .hero { min-height: 86vh; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; margin-top: 18px; }
.tile { grid-column: span 3; border-radius: 28px; overflow: hidden; background: color-mix(in srgb, var(--c) 7%, #fff); border: 1px solid color-mix(in srgb, var(--c) 16%, #fff); display: flex; flex-direction: column; }
.tile.big { grid-column: span 3; }
.tile .txt .body { max-width: none; }
.tile .pic { padding: 26px 26px 0; }
.tile .shot { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.tile .txt { padding: 22px 28px 30px; }
.tile .ttl { font-size: 26px; }
.tile.big .ttl { font-size: 32px; }
.tile .body { font-size: 16px; }
.tile .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* ── Small screens ── */
@media (max-width: 900px) {
  .nav { flex-direction: column; gap: 10px; }
  .logo img { height: 56px; }
  .nav nav { font-size: 15px; gap: 14px; flex-wrap: wrap; justify-content: center; }
  .row, .row.flip, .v-b .row { grid-template-columns: 1fr; padding: 48px 0; }
  .v-b .row { padding: 30px 22px; }
  .row.flip .txt { order: 0; }
  .row .pic { order: -1; }
  .more-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.big { grid-column: auto; }
  .hero { padding-top: 190px; }
}

/* ── Menu: current page, Product Design dropdown, solid bar on case studies ── */
.nav nav a[aria-current="page"], .dd-btn.on { text-decoration: underline; text-underline-offset: 6px; }
.anchor { display: block; position: relative; top: -20px; }
.dd { position: relative; }
.dd-btn { font: inherit; color: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dd-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.dd-menu { position: absolute; top: 100%; right: -16px; min-width: 250px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 18px 40px -12px rgba(15, 50, 90, .35); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 20; }
.dd-menu a { padding: 9px 12px; border-radius: 8px; text-align: right; white-space: nowrap; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: #eef6fd; text-decoration: none !important; }
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
@media (hover: hover) { .dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; } }
.nav.solid { position: sticky; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.nav.solid .logo img { height: 54px; }
.foot a { color: var(--muted); }

/* ── Case study ── */
.case { --c: #2E7D32; }
.case-hero { max-width: var(--max); margin: 0 auto; padding: 60px clamp(20px, 4vw, 48px) 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; }
.ch-logo { width: min(420px, 80%); height: auto; }
.case-hero h1 { margin: 28px 0 0; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; color: #1F5721; }
.case-hero .lede { color: #3e4a40; margin: 18px 0 0; max-width: 520px; text-wrap: pretty; }
.ch-pic img { width: 100%; max-width: 600px; height: auto; margin-left: auto; }
.facts { max-width: var(--max); margin: 0 auto; padding: 24px clamp(20px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { margin: 0; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.glance { max-width: var(--max); margin: 40px auto 0; padding: 0 clamp(20px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.glance > div { background: color-mix(in srgb, var(--c) 6%, #fff); border: 1px solid color-mix(in srgb, var(--c) 14%, #fff); border-radius: var(--r); padding: 26px; }
.glance h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.glance p { margin: 0; font-size: 17px; }

/* Contents rail at the page's left edge; the story gets the rest of the width. */
.case-body { max-width: 1600px; margin: 0 auto; padding: 40px clamp(20px, 4vw, 64px) 40px clamp(16px, 2.2vw, 40px); display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); }
.toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; border-left: 2px solid var(--line); }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--c); border-left-color: var(--c); font-weight: 600; }
.case-main { min-width: 0; max-width: 1040px; width: 100%; margin: 0 auto; }
.cs { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.cs:last-child { border-bottom: 0; }
.cs .eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs h2 { margin: 6px 0 18px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.cs h3 { margin: 30px 0 8px; font-size: 21px; font-weight: 700; }
.cs p { margin: 0 0 14px; max-width: 820px; text-wrap: pretty; }
.cs .big { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.4; font-weight: 500; color: #1d2a20; }
.pts { padding-left: 0; list-style: none; margin: 14px 0; max-width: 760px; }
.pts li { position: relative; padding-left: 20px; margin: 8px 0; }
.pts li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pts b { color: #1d2a20; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.split.rev { grid-template-columns: .9fr 1.1fr; }
.fig { margin: 26px 0 0; }
.fig img, .fig video { width: 100%; height: auto; border-radius: 18px; display: block; }
.fig figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.fig.wide img { border-radius: 0; }
.fig.film { margin: 0; }
.fig.diamond svg { width: 100%; height: auto; }
.callout { background: color-mix(in srgb, var(--c) 6%, #fff); border-left: 4px solid var(--c); border-radius: 0 var(--r) var(--r) 0; padding: 28px 32px; }
.callout p:last-child { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 22px 0 6px; }
.stat { position: relative; background: var(--soft); border-radius: 18px; padding: 20px 18px 26px; overflow: hidden; }
.stat b { display: block; font-size: 40px; line-height: 1; font-weight: 700; color: var(--c); }
.stat span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.35; color: #2b332d; }
.stat i { position: absolute; left: 0; bottom: 0; height: 6px; width: var(--w); background: var(--c); border-radius: 0 6px 6px 0; }
.personas { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 10px; }
.persona { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: 240px 1fr; }
.pphoto { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.pbody { padding: 26px 28px; }
.persona header { margin-bottom: 12px; }
.persona .av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--c); flex: none; }
.persona h3 { margin: 0; font-size: 22px; }
.persona header p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.persona > p { font-size: 16px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pgrid h4 { margin: 6px 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.pgrid ul { margin: 0; padding-left: 18px; font-size: 15px; }
.pgrid li { margin: 4px 0; }
.i2d { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.i2d-row { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 12px; align-items: stretch; }
.i2d-row p { margin: 0; max-width: none; border-radius: 16px; padding: 16px 18px; font-size: 16px; }
.i2d-row p span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.i2d .i { background: var(--soft); }
.i2d .i span { color: var(--muted); }
.i2d .d { background: color-mix(in srgb, var(--c) 8%, #fff); }
.i2d .d span { color: var(--c); }
.i2d .arrow { align-self: center; text-align: center; font-size: 22px; color: var(--c); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 10px; }
.feat, .law { background: var(--soft); border-radius: 18px; padding: 20px; }
.feat h3, .law h3 { margin: 0 0 6px; font-size: 18px; color: var(--c); }
.feat p, .law p { margin: 0; font-size: 15.5px; }
.laws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.law .sub { font-weight: 600; color: #1d2a20; margin-bottom: 6px; }
.twofig { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fig.todo div { aspect-ratio: 4 / 3; border-radius: 18px; border: 2px dashed #cfd6dc; display: grid; place-items: center; color: var(--muted); font-weight: 600; background: var(--soft); }
.takeaways { list-style: none; counter-reset: t; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.takeaways li { counter-increment: t; background: var(--soft); border-radius: 18px; padding: 22px 22px 22px 70px; position: relative; }
.takeaways li::before { content: counter(t); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; display: grid; place-items: center; }
.takeaways h3 { margin: 4px 0 6px; font-size: 18px; }
.takeaways p { margin: 0; font-size: 15.5px; }
.others { margin-top: 30px; background: var(--soft); border-radius: 0 0 0 0; padding: 120px 24px 90px; text-align: center; clip-path: ellipse(120% 100% at 50% 100%); }
.others p { margin: 18px auto 0; max-width: 1100px; font-size: clamp(24px, 3.2vw, 42px); font-weight: 500; line-height: 1.35; }
.others a { text-decoration: none; }
.others a:hover { color: var(--c); text-decoration: underline; text-underline-offset: 6px; }
.others span { color: #9aa3ab; margin: 0 6px; }

@media (max-width: 900px) {
  .dd-menu { right: auto; left: 50%; transform: translate(-50%, 6px); }
  .dd.open .dd-menu { transform: translate(-50%, 0); }
  .dd-menu a { text-align: left; }
  .nav.solid { position: sticky; }
  .case-hero, .split, .split.rev, .personas, .pgrid, .twofig, .takeaways { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .glance { grid-template-columns: 1fr; }
  .case-body { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .laws { grid-template-columns: 1fr; }
  .i2d-row { grid-template-columns: 1fr; }
  .i2d .arrow { transform: rotate(90deg); }
}
.zoom { display: block; cursor: zoom-in; }
.hint { display: none; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hint { display: block; }
  .scroll-x { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
  .scroll-x .fig.diamond { min-width: 640px; }
}

.fig.lofi img { max-width: 720px; margin: 0 auto; }
@media (max-width: 900px) { .persona { grid-template-columns: 1fr; } .pphoto { height: 280px; } }

/* About and holding pages */
.about-page { min-height: 100vh; display: flex; align-items: center; padding: 160px clamp(20px, 6vw, 96px) 100px; }
.about-in { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.about-in h1 { margin: 0 0 24px; font-size: clamp(44px, 6vw, 72px); font-weight: 700; }
.about-in p { font-size: 20px; line-height: 1.6; margin: 0 0 16px; }
.soon { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; text-align: center; }
.soon h1 { margin: 6px 0 12px; font-size: clamp(36px, 5vw, 56px); font-weight: 600; color: var(--ink); }
.soon p { color: var(--muted); margin: 0 0 26px; }
.soon .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.split.film-split { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; }
.fig.film { position: relative; }
.fig.film video { aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; background: #5cbaf2; }
.snd { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1F5721; font: 600 14px Urbanist, system-ui, sans-serif; cursor: pointer; }
.snd svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .split.film-split { grid-template-columns: 1fr; } .fig.film { max-width: 380px; margin: 10px auto 0; } }

/* Shared case study pieces: quotes, inline facts, persona images, callout boxes, video */
.ch-logo.sm { width: auto; max-width: min(320px, 70%); height: auto; max-height: 64px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.quotes blockquote { margin: 0; background: color-mix(in srgb, var(--c) 6%, #fff); border-radius: 18px; padding: 22px 24px; }
.quotes p { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: #1d2a20; max-width: none; }
.quotes footer { font-size: 15px; color: var(--c); font-weight: 600; }
.facts.in { padding: 18px 0; margin: 14px 0 8px; max-width: none; }
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 8px; }
.fig.pcard img { border-radius: 14px; border: 1px solid var(--line); }
.callout.hb { border-left-color: var(--c); padding: 18px 22px; margin-top: 16px; }
.callout.hb .pts { margin: 0; }
.callout.hb .pts li { font-size: 16px; }
.hb-quote { margin: 26px 0 0; max-width: 460px; border: 2px solid #1d1d1d; border-radius: 14px; padding: 18px 20px; position: relative; }
.hb-quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.hb-quote figcaption { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.fig.flow { max-width: 360px; margin: 20px auto 0; }
.fig.flow video { width: 100%; height: auto; border-radius: 24px; }
@media (max-width: 900px) { .quotes, .pcards { grid-template-columns: 1fr; } }
.case-hero h1.long { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.08; }

/* Tandem: journey map table and the tall paper wireframe */
.jmap { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 6px; font-size: 14px; line-height: 1.35; margin-top: 10px; }
.jmap thead th { background: var(--c); color: #fff; font-weight: 600; padding: 10px 12px; border-radius: 10px; text-align: left; }
.jmap tbody th { background: color-mix(in srgb, var(--c) 16%, #fff); color: #23285E; font-weight: 600; padding: 12px; border-radius: 10px; text-align: left; white-space: nowrap; }
.jmap td { background: #F6F5FB; padding: 12px; border-radius: 10px; vertical-align: top; color: #2b2b33; }
.fig.tallfig img { max-height: 640px; width: auto; margin: 0 auto; display: block; border-radius: 12px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .stats.four { grid-template-columns: 1fr 1fr; } }

/* Tudum: small source images, two-up stats, strengths vs. opportunities, competitor table */
.fig.sm img { max-width: 460px; margin: 0 auto; display: block; border-radius: 12px; }
.stats.two { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
.pgrid.sw { gap: 28px; margin: 6px 0 22px; }
.pgrid.sw .pts { font-size: 16px; }
.ctable { min-width: 980px; }
.ctable td:nth-child(2), .ctable td:nth-child(3) { font-weight: 600; color: #141414; }
@media (max-width: 760px) { .pgrid.sw { grid-template-columns: 1fr; gap: 6px; } .fig.sm img { max-width: 100%; } }
.fig.sm.phone img { max-width: 210px; }
@media (max-width: 760px) { .fig.sm.phone img { max-width: 180px; } }

/* Animation & Motion Design */
.mo-hero { position: relative; max-width: 1100px; margin: 0 auto; padding: 150px 24px 40px; text-align: center; }
.mo-hero h1 { font-size: clamp(36px, 5.2vw, 72px); line-height: 1.08; margin: 0 0 40px; letter-spacing: -.01em; }
.mo-hero p { max-width: 900px; margin: 0 auto; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.6; }
.cherub { position: absolute; pointer-events: none; }
.cherub.l { left: 0; top: 120px; width: 144px; }
.cherub.r { right: 0; top: 210px; width: 170px; }
.mo-list { max-width: 1180px; margin: 0 auto; padding: 40px 24px 80px; display: flex; flex-direction: column; gap: 110px; }
.mo { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: center; }
.mo-txt h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.12; margin: 0 0 18px; }
.mo-txt h2 span { white-space: nowrap; }
.mo-txt .tools { font-weight: 600; margin: 0 0 22px; }
.mo-txt p { font-size: 17px; line-height: 1.6; }
.mo-media { display: flex; justify-content: center; }
.mv { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-radius: 16px; }
.mv.tall { width: auto; max-width: 100%; height: min(78vh, 720px); aspect-ratio: 9 / 16; }
.mo-close { background: #0b0b0b; color: #ececec; padding: 120px 24px 160px; clip-path: ellipse(120% 100% at 50% 0); }
.mo-close p { max-width: 980px; margin: 0 auto; font-size: clamp(20px, 2vw, 28px); line-height: 1.5; font-weight: 600; }
@media (max-width: 860px) {
  .mo-hero { padding-top: 110px; }
  .cherub.l { width: 84px; top: 70px; left: 8px; } .cherub.r { width: 96px; top: auto; bottom: -10px; right: 8px; }
  .mo { grid-template-columns: 1fr; gap: 24px; }
  .mo-list { gap: 72px; }
  .mv.tall { height: auto; width: 100%; max-width: 380px; }
}
img.mv { height: auto; }
@media (min-width: 861px) { .mo-hero { max-width: 1320px; } .mo-hero h1 { padding: 0 170px; } .cherub.l { top: 110px; } .cherub.r { top: 250px; } }
@media (max-width: 860px) { .mo-hero h1 { padding: 0 6px; } }
@media (max-width: 860px) {
  .mo-hero { padding-top: 56px; }
  .cherub, .cherub.l, .cherub.r { position: static; display: inline-block; width: 78px; margin: 0 28px 18px; }
}
.cherub { height: auto; }

/* ── Living sky (home hero, contact, About) ── */
.skyfx { position: absolute; inset: 0; pointer-events: none; }
.skyfx .layer { position: absolute; inset: -40px 0; will-change: transform; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.dc { position: absolute; left: 0; top: var(--top); width: var(--w); max-width: none; opacity: var(--o); animation: sail var(--dur) linear var(--delay) infinite; will-change: transform; }
.layer.near .dc { filter: blur(1.5px); }
.layer.far .dc { filter: blur(.5px); }
@keyframes sail { from { transform: translateX(calc(-1 * var(--w))); } to { transform: translateX(100vw); } }
.hero { padding-bottom: 170px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 85%); z-index: 1; pointer-events: none; }
.hero-in { text-shadow: 0 1px 18px rgba(20, 80, 140, .35); }
.hero .scroll { z-index: 3; color: #0f3d66; }
.bank { position: absolute; left: -6%; right: -6%; bottom: -70px; height: 230px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 1; pointer-events: none; }
.bank img { width: 30%; margin: 0 -4%; animation: bob 7s ease-in-out calc(var(--i) * -1.4s) infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-14px); } }
/* The signature writes itself in on the home page. */
.v-a .logo img { -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%); -webkit-mask-size: 260% 100%; mask-size: 260% 100%; animation: sign 1.8s cubic-bezier(.5,0,.3,1) .3s both; }
@keyframes sign { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@media (max-width: 760px) { .layer.near .dc { width: calc(var(--w) * .6); } }
@media (prefers-reduced-motion: reduce) { .dc, .bank img, .v-a .logo img { animation: none !important; } .dc { transform: translateX(calc(var(--delay) * -6px)); } .skyfx .layer { transition: none; } }
.about-page .skyfx { opacity: .55; }
.about-page h1, .about-page p { text-shadow: 0 1px 14px rgba(20, 80, 140, .35); }

/* Category pill above each project title on the home page, tinted with the project's color. */
.pill { display: inline-flex; align-items: center; margin: 0 0 14px; font-size: 14px; font-weight: 600; line-height: 1; padding: 8px 14px; border-radius: 999px;
  color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); }

/* Featured project row: text in two columns on top, the image across the full width below. */
.row.feature { grid-template-columns: 1fr; gap: 36px; }
.row.feature .txt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.row.feature .ft-b .body:first-child { margin-top: 0; }
.row.feature .shot { max-height: none; width: 100%; }
@media (max-width: 900px) { .row.feature .txt { grid-template-columns: 1fr; gap: 0; } .row.feature .pic { order: 0; } }
/* Walkthrough videos have a near-white background; blend it into the page so no grey box shows. */
.row video.shot, .mini video.shot { mix-blend-mode: multiply; }
