/* Institutional homepage (site redesign). Scoped under .ih so nothing leaks
   into other pages; class names carry the ih- prefix so Tailwind never reads
   them as utilities. */

.ih {
  --ih-ink: #0f1e2e;
  --ih-night: #0b2540;
  --ih-steel: #566577;
  --ih-fog: #f3f6f9;
  --ih-line: #dbe3eb;
  --ih-cyan: #10c7ff;
  --ih-measure: 62ch;
  color: var(--ih-ink);
  font-family: 'Poppins', sans-serif;
}
/* The site's base layer gives h1/h2/h3, p and ul a colour, a size and a
   bottom margin for its older pages. Here each element takes its colour from
   its block and its size from the ih- classes. */
:where(.ih-hero, .ih-research, .ih-sovereign, .ih-partners, .ih-about-startup, .ih-about-products, .ih-news) :where(h1, h2, h3, p, ul, li, a, dl, dt, dd) { color: inherit; margin: 0; }
/* Zero specificity on purpose (:where): unlayered, it still beats the base
   layer, and every ih- class below overrides it. Scoped to this page's own
   sections, because an unlayered rule also beats Tailwind utilities: shared
   partials such as the contact band must keep theirs. */

.ih-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .ih-wrap { padding-inline: 40px; } }

/* Type scale: 14 / 17 / 22 / 30 / 40 / 56, ratio about 1.33. */
.ih-h1 {
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0;
}
.ih-h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.ih-lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--ih-steel);
  max-width: var(--ih-measure);
  margin: 0;
}
.ih-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: var(--ih-measure);
  margin: 0;
}

/* Hero: the headline, then the four spaces in the first screen. */
.ih-hero { padding-block: 48px 72px; }
@media (min-width: 1024px) { .ih-hero { padding-block: 64px 96px; } }
/* Subtitle under the headline on phones and tablets; from 1024px it takes
   the right column, its first line level with the headline's, so the right
   half above the tiles is not left empty and the tiles rise into the first
   screen. */
.ih-hero .ih-lead { max-width: 46ch; margin-top: 24px; }
@media (min-width: 1024px) {
  .ih-hero-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
  .ih-hero .ih-h1 { max-width: 16ch; }
  .ih-hero .ih-lead { margin-top: 0; padding-top: 0.75rem; }
}

