/* /industries: "Four plates". Each discipline is a drawing sheet with a title block. Scoped under .pg-industries. */
.pg-industries {
  --ix-paper: #eef4ff;
  --ix-line: #0a1c4a;
  --ix-faint: rgba(10, 28, 74, 0.45);
  --ix-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ix-gutter: clamp(20px, 5vw, 48px);
  --ix-rule: rgba(var(--ink-rgb), 0.14);
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(15px, 0.5vw + 13.8px, 17px);
  line-height: 1.6;
  padding-top: 104px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] .pg-industries { --ix-paper: #0c1a3b; --ix-line: #9fc0ff; --ix-faint: rgba(159, 192, 255, 0.5); }
:where(.pg-industries) *, :where(.pg-industries) *::before, :where(.pg-industries) *::after { box-sizing: border-box; }
:where(.pg-industries) p, :where(.pg-industries) h1, :where(.pg-industries) h2, :where(.pg-industries) h3, :where(.pg-industries) dl, :where(.pg-industries) dd { margin: 0; padding: 0; }
:where(.pg-industries) a { color: inherit; text-decoration: none; }
:where(.pg-industries) a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ix-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--ix-gutter); }
.ix-mono { font-family: var(--ix-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ix-label { font-family: var(--ix-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.ix-h2 { font-size: clamp(1.65rem, 2.6vw + 0.6rem, 2.55rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.12; max-width: 22ch; }
.ix-h3 { font-size: clamp(1.4rem, 1.5vw + 0.9rem, 1.95rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- 1. Hero ---------- */
.ix-hero { padding-block: clamp(20px, 3vw, 44px) clamp(40px, 6vw, 72px); background: linear-gradient(rgba(var(--accent-rgb), 0.07) 1px, transparent 1px) 0 0 / 100% 40px, linear-gradient(90deg, rgba(var(--accent-rgb), 0.07) 1px, transparent 1px) 0 0 / 40px 100%, linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--ix-rule); }
.ix-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--ix-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.ix-crumb a:hover { color: var(--accent); }
.ix-crumb [aria-current] { color: var(--ink); }
.ix-h1 { font-size: clamp(2.2rem, 4.4vw + 0.6rem, 4.3rem); font-weight: 600; letter-spacing: -0.036em; line-height: 1.05; max-width: 15ch; }
.ix-lede { margin-top: 22px; color: var(--muted); max-width: 54ch; }
.ix-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ix-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 600; font-size: 0.93rem; border: 1.5px solid transparent; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.pg-industries .ix-btn--solid { background: var(--accent-fill, var(--accent)); color: #fff; }
.pg-industries .ix-btn--solid:hover { background: var(--navy); transform: translateY(-1px); }
.pg-industries .ix-btn--line { border-color: var(--ix-rule); background: var(--card); }
.pg-industries .ix-btn--line:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 2. Selector and sheet ---------- */
.ix-sheets { padding-block: clamp(48px, 7vw, 96px); }
.ix-selector { position: relative; margin-top: 34px; }
.ix-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ix-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ix-line); border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; background: var(--card); }
.ix-seg label { display: grid; gap: 2px; align-content: center; min-height: 64px; padding: 10px 18px; cursor: pointer; font-weight: 600; letter-spacing: -0.01em; border-right: 1px solid var(--ix-rule); transition: background 0.2s, color 0.2s; }
.ix-seg label:last-child { border-right: 0; }
.ix-seg label .ix-mono { color: var(--accent); font-size: 0.66rem; }
.ix-seg label:hover { background: rgba(var(--accent-rgb), 0.07); }
#ix-r1:checked ~ .ix-seg label[for="ix-r1"], #ix-r2:checked ~ .ix-seg label[for="ix-r2"], #ix-r3:checked ~ .ix-seg label[for="ix-r3"], #ix-r4:checked ~ .ix-seg label[for="ix-r4"] { background: var(--ix-line); color: var(--bg); }
html[data-theme="dark"] #ix-r1:checked ~ .ix-seg label[for="ix-r1"], html[data-theme="dark"] #ix-r2:checked ~ .ix-seg label[for="ix-r2"], html[data-theme="dark"] #ix-r3:checked ~ .ix-seg label[for="ix-r3"], html[data-theme="dark"] #ix-r4:checked ~ .ix-seg label[for="ix-r4"] { color: #071022; }
#ix-r1:checked ~ .ix-seg label[for="ix-r1"] .ix-mono, #ix-r2:checked ~ .ix-seg label[for="ix-r2"] .ix-mono, #ix-r3:checked ~ .ix-seg label[for="ix-r3"] .ix-mono, #ix-r4:checked ~ .ix-seg label[for="ix-r4"] .ix-mono { color: inherit; opacity: 0.8; }
#ix-r1:focus-visible ~ .ix-seg label[for="ix-r1"], #ix-r2:focus-visible ~ .ix-seg label[for="ix-r2"], #ix-r3:focus-visible ~ .ix-seg label[for="ix-r3"], #ix-r4:focus-visible ~ .ix-seg label[for="ix-r4"] { outline: 3px solid var(--accent); outline-offset: -5px; }

.ix-sheet { position: relative; padding: clamp(18px, 2.4vw, 30px); background: var(--ix-paper); border: 1.5px solid var(--ix-line); border-radius: 0 0 10px 10px;
  background-image: linear-gradient(rgba(var(--accent-rgb), 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb), 0.08) 1px, transparent 1px); background-size: 24px 24px; }
.ix-sheet::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--ix-faint); pointer-events: none; }
.ix-corner { position: absolute; width: 14px; height: 14px; border: solid var(--ix-line); border-width: 0; pointer-events: none; }
.ix-corner--tl { top: 3px; left: 3px; border-top-width: 2px; border-left-width: 2px; }
.ix-corner--tr { top: 3px; right: 3px; border-top-width: 2px; border-right-width: 2px; }
.ix-corner--bl { bottom: 3px; left: 3px; border-bottom-width: 2px; border-left-width: 2px; }
.ix-corner--br { bottom: 3px; right: 3px; border-bottom-width: 2px; border-right-width: 2px; }

.ix-plate { display: none; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3.4vw, 48px); align-items: stretch; padding: clamp(10px, 1.6vw, 22px); }
#ix-r1:checked ~ .ix-sheet .ix-plate--1, #ix-r2:checked ~ .ix-sheet .ix-plate--2, #ix-r3:checked ~ .ix-sheet .ix-plate--3, #ix-r4:checked ~ .ix-sheet .ix-plate--4 { display: grid; }
.ix-drawing { display: grid; place-items: center; min-height: 280px; padding: 6px; }
.ix-art { width: 100%; max-width: 640px; height: auto; overflow: visible; }
.ix-art g { fill: none; stroke: var(--ix-line); stroke-linecap: round; stroke-linejoin: round; }
.ix-art .ix-wall { stroke-width: 3.5; }
.ix-art .ix-fine { stroke-width: 1.8; }
.ix-art .ix-pipe { stroke: var(--accent); stroke-width: 3; }
.ix-art .ix-dim { stroke-width: 1.5; stroke: var(--ix-faint); }
.ix-art * { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  #ix-r1:checked ~ .ix-sheet .ix-plate--1 .ix-art *, #ix-r2:checked ~ .ix-sheet .ix-plate--2 .ix-art *, #ix-r3:checked ~ .ix-sheet .ix-plate--3 .ix-art *, #ix-r4:checked ~ .ix-sheet .ix-plate--4 .ix-art * { animation: ix-draw 1.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
  .ix-art .ix-fine * { animation-delay: 0.35s !important; }
  .ix-art .ix-dim * { animation-delay: 0.8s !important; }
  @keyframes ix-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
.ix-side { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 6px 4px; }
.ix-side p { margin-top: 12px; color: var(--ink); opacity: 0.86; max-width: 34ch; }
.ix-more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--accent); }
.ix-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.ix-block { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ix-line); background: var(--card); margin-top: 8px; }
.ix-block div { padding: 8px 12px; border-bottom: 1px solid var(--ix-rule); }
.ix-block div:nth-child(odd) { border-right: 1px solid var(--ix-rule); }
.ix-block div:nth-last-child(-n+2) { border-bottom: 0; }
.ix-block dt { font-family: var(--ix-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ix-block dd { font-family: var(--ix-mono); font-size: 0.74rem; letter-spacing: 0.04em; font-weight: 600; margin-top: 2px; }
.ix-note { position: relative; margin: 10px clamp(10px, 1.6vw, 22px) 6px; padding: 14px 18px; border-top: 1px dashed var(--ix-faint); color: var(--muted); font-size: 0.93rem; max-width: 80ch; }
.ix-note .ix-mono { display: block; color: var(--accent); margin-bottom: 4px; }

/* ---------- 3. Closing title block ---------- */
.ix-end { padding-bottom: clamp(64px, 9vw, 120px); }
.ix-revision { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 3vw, 36px); padding: 22px 28px; border: 2px solid var(--ix-line); border-radius: 6px; background: var(--card); transition: background 0.2s, color 0.2s; }
.ix-revision strong { font-size: clamp(1.2rem, 1.6vw + 0.8rem, 1.8rem); font-weight: 600; letter-spacing: -0.02em; }
.ix-revision .ix-mono { color: var(--accent); }
.ix-revision > span:last-child { font-size: 1.5rem; }
.pg-industries .ix-revision:hover { background: var(--ix-line); color: var(--bg); }
.pg-industries .ix-revision:hover .ix-mono { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ix-plate { grid-template-columns: 1fr; }
  .ix-drawing { min-height: 0; }
}
@media (max-width: 640px) {
  .ix-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix-seg label { min-height: 58px; padding: 8px 14px; font-size: 0.92rem; border-bottom: 1px solid var(--ix-rule); }
  .ix-seg label:nth-child(2n) { border-right: 0; }
  .ix-seg label:nth-last-child(-n+2) { border-bottom: 0; }
  .ix-revision { grid-template-columns: 1fr auto; }
  .ix-revision .ix-mono { grid-column: 1 / -1; }
  .ix-actions .ix-btn { width: 100%; }
}
