/* Approved visual direction, v22.5. Shared by all PL and EN pages. */
html { scroll-behavior: auto; }
.technical-design { --navy: #142d45; --navy-deep: #102537; --muted: #526271; --line: #cbd5de; --radius: 6px; }
.technical-design .site-header { background: #fff; backdrop-filter: none; }
.technical-design .hero-v22 { padding: 76px 0 64px; background: #fff; border-bottom: 1px solid var(--line); }
.technical-design .hero::after { display: none; }
.technical-design .hero-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 50px; align-items: center; }
.technical-design .hero-copy { max-width: none; }
.technical-design .hero-v22 h1 { font-size: clamp(2.7rem,4.3vw,3.85rem); line-height: 1.06; letter-spacing: -.05em; }
.technical-design .hero-v22 h1 span { color: var(--blue-dark); }
.technical-design .hero-copy .lead { max-width: 580px; margin: 26px 0; font-size: 1.08rem; line-height: 1.75; }
.technical-design .eyebrow { display: flex; align-items: baseline; gap: 12px; color: var(--navy); font-size: .72rem; letter-spacing: .11em; }
.technical-design .eyebrow::before { content: ''; flex: 0 0 22px; height: 3px; background: var(--red); transform: translateY(-3px); }
.technical-design .hero-byline { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; font-size: .78rem; }
.process-art { width: 100%; max-width: 440px; justify-self: end; }
.process-art img { display: block; width: 100%; height: auto; }
.technical-design .button { border-radius: 5px; box-shadow: none; min-height: 48px; font-size: .86rem; }
.technical-design .button-primary { background: var(--blue-dark); border-color: var(--blue-dark); }
.technical-design .button-primary:hover { background: var(--navy); border-color: var(--navy); }
.technical-design .button-secondary { border-color: #94a5b5; }
.technical-design .section { padding: 80px 0; }
.technical-design .section-soft { background: #f4f6f8; }
.technical-design .section-heading h2 { font-size: clamp(2rem,3.5vw,2.9rem); letter-spacing: -.045em; line-height: 1.12; }
.technical-design .service-card { border-radius: 6px; box-shadow: none; border-top: 3px solid var(--navy); }
.technical-design .first-task { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0; }
.technical-design .portfolio-grid { gap: 32px; }
.technical-design .portfolio-tile { border-radius: 6px; box-shadow: none; }
.technical-design .portfolio-tile:hover { border-color: #829aac; box-shadow: none; }
.technical-design .portfolio-copy { padding: 30px; }
.technical-design .portfolio-image { text-decoration: none; }
.screen-label { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 24px; background: var(--navy-deep); color: white; font-size: .88rem; font-weight: 600; }
.screen-label > span:last-child { color: #f1755e; font-size: 1.25rem; }
.screen-crop { display: block; position: relative; height: 252px; overflow: hidden; background: #f1f4f7; border: 16px solid #e9edf1; border-top: 18px solid #e9edf1; border-bottom: 0; }
.technical-design .screen-crop img { position: absolute; height: auto; max-width: none; object-fit: initial; transform: none; }
.technical-design .portfolio-tile--intake .screen-crop img { width: 148%; left: -37%; top: -43px; }
.technical-design .portfolio-tile--prs .screen-crop img { width: 140%; left: -5%; top: -74px; }
.screen-detail { display: block; padding: 16px 24px; background: #e9edf1; color: #334d62; font-size: .77rem; font-weight: 600; letter-spacing: .015em; }
.technical-design .portfolio-meta span:first-child { color: #ad3927; }
.technical-design .portfolio-copy h3 { font-size: clamp(1.45rem,2.15vw,1.8rem); }
.technical-design .tech-list span { border-radius: 3px; background: #f1f4f7; color: #40576a; }
.technical-design .partner-section { background: var(--navy-deep); color: #fff; }
.technical-design .partner-section h2,.technical-design .partner-section .eyebrow { color: #fff; }
.technical-design .partner-section .lead { color: #ced8e2; }
.technical-design .partner-section .text-link { color: #fff; text-decoration-color: #f1755e; }
.technical-design .work-step { border-top: 1px solid #9aabba; }
.technical-design .work-step > span { color: #ad3927; }
.technical-design .about-grid { align-items: start; }
.technical-design .portrait-wrap { border-radius: 5px; justify-self: start; }
.technical-design .portrait-wrap::before { display: none; }
.technical-design .portrait-wrap img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; border-radius: 5px; box-shadow: none; }
.technical-design .credential { border-radius: 4px; }
.technical-design .cta-band { background: var(--navy-deep); border-top: 3px solid var(--red); }
.technical-design .cta-band .eyebrow { color: #fff; }
@media (max-width: 1050px) {
 .technical-design .hero-grid { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 32px; }
 .technical-design .hero-v22 h1 { font-size: clamp(2.4rem,4.5vw,3.3rem); }
 .technical-design .portfolio-tile--intake .screen-crop img { top: -32px; }
 .technical-design .portfolio-tile--prs .screen-crop img { top: -54px; }
}
@media (max-width: 760px) {
 .technical-design .hero-v22 { padding: 48px 0 36px; }
 .technical-design .hero-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
 .technical-design .hero-v22 h1 { font-size: clamp(2.35rem,8.9vw,3.2rem); line-height: 1.09; }
 .technical-design .hero-copy .lead { font-size: 1rem; line-height: 1.7; }
 .technical-design .hero-byline { font-size: .75rem; }
 .process-art { max-width: 380px; justify-self: center; }
 .technical-design .section { padding: 56px 0; }
 .technical-design .portfolio-grid { gap: 26px; }
 .technical-design .portfolio-copy { padding: 24px; }
 .screen-crop { height: 220px; border-width: 12px; border-bottom: 0; }
 .screen-label,.screen-detail { padding: 15px 18px; }
 .technical-design .portfolio-tile--intake .screen-crop img { width: 170%; left: -48%; top: -33px; }
 .technical-design .portfolio-tile--prs .screen-crop img { width: 152%; left: -5%; top: -55px; }
 .technical-design .portrait-wrap { width: min(100%,320px); max-width: 320px; }
}
@media (min-width: 761px) and (max-width: 900px) {
 .screen-crop { height: 190px; }
}
@media (prefers-reduced-motion: reduce) { .technical-design * { transition: none !important; } }

/* Deliberate details from real screens; proportional crop at every width. */
.technical-design .screen-crop { container-type: inline-size; }
.technical-design .portfolio-tile--intake .screen-crop img { width: 300%; left: -190%; top: -31cqw; }
.technical-design .portfolio-tile--prs .screen-crop img { width: 240%; left: -130%; top: -43cqw; }
@media (max-width: 760px) { .technical-design .screen-crop { height: 190px; } }

@media (max-width: 760px) {
 .technical-design .portfolio-tile--intake .screen-crop img { width: 380%; left: -274%; top: -40cqw; }
 .technical-design .portfolio-tile--prs .screen-crop img { width: 280%; left: -160%; top: -50cqw; }
}

/* Consistent framing across all four projects and all service pages. */
.technical-design .portfolio-tile { display: flex; flex-direction: column; min-width: 0; }
.technical-design .portfolio-image { flex: 0 0 auto; }
.technical-design .portfolio-copy { display: flex; flex-direction: column; flex: 1; }
.technical-design .portfolio-copy .text-link { align-self: flex-start; margin-top: auto; }
.technical-design .portfolio-copy .tools-label { margin: 4px 0 10px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #526271; }
.technical-design .portfolio-copy .tech-list { margin-bottom: 26px; }
.diagram-crop,.chat-crop { position: relative; display: block; height: 252px; overflow: hidden; background: #f1f4f7; border: 16px solid #e9edf1; border-top: 18px solid #e9edf1; border-bottom: 0; }
.technical-design .portfolio-tile--p4 .diagram-crop img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f1f4f7; transform: none; }
.technical-design .chat-crop { background: #fff; }
.technical-design .portfolio-tile--agent .chat-crop img { position: absolute; width: 175%; height: auto; max-width: none; left: -1.5%; bottom: 0; transform: none; clip-path: inset(66.5% 0 0); }
.technical-design .service-hero,.technical-design .project-hero { background: #fff; border-bottom: 1px solid var(--line); }
.technical-design .service-hero { padding: 64px 0; }
.technical-design .project-hero { padding: 34px 0 64px; }
.technical-design .service-hero h1 { font-size: clamp(2.35rem,4.6vw,3.8rem); line-height: 1.08; letter-spacing: -.045em; }
.technical-design .service-hero .lead { max-width: 780px; }
.technical-design .project-hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.technical-design .project-hero-grid > div { flex: 1 1 28em; min-width: 0; }
.technical-design .project-hero-grid > figure { flex: 1 1 28em; min-width: 0; max-width: none; }
.technical-design .project-hero h1 { font-size: clamp(2.3rem,3.5vw,3.25rem); line-height: 1.1; letter-spacing: -.04em; }
.technical-design .project-hero .lead { line-height: 1.7; }
.technical-design .project-hero .tech-list { margin: 22px 0; }
.technical-design .project-hero-media { border-radius: 5px; }
.technical-design .project-hero-media img { background: #f1f4f7; }
.technical-design .project-hero-media figcaption { padding: 18px 20px; border-top: 1px solid var(--line); font-size: .79rem; }
.technical-design .project-hero-media .screen-label { border-bottom: 0; }
.technical-design .process-step { border-color: #a2b1be; }
.technical-design .process-step > span { border-radius: 4px; color: #ad3927; background: #fff; border: 1px solid var(--line); }
.technical-design .project-gallery figure { border-radius: 5px; background: #f1f4f7; }
.technical-design .project-gallery figcaption { background: #fff; border-top: 1px solid var(--line); }
.technical-design .fit-section { background: #f1f4f7; }
.technical-design .related-links a { border-radius: 4px; border-left: 3px solid var(--navy); }
.technical-design .stack-section { border-top: 1px solid var(--line); }
.technical-design .tool-stack { margin: 30px 0 0; border-top: 1px solid var(--line); }
.tool-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.3fr); gap: 28px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.tool-row dt { font-weight: 700; color: var(--navy); }
.tool-row dd { margin: 0; color: var(--muted); }
.technical-design .stack-note { margin: 24px 0 0; padding: 18px 22px; border-left: 3px solid var(--red); background: #f4f6f8; font-size: .9rem; }
.technical-design .legal-summary { background: #f1f4f7; border-left: 3px solid var(--red); border-radius: 0; }
.technical-design .legal-table th { background: #eef1f4; }
.technical-design .legal-content h1 { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.technical-design .agent-dialog { border-radius: 8px; }
.technical-design :is(.agent-dialog-close,.menu-toggle,.lang-switch) { border-radius: 5px; }
.technical-design .mobile-cta a { border-radius: 5px; }
.technical-design .media-zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
@media (min-width: 761px) and (max-width: 900px) {
 .technical-design .diagram-crop,.technical-design .chat-crop { height: 190px; }
}
@media (max-width: 760px) {
 .technical-design .diagram-crop,.technical-design .chat-crop { height: 190px; border-width: 12px; border-bottom: 0; }
 .technical-design .project-hero-grid { gap: 28px; }
 .technical-design .service-hero,.technical-design .project-hero { padding: 28px 0 44px; }
 .technical-design .project-hero-media figcaption { padding: 16px; }
 .technical-design .tool-row { grid-template-columns: minmax(0,1fr); gap: 6px; padding: 16px 0; }
 .technical-design .stack-note { padding: 16px; }
}

.technical-design .portfolio-copy .tech-list { margin-top: 0; }

/* Let larger user text stack the hero naturally, without a fixed text column. */
.technical-design .hero-grid { display: flex; flex-wrap: wrap; }
.technical-design .hero-copy { flex: 1.5 1 32em; min-width: 0; }
.technical-design .process-art { flex: 1 1 22em; min-width: 0; margin-inline: auto; }
