/* Company and department views. Loaded after the shared site styles. */
.mobile-menu-panel { overflow-y: auto; overscroll-behavior: contain; }
.company-home { --site-max: 1240px; }
.company-hero { padding-block: clamp(3rem, 6vw, 5.4rem) 2.8rem; border-bottom: 0; }
.company-hero::after { display: none; }
.company-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: end; }
.company-intro .display { max-width: 16ch; margin: 0; font-size: clamp(3.25rem, 6.4vw, 5.7rem); line-height: 1.04; }
.company-intro .display span { color: var(--site-cobalt); }
.company-intro .lead { margin-bottom: .5rem; font-size: 1.1rem; }
.company-intro .eyebrow { background: transparent; border: 0; padding-inline: 0; color: var(--site-muted); }
.company-intro .text-link { margin-top: .6rem; }
.company-departments { padding-block: 1.5rem 4.5rem; }
.department-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--site-line-strong); margin-bottom: 1.5rem; }
.department-heading h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.department-heading p { color: var(--site-muted); font-size: .8rem; margin: 0; }
.department-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.department-card { --department-accent: #264b91; display: flex; flex-direction: column; padding: 1.1rem; border-radius: 1.1rem; border: 1px solid var(--site-line); background: var(--site-surface-solid); min-width: 0; }
.department-card-games { --department-accent: #b58322; }
.department-card-marketing { --department-accent: #216c65; }
.department-logo { height: 168px; display: grid; place-items: center; position: relative; border-radius: .65rem; background: #f1eee7; margin-bottom: 1.6rem; overflow: hidden; }
.department-logo::after { content: ''; position: absolute; inset-inline: 1rem; inset-block-end: 0; height: 3px; background: var(--department-accent); }
.department-logo img { width: 78%; height: 120px; object-fit: contain; }
.department-card-apps .department-logo img { width: 92%; height: 155px; }
.department-card-games .department-logo img { width: 120px; height: 120px; }
.department-card-marketing .department-logo img { width: 85%; height: 135px; }
.department-card .card-kicker { margin: 0 0 .65rem; font-size: .67rem; color: var(--site-muted); }
.department-card h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin-bottom: .8rem; }
.department-card > p { color: var(--site-muted); font-size: .9rem; line-height: 1.75; }
.department-card .department-summary { flex: 1; margin-bottom: 1rem; }
.department-topics { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.25rem; }
.department-topics span { font-size: .67rem; padding: .25rem .55rem; border: 1px solid var(--site-line); border-radius: 99px; color: var(--site-muted); }
.department-card .button { justify-content: space-between; width: 100%; border-color: var(--site-line-strong); background: transparent; color: var(--site-ink); box-shadow: none; }
.department-card .button:hover { background: var(--site-cobalt-soft); border-color: var(--site-cobalt); }
.department-card .department-secondary { min-height: 44px; padding-top: .75rem; font-size: .77rem; color: var(--site-cobalt); display: inline-flex; align-items: center; }
.department-card .department-secondary:hover { text-decoration: underline; text-underline-offset: .25em; }
.company-portfolio .section-head { max-width: 740px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.work-card { min-width: 0; display: flex; flex-direction: column; border-top: 2px solid var(--site-line-strong); padding-top: 1.3rem; }
.work-card h3 { font-size: 1.4rem; margin-bottom: .8rem; }
.work-card > p { color: var(--site-muted); font-size: .92rem; }
.work-card .text-link { margin-top: auto; }
.work-visual { height: 205px; border: 1px solid var(--site-line); border-radius: .8rem; overflow: hidden; margin-bottom: 1.4rem; background: var(--site-surface-tonal); }
.work-visual > img { width: 100%; height: 100%; object-fit: cover; }
.work-visual-apps { display: grid; grid-template-columns: repeat(3, 64px); justify-content: center; align-content: center; gap: .9rem; background: linear-gradient(135deg, var(--site-cobalt-soft), var(--site-surface-solid)); }
.work-visual-apps img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 8px 16px #10295015; }
.work-visual-marketing { background: #f1eee7; display: grid; place-items: center; }
.work-visual-marketing > img { width: 75%; height: 150px; object-fit: contain; }
.company-about .section-copy h2 { max-width: 17ch; }
.company-contact .contact-panel { align-items: flex-start; }
.company-contact .contact-panel > div > p { color: #e1e8f5; }
.company-contact .contact-panel .eyebrow { color: #f4ce75; background: #e3b84b18; border-color: #e3b84b55; }
.company-contact .contact-actions { flex-direction: column; align-items: stretch; min-width: 250px; }
.company-contact .contact-actions .button { justify-content: space-between; }
.company-contact .contact-actions .button-secondary { background: #ffffff0c; border-color: #ffffff4a; color: #fff; }
.company-contact .contact-actions p { color: #ffffffc7; margin: .5rem 0 0; font-size: .8rem; }
.department-identity { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.department-identity img { width: 140px; height: 80px; object-fit: contain; background: #f1eee7; border-radius: .65rem; padding: .35rem; }
.department-identity .eyebrow { margin: 0; }
.department-switcher { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.2rem; }
.department-switcher a { min-height: 44px; display: inline-flex; align-items: center; color: var(--site-cobalt); font-size: .85rem; font-weight: 750; }
.department-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.company-home .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
html[dir=rtl] .company-intro .display { max-width: 17ch; font-size: clamp(2.65rem, 5.7vw, 4.9rem); line-height: 1.3; }
html[dir=rtl] .company-intro .eyebrow, html[dir=rtl] .department-heading h2 { letter-spacing: 0; }
html[dir=rtl] .company-about .section-copy h2 { max-width: 24ch; }
html[dir=rtl] .direction-arrow { display: inline-block; transform: scaleX(-1); }
@media (max-width: 1020px) {
  .company-intro { grid-template-columns: 1.2fr 1fr; gap: 2rem; }
  .company-intro .display { font-size: 4.1rem; }
  .department-card { padding: .9rem; }
  .department-card h3 { font-size: 1.35rem; }
  .department-logo { height: 145px; }
  .department-card-apps .department-logo img { height: 135px; }
  .work-visual-apps { grid-template-columns: repeat(3, 52px); gap: .6rem; }
  .work-visual-apps img { width: 52px; height: 52px; border-radius: 12px; }
}
@media (max-width: 760px) {
  .company-hero { padding-block: 3rem 1.75rem; }
  .company-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .company-intro .display { font-size: clamp(2.8rem, 10.4vw, 4.3rem); }
  .company-intro .lead { font-size: 1rem; }
  .company-intro .text-link { margin-top: .2rem; }
  .department-heading { align-items: flex-start; }
  .department-heading p { max-width: 18ch; text-align: end; }
  .department-grid, .work-grid, .department-services { grid-template-columns: 1fr; }
  .company-home .footer-grid { grid-template-columns: 1fr; }
  .department-card { padding: 1.15rem; }
  .department-logo { height: 155px; }
  .department-card h3 { font-size: 1.6rem; }
  .department-card .department-summary { min-height: 0; }
  .department-card-apps .department-logo img { width: 265px; height: 150px; }
  .department-card-marketing .department-logo img { width: 265px; }
  .company-departments { padding-bottom: 3rem; }
  .work-grid { gap: 2.25rem; }
  .work-visual-apps { grid-template-columns: repeat(3, 64px); gap: .9rem; }
  .work-visual-apps img { width: 64px; height: 64px; border-radius: 15px; }
  .company-contact .contact-actions { min-width: 0; width: 100%; }
  .department-identity { flex-wrap: wrap; }
  html[dir=rtl] .company-intro .display { font-size: clamp(2.4rem, 8.9vw, 3.5rem); }
}
