.service-header,.service-page main,.service-footer{max-width:1240px;margin:auto;padding:24px}.service-header{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);flex-wrap:wrap}.service-brand{font-weight:800;font-size:24px}.service-brand span,.service-eyebrow{font:12px 'IBM Plex Mono',monospace;letter-spacing:.12em}.service-header nav{display:flex;gap:24px}.service-page a{text-underline-offset:4px}.service-breadcrumb{font-size:13px;padding:24px 0;color:var(--muted)}.service-hero{padding:64px 0 72px;max-width:1000px}.service-hero h1{font-size:clamp(28.8px,4.4vw,56px);line-height:1.16;letter-spacing:-.045em;margin:24px 0}.service-hero>p{max-width:800px;font-size:19px}.service-actions{display:flex;flex-wrap:wrap;gap:16px;margin:32px 0}.service-hero .service-note{font-size:14px;color:var(--muted)}.service-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:56px}.service-layout aside{align-self:start;position:sticky;top:24px;font-size:13px}.service-layout aside nav{display:grid;gap:12px;margin-top:20px}.service-section{padding:32px 0;border-top:1px solid var(--line);scroll-margin-top:24px}.service-section h2,.service-brief h2{font-size:clamp(25px,2.4vw,28.8px);line-height:1.28;margin:0 0 24px;letter-spacing:-.025em}.service-section h3{font-size:21px;margin:28px 0 12px}.service-section p{line-height:1.8;max-width:80ch}.service-brief{background:var(--contrast);color:var(--contrast-text);border-radius:30px;padding:40px;display:grid;grid-template-columns:1fr 1fr;gap:48px;margin:60px 0}.service-brief a{color:inherit}.service-brief form,.service-estimator{display:grid;gap:18px}.service-brief label,.service-estimator label{display:grid;gap:6px}.service-brief input,.service-estimator select{width:100%;padding:13px;border:1px solid #999;border-radius:8px;background:white;color:#111;font:inherit}.service-brief .service-consent{display:block;font-size:13px}.service-consent input{width:auto}.service-links{display:flex;flex-wrap:wrap;gap:12px 24px}.service-links a{display:inline-block;font-size:14px}.service-page table{width:100%;border-collapse:collapse}.service-page th,.service-page td{padding:12px;border:1px solid var(--line);text-align:left;vertical-align:top}.service-table{overflow-x:auto}.service-footer{border-top:1px solid var(--line);font-size:13px}@media(max-width:800px){.service-layout,.service-brief{grid-template-columns:1fr}.service-layout{gap:24px}.service-layout aside{position:static}.service-brief{padding:24px;gap:24px}.service-hero{padding:32px 0}.service-header nav{gap:16px}.service-brand span{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Portfolio examples within service articles. */
.service-case-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:24px; }
.service-case-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:var(--bg-soft); }
.service-case-card > a { display:block; }
.service-case-card img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.service-case-card > div { padding:20px; }
.service-case-card h3 { margin:0 0 12px; font-size:21px; }
.service-case-card p { margin:0; font-size:14px; line-height:1.65; color:var(--muted); }
.service-case-card h3 a:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.service-case-facts { margin:20px 0 0; font-size:14px; line-height:1.65; overflow-wrap:anywhere; }
.service-case-facts > div { padding:12px 0; border-top:1px solid var(--line); }
.service-case-facts dt { font-weight:700; margin-bottom:4px; }
.service-case-facts dd { margin:0; color:var(--muted); }
.service-case-facts ul { margin:0; padding-left:18px; }
.service-case-facts a { text-decoration:underline; text-underline-offset:3px; }
.service-case-facts a:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.service-case-evidence-note { display:block; margin-top:8px; font-size:12px; }
.service-layout > article { min-width:0; }
.service-page .service-section { scroll-margin-top:120px; }
.service-page .service-layout aside { top:110px; max-height:calc(100vh - 130px); overflow:auto; }
.service-page .service-layout aside nav { line-height:1.55; }
@media(max-width:800px) { .service-page .service-layout aside { max-height:none; } }
@media(max-width:600px) { .service-case-grid { grid-template-columns:1fr; } }

