/* GEOLiNK · page styles · /industries/ hub
   Scope: every selector is page-prefixed (ihu-). No global class names. */

/* 1 · Hero — full-bleed overlay, text lower-left */
.ihu-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(540px, 74vh, 780px);
  padding-block: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: var(--color-graphite-deep);
}

.ihu-hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.ihu-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}

.ihu-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--color-graphite-deep-rgb), 0.94) 0%, rgba(var(--color-graphite-deep-rgb), 0.78) 44%, rgba(var(--color-graphite-deep-rgb), 0.22) 100%),
    linear-gradient(0deg, rgba(var(--color-graphite-deep-rgb), 0.72) 0%, transparent 42%);
}

.ihu-hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: var(--space-5);
  z-index: 3;
  max-width: 30ch;
  padding: 4px 8px;
  background: rgba(var(--color-graphite-deep-rgb), 0.62);
  color: rgba(var(--color-white-rgb), 0.82);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.ihu-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-block: clamp(120px, 16vh, 190px) clamp(56px, 9vh, 96px);
  color: var(--color-white);
}

.ihu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-4);
  color: #BDEFF4;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  line-height: 1.4;
  text-transform: uppercase;
}

.ihu-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.ihu-hero-title {
  max-width: 17ch;
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: var(--weight-light);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.ihu-hero-lead {
  max-width: 54ch;
  margin-top: var(--space-5);
  color: rgba(var(--color-white-rgb), 0.82);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.ihu-hero-actions {
  margin-top: var(--space-6);
}

.ihu-hero-ghost {
  border-color: rgba(var(--color-white-rgb), 0.55);
  color: var(--color-white);
}

.ihu-hero-ghost:hover {
  border-color: var(--color-white);
  background: rgba(var(--color-white-rgb), 0.12);
  color: var(--color-white);
}

.ihu-hero-meta {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(var(--color-white-rgb), 0.22);
  color: rgba(var(--color-white-rgb), 0.66);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 2 · Route tiles — 3 + 3 + wide seventh */
.ihu-routes {
  background:
    linear-gradient(180deg, var(--color-lab-white) 0%, var(--color-ice-deep) 100%);
  border-bottom: 1px solid var(--line);
}

.ihu-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.ihu-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(var(--color-white-rgb), 0.68);
  box-shadow: var(--shadow-raised);
}

.ihu-tile-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--color-ice);
}

.ihu-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 480ms var(--ease-out);
}

.ihu-tile:hover .ihu-tile-media img {
  transform: scale(1.02);
}

.ihu-tile-label {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  padding: 3px 7px;
  border: 1px solid rgba(var(--color-white-rgb), 0.34);
  background: rgba(var(--color-graphite-deep-rgb), 0.68);
  color: rgba(var(--color-white-rgb), 0.9);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ihu-tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
}

.ihu-tile-attr {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ihu-tile-title {
  margin: 0;
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  line-height: 1.25;
}

.ihu-tile-pain {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.ihu-tile-link {
  margin-top: auto;
  padding-top: var(--space-2);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: none;
}

.ihu-tile-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ihu-tile:last-child {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
}

.ihu-tile:last-child .ihu-tile-media {
  aspect-ratio: 3 / 2;
  height: 100%;
}

.ihu-tile:last-child .ihu-tile-body {
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

/* 3 · Stat band — hairline row */
.ihu-stats {
  border-bottom: 1px solid var(--line-strong);
  background: var(--color-lab-raised);
}

.ihu-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.ihu-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5) var(--space-5) 0;
  border-bottom: 1px solid var(--line-soft);
}

.ihu-stat + .ihu-stat {
  padding-left: var(--space-5);
  border-left: 1px solid var(--line-soft);
}

.ihu-stat-val {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: var(--weight-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ihu-stat-key {
  max-width: 24ch;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.ihu-stat-note {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* 4 · Mapping table */
.ihu-map-section {
  border-bottom: 1px solid var(--line);
}

.ihu-map-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(var(--color-white-rgb), 0.62);
  box-shadow: var(--shadow-hairline);
}

.ihu-map {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.ihu-map caption {
  caption-side: top;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.ihu-map th {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--weight-regular);
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  vertical-align: bottom;
}

.ihu-map tbody th {
  width: 18%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  text-transform: none;
}

.ihu-map td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-secondary);
  line-height: 1.55;
  vertical-align: top;
}

.ihu-map tbody tr:last-child th,
.ihu-map tbody tr:last-child td {
  border-bottom: 0;
}

.ihu-map-link {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.ihu-map-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 5 · Attribute strip — six cells */
.ihu-attr-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.ihu-attr {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.ihu-attr:nth-child(3n + 1) {
  border-left: 0;
  padding-left: 0;
}

.ihu-attr svg {
  color: var(--accent-ink);
}

.ihu-attr-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ihu-attr-val {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.55;
}

/* 6 · Boundary split */
.ihu-boundary {
  background: var(--color-lab-raised);
  border-bottom: 1px solid var(--line);
}

.ihu-boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.ihu-boundary-figure {
  margin: 0;
}

.ihu-boundary-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--color-ice);
}

.ihu-boundary-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ihu-boundary-cap {
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
}

.ihu-boundary-copy h2 {
  margin-bottom: var(--space-4);
}

.ihu-boundary-copy p {
  max-width: 58ch;
  color: var(--text-secondary);
}

.ihu-boundary-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-5) 0;
  padding: 0;
  list-style: none;
}

.ihu-boundary-list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.ihu-boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* 7 · Starting points — five model cards */
.ihu-model-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.ihu-model {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(var(--color-white-rgb), 0.72);
  box-shadow: var(--shadow-raised);
}

.ihu-model-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(66% 64% at 50% 44%, var(--color-white), transparent 72%),
    var(--gradient-ice);
}

