.services .service-grid { gap: 28px; margin-top: 45px; align-items: stretch; }
.services .service-card { display: flex; flex-direction: column; border-radius: 24px; }
.services .service-card:hover { transform: none; box-shadow: none; }
.service-intro { padding: 34px 32px 28px; }
.service-title { margin: 0 0 18px; font-size: clamp(27px, 2.7vw, 36px); line-height: 1.15; font-weight: 500; letter-spacing: -1.2px; }
.service-lead { margin: 0 0 13px; max-width: 390px; font-size: 18px; line-height: 1.5; color: #e0e3d7; letter-spacing: -.3px; }
.service-description { margin: 0; max-width: 425px; font-size: 14px; line-height: 1.8; color: #aeb3a3; }
.service-example { height: 338px; margin: auto 18px 18px; border-radius: 15px; position: relative; overflow: hidden; }
.editing-example { background: #2a3329; }
.web-example { background: #323039; }
.example-caption { position: absolute; left: 18px; right: 18px; bottom: 17px; display: flex; justify-content: center; gap: 16px; align-items: center; font-size: 11px; color: #c4ccba; letter-spacing: .2px; }
.web-example .example-caption { color: #d2c8df; }
.example-caption .example-arrow { opacity: .5; }

/* A graphic film sequence and three separate clips finding their places. */
.edit-preview { position: absolute; top: 24px; left: 9%; right: 9%; height: 170px; border: 1px solid #ffffff15; border-radius: 9px; overflow: hidden; background: #252b23; box-shadow: 0 10px 25px #0002; }
.edit-shot { position: absolute; inset: 0; overflow: hidden; opacity: 0; animation: edit-sequence 12s ease-in-out infinite; }
.edit-shot:first-child { background: #db9b71; opacity: 1; }
.edit-shot:nth-child(2) { background: #9e8db6; animation-delay: 4s; }
.edit-shot:nth-child(3) { background: #98ad81; animation-delay: 8s; }
.shot-sun { position: absolute; width: 70px; height: 70px; top: 21px; right: 21%; border-radius: 50%; background: #f8dcb5; }
.shot-hill { position: absolute; left: -12%; right: -20%; bottom: -125px; height: 235px; border-radius: 50%; background: #644e3f; transform: rotate(-12deg); }
.shot-hill.back { bottom: -94px; left: 30%; right: -40%; background: #a96648; transform: rotate(18deg); }
.shot-ring { position: absolute; width: 135px; height: 135px; border: 22px solid #dfd1e8; border-radius: 50%; left: 21%; top: 20px; transform: rotate(-20deg); }
.shot-ring.small { width: 80px; height: 80px; border-width: 14px; left: auto; right: 17%; top: 70px; border-color: #665277; }
.shot-column { position: absolute; bottom: -8px; left: 20%; width: 52px; height: 110px; border-radius: 30px 30px 0 0; background: #475c40; transform: rotate(-13deg); }
.shot-column:nth-child(2) { left: 43%; height: 145px; background: #e1e5c9; transform: rotate(10deg); }
.shot-column:nth-child(3) { left: 66%; height: 90px; background: #748b5b; transform: rotate(17deg); }
.edit-timecode { position: absolute; bottom: 11px; left: 13px; color: #fff; font-size: 8px; letter-spacing: 1px; font-variant-numeric: tabular-nums; z-index: 1; text-shadow: 0 1px 5px #0008; }
.edit-assembly { position: absolute; top: 217px; left: 9%; right: 9%; height: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.clip-piece { position: relative; border-radius: 5px; background: #cf9974; border: 1px solid #ffffff20; transform: translateX(-14px); animation: assemble-first 12s cubic-bezier(.22, 1, .36, 1) infinite; }
.clip-piece:nth-child(2) { background: #a08bb7; transform: translateY(9px); animation-name: assemble-middle; }
.clip-piece:nth-child(3) { background: #9bb784; transform: translateX(14px); animation-name: assemble-last; }
.clip-piece:after { content: ''; position: absolute; left: 9px; right: 9px; top: 12px; bottom: 12px; background: repeating-linear-gradient(90deg, #ffffff70 0 1px, transparent 1px 6px); opacity: .5; }
.assembly-line { position: absolute; top: 208px; bottom: 63px; width: 1px; left: 9%; background: #f4f1d8; opacity: .7; animation: assembly-playhead 12s linear infinite; }
.assembly-line:before { content: ''; position: absolute; width: 5px; height: 5px; left: -2px; top: -2px; border-radius: 50%; background: #f4f1d8; }

/* This is a real miniature HTML layout inside an animated browser frame. */
.device-demo { container-type: inline-size; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: calc(100% - 44px); max-width: 390px; height: 263px; border: 1px solid #777180; border-radius: 11px; overflow: hidden; background: #f4f0e7; color: #34392e; box-shadow: 0 14px 24px #0003; animation: device-reflow 14s cubic-bezier(.65, 0, .35, 1) infinite; }
.device-chrome { height: 25px; background: #e4dfd8; border-bottom: 1px solid #d3cec7; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: #898778; font-size: 7px; }
.device-chrome i { font-style: normal; letter-spacing: 2px; font-size: 6px; }
.demo-site { padding: 15px 17px; }
.demo-site-nav { display: flex; justify-content: space-between; align-items: center; font-size: 8px; }
.demo-site-nav b { font-size: 10px; letter-spacing: -.4px; }
.demo-site-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; align-items: center; margin-top: 19px; }
.demo-site-title { font-size: 23px; font-weight: 500; line-height: 1.06; letter-spacing: -.9px; margin: 0 0 13px; }
.demo-site-title em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 1.2em; color: #7d7150; }
.demo-site-line { height: 3px; width: 79%; background: #cbc9ba; margin: 5px 0; border-radius: 3px; }
.demo-site-line.short { width: 55%; }
.demo-site-cta { margin-top: 10px; width: 50px; height: 12px; border-radius: 10px; background: #414b35; }
.demo-site-art { position: relative; height: 99px; border-radius: 45px 45px 8px 8px; overflow: hidden; background: #d4dabc; }
.demo-site-art:before { content: ''; position: absolute; width: 74px; height: 74px; border: 17px solid #8f9b72; border-radius: 50%; top: 15px; left: 50%; transform: translateX(-50%); }
.demo-site-art:after { content: ''; position: absolute; height: 35px; width: 180%; left: -30%; bottom: -11px; border-radius: 50%; background: #b1bc93; transform: rotate(-12deg); }
.demo-site-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; }
.demo-site-projects i { display: block; height: 28px; border-radius: 4px; background: #ded1c0; }
.demo-site-projects i:nth-child(2) { background: #c5cdb4; }
.demo-site-projects i:nth-child(3) { background: #c5bbcd; }
@container (max-width: 225px) {
  .demo-site { padding: 11px 12px; }
  .demo-site-layout { grid-template-columns: 1fr; gap: 9px; margin-top: 12px; }
  .demo-site-title { font-size: 20px; margin-bottom: 6px; }
  .demo-site-art { height: 59px; border-radius: 25px 25px 5px 5px; }
  .demo-site-art:before { width: 55px; height: 55px; top: 8px; border-width: 12px; }
  .demo-site-line, .demo-site-cta { display: none; }
  .demo-site-projects { margin-top: 10px; }
  .demo-site-projects i { height: 22px; }
}
@keyframes device-reflow { 0%,20%,88%,100% { width: calc(100% - 44px); border-radius: 11px; } 43%,68% { width: 180px; border-radius: 20px; } }
@keyframes edit-sequence { 0%,28% { opacity: 1; } 34%,94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes assemble-first { 0%,16%,94%,100% { transform: translateX(-14px); } 30%,79% { transform: translateX(0); } }
@keyframes assemble-middle { 0%,16%,94%,100% { transform: translateY(9px); } 30%,79% { transform: translateY(0); } }
@keyframes assemble-last { 0%,16%,94%,100% { transform: translateX(14px); } 30%,79% { transform: translateX(0); } }
@keyframes assembly-playhead { 0%,30% { left: 9%; opacity: 0; } 32% { opacity: .7; } 77% { left: 91%; opacity: .7; } 82%,100% { left: 91%; opacity: 0; } }
.services .service-example * { animation-play-state: paused; }
.services .visible .service-example * { animation-play-state: running; }
@media(max-width:760px) {
  .services .service-grid { margin-top: 30px; gap: 24px; }
  .service-intro { padding: 28px 25px 25px; }
  .service-title { font-size: 30px; margin-bottom: 16px; }
  .service-lead { font-size: 17px; }
  .service-description { font-size: 13px; }
  .service-example { margin: 0 12px 12px; height: 320px; }
  .edit-preview { left: 7%; right: 7%; height: 150px; }
  .edit-assembly { top: 195px; left: 9%; right: 9%; height: 48px; }
  .assembly-line { top: 187px; bottom: 62px; }
  .device-demo { top: 17px; height: 250px; }
  .example-caption { font-size: 10px; bottom: 15px; }
}
@media(prefers-reduced-motion:reduce) {
  .clip-piece { transform: none; }
  .edit-shot { opacity: 0; }
  .edit-shot:first-child { opacity: 1; }
  .assembly-line { display: none; }
}
.reduce-motion .clip-piece { transform: none; }
.reduce-motion .edit-shot { opacity: 0; }
.reduce-motion .edit-shot:first-child { opacity: 1; }
.reduce-motion .assembly-line { display: none; }
