/* Local home preview only: six explicit industry choices on the shared theme. */
#cases .industry-navigation-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:18px 0 10px;
  color:var(--noe-text);
  font-family:var(--noe-font);
  font-size:12px;
  line-height:1.5;
}

#cases .industry-navigation-head > :first-child {
  margin:0;
  font-weight:550;
}

#cases .industry-navigation-head > :last-child {
  margin:0;
  color:var(--noe-muted);
  font-size:11px;
  font-weight:400;
}

#cases .industry-tabs {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:stretch;
  gap:10px;
  margin:0 0 18px;
  padding:0;
  border:0;
}

#cases .industry-tabs button {
  position:relative;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 12px;
  grid-template-rows:auto auto;
  align-content:center;
  align-items:center;
  gap:5px 10px;
  min-width:0;
  min-height:94px;
  padding:15px 13px;
  border:1px solid var(--noe-line-strong);
  border-radius:var(--noe-radius);
  background:var(--noe-surface);
  color:var(--noe-text);
  font-family:var(--noe-font);
  font-size:14px;
  line-height:1.4;
  text-align:left;
  white-space:normal;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}

#cases .industry-tabs .industry-icon {
  grid-column:1;
  grid-row:1 / 3;
  display:block;
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:var(--noe-accent);
}

#cases .industry-tabs button > span {
  grid-column:2;
  grid-row:1;
  min-width:0;
  color:inherit;
  font-weight:550;
}

#cases .industry-tabs .industry-tag {
  grid-column:2;
  grid-row:2;
  display:block;
  min-width:0;
  color:var(--noe-muted);
  font-size:10px;
  font-weight:400;
  line-height:1.5;
}

#cases .industry-tabs button > b {
  grid-column:3;
  grid-row:1 / 3;
  align-self:center;
  color:var(--noe-subtle);
  font-size:15px;
  font-weight:400;
  line-height:1;
}

#cases .industry-tabs button:hover {
  background:var(--noe-surface-raised);
  border-color:var(--noe-accent);
  color:var(--noe-text);
}

#cases .industry-tabs button:hover > b {
  color:var(--noe-accent);
}

#cases .industry-tabs button:is(.is-active,[aria-selected="true"]) {
  background:var(--noe-accent);
  border-color:var(--noe-accent);
  color:var(--noe-bg);
}

#cases .industry-tabs button:is(.is-active,[aria-selected="true"]) .industry-icon,
#cases .industry-tabs button:is(.is-active,[aria-selected="true"]) > b {
  color:var(--noe-bg);
}

#cases .industry-tabs button:is(.is-active,[aria-selected="true"]) .industry-tag {
  color:color-mix(in srgb,var(--noe-bg) 72%,transparent);
}

#cases .industry-tabs button:focus-visible {
  outline:2px solid var(--noe-accent);
  outline-offset:3px;
}

/* Absorb the taller navigation in the home chapter's existing top space. */
@media (min-width:981px) {
  #cases .scene-inner {
    padding-top:100px;
    padding-bottom:156px;
    justify-content:flex-start;
  }
  #cases .industry-copy {
    align-self:start;
  }
  #cases .industry-copy h3 {
    margin:16px 0 13px;
    font-size:clamp(40px,3.6vw,52px);
    line-height:1.12;
  }
  html[lang=en] #cases .industry-copy h3 {
    font-size:clamp(36px,3.1vw,44px);
  }
  #cases .industry-copy > p:not(.industry-scope) {
    font-size:13px;
    line-height:1.85;
    max-width:440px;
  }
  #cases .industry-tasks {
    margin:14px 0 16px;
    gap:4px;
    font-size:11px;
    line-height:1.65;
  }
  #cases .industry-copy .industry-scope {
    margin-top:10px;
    font-size:11px;
    line-height:1.6;
  }
}

@media (min-width:981px) and (max-height:780px) {
  #cases .scene-inner {
    padding-top:90px;
    padding-bottom:144px;
    justify-content:flex-start;
  }
  #cases .cases-heading h2 { margin-top:6px; }
  #cases .industry-navigation-head {
    margin:7px 0 5px;
    font-size:11px;
    line-height:1.4;
  }
  #cases .industry-navigation-head > :last-child { font-size:10px; }
  #cases .industry-tabs { gap:8px;margin-bottom:8px; }
  #cases .industry-tabs button {
    grid-template-columns:21px minmax(0,1fr) 11px;
    min-height:80px;
    padding:11px 10px;
    gap:4px 8px;
    font-size:13px;
  }
  #cases .industry-tabs .industry-icon { width:21px;height:21px; }
  #cases .industry-tabs .industry-tag { font-size:9px; }
  #cases .industry-tabs button > b { font-size:14px; }
  #cases .industry-copy h3,
  html[lang=en] #cases .industry-copy h3 {
    margin:8px 0;
    font-size:36px;
    line-height:1.12;
  }
  #cases .industry-copy > p:not(.industry-scope) {
    font-size:12px;
    line-height:1.75;
  }
  #cases .industry-tasks {
    margin:8px 0 10px;
    gap:2px;
    font-size:11px;
    line-height:1.6;
  }
  #cases .industry-copy .industry-scope {
    margin-top:8px;
    font-size:10px;
    line-height:1.65;
  }
}

