/* BYNIC service and industry pages: shared styles. Every service page and industry page links this file; page-specific rules stay in each page. See DESIGN.md. */
:root {
  --font: 'Inter Tight', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-dark: #05080f;
  --text: #000000;
  --text-2: #475569;
  --text-3: #64748b;
  --blue: #4d5ef2;
  --blue-light: #9cb2ff;
  --blue-ink: #fff;
  --blue-dark: #3f4add;
  --blue-glow: rgba(77,97,255,0.15);
  --blue-pale: rgba(77,97,255,0.05);
  --border: rgba(0,0,0,0.08);
  --border-w: rgba(255,255,255,0.1);
  --r-s: 8px; --r: 16px; --r-l: 20px; --r-full: 9999px;
  --container: 1200px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* , *::before, *::after { box-sizing: border-box; margin: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 2.5rem; }
h1,h2,h3 { font-family: var(--font); }
.eyebrow {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.625rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
  font-weight: 600; font-size: 0.92rem; padding: 0.85rem 1.5rem; border-radius: 8px;
  text-decoration: none; transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: var(--blue-ink); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost-white { border: 1px solid rgba(255,255,255,0.28); color: #fff; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 2.5rem; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--font); font-weight: 900; font-size: 1.1rem; color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a.btn-nav { background: rgba(5,8,15,0.55); border: 1px solid rgba(255,255,255,0.28); color: #fff; padding: 0.55rem 1.25rem; border-radius: 8px; font-weight: 600; transition: background .2s, border-color .2s; }
.nav-links a.btn-nav:hover { background: rgba(5,8,15,0.85); border-color: rgba(255,255,255,0.5); }
.hero { position: relative; min-height: 62vh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--bg-dark); overflow: hidden; }
.hero-content { position: relative; z-index: 2; padding: 11rem 0 4.5rem; }
.hero .eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; }
.hero-h1 { font-size: clamp(2.15rem, 4.2vw, 3.6rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; text-transform: uppercase; }
.hero-h1 .dim { display: block; max-width: 23ch; text-wrap: balance; color: rgba(255,255,255,0.7); }
.hero-promise { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; margin-top: 1.75rem; max-width: 54ch; color: rgba(255,255,255,0.85); }
.hero-btns { display: flex; gap: 0.75rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero-proof { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(4,7,18,0.55); backdrop-filter: blur(14px); }
.hero-proof-inner { max-width: var(--container); margin: 0 auto; padding: 1.1rem 2.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-proof-inner .ph { color: var(--blue); }
.purpose { background: #eef0ec; }
.purpose-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 610px; }
.purpose-copy { display: flex; align-items: center; padding: clamp(4rem, 7vw, 7rem) clamp(2.5rem, 7vw, 7rem); }
.purpose-copy-inner { width: 100%; max-width: 520px; margin-left: auto; }
.purpose-h { font-size: clamp(2.5rem, 4.4vw, 4.35rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1.02; max-width: 10ch; }
.purpose-p { margin-top: 1.7rem; max-width: 39ch; color: #333b45; font-size: 1.05rem; line-height: 1.7; }
.purpose-link { display: block; margin-top: 2.3rem; max-width: 410px; padding: 1.35rem 1.5rem; background: rgba(0,0,0,0.055); color: var(--text); text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.purpose-link:hover { background: rgba(77,94,242,0.1); transform: translateY(-2px); }
.purpose-link-label { display: block; margin-bottom: 0.65rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.purpose-link strong { font-family: var(--font); font-size: 0.98rem; }
.purpose-media { min-height: 610px; overflow: hidden; }
.purpose-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1.5rem; }
.sec-label { color: var(--blue); margin-bottom: 0.9rem; }
.sec-h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; }
.sec-sub { color: var(--text-2); line-height: 1.65; margin-top: 0.9rem; max-width: 46ch; }
.deliverables { padding: clamp(5.5rem, 8vw, 8rem) 0; }
.deliverables-head { max-width: 820px; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.deliverables-head .sec-h2 { font-size: clamp(2.25rem, 3.8vw, 3.5rem); line-height: 1.04; max-width: 18ch; }
.deliverables-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.deliverable-card { padding-top: 1.6rem; border-top: 1px solid var(--border); }
.deliverable-icon { display: block; margin-bottom: 2.75rem; color: var(--blue); font-weight: 800; font-family: var(--font); font-size: 0.72rem; letter-spacing: 0.08em; }
.deliverable-title { font-size: 1.12rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.deliverable-desc { margin-top: 1rem; font-size: 0.92rem; color: var(--text-2); line-height: 1.65; max-width: 29ch; }
.work { padding: clamp(5.5rem, 8vw, 8rem) 0; background: var(--bg-soft); }
.work .sec-head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; margin-bottom: 3.5rem; }
.work .sec-h2 { font-size: clamp(2.25rem, 3.8vw, 3.5rem); line-height: 1.04; max-width: 13ch; }
.work-intro-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-bottom: 0.25rem; }
.work-intro-side .sec-sub { margin: 0; }
.show-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.show-tile { position: relative; flex: 0 0 calc(33.333333% - 0.666667rem); min-width: 0; height: auto; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; transition: transform .3s var(--ease); cursor: pointer; }
.show-tile.v { aspect-ratio: 9/16; }
.show-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.show-tile:hover { transform: translateY(-4px); }
.show-tile::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%);
}
.show-cap { position: absolute; left: 1rem; bottom: 0.9rem; z-index: 2; color: #fff; }
.show-cap b { display: block; font-family: var(--font); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.show-cap span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.show-tile .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.show-tile iframe.inline-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; opacity: 0; transition: opacity .4s ease; }
.show-tile iframe.inline-player.playing { opacity: 1; }
.show-tile .inline-close {
  position: absolute; top: 8px; right: 8px; z-index: 6; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%; padding: 0;
  background: rgba(0,0,0,0.12); border: 1px solid rgba(255,255,255,0.4); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s;
}
.show-tile .inline-close:hover { background: rgba(0,0,0,0.4); }
.show-tile .inline-close::after { content: ''; position: absolute; inset: -8px; }
.show-tile .inline-close svg { width: 10px; height: 10px; filter: drop-shadow(0 0 2px rgba(0,0,0,.65)); }
.work-proof { margin-top: 2rem; padding: 2rem 2.25rem; display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 2rem; align-items: center; background: var(--bg-dark); color: #fff; }
.work-proof-label { color: var(--blue-light); margin: 0; }
.work-proof p { max-width: 70ch; color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; }
.work-proof a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.work-proof a:hover { color: var(--blue-light); }
.process { padding: clamp(5.5rem, 8vw, 8rem) 0; }
.process-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; margin-bottom: 4.5rem; }
.process-h { font-size: clamp(2.25rem, 3.8vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; margin-top: 0.9rem; }
.process-h .hi { color: var(--blue); }
.process-intro { max-width: 46ch; font-size: 1rem; color: var(--text-2); line-height: 1.7; padding-bottom: 0.2rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem; }
.step { padding-top: 1.8rem; border-top: 1px solid var(--border); }
.step-num { display: block; margin-bottom: 3.25rem; font-family: var(--font); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.1em; line-height: 1; color: var(--blue); }
.step-h { font-family: var(--font); font-weight: 800; font-size: clamp(1.35rem, 2.1vw, 1.8rem); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.step-p { margin-top: 1.25rem; max-width: 36ch; font-size: 0.95rem; color: var(--text-2); line-height: 1.7; }
.faq { padding: 6.5rem 0; background: var(--bg-dark); color: #fff; }
.faq .sec-label { color: var(--blue); }
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border-w); padding: 1.3rem 0; }
.faq summary { font-family: var(--font); font-weight: 700; font-size: 1.02rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--blue); font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.7; font-size: 0.95rem; }
.cta { padding: 7.5rem 0 6rem; background: var(--bg); color: var(--text); text-align: center; }
.cta-h { font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 900; letter-spacing: -0.035em; text-transform: uppercase; line-height: 1.05; }
.cta-h .dim { display: block; color: rgba(0,0,0,0.3); }
.cta .btn { margin-top: 2.25rem; }
.footer { background: var(--bg-dark); color: #fff; border-top: 1px solid var(--border-w); padding: 4.5rem 0 0; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand .wordmark { font-size: 1.3rem; }
.footer-tag { margin-top: 1rem; font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 28ch; }
.footer-col-h { display: block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.62); margin-bottom: 1.1rem; font-family: var(--font); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border-w); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.62); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.show-tile.loading .play svg { display: none; }
.show-tile.loading .play::after { content: ''; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.in { transition-delay: var(--reveal-delay, 0ms); }
.reveal:focus-within { opacity: 1; transform: none; transition-delay: 0ms; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-content { padding: 8rem 0 4rem; }
  .purpose-grid { grid-template-columns: 1fr; min-height: 0; }
  .purpose-copy { padding: 4.5rem 2.5rem; }
  .purpose-copy-inner { max-width: 620px; margin: 0; }
  .purpose-h { max-width: 12ch; }
  .purpose-media { min-height: 460px; }
  .deliverables-grid { grid-template-columns: 1fr 1fr; }
  .work .sec-head-row, .process-head { grid-template-columns: 1fr; gap: 2rem; }
  .work-intro-side { max-width: 580px; }
  .show-row { flex-direction: column; }
  
  .show-tile { flex: none; height: auto; width: 100%; }
  .show-tile.v { width: min(70%, 300px); }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .step-num { margin-bottom: 1.5rem; }
  .work-proof { grid-template-columns: 1fr; gap: 1rem; }
  .sec-head-row { align-items: flex-start; }
}
@media (max-width: 560px) {
  .purpose-copy { padding: 4rem 1.5rem; }
  .purpose-h { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .purpose-media { min-height: 330px; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .step-num { margin-bottom: 1.5rem; }
  .work-proof { padding: 1.75rem 1.5rem; }
}
.hero, .faq, .footer { --blue: var(--blue-light); --blue-dark: #7f97f0; --blue-ink: #05080f; }
.section-title, .purpose-h { font-size: clamp(1.9rem, 2.7vw, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
.purpose-h { max-width: 17ch; }
.purpose-copy { padding-top: 4rem; padding-bottom: 4rem; }
.purpose-grid, .purpose-media { min-height: 540px; }
.deliverables-head { margin-bottom: 3rem; }
.services-summary { margin-top: .75rem; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; }
.deliverable-icon { font-size: 1.6rem; margin-bottom: 1.5rem; }
.deliverable-title { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; }
.gallery-heading { margin-bottom: 2.5rem; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.gallery-head .gallery-heading { margin-bottom: 0; }
.gallery-head .gallery-more { flex: none; margin-top: 0; }
.work .show-tile { flex-basis: calc(50% - .5rem); }
.gallery-more { margin-top: 2rem; }
.case-study { padding: 5rem 0; background: #eef0ec; }
.case-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 3rem; align-items: center; }
.case-media { min-width: 0; }
.case-media .show-tile { width: 100%; }
.case-copy > p:not(.eyebrow), .cta-copy > p { font-size: 1rem; line-height: 1.7; color: var(--text-2); max-width: 55ch; }
.case-copy > p:not(.eyebrow) { margin-top: 1.25rem; }
.case-copy .btn { margin-top: 1.5rem; }
.process { background: #ffffff; }
.process > .wrap { display: block; }
.process-head { display: block; margin-bottom: 3rem; }
.process-head .section-title { max-width: none; }
.steps { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3rem; }
.process .step { display: block; position: relative; padding: 1.75rem 0 0; border-top: 1px solid var(--border); border-bottom: 0; }
.process .step-num { margin: 0 0 1.75rem; font-size: .9rem; }
.process .step-h { text-transform: none; font-size: 1.4rem; line-height: 1.2; }
.process .step-p { margin: .75rem 0 0; max-width: 36ch; }
.process .step:not(:last-child)::after { content: '→'; position: absolute; right: -2rem; top: 1.55rem; color: var(--text-3); font-size: 1.15rem; }
.cta { text-align: left; padding: clamp(5rem, 8vw, 8rem) 0; background: var(--bg-soft); }
.cta-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; min-height: 280px; }
.cta-copy { padding-right: 3rem; }
.cta-layout .sec-label { margin-bottom: 2rem; }
.cta-layout .section-title { max-width: 17ch; font-size: clamp(2.3rem, 3.6vw, 3.5rem); line-height: 1.08; }
.cta-copy > p { font-size: 1.1rem; max-width: 55ch; margin-top: 1.5rem; }
.cta-action { justify-self: center; }
.cta-action .btn { min-width: 200px; justify-content: center; }
.cta .btn { margin-top: 0; }
.cta-copy .hero-btns { margin-top: 2rem; gap: 1rem; }
.cta .btn-blue { padding: 1rem 1.5rem; }
@media(max-width:900px) {
  .process > .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .case-layout, .cta-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cta { padding: 0; background: var(--bg-soft); }
  .cta .cta-layout { min-height: 0; padding: 0; gap: 0; }
  .cta-copy { padding: 4rem 2.5rem; }
  .cta-action { justify-self: stretch; background: var(--bg-soft); padding: 3rem 2.5rem; text-align: center; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process .step::after { display: none; }
  .work .show-tile { flex: none; }
  .purpose-grid { min-height: 0; }
  .purpose-media { min-height: 0; aspect-ratio: 4/3; }
}
@media(max-width:560px) {
  .steps { grid-template-columns: 1fr; }
  .section-title, .purpose-h { font-size: 1.9rem; }
  .wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.hero-services { position: relative; z-index: 2; background: var(--bg-soft); color: var(--text); padding: clamp(2rem, 3vw, 3rem) 0; }
.hero-services-list { max-width: 1400px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(1.5rem, 3vw, 3rem); list-style: none; }
.hero-services-list li { padding: 0; position: relative; }
.hero-services-list li + li::before { content: ""; position: absolute; left: calc(clamp(1.5rem, 3vw, 3rem) / -2); top: .25rem; bottom: .25rem; width: 1px; background: var(--border); }
.hero-service-name { font-family: var(--font); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.hero-services-list p { margin-top: .75rem; font-size: .88rem; font-weight: 400; line-height: 1.65; color: var(--text-2); }
@media(max-width:900px) { .hero-services-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero-services-list li:nth-child(3)::before { display: none; } }
@media(max-width:560px) { .hero-services-list { grid-template-columns: 1fr; gap: 1.25rem; } .hero-services-list li + li::before { display: none; } .hero-services-list li + li { border-top: 1px solid var(--border); padding-top: 1.25rem; } }
:root {
  --section-space: clamp(6rem, 9vw, 9rem);
  --heading-space: clamp(3rem, 4vw, 4rem);
}
.work, .process, .case-study, .cta, .faq { padding-block: var(--section-space); }
.gallery-heading, .process-head { margin-bottom: var(--heading-space); }
.gallery-head { margin-bottom: var(--heading-space); }
.section-title, .purpose-h { text-wrap: balance; }
.hero-services-list { align-items: start; }
.hero-services-list h3 { min-height: 2.6em; }
.hero-services-list p { margin-top: .625rem; }
.purpose-grid { min-height: 640px; }
.purpose-copy { padding-block: clamp(5rem, 7vw, 7rem); }
.purpose-p { margin-top: 2rem; }
.purpose-link { margin-top: 2.5rem; }
.purpose-media { position: relative; min-height: 0; }
.purpose-media img { position: absolute; inset: 0; object-position: center 53%; }
.purpose-p.reveal { --reveal-delay: 70ms; }
.purpose-link.reveal { --reveal-delay: 140ms; }
.show-row { gap: 1.5rem; }
.work .show-tile { flex-basis: calc(50% - .75rem); }
.gallery-more { margin-top: 3rem; }
.case-layout { gap: clamp(3rem, 5vw, 5rem); }
.case-copy > p:not(.eyebrow) { margin-top: 1.5rem; }
.case-copy .btn { margin-top: 2rem; }
.case-copy.reveal { --reveal-delay: 90ms; }
.steps { column-gap: 3rem; row-gap: 3.5rem; }
.process .step { padding-top: 2rem; }
.process .step-num { margin-bottom: 2rem; }
.process .step-h { min-height: 2.4em; }
.process .step-p { margin-top: 1rem; }
.process .step:not(:last-child)::after {
  right: -2.1rem; top: 1.85rem; width: 1.2rem; text-align: center;
}
.step:nth-child(2) { --reveal-delay: 80ms; }
.step:nth-child(3) { --reveal-delay: 160ms; }
.step:nth-child(4) { --reveal-delay: 240ms; }
.cta-layout { grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 4rem; }
.cta-copy { padding-right: 0; }
.cta-copy > p { margin-top: 2rem; max-width: 48ch; }
.cta-action.reveal { --reveal-delay: 120ms; }
.cta-action .btn { min-height: 56px; min-width: 220px; }
.faq { padding-block: clamp(3.5rem, 6vw, 6rem); }
.faq-heading { margin-bottom: 2rem; }
.faq details { padding: 0; }
.faq summary { padding-block: 1.125rem; line-height: 1.45; font-size: 1.1rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { flex-shrink: 0; width: 1.25rem; text-align: center; }
.faq details p { margin: 0; padding: 0 2.25rem 1.125rem 0; color: rgba(255,255,255,.72); }
.faq details[open] p { animation: answer-in .2s var(--ease); }
@keyframes answer-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.show-tile { transition: none; }
.show-tile:hover { transform: none; }
.show-tile img { transition: transform .6s var(--ease); }
.show-tile .play { transition: transform .25s var(--ease), background .25s, border-color .25s; }
.video-trigger { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.show-tile .inline-close { width: 28px; height: 28px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.show-tile:has(.video-trigger:focus-visible) { outline: 3px solid var(--blue); outline-offset: 5px; }
.show-tile:not(.playing):has(.video-trigger:focus-visible) .play { transform: translate(-50%,-50%) scale(1.08); background: rgba(255,255,255,.25); }
.btn:active { transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
  .show-tile:not(.playing):hover img { transform: scale(1.035); }
  .show-tile:not(.playing):hover .play { transform: translate(-50%,-50%) scale(1.08); background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.55); }
  .btn-ghost:hover { background: rgba(77,94,242,.06); }
  .btn-ghost-white:hover { background: rgba(255,255,255,.08); }
  .faq summary:hover { color: var(--blue-light); }
}
@media (min-width: 1200px) {
  .hero-services-list h3, .process .step-h { min-height: 0; }
}
@media (max-width: 900px) {
  :root { --section-space: 5.5rem; --heading-space: 3rem; }
  .purpose-grid { min-height: 0; }
  .purpose-copy { padding-block: 5rem; }
  .purpose-copy-inner { max-width: 620px; }
  .work .show-tile { flex: none; }
  .show-row { gap: 2rem; }
  .case-layout { gap: 3rem; }
  .case-copy { max-width: 620px; }
  .cta .cta-layout { grid-template-columns: 1fr; gap: 2.5rem; padding-inline: 2.5rem; }
  .cta-copy, .cta-action { padding: 0; }
  .cta-action { justify-self: start; text-align: left; }
  .process .step-h { min-height: 0; }
  .process .step:nth-child(n) { --reveal-delay: 0ms; }
  .process .step:nth-child(even) { --reveal-delay: 80ms; }
}
@media (max-width: 560px) {
  :root { --section-space: 4.5rem; --heading-space: 2.5rem; }
  .purpose-copy { padding-block: 4.5rem; }
  .hero-services-list h3 { min-height: 0; }
  .gallery-head { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .gallery-more { margin-top: 2.5rem; }
  .gallery-head .gallery-more { margin-top: 0; }
  .steps { row-gap: 2.5rem; }
  .process .step { padding-top: 1.5rem; }
  .process .step-num { margin-bottom: 1.25rem; }
  .process .step:nth-child(n), .case-copy.reveal, .cta-action.reveal { --reveal-delay: 0ms; }
  .cta .cta-layout { padding-inline: 1.5rem; }
  .cta-layout .section-title { font-size: 2.3rem; }
  .cta-action, .cta-action .btn { width: 100%; }
  .faq-heading { margin-bottom: 2rem; }
  .faq summary { padding-block: 1rem; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .btn, .purpose-link, .show-tile img, .show-tile .play, .show-tile iframe.inline-player { transition: none; }
  .btn:hover, .btn:active, .purpose-link:hover, .show-tile:not(.playing):hover img { transform: none; }
  .show-tile:not(.playing):hover .play, .show-tile:not(.playing):has(.video-trigger:focus-visible) .play { transform: translate(-50%,-50%); }
  .faq details[open] p, .show-tile.loading .play::after { animation: none; }
}
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid rgba(255,255,255,0.38);
  border-radius: 8px; cursor: pointer; padding: 11px; flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 100%; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .28s var(--ease), opacity .2s; transform-origin: center; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-hamburger:focus-visible, .nav-links a:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav { background: rgba(5,8,15,0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .nav-inner { height: auto; min-height: 60px; flex-wrap: wrap; padding: 0.6rem 1.25rem; }
  .nav-links.mobile-open { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 0.75rem 0 1rem; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 0.6rem; }
  .nav-links a { display: block; padding: 0.75rem 0.5rem; font-size: 1rem; }
  .nav-links a.btn-nav { text-align: center; margin-top: 0.375rem; }
}
:root {
  --bg: #f6f7f4;
  --bg-soft: #f4f3f0;
  --bg-dark: #181817;
  --text: #202421;
  --text-2: #555d58;
  --text-3: #656d66;
  --blue-light: #aeb9ff;
  --border: #d8deda;
  --container: 1248px;
}
body { background: var(--bg); }
.wrap { max-width: var(--container); }
.nav { position: relative; background: #242724; border-bottom: 1px solid rgba(241,244,241,.16); }
.nav-inner { max-width: var(--container); height: 72px; }
.nav-links a.btn-nav { background: #f6f7f4; border-color: #f6f7f4; color: #202421; }
.nav-links a.btn-nav:hover { background: #e8ebe3; border-color: #e8ebe3; }
.hero { --blue: #4d5ef2; --blue-ink: #fff; display: block; min-height: 0; background: #fff; color: #202421; }
.hero-content { width: 100%; padding: clamp(3rem, 5vw, 4.5rem) 0; }
.hero-content .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero-copy { min-width: 0; }
.hero-showreel { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: .625rem; background: #181817; }
.hero-showreel img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-showreel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.hero-h1 { max-width: 19ch; font-size: clamp(2.25rem, 3.3vw, 3.25rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; text-transform: none; text-wrap: balance; }
.hero-h1 .dim { margin-top: .12em; color: #202421; }
.hero-promise { max-width: 34rem; margin-top: 1.7rem; color: #555d58; font-size: clamp(1rem, 1.4vw, 1.16rem); font-weight: 500; line-height: 1.65; }
.hero-btns { margin-top: 2rem; }
.btn { border-radius: .4rem; }
.btn-blue { background: #4d5ef2; color: #fff; }
.btn-blue:hover { background: #3446d5; }
.hero .btn-ghost { border-color: #b9c1bc; }
.purpose { width: calc(100% - clamp(1.5rem, 4vw, 4rem)); margin: clamp(2.5rem, 4vw, 4rem) auto 0; padding-block: clamp(4rem, 7vw, 6rem); border-radius: 0; background: transparent; }
.purpose-grid { max-width: 72rem; margin: 0 auto; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); min-height: 0; }
.purpose-copy { padding: 0; }
.purpose-copy-inner { max-width: 36rem; margin: 0; }
.purpose-h { max-width: 17ch; font-size: clamp(2rem, 3vw, 2.85rem); font-weight: 700; line-height: 1.08; }
.purpose-p { max-width: 48ch; color: #45504a; }
.purpose-p a { color: #3446d5; font-weight: 700; text-underline-offset: 3px; }
.purpose-media { display: grid; justify-items: end; min-height: 0; padding: 0; overflow: visible; background: none; }
.purpose-media::before { content: ""; position: absolute; inset: -1rem -1rem 1rem 4rem; border-radius: .625rem; background: #e6e8e4; }
.purpose-media img { position: relative; width: min(100%, 22rem); height: auto; aspect-ratio: 4/5; object-fit: cover; border: 0; border-radius: .625rem; box-shadow: none; }
.hero-services { padding: clamp(5.5rem, 8vw, 8rem) 0 clamp(5rem, 8vw, 7rem); background: var(--bg); }
.hero-services .section-title { max-width: 24ch; margin: 0 auto clamp(2.5rem, 4vw, 4rem); font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; text-align: center; }
.hero-services-list { max-width: none; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.hero-services-list li { min-height: 19rem; padding: clamp(1.4rem, 2vw, 2rem); border: 1px solid rgba(16,16,15,.16); border-radius: .625rem; box-shadow: 0 6px 12px rgba(16,16,15,.075); }
.hero-services-list { align-items: stretch; padding: 0; }
.hero-services-list li { background: #fff; box-shadow: 0 2px 8px rgba(16,16,15,.05); }
.card-label { display: block; margin-bottom: 1.8rem; color: #555d58; font-size: .7rem; font-weight: 800; letter-spacing: .13em; line-height: 1.3; text-transform: uppercase; }
.hero-services-list li::before, .hero-services-list li + li::before { display: none; }
.hero-services-list h3, .hero-services-list .hero-service-name { min-height: 0; font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.18; }
.hero-services-list p { margin-top: 1.5rem; color: #4b534e; font-size: .94rem; line-height: 1.65; }
.featured-work { padding: clamp(3rem, 4vw, 4rem) 0 clamp(4rem, 6vw, 6rem); background: var(--bg); }
.featured-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); align-items: stretch; }
.featured-media { min-width: 0; }
.featured-media .show-tile { display: block; width: 100%; border-radius: 0; }
.featured-copy { display: flex; flex-direction: column; min-width: 0; }
.featured-story { display: flex; flex: 1; flex-direction: column; justify-content: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; padding: clamp(1.5rem, 2.5vw, 2rem); background: #f4f3f0; }
.featured-label { color: #555d58; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.featured-copy h2 { margin-top: .75rem; font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.featured-description { color: #555d58; font-size: .94rem; line-height: 1.55; }
.featured-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding-inline: clamp(1.5rem, 2.5vw, 2rem); }
.featured-case-link, .featured-more { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem .9rem; border: 1px solid #4d5ef2; border-radius: .35rem; font-size: .86rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.featured-case-link { background: #4d5ef2; color: #fff; }
.featured-more { background: transparent; color: #3446d5; }
.featured-case-link:hover { background: #3446d5; border-color: #3446d5; color: #fff; }
.featured-more:hover { background: #e6e8ff; color: #202421; }
.show-tile, .show-tile.v { aspect-ratio: 16/9; border-radius: .3rem; background: #10100f !important; }
.show-tile img { object-fit: cover; transform: none; }
.show-tile::before { background: rgba(16,16,15,.47); }
.show-tile .video-trigger { display: grid; place-items: center; }
.featured-play-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; color: #202321; box-shadow: 0 .25rem 1rem rgba(0,0,0,.2); }
.featured-play-icon svg { width: 1rem; height: 1rem; margin-left: .15rem; fill: currentColor; }
.show-tile iframe.inline-player { background: #000; }
.show-tile.loading::after { content: 'Loading video…'; position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; color: #f1f4f1; background: rgba(16,16,15,.7); font-size: .9rem; font-weight: 700; }
.show-tile.playing::before { display: none; }
.show-tile:not(.playing):hover img { transform: none; }
.show-tile img[data-id="1182663645"], .show-tile:not(.playing):hover img[data-id="1182663645"] { transform: scale(1.08); }
.show-tile:focus-within { outline: 3px solid #4d5ef2; outline-offset: 3px; }
.gallery-more .btn { border-color: #b9c1bc; }
.process { width: calc(100% - clamp(1.5rem, 4vw, 4rem)); margin: clamp(2.5rem, 5vw, 5rem) auto 0; padding: clamp(4rem, 6vw, 6rem) 0; border-radius: .625rem; background: #202321; color: #f6f7f4; }
.process > .wrap { max-width: 72rem; }
.process-head { display: block; margin-bottom: clamp(2rem, 3vw, 2.75rem); text-align: center; }
.process-head .section-title { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.process-intro { max-width: 34ch; color: #c5c9c4; font-size: 1rem; line-height: 1.65; }
.process .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.process .steps::before { display: none; }
.process .step { display: block; min-width: 0; min-height: 0; padding: 1.5rem 0 0; border: 0; border-top: 1px solid #505551; }
.process .step-h { min-height: 2.36em; font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.18; }
.process .step-p { margin-top: .55rem; color: #c5c9c4; font-size: .93rem; line-height: 1.65; }
.process .step:not(:last-child)::after { display: none; }
.case-study { background: #e6e8e4; }
.case-layout { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
.case-media .show-tile { border-radius: .4rem; }
.case-copy .section-title { max-width: 17ch; font-size: clamp(2.2rem, 3.6vw, 3.25rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.06; }
.case-copy .btn { border-color: #b9c1bc; }
.cta { --cta-overlap: clamp(4rem, 6vw, 5rem); padding: 0; background: var(--bg); }
.cta-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.25fr) auto; align-items: center; gap: clamp(2.5rem, 8vw, 7rem); min-height: 0; padding: clamp(2.5rem, 5vw, 4.5rem); border: 1px solid #d8deda; border-radius: .625rem; background: #fff; box-shadow: 0 .7rem 2rem rgba(16,16,15,.1); transform: translateY(var(--cta-overlap)); }
.cta-action { background: transparent; }
.cta-layout .section-title { max-width: 24ch; font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 700; letter-spacing: -.04em; }
.cta-copy > p { color: #555d58; }
.cta-action { justify-self: end; }
.cta-action .btn { white-space: nowrap; }
.faq { padding-top: calc(clamp(5rem, 9vw, 7rem) + clamp(4rem, 6vw, 5rem)); background: #181817; }
.faq-wrap { max-width: 800px; }
.faq-heading { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 700; }
.footer { background: #181817; }
.reveal.pending { opacity: 1; transform: none; }
@media (max-width: 1120px) {
  .featured-layout { grid-template-columns: 1fr; }
  .featured-copy { padding: 1.5rem; background: #f4f3f0; }
  .featured-story { flex: none; justify-content: flex-start; margin-bottom: 0; padding: 0; background: none; }
  .featured-actions { margin-top: 1.5rem; padding-inline: 0; }
}
@media (max-width: 900px) {
  .nav { background: #242724; backdrop-filter: none; }
  .nav-inner { min-height: 72px; padding-inline: 2.5rem; }
  .nav-links a.btn-nav { color: #202421; }
  .hero { min-height: 0; }
  .hero-content { padding: 3rem 0; }
  .hero-content .wrap { grid-template-columns: minmax(0, 1fr) minmax(13rem, 38vw); gap: 2rem; }
  .hero-h1 { font-size: clamp(2.2rem, 4.6vw, 3rem); }
  .hero-promise { font-size: 1rem; }
  .purpose-grid { grid-template-columns: 1.1fr .9fr; }
  .purpose-copy { padding: 0; }
  .purpose-media { aspect-ratio: auto; }
  .hero-services-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-services-list li { min-height: 15rem; }
  .featured-description { font-size: .9rem; }
  .process .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .case-layout { grid-template-columns: 1fr; }
  .cta .cta-layout { grid-template-columns: 1fr; padding: 3rem; gap: 2rem; }
  .cta-action { justify-self: start; background: none; padding: 0; }
}
@media (max-width: 600px) {
  .wrap, .nav-inner { padding-inline: 1.25rem; }
  .hero-content { padding: 2.5rem 0; }
  .hero-content .wrap { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-h1 { font-size: clamp(2.05rem, 8.5vw, 2.6rem); }
  .hero-btns { gap: .75rem; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .purpose { padding-block: 4rem; }
  .purpose-grid { grid-template-columns: 1fr; gap: 2rem; }
  .purpose-copy { padding: 0; }
  .purpose-media { justify-items: start; min-height: 0; padding: 0; }
  .purpose-media img { width: min(100%, 20rem); }
  .hero-services-list { grid-template-columns: 1fr; }
  .hero-services-list li { min-height: 0; padding: 1.6rem; }
  .hero-services-list p { margin-top: 1rem; }
  .featured-layout { grid-template-columns: 1fr; }
  .featured-copy { padding: 1.75rem; }
  .featured-copy h2 { font-size: 1.6rem; }
  .featured-description { font-size: .94rem; }
  .process-head { grid-template-columns: 1fr; gap: 1rem; }
  .process .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .process .step-h { min-height: 0; }
  .case-layout { gap: 2rem; }
  .cta .cta-layout { padding: 2.5rem 1.5rem; }
  .cta-action, .cta-action .btn { width: 100%; }
  .faq { padding-top: calc(4.5rem + 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-showreel iframe { display: none; }
}
.reveal, .reveal.in, .reveal.pending { opacity: 1; transform: none; filter: none; transition: none; }

/* Review quotes: same pattern as the homepage testimonial cards */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: clamp(1rem, 2vw, 1.5rem); }
.testimonial-card { display: grid; align-content: start; gap: clamp(1.5rem, 3vw, 2.25rem); margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid #d8deda; border-radius: .625rem; background: rgba(255,255,255,.58); box-shadow: 0 2px 8px rgba(16,16,15,.05); }
.testimonial-rating { color: #b58b00; font-size: .82rem; letter-spacing: .2em; }
.testimonial-card blockquote { margin: 0; font-family: var(--font-display, 'Inter Tight', sans-serif); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.45; }
.testimonial-card cite { display: grid; gap: .25rem; color: #202421; font-family: var(--font-body, Inter, sans-serif); font-size: .9rem; font-style: normal; font-weight: 700; }
.testimonial-card cite span { color: #555d58; font-size: .76rem; font-weight: 600; }
.testimonial-link { color: #3446d5; font-size: .9rem; font-weight: 700; text-underline-offset: 3px; }
.testimonial-link:focus-visible { outline: 3px solid #4d5ef2; outline-offset: 4px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; max-width: 38rem; } }

/* Video tiles: same as the Work page (title centred on the thumbnail, no play icon) */
.p-tile { position: relative; min-width: 0; border-radius: .625rem; background: #181817; color: #f1f4f1; cursor: pointer; }
.p-media { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: .625rem; background: #10100f; }
.p-media::after { content: ''; position: absolute; z-index: 1; inset: 0; background: rgba(16,16,15,.38); pointer-events: none; }
.p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-cap { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; pointer-events: none; }
.p-cap b { display: block; max-width: 23ch; font: 700 clamp(1.2rem, 1.8vw, 1.8rem)/1.18 var(--font, 'Inter Tight', sans-serif); letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.p-tile .play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; transform: none; backdrop-filter: none; }
.p-tile .play::before, .p-tile .play svg { display: none; }
.p-tile.playing .play { visibility: hidden; }
.p-tile.playing .p-media { background: #000; }
.p-tile.playing .p-media img, .p-tile.playing .p-cap { visibility: hidden; }
.p-tile.playing .p-media::after { display: none; }
.p-media .inline-player { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s; }
.p-media .inline-player.playing { opacity: 1; }
.p-media .inline-close { position: absolute; top: 8px; right: 8px; z-index: 6; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border-radius: 50%; background: rgba(5,8,15,.12); border: 1px solid rgba(255,255,255,.4); color: #fff; cursor: pointer; }
.p-media .inline-close::after { content: ''; position: absolute; inset: -8px; }
.p-media .inline-close svg { width: 10px; height: 10px; filter: drop-shadow(0 0 2px rgba(0,0,0,.65)); }
.p-media .inline-close:hover { background: rgba(5,8,15,.4); }
.p-tile:has(.play:focus-visible) { outline: 3px solid #4d5ef2; outline-offset: 4px; }
.p-tile.loading .play { visibility: visible; }
.p-tile.loading .play::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.project-story { position: absolute; z-index: 4; right: 1rem; bottom: .9rem; color: #f1f4f1; font-size: .82rem; font-weight: 600; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.project-story:hover { color: #fff; }
.p-tile.playing .project-story { display: none; }
@media (max-width: 700px) { .p-cap { padding: 1.25rem; } .p-cap b { font-size: clamp(1.1rem, 5vw, 1.45rem); } }
@media (prefers-reduced-motion: reduce) { .p-tile.loading .play::after { animation: none; } }