/* Compact introduction and related service navigation. */
.service-page .service-breadcrumb { padding:16px 0 12px; line-height:1.6; }
.service-page .service-hero { padding-top:12px; }
.service-page .service-hero h1 { margin-top:0; }
.service-page #services { padding:36px 0 48px; }
.service-page #services h2 { margin-bottom:28px; }
.service-page .service-links {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.service-page .service-links a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-width:0;
  min-height:104px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--bg-soft);
  color:var(--text);
  font-size:15px;
  font-weight:600;
  line-height:1.5;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease;
}
.service-page .service-links a::after {
  content:"↗";
  display:grid;
  place-items:center;
  flex:0 0 32px;
  height:32px;
  border-radius:50%;
  background:var(--accent-soft);
  font-size:20px;
  font-weight:400;
}
.service-page .service-links a:hover { background:var(--accent-soft); border-color:var(--line-strong); }
.service-page .service-links a:focus-visible { outline:3px solid var(--text); outline-offset:3px; }
.service-page #services > p { margin:24px 0 0; }
.service-page #services > p a { font-weight:600; }
@media(max-width:1000px) { .service-page .service-links { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .service-page .service-links { grid-template-columns:1fr; gap:10px; }
  .service-page .service-links a { min-height:80px; padding:18px; }
  .service-page #services { padding-top:28px; }
}
@media(prefers-reduced-motion:reduce) { .service-page .service-links a { transition:none; } }

/* The shared calculator sits inside the narrower service article column. */
.cost-calculator .calculator { grid-template-columns: minmax(0, 1fr); }
.cost-calculator .calculator__result { position: static; font-size: 1rem; }
.cost-calculator .calculator__form, .cost-calculator .calculator__result { min-width: 0; }
.cost-calculator select { min-width: 0; }

/* Related services: rounded tags matching the supplied reference. */
.service-page #services .service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.service-page #services .service-links a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  min-height: 0;
  gap: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .18s ease, color .18s ease;
}
.service-page #services .service-links a:hover {
  background: var(--accent);
  color: var(--text);
}
.service-page #services .service-links a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .service-page #services .service-links a {
    padding: 5px 10px;
    font-size: 14px;
  }
}

.service-page #services .service-links a::after { content: none; display: none; }

/* Android: portfolio example beside the opening offer. */
:is(.android-hero,.ios-hero,.service-hero--with-example){max-width:none;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:32px;align-items:center;padding:32px 0 40px}:is(.android-hero,.ios-hero,.service-hero--with-example) h1{margin-top:0}:is(.android-hero,.ios-hero,.service-hero--with-example) p{line-height:1.6}:is(.android-example,.ios-example,.service-hero-example){border:1px solid var(--line);border-radius:20px;padding:24px;min-width:0}:is(.android-example,.ios-example,.service-hero-example) h2{font-size:24px;margin:16px 0}:is(.android-example,.ios-example,.service-hero-example) a{font-weight:600}:is(.android-example,.ios-example,.service-hero-example) .service-note{margin-bottom:0}@media(max-width:760px){:is(.android-hero,.ios-hero,.service-hero--with-example){grid-template-columns:1fr;gap:16px;padding-top:16px}:is(.android-hero,.ios-hero,.service-hero--with-example) .service-actions{margin:20px 0}:is(.android-example,.ios-example,.service-hero-example){padding:20px}}

/* Backend architecture and API examples. */
.backend-diagram{margin:24px 0;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--bg-soft)}
.backend-node{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--bg);text-align:center;min-width:0}
.backend-node strong,.backend-node span{display:block}.backend-node span{font-size:14px;margin-top:8px;line-height:1.6}
.backend-arrow{text-align:center;padding:10px;font-size:22px}.backend-arrow span{font-size:13px}
.backend-storage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.backend-diagram figcaption{font-size:14px;line-height:1.7;margin-top:20px;color:var(--muted)}
.backend-code{max-width:100%;overflow-x:auto;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--bg-soft);font-size:14px;line-height:1.7}
.backend-code:focus-visible{outline:2px solid var(--text);outline-offset:3px}
.backend-fields dt{font-weight:600;margin-top:16px}.backend-fields dd{margin:4px 0 0;line-height:1.7}
#api-example h3 code{overflow-wrap:anywhere}#api-example li{margin-bottom:12px;line-height:1.7}
@media(max-width:600px){.backend-storage{grid-template-columns:1fr}.backend-diagram{padding:16px}.backend-code{padding:14px;font-size:12px}}