.ih-spaces {
  display: grid;
  gap: 16px;
  margin-top: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .ih-spaces { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* A tile is a preview of its sub-site: each carries that space's palette. */
.ih-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border-radius: 20px;
  overflow: hidden;
  padding: 28px;
  text-decoration: none;
  isolation: isolate;
  transition: transform 220ms ease;
}
@media (min-width: 1024px) { .ih-tile { min-height: 380px; padding: 36px; } }
.ih-tile:hover { transform: translateY(-3px); text-decoration: none; }
.ih-tile:focus-visible { outline: 3px solid var(--ih-cyan); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ih-tile, .ih-tile:hover { transition: none; transform: none; } }

.ih-tile-name {
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.ih-tile-line {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 40ch;
}
.ih-tile-visual {
  position: relative;
  z-index: 1;
  height: 150px;
  margin-top: 24px;
}
@media (min-width: 1024px) { .ih-tile-visual { height: 170px; } }
.ih-tile-products {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
.ih-tile-products li { display: inline-flex; align-items: center; gap: 8px; }
.ih-tile-products img { width: 22px; height: 22px; }
.ih-tile-go { margin-left: auto; font-size: 1.25rem; line-height: 1; transition: transform 200ms ease; }
.ih-tile:hover .ih-tile-go { transform: translateX(4px); }
.ih-tile-products small { font-weight: 400; opacity: 0.75; font-size: 0.75rem; }
.ih-tile-text { position: relative; z-index: 2; }

/* Public sector and industry carry a larger visual that bleeds off the
   tile's right edge: the zone is taller and its right margin cancels the
   tile's padding (28 px, 36 px from 1024 px). */
.ih-tile--public_sector .ih-tile-visual,
.ih-tile--industry_aerospace .ih-tile-visual { height: 170px; margin: 28px -28px 24px 0; }
@media (min-width: 1024px) {
  .ih-tile--public_sector .ih-tile-visual,
  .ih-tile--industry_aerospace .ih-tile-visual { height: 190px; margin-right: -36px; }
}

/* Public sector: the Cantoche and Allegro pastel as a flat tone, and the
   public-sector page's first pop-up book, open (Paul, 2026-11-19). The
   visual zone bleeds right like industry's; the book stays inside it. */
.ih-tile--public_sector { background: #e8f0f8; color: var(--ih-ink); }
.ih-tile--public_sector .ih-tile-line { color: #3d4f63; }
.ih-book {
  position: absolute; inset: 0 28px 0 0;
  width: calc(100% - 28px); height: 100%; max-width: none;
  object-fit: contain; object-position: center bottom;
}
@media (min-width: 1024px) { .ih-book { inset: 0 36px 0 0; width: calc(100% - 36px); } }

/* Industry and aerospace: night blue, and the industry page's engine under a
   soft light so the metal stands off the background. */
.ih-tile--industry_aerospace {
  background: radial-gradient(ellipse 60% 55% at 62% 62%, rgba(120, 170, 215, 0.22), transparent 70%), var(--ih-night);
  color: #ffffff;
}
.ih-tile--industry_aerospace .ih-tile-line { color: #b9c7d6; }
.ih-tile--industry_aerospace .ih-tile-products img { filter: brightness(0) invert(1); opacity: 0.9; }
.ih-tile--industry_aerospace .ih-tile-visual { overflow: hidden; }
.ih-engine {
  position: absolute; inset: 0 7% 4% 7%;
  width: 86%; height: 96%; max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}

/* Motorsport: PACE's carbon black and racing yellow, its own photo. */
.ih-tile--motorsport { background: #0b0b0b; color: #f2f3f5; }
.ih-tile--motorsport .ih-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 55%;
  opacity: 0.7;
  z-index: 0;
}
.ih-tile--motorsport::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.85) 0%, rgba(11, 11, 11, 0.2) 45%, rgba(11, 11, 11, 0.9) 100%);
  z-index: 1;
}
.ih-tile--motorsport .ih-tile-line { color: #d0d3d8; }
.ih-tile--motorsport .ih-tile-name { display: flex; align-items: center; gap: 14px; }
.ih-tile--motorsport .ih-tile-products { border-top: 3px solid #ffd100; }

/* Audiovisual: Jaiko's warm paper and orange. */
.ih-tile--video { background: #f7f4ee; color: #1f1d1a; }
.ih-tile--video .ih-tile-line { color: #6b655b; }
/* Jaiko's orange disc and an outline ring (Paul preferred this to the review
   timeline, 2026-11-14). Behind the text and the product row (z-index 2). */
.ih-tile--video::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -60px; bottom: -80px;
  border-radius: 50%;
  background: #ff6a1a;
  z-index: 0;
}
.ih-tile--video::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  right: 150px; bottom: 70px;
  border-radius: 50%;
  border: 2px solid #ff6a1a;
  z-index: 0;
}
@media (max-width: 767px) {
  .ih-tile--video::before { width: 200px; height: 200px; right: -50px; bottom: -70px; }
  .ih-tile--video::after { width: 90px; height: 90px; right: 110px; bottom: 60px; }
}

/* Research: night band, themes as a list rather than cards. */
.ih-research {
  background: var(--ih-night);
  color: #ffffff;
  padding-block: 72px;
}
@media (min-width: 1024px) { .ih-research { padding-block: 104px; } }
.ih-research-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .ih-research-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.ih-research .ih-body { color: #c4d0dd; margin-top: 20px; }
.ih-themes { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ih-themes a {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
}
/* Each row reads as a link: a quiet underline under the title at rest,
   the accent and a full underline on hover or focus. */
.ih-themes a:hover .ih-theme-title, .ih-themes a:focus-visible .ih-theme-title { color: var(--ih-cyan); text-decoration-color: currentColor; }
.ih-themes a:hover { background: rgba(255, 255, 255, 0.03); }
.ih-themes a:focus-visible { outline: 3px solid var(--ih-cyan); outline-offset: 4px; }
.ih-theme-kind { font-size: 0.875rem; color: #8fa3b8; }
.ih-theme-title {
  font-size: 1.25rem; font-weight: 500; line-height: 1.35;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.ih-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 600;
  font-size: 1rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ih-cyan);
}
.ih-link:hover { text-decoration-color: currentColor; }

/* Sovereignty: prose and the map, quiet. */
.ih-sovereign { padding-block: 72px; }
@media (min-width: 1024px) { .ih-sovereign { padding-block: 104px; } }
.ih-sovereign-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .ih-sovereign-grid { grid-template-columns: 7fr 5fr; gap: 72px; } }
.ih-sovereign .ih-body { margin-top: 20px; color: #2c3b4b; }
/* The map is drawn from Natural Earth data in the EU's own projection
   (EPSG:3035) by scripts/gen_europe_map.py; regenerate it there, never by hand. */
.ih-map {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  background: var(--ih-night) url("../img/home/europe_map.bb32b88f5496.svg") center / cover no-repeat;
}

/* Partners: a list, not boxes. */
.ih-partners { background: var(--ih-fog); padding-block: 72px; }
@media (min-width: 1024px) { .ih-partners { padding-block: 96px; } }
.ih-partners .ih-lead { margin-top: 12px; }
.ih-partner-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}
@media (min-width: 1024px) { .ih-partner-list { grid-template-columns: repeat(4, 1fr); } }
.ih-partner-list a { color: inherit; text-decoration: none; display: block; }
.ih-partner-logo {
  height: 64px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--ih-line);
  padding-bottom: 16px;
  margin-bottom: 14px;
}
/* One box for every logo, whatever its proportions: the mark is contained
   in it, sitting on the hairline. */
.ih-partner-logo img { display: block; width: 100%; max-width: 168px; height: 100%; object-fit: contain; object-position: left bottom; filter: grayscale(1); opacity: 0.75; transition: filter 150ms ease, opacity 150ms ease; }
.ih-partner-list a:hover .ih-partner-logo img { filter: none; opacity: 1; }
.ih-partner-name { font-weight: 600; font-size: 1rem; }
.ih-partner-text { margin-top: 4px; font-size: 0.875rem; line-height: 1.55; color: var(--ih-steel); }

/* ---------------------------------------------------------------------
   About page (core/about.html), on the homepage's grammar.
   --------------------------------------------------------------------- */
.ih-about-hero { padding-block: 48px 64px; }
@media (min-width: 1024px) { .ih-about-hero { padding-block: 72px 88px; } }
.ih-about-hero .ih-lead { color: #2c3b4b; }
.ih-about-hero .ih-h1 { max-width: 14ch; text-wrap: balance; }
.ih-about-hero .ih-lead strong { color: var(--ih-ink); }

/* Key facts: a definition row, three columns at every width (no orphan). */
.ih-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
}
@media (min-width: 768px) { .ih-facts { gap: 40px; margin-top: 64px; } }
.ih-facts div { border-top: 1px solid var(--ih-line); padding-top: 16px; }
.ih-facts dt { font-size: 0.8125rem; line-height: 1.4; color: var(--ih-steel); }
@media (min-width: 768px) { .ih-facts dt { font-size: 0.875rem; } }
.ih-facts dd {
  margin-top: 6px;
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ih-ink);
}

/* Two-column prose block: heading left, text right, left-aligned. */
.ih-about-startup { background: var(--ih-fog); padding-block: 72px; }
@media (min-width: 1024px) { .ih-about-startup { padding-block: 104px; } }
.ih-split { display: grid; gap: 24px; }
@media (min-width: 1024px) { .ih-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.ih-prose { display: grid; gap: 18px; max-width: 65ch; }
.ih-prose p { font-size: 1.0625rem; line-height: 1.7; color: #2c3b4b; text-align: left; }

.ih-about-products { padding-block: 72px; }
@media (min-width: 1024px) { .ih-about-products { padding-block: 104px; } }

/* What we are building: three pillars, set like the research themes. */
.ih-about-build-head { display: grid; gap: 20px; }
@media (min-width: 1024px) { .ih-about-build-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: end; } }
.ih-about-build .ih-body { margin-top: 0; }
.ih-pillars { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 768px) { .ih-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.ih-pillars li { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 20px 0 24px; }
.ih-pillars :where(h3, p) { color: inherit; margin: 0; }
.ih-pillar-title { font-size: 1.25rem; line-height: 1.35; font-weight: 500; color: #ffffff; }
.ih-pillars p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.6; color: #c4d0dd; }
.ih-about-build .ih-link { margin-top: 32px; }

/* News: one uniform grid, every card the same shape. */
.ih-news { padding-block: 72px; }
@media (min-width: 1024px) { .ih-news { padding-block: 104px; } }
.ih-news-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) { .ih-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.ih-news-grid > li { display: flex; }
.ih-news-card { align-content: start; }
.ih-news-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  border: 1px solid var(--ih-line);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  color: var(--ih-ink);
  text-decoration: none;
  transition: border-color 150ms ease;
}
/* Image above the text until the columns are wide enough for a legible
   picture beside it (1200px), then image beside the text: either way every
   card has the same shape as its neighbours. */
@media (min-width: 1200px) { .ih-news-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.ih-news-card:hover { border-color: #9fb2c6; text-decoration: none; color: var(--ih-ink); }
.ih-news-card:focus-visible { outline: 3px solid var(--ih-cyan); outline-offset: 3px; }
.ih-news-media { position: relative; aspect-ratio: 40 / 21; background: #0d2036; overflow: hidden; }
@media (min-width: 1200px) { .ih-news-media { aspect-ratio: auto; min-height: 168px; } }
.ih-news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.ih-news-media--top img { object-position: top; }
/* The research banners carry their own title: shown whole, on their navy. */
.ih-news-media--banner img { object-fit: contain; }
.ih-news-media--logo { background: #1b2a41; }
.ih-news-media--logo img { inset: 22%; width: 56%; height: 56%; object-fit: contain; }
.ih-news-card:hover .ih-news-media img { transform: scale(1.04); }
.ih-news-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.ih-news-badge--beta { background: #d1fae5; color: #065f46; }
.ih-news-badge--award { background: #fef3c7; color: #92400e; }
.ih-news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; }
.ih-news-meta { font-size: 0.8125rem; color: var(--ih-steel); }
.ih-news-title { margin-top: 6px; font-size: 1.0625rem; line-height: 1.35; font-weight: 600; }
.ih-news-text { margin-top: 8px; font-size: 0.875rem; line-height: 1.55; color: #44546a; }
@media (prefers-reduced-motion: reduce) { .ih-news-media img, .ih-news-card { transition: none; } .ih-news-card:hover .ih-news-media img { transform: none; } }
