/* Industry Research: the list page (industry.html) and every article page
   (industry-*.html, generated by web-app/frontend/scripts/build-industry.mjs).
   Loaded after styles.css, which supplies the reset, brand tokens and the
   [data-reveal] entrance. Dark arrival photo, then a light gallery that slides
   up over it. Type: the system grotesk set tight for headlines, Arial for the
   small "+ LABEL" captions, tags and dates (as in the home page's menu), and
   Arial bold capitals for the large hover words (as on the home page's statement). */

.ir-page {
  --paper: #edecf0;
  --paper-ink: #121212;
  --paper-soft: #5b5b5b;
  --paper-hair: rgba(18, 18, 18, 0.12);
  --label-font: Arial, Helvetica, sans-serif;
  --grotesk: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--grotesk);
}

.ir-label { font-family: var(--label-font); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }

/* The header is the home page's own (.nav in styles.css, copied in by the
   build), so it needs nothing here. */

/* ---------- arrival ---------- */
.ir-hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.ir-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: scale(calc(1 + var(--p) * 0.08)); filter: brightness(calc(0.78 - var(--p) * 0.4));
  will-change: transform;
}
.ir-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.ir-hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto 1fr auto;
  column-gap: 16px; padding: 124px var(--pad) calc(34px + 6vh);
}

.ir-hero-title {
  grid-column: 1 / -1; grid-row: 1;
  font-family: Arial, Helvetica, sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 7.1vw, 128px); line-height: 0.9; letter-spacing: -0.045em; text-wrap: nowrap;
}
.ir-line { display: flex; gap: 0.24em; }
.ir-line-split .ir-word:first-child { margin-right: auto; }
.ir-line-split { gap: 0.6em; }
.ir-line-end { justify-content: flex-end; }
.ir-word { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(10px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.8s var(--ease); }

.ir-hero-note { font-size: 13px; line-height: 1.3; letter-spacing: -0.01em; max-width: 22ch; opacity: 0; transition: opacity 0.8s var(--ease) 0.35s; }
.ir-hero-note-a { grid-column: 1 / span 3; grid-row: 2; margin-top: 28px; }
.ir-hero-note-b { grid-column: 3 / span 3; grid-row: 2; margin-top: 76px; text-align: right; justify-self: end; }

.ir-hero-cta {
  grid-column: 9 / span 3; grid-row: 2; align-self: start; justify-self: center; margin-top: clamp(20px, 3vh, 40px);
  display: grid; place-items: center; width: clamp(130px, 13vw, 190px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85); font-size: 14px; letter-spacing: -0.01em;
  opacity: 0; transition: opacity 0.8s var(--ease) 0.45s, background 0.35s, color 0.35s, border-color 0.35s;
}
.ir-hero-cta:hover, .ir-hero-cta:focus-visible { background: var(--lime); border-color: var(--lime); color: #000; }

.ir-hero-label { grid-column: 1 / -1; grid-row: 4; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.85); transition: opacity 0.6s var(--ease); }

/* The words arrive while the pointer is on the photo or focus is inside it.
   Touch screens have no hover, and without scripts nothing would ever reveal
   them, so both of those cases show everything from the start. */
.ir-hero:hover .ir-word, .ir-hero:focus-within .ir-word { opacity: 1; transform: none; filter: none; }
.ir-hero:hover .ir-word:nth-child(2), .ir-hero:focus-within .ir-word:nth-child(2) { transition-delay: 0.06s; }
.ir-hero:hover .ir-word:nth-child(3), .ir-hero:focus-within .ir-word:nth-child(3) { transition-delay: 0.12s; }
.ir-hero:hover .ir-line:nth-child(2) .ir-word, .ir-hero:focus-within .ir-line:nth-child(2) .ir-word { transition-delay: 0.1s; }
.ir-hero:hover .ir-line:nth-child(2) .ir-word + .ir-word, .ir-hero:focus-within .ir-line:nth-child(2) .ir-word + .ir-word { transition-delay: 0.18s; }
.ir-hero:hover .ir-line:nth-child(3) .ir-word, .ir-hero:focus-within .ir-line:nth-child(3) .ir-word { transition-delay: 0.22s; }
.ir-hero:hover .ir-hero-note, .ir-hero:focus-within .ir-hero-note,
.ir-hero:hover .ir-hero-cta, .ir-hero:focus-within .ir-hero-cta { opacity: 1; }
@media (hover: none) {
  .ir-word, .ir-hero-note, .ir-hero-cta { opacity: 1; transform: none; filter: none; }
}
html:not(.js) .ir-word, html:not(.js) .ir-hero-note, html:not(.js) .ir-hero-cta { opacity: 1; transform: none; filter: none; }

/* ---------- gallery, slides up over the photo ---------- */
.ir-gallery {
  position: relative; z-index: 3; min-height: 100vh;
  margin-top: -6vh; padding: clamp(64px, 9vw, 130px) var(--pad) 120px;
  background: var(--paper); color: var(--paper-ink); border-radius: 28px 28px 0 0;
}
.ir-intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; margin-bottom: clamp(48px, 7vw, 100px); }
.ir-intro .ir-label { grid-column: 1 / span 3; color: var(--paper-soft); padding-top: 0.6em; }
.ir-intro > div { grid-column: 4 / span 7; }
.ir-intro-title { font-size: clamp(26px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.12; text-wrap: pretty; }

.ir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ir-card a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #d8d7dc; isolation: isolate; }
.ir-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s var(--ease); }
.ir-card a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 0.5s var(--ease); z-index: 1; }