/* Gamedesign deliverable examples. */
.gd-examples .gd-document,.gd-examples .gd-loop,.gd-examples .gd-balance{margin:24px 0;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--bg-soft);min-width:0}
.gd-examples dt{font-weight:700;margin-top:18px}.gd-examples dd{margin:6px 0 0;line-height:1.65}.gd-examples img{display:block;width:100%;height:auto;border-radius:12px}.gd-examples figcaption{font-size:14px;margin:12px 0 20px}.gd-examples summary{cursor:pointer}.gd-table{overflow-x:auto}.gd-table table{border-collapse:collapse;width:100%;font-size:14px}.gd-table th,.gd-table td{padding:12px;border:1px solid var(--line);text-align:left}.gd-loop ol{display:grid;grid-template-columns:1fr 1fr;gap:16px;list-style:none;counter-reset:step;padding:0}.gd-loop li{counter-increment:step;padding:18px;border-radius:12px;background:var(--accent-soft)}.gd-loop li:before{content:counter(step) ' →';display:block;margin-bottom:8px;font-weight:700}.gd-loop li span{display:block;margin-top:6px}.gd-return{font-weight:700}@media(max-width:600px){.gd-examples .gd-document,.gd-examples .gd-loop,.gd-examples .gd-balance{padding:16px}.gd-loop ol{grid-template-columns:1fr}}

/* Filled QA deliverables. */
.qa-examples .qa-fields{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,3fr);gap:12px 20px;line-height:1.7}.qa-examples dt{font-weight:600}.qa-examples dd{margin:0}.qa-examples li{margin-bottom:10px;line-height:1.7}.qa-examples table{min-width:620px;font-size:14px;line-height:1.6}.qa-examples caption{text-align:left;font-weight:600;padding:12px 0}.qa-examples .service-table:focus-visible{outline:2px solid var(--text);outline-offset:3px}@media(max-width:600px){.qa-examples .qa-fields{grid-template-columns:1fr;gap:6px}.qa-examples dd{margin-bottom:12px}}

/* 2D art gallery and illustrated production stages. */
.art2d-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:26px 0;padding:0;list-style:none}
.art2d-card{margin:0;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--bg-soft)}
.art2d-picture{position:relative;overflow:hidden;aspect-ratio:1;background:#f6f1e7}
.art2d-picture img{position:absolute;width:300%;height:200%;max-width:none;left:calc(var(--art-x) * -100%);top:calc(var(--art-y) * -100%)}
.art2d-card figcaption,.art2d-caption{padding:20px}
.art2d .art2d-card h3{margin:0 0 10px;font-size:19px}
.art2d .art2d-card p{margin:0;font-size:14px;line-height:1.65;color:var(--muted)}
.art2d .art2d-note{font-size:13px;color:var(--muted)}
.art2d-number{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--accent-soft);font-size:13px;font-weight:700;margin-bottom:14px;flex-shrink:0}
.art2d-handoff{display:flex;align-items:flex-start;gap:20px;border-top:1px solid var(--line);padding:26px 0}
.art2d .art2d-handoff h3{margin:0 0 12px}
.art2d-handoff p{margin:0 0 12px}
@media(max-width:1050px) and (min-width:801px){.art2d-grid{grid-template-columns:1fr}.art2d-card{display:grid;grid-template-columns:40% 1fr}}
@media(max-width:600px){.art2d-grid{grid-template-columns:1fr}.art2d-picture{aspect-ratio:1}.art2d-handoff{gap:14px}}



/* Keep estimate amounts together; wide tables scroll within their container. */
#estimate-templates tbody td:nth-last-child(-n+3),
#estimate-templates tfoot td,
.cost-calculator .service-table tbody td:last-child,
.service-price{white-space:nowrap}

/* Screenshots in the 3D service hero case. */
.three-d-case-screens{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}.three-d-case-screens a{display:block;border-radius:8px;overflow:hidden}.three-d-case-screens img{display:block;width:100%;height:auto;aspect-ratio:333/592}.three-d-case-screens a:focus-visible{outline:3px solid var(--text);outline-offset:3px}

/* Case reference next to the illustrated 2D asset set. */
.art2d-scene{margin:28px 0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--bg-soft)}
.art2d-scene img{display:block;width:100%;height:auto}
.art2d-scene figcaption{padding:18px 20px;font-size:14px;line-height:1.7;color:var(--muted)}
