/* Keep a caption and its category together across the portfolio and journal. */
.card-title { gap: 8px; }
.card-title > span { padding-top: 0; margin-top: 6px; line-height: 1.5; }
.journal-grid .card-title { padding-block: 18px 8px; }
.journal-grid .card-title h3 { margin-bottom: 6px; }
.journal-grid .card-title > span { display: block; margin-top: 0; font-size: 13px; }
.work-gallery-genre { margin-top: 5px; font-size: 13px; }
.work-gallery-link { overflow: hidden; }
.work-gallery-title { overflow-wrap: anywhere; }
.page-heading h1, .card-title h3 { overflow-wrap: anywhere; }
.story-gallery { overflow-clip-margin: 0px; }
.service-panel:not([open]) .service-expanded { display: none; }

@media (min-width: 768px) and (max-width: 1024px) {
  .orbit-stage { height: 420px; }
}

@media (max-width: 900px) {
  .site-header nav { max-height: calc(100dvh - 76px); overflow-y: auto; gap: 8px; }
  .site-header nav a { min-height: 44px; display: flex; align-items: center; }
  .orbit-controls .icon-button { width: 44px; height: 44px; }
  .orbit-labels a { min-height: 44px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .hero { margin-top: -20px; padding-bottom: 48px; }
  .orbit-stage { height: clamp(280px, 88vw, 380px); }
  .orbit-bottom { margin-top: 8px; gap: 12px; padding-inline: 6%; }
  .orbit-labels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 2px 10px; padding: 0; }
  .orbit-labels a { font-size: 12px; line-height: 1.35; white-space: normal; justify-content: center; text-align: center; gap: 7px; }
  .label-mark { flex: none; width: 7px; height: 7px; }
  .orbit-labels a.is-active { font-weight: 700; }
  .orbit-controls { gap: 12px; }
  .orbit-fallback { padding: 16px 6%; gap: 16px; }
  .orbit-fallback li { flex-basis: 76%; }
  .orbit-fallback span { font-size: 15px; }
  .hero-introduction { margin-top: 24px; }
  .hero-introduction p { font-size: 16px; line-height: 1.7; max-width: 34ch; }
  .services-split { display: block; min-height: 0; }
  .services-aside { display: grid; grid-template-columns: 1fr 56px; gap: 14px 24px; padding: 48px 6% 32px; min-height: 0; }
  .services-aside h2 { font-size: 28px; }
  .services-aside p { display: block; grid-column: 1 / -1; grid-row: 2; font-size: 16px; margin: 0; }
  .services-aside > img { position: static; width: 56px; height: 56px; grid-column: 2; grid-row: 1; }
  .services-accordion { display: block; }
  .service-panel { width: 100%; }
  .service-panel summary, .service-panel[open] summary { min-height: 72px; height: auto; padding: 20px 6%; flex-direction: row; align-items: center; gap: 16px; }
  .service-panel summary h3, .service-panel[open] summary h3 { writing-mode: horizontal-tb; white-space: normal; text-align: start; opacity: 1; height: auto; font-size: 18px; line-height: 1.4; }
  .service-toggle { flex: none; }
  .service-expanded { padding: 0 6% 32px; }
  .service-marquee { display: none; }
  .service-expanded p, .roster-heading p, .philosophy-heading p { font-size: 16px; line-height: 1.7; }
  .service-expanded .text-link, .text-link { font-size: 14px; min-height: 44px; }
  .capability-row h3 { font-size: clamp(22px,5.8vw,34px); line-height: 1.25; }
  .giant-heading { font-size: clamp(38px,10vw,64px); padding: 48px 6% 32px; }
  .work-end .media-note, .media-note, .concept-note, .page-cover figcaption { font-size: 12px; line-height: 1.6; }
  .work-gallery.is-ready .work-gallery-panel:not(.is-active) .work-gallery-title { white-space: normal; font-size: 15px; }
  .philosophy-heading { padding-top: 48px; }
  .story-gallery { padding: 48px 6% 56px; overflow: clip; overflow-clip-margin: 0px; min-height: 0; }
  .gallery-sticky { position: static; height: auto; padding: 0 0 36px; }
  .gallery-sticky h2 { max-width: 13ch; font-size: clamp(30px,8vw,44px); margin: auto; }
  .scatter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 18px; padding: 0; }
  .scatter-card:nth-child(n) { display: block; width: auto; margin: 0 !important; padding: 8px; scale: 1; transform: rotate(-2deg) !important; background: var(--ivory); }
  .scatter-card:nth-child(even) { transform: rotate(2deg) !important; }
  .scatter-card > .decay-canvas { display: none; }
  .scatter-card > span { font-size: 13px; line-height: 1.5; padding: 10px 2px 4px; }
  .journal-section { padding-block: 48px; }
  .section-heading { flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
  .section-heading > .text-link { font-size: 14px; }
  .journal-grid-home { gap: 32px; }
  .journal-grid .card-title { padding: 14px 0 0; }
  .journal-grid .card-title h3 { font-size: 24px; margin-bottom: 6px; line-height: 1.25; }
  .footer-groups { gap: 28px 20px; }
  .footer-groups > div { min-width: 0; }
  .footer-groups h2 { font-size: 14px; margin-bottom: 10px; }
  .footer-groups a { display: flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.45; margin-bottom: 2px; }
  .footer-bottom { font-size: 13px; }
  .footer-bottom .concept-note { margin-top: 12px; }
  .page-heading { padding-top: 40px; padding-bottom: 32px; }
  .page-heading h1 { font-size: clamp(32px,8.8vw,48px); }
  .page-heading > p { font-weight: 400; }
  .page-heading .back-link { font-size: 14px; margin-bottom: 20px; }
  .form-field input, .form-field textarea, .form-field select { font-size: 16px; min-height: 48px; }
  .privacy-note { font-size: 13px; }
  .contact-copy a { overflow-wrap: anywhere; }
  .translation-notice { font-size: 12px; }
  .external-player { min-height: 240px; padding: 24px; }
  html[lang=ar] .capability-row h3 { line-height: 1.5; }
}
@media (max-width: 359px) {
  .site-header { padding-inline: 10px; gap: 2px; }
  .site-header .brand-lockup { width: 96px; }
  .language-switch a { min-width: 28px; }
  .orbit-labels { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scatter-grid { gap: 24px 12px; }
  .scatter-card > span { font-size: 12px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .scatter-card:nth-child(n) { transform: none !important; }
}
@media (hover: none) {
  .capability-roster:has(.capability-row:hover) .capability-row:not(:hover) h3 { opacity: 1; }
}

/* Phone review revision: keep the carousel stage and surrounding copy in place. */
.theme-label { display: none; }
@media (max-width: 767px) {
  .site-header .brand-lockup { width: 150px; }
  .site-header > .header-actions { display: none; }
  .site-header nav .header-actions { display: flex; flex-wrap: wrap; gap: 16px; width: 100%; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; }
  .site-header nav .language-switch { width: 100%; gap: 12px; flex-wrap: wrap; }
  .site-header nav .theme-label { display: inline; }
  .site-header nav .theme-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; border-radius: 12px; padding: 12px; font: inherit; }
  .site-header nav .theme-toggle .icon { flex: none; }
  .site-header nav .header-contact { display: flex; font-size: 16px; }
  .orbit-stage { overflow: hidden; }
  .orbit-controls { display: none; }
}

.desktop-language-menu { position: relative; font-size: 11px; }
.desktop-language-menu summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 2px; cursor: pointer; list-style: none; color: var(--ink); }
.desktop-language-menu summary::-webkit-details-marker { display: none; }
.language-chevron { display: block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.desktop-language-menu[open] .language-chevron { transform: translateY(1px) rotate(225deg); }
.language-options { position: absolute; top: calc(100% + 10px); right: 0; width: 132px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 32px #00000024; }
.language-switch .language-options a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 13px; opacity: 1; text-decoration: none; }
.language-switch .language-options a:hover, .language-switch .language-options a:focus-visible { background: var(--soft); }
.language-switch .language-options a[aria-current] { color: var(--orange); background: var(--soft); }
.desktop-language-menu summary:focus-visible, .language-options a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.mobile-language-links { display: none; }
@media (max-width: 767px) {
  .desktop-language-menu { display: none; }
  .site-header nav .mobile-language-links { display: flex; flex-wrap: wrap; gap: 12px; }
  .site-header nav .mobile-language-links a { font-size: 16px; min-height: 44px; padding: 8px 12px; }
}

/* Contact placeholders connect to Site identity & contact in the dashboard. */
.footer-bottom .footer-credits { display: block; }
.footer-credits .designer-credit { margin-top: 8px; font-size: 11px; line-height: 1.5; }
.footer-groups { grid-template-columns: 1.2fr 1fr 1.2fr; }
.footer-socials { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-groups .footer-social { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; min-height: 40px; margin: 0; border: 0; border-radius: 0; color: inherit; }
.footer-social svg { width: 20px; height: 20px; }
.footer-groups a.footer-social:hover { color: var(--orange); text-decoration: none; }
.footer-groups .footer-phone { display: block; width: fit-content; min-height: 0; margin: 0 0 12px; font-family: Manrope, Arial, sans-serif; font-size: 15px; line-height: 1.5; white-space: nowrap; }
@media (min-width: 768px) {
  .footer-groups { grid-template-columns: 1.2fr 1.2fr 1fr; align-items: start; }
  .footer-navigation-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; max-width: 320px; }
  .footer-navigation-links a { margin: 0; }
  .footer-groups .footer-social { justify-content: flex-start; }
  .footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .footer-groups { grid-template-columns: minmax(0,1fr) minmax(144px,1.2fr); }
  .footer-groups > div:first-child { grid-column: 1 / -1; }
  .footer-groups .footer-social { width: 44px; height: 44px; min-height: 44px; }
  .footer-socials { gap: 6px; }
  .footer-groups .footer-phone { font-size: 13px; }
}
.roster-background .roster-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.roster-background .roster-video.is-playing { opacity: 1; }
@media (max-width: 767px) {
  .story-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 18px; }
  .story-gallery .scatter-grid { display: contents; }
  .story-gallery .gallery-sticky { grid-column: 1 / -1; grid-row: 2; padding: 18px 0; }
  .story-gallery .scatter-card:nth-child(-n+2) { grid-row: 1; }
  .story-gallery .scatter-card:nth-child(3), .story-gallery .scatter-card:nth-child(4) { grid-row: 3; }
  .story-gallery .scatter-card:nth-child(n+5) { display: none; }
}