/* One row remains navigable when six cards cannot fit the viewport. */
@media (max-width:980px) {
  #cases .industry-tabs {
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:168px;
    overflow-x:auto;
    overflow-y:visible;
    padding:4px;
    margin-inline:-4px;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    scrollbar-color:var(--noe-line-strong) transparent;
    overscroll-behavior-inline:contain;
  }
  #cases .industry-tabs button {
    min-height:84px;
    padding:12px 10px;
    grid-template-columns:21px minmax(0,1fr) 11px;
    gap:4px 8px;
    font-size:13px;
    scroll-snap-align:start;
  }
  #cases .industry-tabs .industry-icon { width:21px;height:21px; }
  #cases .industry-tabs .industry-tag { font-size:9px; }
}

@media (max-width:700px) {
  #cases .industry-navigation-head { margin:14px 0 7px; }
  #cases .industry-tabs { grid-auto-columns:158px;gap:8px;margin-bottom:14px; }
  #cases .industry-tabs button { min-height:80px;font-size:12px; }
}

@media (prefers-reduced-motion:reduce) {
  #cases .industry-tabs button { transition:none; }
}

/* v3.5: names occupy their own row; the service scope stays visible. */
#cases .industry-navigation-head .industry-enquiry {
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:3px 0;
  border:0;
  border-bottom:1px solid color-mix(in srgb,var(--noe-accent) 40%,transparent);
  border-radius:0;
  background:transparent;
  color:var(--noe-accent);
  font:inherit;
  font-size:12px;
  cursor:pointer;
}
#cases .industry-enquiry b { font-weight:400; }
#cases .industry-enquiry:hover { color:var(--noe-text);border-color:var(--noe-accent); }
#cases .industry-enquiry:focus-visible { outline:2px solid var(--noe-accent);outline-offset:5px; }
#cases .industry-tabs button {
  grid-template-columns:minmax(0,1fr) 16px;
  grid-template-rows:22px auto auto;
  gap:6px 8px;
  min-height:104px;
  padding:12px 14px;
}
#cases .industry-tabs .industry-icon { grid-column:1;grid-row:1;width:22px;height:22px; }
#cases .industry-tabs button > b { grid-column:2;grid-row:1; }
#cases .industry-tabs button > span {
  grid-column:1 / 3;
  grid-row:2;
  font-size:clamp(16px,1.4vw,20px);
  line-height:1.35;
  white-space:nowrap;
}
#cases .industry-tabs .industry-tag {
  grid-column:1 / 3;
  grid-row:3;
  font-size:10px;
  line-height:1.4;
}
html[lang=en] #cases .industry-tabs button > span {
  font-size:14px;
  line-height:1.3;
  white-space:normal;
  min-height:2.6em;
  align-content:center;
}
html[lang=en] #cases .industry-tabs .industry-tag { font-size:10px; }
html[lang=en] #cases .industry-tabs button { grid-template-rows:18px auto auto;gap:4px 8px;padding-block:10px; }
html[lang=en] #cases .industry-tabs .industry-icon { width:18px;height:18px; }

