/* Phone layouts prioritise reading, navigation and contacting Maria. */
.career-list details { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.career-list details:last-child { margin-bottom: 0; }
.career-list summary { list-style: none; }
.career-list summary::-webkit-details-marker { display: none; }
.career-list summary .expand { display: none; }
.career-list .career-body > p { font-size: 16px; line-height: 1.75; color: var(--muted); }

@media (min-width: 768px) and (max-width: 1023px) {
  .hero { min-height: 0; padding-bottom: 32px; align-items: center; }
  .hero-copy { padding-top: 24px; padding-bottom: 24px; }
  .hero-visual { height: 480px; margin-top: 24px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(36px, 4.8vw, 49px); }
  .hero .eyebrow { margin-bottom: 22px; }
  .hero-index { margin-top: 24px; }
  .screen-project h3 { font-size: 28px; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 112px; }
  body { font-size: 16px; line-height: 1.6; }
  main > section { min-width: 0; }
  h1, h2, h3 { text-wrap: balance; }
  h2, .expertise h2, .screen h2, .approach h2 { font-size: clamp(30px, 8vw, 40px); line-height: 1.13; }
  .section-pad { padding: 40px 20px; }
  .eyebrow, .small-note, .portrait-label, .image-credit { font-size: 14px; line-height: 1.5; }
  .eyebrow { letter-spacing: .055em; }
  .section-heading .eyebrow { margin-bottom: 14px; }
  .section-lead { margin-top: 18px; font-size: 16px; line-height: 1.65; }

  /* Keep the three destinations visible without a menu or tiny links. */
  .header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto; height: auto; gap: 0; padding: 6px 20px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .brand { display: block; align-self: center; min-height: 44px; padding: 8px 0; font-size: 13px; line-height: 1.1; }
  .languages { grid-column: 2; grid-row: 1; gap: 0; font-size: 14px; }
  .languages button { min-width: 44px; min-height: 44px; padding: 8px; }
  .header nav { grid-column: 1 / -1; grid-row: 2; gap: 4px; width: auto; margin: 0 -12px; padding: 4px 0 6px; font-size: 14px; }
  .header nav a { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 8px 4px; border: 0; }
  .header nav a:last-child { background: var(--wine); color: #fff; }
  .header nav a[aria-current="location"] { text-decoration: underline; text-underline-offset: 5px; }
  a:focus-visible, button:focus-visible, summary:focus-visible { outline-offset: 3px; }

  .hero { display: flex; flex-direction: column; min-height: 0; padding-bottom: 28px; }
  .hero-copy { padding: 24px 20px 0; }
  .hero .eyebrow { max-width: 360px; margin-bottom: 18px; font-size: 14px; line-height: 1.5; }
  .hero h1 { font-size: clamp(32px, 9.2vw, 52px); line-height: 1.1; letter-spacing: -.045em; width: 100%; }
  .hero h1 em { max-width: none; margin: 4px 0; }
  .hero-description { margin: 18px 0 20px; max-width: 560px; font-size: 16px; line-height: 1.6; }
  .hero .button { width: 100%; min-height: 50px; padding: 12px 16px; font-size: 16px; }
  .hero-note { width: 100%; margin-top: 10px; font-size: 14px; text-align: center; }
  .hero-index { display: none; }
  .hero-visual { width: auto; height: clamp(260px, 76vw, 360px); min-height: 0; margin: 24px 28px 8px 20px; }
  .hero-visual:before { inset: 8px -8px -8px 8px; }
  .hero-visual img { object-position: 50% 35%; }
  .photo-caption { padding: 40px 18px 16px; font-size: 14px; }
  .photo-caption span:last-child { font-size: 28px; }

  .clients { padding-top: 28px; padding-bottom: 32px; }
  .clients .section-intro { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 20px; }
  .clients .eyebrow { font-size: 14px; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .client-grid .client { height: 60px; min-width: 0; padding: 8px; font-size: 20px; white-space: normal; }
  .client-grid .client-city, .client-grid .client-dellos { font-size: 14px; letter-spacing: 0; }
  .client-grid .client-samolet { font-size: 25px; }

  .expertise { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .expertise h2 { font-size: clamp(30px, 8vw, 40px); }
  .services { min-width: 0; padding-top: 0; }
  .services summary { min-height: 64px; padding: 18px 0; font-size: 17px; line-height: 1.45; gap: 18px; }
  .services details p { padding: 0 0 20px; font-size: 16px; line-height: 1.65; }
  .expand { width: 20px; height: 20px; }
  .expand:before, .expand:after { width: 18px; top: 9px; }

  .focus { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
  .focus h2.eyebrow { margin: 0; font-size: 14px; }
  .industry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .industry-list span, .industry-list span:nth-child(2n) { display: flex; align-items: center; padding: 12px; border: 1px solid #ffffff55; min-height: 64px; font-family: var(--sans); font-size: 16px; line-height: 1.4; letter-spacing: 0; }

  /* Compact, aligned film rows retain every poster and project label. */
  .horizontal { display: block; }
  .horizontal .section-lead { margin-top: 18px; max-width: none; }
  .screen-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 26px; }
  .screen-project, .screen-project:nth-child(n) { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 18px; width: 100%; min-height: 0; margin: 0; padding: 20px 0; border-top: 1px solid #ffffff33; }
  .screen-project:last-child { padding-bottom: 0; }
  .project-art img { width: 96px; height: 144px; aspect-ratio: 2 / 3; object-fit: cover; }
  .project-info { min-width: 0; padding: 0; }
  .screen-project .project-type { font-size: 14px; line-height: 1.5; }
  .screen-project h3 { margin-top: 8px; font-size: clamp(23px, 6.3vw, 30px); line-height: 1.15; overflow-wrap: normal; }
  .screen-project .project-role { margin-top: 10px; font-size: 14px; line-height: 1.5; }

  .career-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 26px; }
  .career-image { position: static; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 18px; padding: 0; }
  .career-image img { grid-column: 1; grid-row: 1 / 3; width: 96px; height: 128px; aspect-ratio: auto; object-fit: cover; object-position: center; }
  .portrait-label { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 10px; font-size: 14px; letter-spacing: .02em; }
  .career-image .image-credit { grid-column: 2; grid-row: 2; align-self: start; padding: 0; margin: 0; border: 0; font-size: 14px; }
  .career-list { margin-top: 0; }
  .career-list details { margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 0; }
  .career-list details:last-child { border-bottom: 1px solid var(--line); }
  .career-list summary { position: relative; cursor: pointer; min-height: 100px; padding: 18px 34px 18px 0; }
  .career-list summary .expand { display: block; position: absolute; top: 38px; right: 0; }
  .career-date { margin-bottom: 8px; font-size: 14px; }
  .career-list h3 { margin-bottom: 8px; font-size: 27px; line-height: 1.15; }
  .career-role { margin: 0; font-size: 15px; line-height: 1.5; }
  .career-body { padding: 0 0 20px; }
  .career-list .career-body > p { font-size: 16px; line-height: 1.65; }

  .approach-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .approach .eyebrow { margin-bottom: 16px; }
  .steps article { margin-bottom: 20px; padding-left: 16px; padding-bottom: 0; }
  .steps h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
  .steps p { font-size: 16px; line-height: 1.6; }

  .contact { padding-top: 40px; padding-bottom: 32px; }
  .contact > .eyebrow { margin-bottom: 18px; }
  .contact h2 { font-size: clamp(34px, 9.2vw, 48px); line-height: 1.12; }
  .contact-bottom { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; padding-top: 24px; }
  .contact-bottom > p { font-size: 16px; line-height: 1.6; }
  .contact-links > a:not(.phone-link) { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 76px; padding: 14px 0; }
  .contact-links > a:first-child { padding-top: 0; }
  .contact-links strong { max-width: 100%; font-size: 18px; line-height: 1.4; }
  .contact-links > a > span { font-size: 14px; }
  .phone-link { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 48px; padding: 12px; margin-top: 20px; border: 1px solid #d1a2b1; font-size: 16px; text-decoration: none; }
  .footer { flex-wrap: wrap; align-items: center; padding: 18px 20px max(18px, env(safe-area-inset-bottom)); gap: 8px 16px; font-size: 14px; }
  .footer > span:nth-child(2) { display: none; }
  .footer a { display: flex; align-items: center; min-height: 44px; margin-left: auto; }
}

.header .brand { display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--ink); }
.wordmark { font-size: 1.6rem; font-weight: 850; line-height: .84; letter-spacing: -.055em; }
.brand-caption { max-width: 17ch; font-size: .875rem; font-weight: 400; line-height: 1.14; letter-spacing: 0; }
@media (max-width: 767px) {
  html { scroll-padding-top: 158px; }
  .header .languages { align-self: start; }
  .header .brand { width: fit-content; }
  .hero-note { display: none; }
}