/* Keep only the rotating images above the film texture. Navigation and the
   opening curtain must still cover the images during scrolling/opening. */
.hero { isolation: auto; }
.hero > .orbit { z-index: auto; }
.orbit-stage { z-index: 113; }
.site-header { z-index: 120; }
.opening { z-index: 130; }

.orbit-labels a.is-active { color: var(--orange); }

/* Optional detail-page reading size; blank uses the responsive design default. */
.reading-column[data-text-size="14"]{font-size:14px}
.reading-column[data-text-size="15"]{font-size:15px}
.reading-column[data-text-size="16"]{font-size:16px}
.reading-column[data-text-size="17"]{font-size:17px}
.reading-column[data-text-size="18"]{font-size:18px}
.reading-column[data-text-size="19"]{font-size:19px}
.reading-column[data-text-size="20"]{font-size:20px}
.reading-column[data-text-size="21"]{font-size:21px}
.reading-column[data-text-size="22"]{font-size:22px}
.reading-column[data-text-size="23"]{font-size:23px}
.reading-column[data-text-size="24"]{font-size:24px}
.reading-column[data-text-size="25"]{font-size:25px}
.reading-column[data-text-size="26"]{font-size:26px}
.reading-column[data-text-size="27"]{font-size:27px}
.reading-column[data-text-size="28"]{font-size:28px}

.detail-metadata { display:flex; flex-wrap:wrap; gap:.4em 1.2em; font-size:.875rem; }