.ir-card-title {
  position: absolute; z-index: 2; top: 12px; left: 12px; max-width: calc(100% - 64px);
  padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--paper-ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ir-card-arrow {
  position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--paper-ink); font-size: 13px;
  transition: background 0.35s, transform 0.5s var(--ease);
}
.ir-card-meta {
  position: absolute; z-index: 2; inset: 50% 16px auto; transform: translateY(calc(-50% + 12px));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  opacity: 0; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.ir-pill {
  display: inline-block; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--paper-ink);
  font-family: var(--label-font); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.ir-card-meta .ir-pill:first-child { background: var(--lime); }

.ir-card a:hover .ir-card-img, .ir-card a:focus-visible .ir-card-img { transform: scale(1.04); }
.ir-card a:hover::after, .ir-card a:focus-visible::after { opacity: 1; }
.ir-card a:hover .ir-card-meta, .ir-card a:focus-visible .ir-card-meta { opacity: 1; transform: translateY(-50%); }
.ir-card a:hover .ir-card-arrow, .ir-card a:focus-visible .ir-card-arrow { background: var(--lime); transform: rotate(45deg); }
/* No hover on touch screens: show the date and tags at the foot of each card. */
@media (hover: none) {
  .ir-card-meta { opacity: 1; inset: auto 12px 12px; transform: none; justify-content: flex-start; }
}

.ir-empty { font-size: 17px; color: var(--paper-soft); padding: 40px 0; border-top: 1px solid var(--paper-hair); }

/* ---------- article page ---------- */
.ia-hero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.ia-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62); }
.ia-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45)); }
.ia-hero-inner { position: relative; z-index: 2; width: 100%; padding: 120px var(--pad) clamp(40px, 6vw, 72px); }
.ia-hero-label a { color: inherit; transition: color 0.3s; }
.ia-hero-label a:hover { color: #fff; }
.ia-hero-label { padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 52px); border-bottom: 1px solid rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.85); }
.ia-hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 16px 6vw; align-items: end; }
.ia-title { font-size: clamp(38px, 5.6vw, 88px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.ia-summary { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.35; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.92); max-width: 36ch; }
.ia-summary span { color: rgba(255, 255, 255, 0.6); margin-right: 4px; }

.ia-body {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px;
  padding: clamp(64px, 9vw, 130px) var(--pad); background: var(--paper); color: var(--paper-ink);
}
.ia-meta { grid-column: 1 / span 3; align-self: start; position: sticky; top: 28px; display: grid; gap: 10px; }
.ia-meta .ir-label { color: var(--paper-soft); }
.ia-meta .ir-label + .ia-meta-value, .ia-meta .ir-label + .ia-meta-tags { margin-bottom: 18px; }
.ia-meta-value { font-size: 15px; }
.ia-meta-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ia-meta-tags .ir-pill { background: #fff; }

.ia-text { grid-column: 4 / span 7; font-size: 17px; line-height: 1.62; letter-spacing: -0.005em; color: #2a2a2d; }
.ia-text > * + * { margin-top: 1.1em; }
.ia-text > p:first-child { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; letter-spacing: -0.03em; color: var(--paper-ink); margin-bottom: 1.6em; }
.ia-text h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; color: var(--paper-ink); margin-top: 2.2em; }
.ia-text h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--paper-ink); margin-top: 1.8em; }
.ia-text h4 { font-family: var(--label-font); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-soft); margin-top: 2em; }
.ia-text ul, .ia-text ol { display: grid; gap: 8px; padding-left: 1.2em; }
.ia-text ul { list-style: disc; }
.ia-text ol { list-style: decimal; }
.ia-text a { color: var(--paper-ink); text-decoration: underline; text-underline-offset: 3px; }
.ia-text strong { color: var(--paper-ink); font-weight: 600; }
.ia-text code { font-family: var(--label-font); font-size: 0.88em; background: rgba(18, 18, 18, 0.06); padding: 1px 5px; border-radius: 4px; }
.ia-text blockquote { padding: 4px 0 4px 22px; border-left: 2px solid var(--paper-ink); font-size: 21px; line-height: 1.35; letter-spacing: -0.02em; color: var(--paper-ink); }
.ia-text blockquote > * + * { margin-top: 0.6em; }
.ia-text hr { border: 0; border-top: 1px solid var(--paper-hair); margin: 2.4em 0; }
.ia-text figure { margin-left: 0; margin-right: 0; }
.ia-text figure img, .ia-text p img { width: 100%; border-radius: 6px; }
.ia-table { overflow-x: auto; }
.ia-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ia-table th { text-align: left; font-family: var(--label-font); font-size: 10.5px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-soft); padding: 0 16px 10px 0; }
.ia-table td { padding: 12px 16px 12px 0; border-top: 1px solid var(--paper-hair); vertical-align: top; }

