/* Responsive layouts use the same content and media as the desktop experience. */
@media (min-width:768px) and (max-width:999px) {
  /* Override the older alternating MAJ grid placement, not just the base case. */
  .case .case-content { grid-column:1; grid-row:1; }
  .case .case-media { grid-column:2; grid-row:1; align-self:start; }
  .case-content { padding:40px 30px; }
  .case-story>div { display:block; }
  .case-story h4 { font-size:10px; margin-bottom:8px; }
  .case-story p { font-size:14px; line-height:1.65; }
  .case .source-link { font-size:12px; min-height:44px; }
  .result-description { font-size:28px; }
  .result-number.money { font-size:clamp(75px,9.1vw,91px); }
  .team-members { gap:24px; }
  .person>p { font-size:13px; }
}
@media (max-width:767px) {
  :root { --gutter:24px; --nav-height:64px; }
  .section-pad { padding:60px var(--gutter); }
  .header { height:var(--nav-height); padding:0 var(--gutter); backdrop-filter:none; }
  .brand img { width:108px; height:40px; }
  .menu-toggle { font-size:13px; min-height:44px; gap:12px; }
  .header nav { top:var(--nav-height); max-height:calc(100svh - var(--nav-height)); overflow-y:auto; padding:20px var(--gutter) 24px; gap:8px; }
  .header nav.open>a { min-height:48px; padding:10px 0; }
  .header nav.open .nav-cta { padding:14px 18px; margin-top:12px; font-size:14px; }
  .button { min-height:56px; font-size:14px; }
  .text-link { min-height:44px; font-size:13px; }
  .eyebrow { font-size:10px; line-height:1.5; }

  /* Show the group rather than forcing the landscape photo into a tall crop. */
  .hero { height:auto; min-height:100svh; display:flex; flex-direction:column; padding:0; background:#0b0d0b; }
  .hero::before { display:none; }
  .hero-background { position:relative; inset:auto; z-index:0; flex:none; height:clamp(220px,36svh,320px); width:100%; margin:var(--nav-height) 0 0; overflow:hidden; }
  .hero-background img { filter:brightness(1.15); object-fit:cover; object-position:70% 43%; }
  .hero-background::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,#0b0d0b 0%,rgba(11,13,11,.15) 32%,transparent 64%); pointer-events:none; }
  .hero-content { position:relative; flex:1; height:auto; width:100%; max-width:none; padding:6px var(--gutter) max(30px,env(safe-area-inset-bottom)); justify-content:center; align-items:stretch; }
  .hero-tag, .hero-brand-icon { display:none; }
  .hero-title { font-size:clamp(44px,13.8vw,80px); line-height:1.06; letter-spacing:-.065em; }
  .hero-title em { font-size:1.08em; }
  .hero-copy { margin-top:22px; width:100%; max-width:none; display:block; }
  .hero-copy>p:first-child { font-size:16px; line-height:1.65; font-weight:400; }
  .hero-actions { display:flex; flex-direction:column; align-items:stretch; gap:8px; margin-top:22px; }
  .hero-actions .button { width:100%; min-width:0; min-height:56px; padding:16px 20px; font-size:13px; }
  .hero-actions .text-link { min-height:44px; max-width:none; width:100%; align-self:center; justify-content:center; border-bottom:0; font-size:13px; gap:14px; padding:10px; }
  html[data-motion='full'] .hero-title .line { overflow:visible; }

  .clients { padding-top:48px; padding-bottom:52px; }
  .clients .section-heading { gap:18px; }
  .clients .section-heading h2 { font-size:clamp(29px,7.2vw,42px); line-height:1.15; }
  .client-logos { margin-top:28px; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .client-logos li { height:90px; padding:12px 8px; }
  .client-logos img { width:calc(100% - 20px); height:49px; }
  .client-name span { font-size:12px; line-height:1.3; opacity:.9; overflow-wrap:normal; }
  .client-logos .logo-base { opacity:0; }
  .client-logos .logo-color { opacity:.95; }

  .thesis { padding-top:60px; padding-bottom:62px; }
  .statement { font-size:clamp(33px,8.6vw,60px); line-height:1.18; margin:30px 0; }
  .statement .line { line-height:1.2; }
  .statement-second { margin-top:20px; }
  .statement em { font-size:1.2em; }
  .thesis-copy { font-size:15px; line-height:1.75; max-width:520px; }
  .display-title { font-size:clamp(39px,9.6vw,62px); line-height:1.08; }
  .delivery { padding-top:60px; padding-bottom:60px; }
  .delivery-grid { margin-top:30px; gap:32px; }
  .delivery-intro { font-size:15px; line-height:1.7; margin:24px 0 10px; }
  .delivery .text-link { font-size:13px; }
  .services li { grid-template-columns:24px minmax(0,1fr) 18px; gap:12px; padding:24px 0; }
  .services h3 { font-size:25px; line-height:1.2; }
  .services p { font-size:14px; line-height:1.7; margin-top:12px; }
  .service-number { font-size:11px; }
  .cases-intro { min-height:0; padding:60px var(--gutter) 82px; }
  .cases-intro .display-title { font-size:clamp(34px,9.2vw,62px); margin-top:28px; line-height:1.13; }
  .cases-intro em { font-size:1.1em; }
  .results-brand-icon { width:34px; height:34px; bottom:26px; }

  .case-stage { height:auto; min-height:0; display:block; overflow:hidden; }
  .case-content { width:100%; height:auto; padding:38px var(--gutter) 38px; display:flex; flex-direction:column; justify-content:flex-start; }
  .case-top { margin:0 0 24px; min-height:0; }
  .case-logo { width:100px; height:38px; }
  .case-maj .case-logo { width:140px; height:42px; }
  .result-number { font-size:clamp(130px,35vw,190px); line-height:.9; }
  .result-number.money { font-size:clamp(80px,23vw,140px); gap:8px; }
  .result-number.money>span { font-size:.45em; }
  .result-description { font-size:clamp(27px,7.2vw,43px); line-height:1.18; margin-top:16px; }
  .result-description em { font-size:1.15em; margin-left:4px; white-space:normal; }
  .case-media { position:relative; inset:auto; width:min(100%,calc(80svh * 9 / 16),360px); height:auto; max-width:none; aspect-ratio:9/16; margin:28px auto 0; flex:none; }
  .case-media .video-player { width:100%; height:100%; }
  .case-media .play-button { padding-bottom:40px; font-size:18px; }
  .case-media .play-button small { font-size:12px; }
  .case-media .play-circle { width:68px; height:68px; }
  .case-media .media-status:not(:empty) { font-size:13px; left:12px; right:12px; padding:12px; }
  .case-story { display:grid; grid-template-columns:1fr; gap:20px; margin-top:30px; }
  .case-story>div { display:block; padding-top:18px; }
  .case-story h4 { font-size:10px; margin:0 0 9px; line-height:1.4; }
  .case-story p { font-size:14px; line-height:1.75; }
  .case .source-link { font-size:12px; min-height:44px; padding:13px 0; margin-top:14px; }
  .results-note { font-size:12px; line-height:1.7; padding:24px var(--gutter) 30px; }

  .team { padding-top:60px; padding-bottom:60px; }
  .team-top { margin:28px 0 30px; gap:22px; }
  .team-top>p { font-size:15px; line-height:1.75; }
  .team-leads { gap:18px; }
  .team-leads .person h3 { font-size:clamp(18px,4.8vw,26px); font-weight:600; line-height:1.2; margin-top:14px; }
  .team-leads .person>p { font-size:12px; line-height:1.55; max-width:none; }
  .team-members { gap:28px 18px; margin-top:32px; }
  .person h3 { font-size:20px; line-height:1.25; }
  .person>p { font-size:12px; line-height:1.55; }

  .diagnostic { padding-top:60px; padding-bottom:60px; }
  .diagnostic-grid { margin-top:30px; gap:34px; }
  .diagnostic-intro .display-title { font-size:clamp(42px,10vw,65px); }
  .diagnostic-intro>p { font-size:15px; line-height:1.75; }
  .diagnostic-intro .text-link { font-size:13px; }
  .form-progress { font-size:10px; margin-bottom:26px; }
  fieldset,#diagnostic-review { scroll-margin-top:18px; }
  legend { font-size:22px; line-height:1.3; margin-bottom:28px; }
  .field label { font-size:13px; line-height:1.5; }
  .optional { font-size:12px; }
  .field input,.field textarea { font-size:16px; line-height:1.5; padding:12px 0; }
  .field-error { font-size:12px; line-height:1.5; }
  #next-step,#send-diagnostic { width:100%; font-size:14px; }
  .form-actions .button { font-size:13px; padding:16px; }
  .back-button { min-height:44px; font-size:13px; }
  .form-note,#diagnostic-review>p { font-size:13px; line-height:1.7; }
  #review-details dt { font-size:11px; }
  #review-details dd { font-size:15px; }
  .footer { padding-top:0; padding-bottom:30px; }
  .footer-top { padding-top:30px; padding-bottom:30px; gap:22px; }
  .footer-bottom { gap:22px; font-size:12px; }
  .footer-bottom nav { gap:4px 20px; }
  .footer-bottom nav a { display:flex; align-items:center; min-height:44px; }
  .motion-toggle { min-height:44px; font-size:12px; }
}
@media (max-width:359px) {
  :root { --gutter:20px; }
  .hero-background { height:clamp(200px,31svh,250px); }
  .hero-content { padding-top:12px; }
  .hero-title { font-size:44px; }
  .hero-copy { margin-top:18px; }
  .hero-copy>p:first-child { font-size:15px; }
  .hero-actions { margin-top:18px; }
  .client-name span { font-size:11px; }
}
@media (min-width:768px) and (max-width:999px) and (max-height:600px) {
  .hero { height:auto; min-height:600px; }
  .hero-content { padding:130px var(--gutter) 70px; }
}