@media (min-width:981px) {
  #cases .scene-inner { padding:100px 0 156px; }
  #cases .scene-inner > .shell { display:flex;flex-direction:column;height:100%;min-height:0; }
  #cases .cases-heading { flex:none;align-items:center;gap:32px; }
  #cases .cases-heading .eyebrow { font-size:9px;line-height:1.5; }
  #cases .cases-heading h2,
  html[lang=en] #cases .cases-heading h2 { font-size:clamp(28px,2.7vw,40px);margin-top:8px;line-height:1.25; }
  #cases .cases-heading > p { max-width:360px;font-size:12px;line-height:1.7; }
  #cases .industry-navigation-head { flex:none;margin:8px 0 8px;font-size:12px; }
  #cases .industry-tabs { flex:none;margin-bottom:10px; }
  #cases .industry-panel { flex:1;height:auto;min-height:0;align-items:start;grid-template-columns:1.05fr 1.15fr; }
  #cases .industry-art { min-height:0;height:100%;align-self:stretch; }
  #cases .industry-copy h3 { font-size:clamp(32px,3vw,44px);margin:10px 0;line-height:1.14; }
  html[lang=en] #cases .industry-copy h3 { font-size:clamp(30px,2.8vw,40px); }
  #cases .industry-copy > p:not(.industry-scope) { max-width:470px;font-size:12px;line-height:1.7; }
  #cases .industry-tasks { margin:10px 0;gap:2px;font-size:11px;line-height:1.65; }
  #cases .industry-copy .button { min-height:40px;padding:8px 16px; }
  #cases .industry-copy .industry-scope { margin-top:8px;font-size:10px;line-height:1.6; }
  #cases .sector-workspace { inset:16px 18px 30px;display:flex;flex-direction:column; }
  #cases .sector-workspace-head { flex:none;padding:12px 14px;font-size:7px; }
  #cases .sector-paper { position:relative;inset:auto;flex:1;min-height:0;margin:14px 18px;padding:18px;display:flex;flex-direction:column; }
  #cases .paper-overline { font-size:14px; }
  #cases .paper-lines { flex:1;min-height:0;margin:16px 0;gap:8px;overflow:hidden; }
  #cases .paper-loop { flex:none;margin-top:0;font-size:10px; }
  #cases .paper-loop span { padding:6px 8px; }
  #cases .paper-tick { top:12px;bottom:auto;right:16px;font-size:30px;opacity:.45; }
  #cases .sector-example { position:static;flex:none;margin:0 18px 12px;font-size:9px; }
}
@media (min-width:981px) and (max-height:780px) {
  #cases .scene-inner { padding:90px 0 144px; }
  #cases .cases-heading h2,
  html[lang=en] #cases .cases-heading h2 { font-size:28px;margin-top:6px; }
  #cases .cases-heading > p { font-size:11px;line-height:1.6; }
  #cases .industry-navigation-head { margin:8px 0 6px; }
  #cases .industry-tabs { margin-bottom:8px; }
  #cases .industry-tabs button { min-height:94px;padding:10px 12px;gap:4px 8px; }
  #cases .industry-copy h3,
  html[lang=en] #cases .industry-copy h3 { font-size:28px;margin:6px 0;line-height:1.12; }
  #cases .industry-copy > p:not(.industry-scope) { font-size:11px;line-height:1.65; }
  #cases .industry-tasks { margin:6px 0 8px;gap:2px;font-size:10px;line-height:1.65; }
  #cases .industry-copy .button { min-height:36px;font-size:11px;padding:7px 14px; }
  #cases .industry-copy .industry-scope { margin-top:6px;font-size:10px;line-height:1.5; }
}
@media (min-width:1180px) {
  html[lang=en] #cases .industry-tabs button > span { min-height:0; }
}

/* v3.6: the actual industries are the readable content of each card. */
#cases .industry-tabs button { min-height:154px;padding:14px;gap:8px 8px;align-content:start; }
#cases .industry-tabs button > span { font-size:18px;line-height:1.4; }
#cases .industry-tabs .industry-tag { font-size:13px;line-height:1.6;color:#c3ced9; }
#cases .industry-tag > span { display:block; }
#cases .industry-tabs button:is(.is-active,[aria-selected="true"]) .industry-tag { color:var(--noe-bg); }
html[lang=en] #cases .industry-tabs button { padding:14px;gap:8px; }
html[lang=en] #cases .industry-tabs .industry-tag { font-size:12px;line-height:1.55; }
#cases .industry-navigation-head > strong { font-size:13px;letter-spacing:.02em; }

@media (min-width:981px) {
  #cases .industry-copy h3,
  html[lang=en] #cases .industry-copy h3 { font-size:clamp(28px,2.7vw,38px);line-height:1.2; }
  #cases .industry-copy h3 br { display:none; }
  #cases .industry-copy .button { margin-top:14px; }
  #cases .industry-art > .industry-tasks {
    position:absolute;left:0;right:0;bottom:28px;
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;margin:0;padding:10px 0 0;
    border-top:1px solid var(--noe-line);
    font-size:11px;line-height:1.6;
  }
  #cases .industry-tasks li { display:flex;gap:8px; }
  #cases .industry-tasks li::before { margin:0;flex:none; }
  #cases .homepage-model { height:calc(100% - 18px)!important; }
  #cases .homepage-model .spatial-note { bottom:64px; }
  #cases .sector-paper .paper-lines,
  #cases .sector-paper .paper-loop,
  #cases .sector-paper .paper-tick { display:none; }
  #cases .sector-paper .industry-tasks { position:static;display:flex;flex-direction:column;gap:12px;margin:16px 0 0;font-size:12px;line-height:1.65; }
}
@media (min-width:1180px) {
  #cases .industry-tabs button > span { font-size:20px; }
  #cases .industry-tabs .industry-tag { font-size:14px; }
  html[lang=en] #cases .industry-tabs .industry-tag { font-size:13px; }
}
@media (min-width:981px) and (max-height:780px) {
  #cases .industry-tabs button,
  html[lang=en] #cases .industry-tabs button { min-height:144px;padding:12px;gap:6px 8px; }
  #cases .industry-copy h3,
  html[lang=en] #cases .industry-copy h3 { font-size:28px;margin:8px 0; }
  #cases .sector-paper { padding:14px; }
  #cases .sector-paper .industry-tasks { gap:8px;margin-top:12px;font-size:11px;line-height:1.6; }
}
@media (min-width:981px) and (max-width:1179px), (min-width:981px) and (max-height:780px) {
  #cases .sector-workspace { inset:0 18px 24px; }
  #cases .sector-workspace-head { display:none; }
  #cases .sector-paper { margin:10px 14px;padding:12px; }
  #cases .sector-paper .industry-tasks { gap:8px;margin-top:12px; }
}