.ia-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 var(--pad) 100px; background: var(--paper); color: var(--paper-ink); }
.ia-nav-link { display: grid; gap: 10px; padding: 26px 24px; border-radius: 6px; background: #fff; font-size: 19px; letter-spacing: -0.025em; line-height: 1.2; transition: background 0.35s; }
.ia-nav-link .ir-label { color: var(--paper-soft); }
.ia-nav-link:hover { background: var(--lime); }
.ia-nav-next { text-align: right; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .ir-grid { grid-template-columns: repeat(2, 1fr); }
  .ir-intro .ir-label { grid-column: 1 / -1; margin-bottom: 18px; }
  .ir-intro > div { grid-column: 1 / -1; }
  .ia-body { display: block; }
  .ia-meta { position: static; margin-bottom: 40px; }
  .ia-hero-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ir-hero-inner { padding-top: 96px; }
  .ir-hero-title { font-size: clamp(30px, 11vw, 60px); text-wrap: wrap; }
  .ir-line { flex-wrap: wrap; gap: 0 0.24em; }
  .ir-line-split .ir-word:first-child { margin-right: 0; }
  .ir-hero-note-a { grid-column: 1 / span 7; }
  .ir-hero-note-b { grid-column: 6 / -1; margin-top: 18px; grid-row: 3; align-self: start; }
  .ir-hero-cta { grid-column: 1 / span 6; grid-row: 3; align-self: center; justify-self: start; margin-top: 0; }
  .ir-grid { grid-template-columns: 1fr; }
  .ia-nav { grid-template-columns: 1fr; }
  .ia-nav-next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .ir-hero-img { transform: none; filter: brightness(0.72); }
  .ir-word, .ir-hero-note, .ir-hero-cta, .ir-card-img, .ir-card-meta { transition: none; }
}