.ihu-model-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ihu-model-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
}

.ihu-model-name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.ihu-model-copy {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.ihu-model-link {
  margin-top: auto;
  padding-top: var(--space-2);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.ihu-model-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 8 · Proof strip */
.ihu-proof {
  border-bottom: 1px solid var(--line);
}

.ihu-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}

.ihu-proof-figure {
  margin: 0;
}

.ihu-proof-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--color-ice);
}

.ihu-proof-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ihu-proof-cap {
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
}

/* 9 · FAQ */
.ihu-faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.ihu-faq-item {
  padding: var(--space-5);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-soft);
}

.ihu-faq-q {
  margin-bottom: var(--space-3);
  font-size: 17px;
  font-weight: var(--weight-medium);
  line-height: 1.3;
}

.ihu-faq-a {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

/* 10 · CTA over photo */
.ihu-cta {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 56vh, 560px);
  padding-block: clamp(64px, 8vw, 110px);
  overflow: hidden;
  background: var(--color-graphite-deep);
}

.ihu-cta-media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.ihu-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ihu-cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--color-graphite-deep-rgb), 0.95) 0%, rgba(var(--color-graphite-deep-rgb), 0.76) 48%, rgba(var(--color-graphite-deep-rgb), 0.28) 100%);
}

.ihu-cta-cap {
  position: absolute;
  right: var(--gutter);
  bottom: var(--space-4);
  z-index: 3;
  padding: 4px 8px;
  background: rgba(var(--color-graphite-deep-rgb), 0.62);
  color: rgba(var(--color-white-rgb), 0.82);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ihu-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color: var(--color-white);
}

.ihu-cta-title {
  max-width: 20ch;
  color: var(--color-white);
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.06;
}

.ihu-cta-copy {
  max-width: 52ch;
  margin-top: var(--space-4);
  color: rgba(var(--color-white-rgb), 0.8);
  font-size: 15px;
  line-height: 1.6;
}

.ihu-cta-actions {
  margin-top: var(--space-5);
}

.ihu-cta-ghost {
  border-color: rgba(var(--color-white-rgb), 0.55);
  color: var(--color-white);
}

.ihu-cta-ghost:hover {
  border-color: var(--color-white);
  background: rgba(var(--color-white-rgb), 0.12);
  color: var(--color-white);
}

@media (max-width: 1100px) {
  .ihu-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ihu-hero {
    min-height: 0;
  }

  .ihu-hero-inner {
    padding-block: clamp(96px, 18vh, 150px) clamp(48px, 8vh, 80px);
  }

  .ihu-hero-media img {
    object-position: 66% 40%;
  }

  .ihu-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ihu-tile:last-child {
    grid-column: span 2;
  }

  .ihu-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ihu-stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .ihu-attr-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ihu-attr:nth-child(3n + 1) {
    padding-left: var(--space-5);
    border-left: 1px solid var(--line-soft);
  }

  .ihu-attr:nth-child(2n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .ihu-boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ihu-boundary-figure {
    max-width: 520px;
  }

  .ihu-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ihu-faq-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .ihu-hero-inner {
    padding-block: clamp(88px, 16vh, 130px) var(--space-10);
  }

  .ihu-hero-caption,
  .ihu-cta-cap {
    display: none;
  }

  .ihu-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .ihu-tile:last-child {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .ihu-tile:last-child .ihu-tile-media {
    aspect-ratio: 2 / 3;
  }

  .ihu-stat-row,
  .ihu-attr-list,
  .ihu-model-grid,
  .ihu-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ihu-stat:nth-child(3) {
    padding-left: var(--space-5);
    border-left: 1px solid var(--line-soft);
  }

  .ihu-attr:nth-child(2n + 1) {
    padding-left: var(--space-5);
    border-left: 1px solid var(--line-soft);
  }

  .ihu-attr:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .ihu-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
