/* ============================================================
   HOME PAGE — page-specific styles (2026 revamp, Figma 1359:28488)
   Scope: .intone-home-2026  (so nothing here leaks to the shared
   service-page .home-* components in intone-design-system.css).

   Theme-aware: Figma supplies the light theme; dark-mode overrides
   live in the DARK MODE block near the end. Colour comes from the
   --t-* theme tokens (theme-tokens.css) wherever a value flips.

   Motion: §4 service-line transition matches the Figma motion export
   (extras/transitions.txt) — 300ms, cubic-bezier(0, 0, 0.58, 1).
   ============================================================ */

.intone-home-2026 {
  --gutter: clamp(20px, 4vw, 50px);
  --content: 1352px;
  --gold: var(--ds-gold, #f6b43f);
  --navy: var(--ds-navy, #1e2e4c);
  --ink:  var(--ds-dark-900, #141414);
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
  --dur: 0.3s;
  background: var(--t-bg);
  overflow-x: clip;
}

/* Shared scroll-reveal. The hidden state is gated behind scripting:enabled
   so that with JS disabled the content stays visible (the IntersectionObserver
   in functions.php adds .in to reveal it). */
@media (scripting: enabled) {
  .intone-home-2026 .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
}
.intone-home-2026 .reveal.in { opacity: 1; transform: none; }

/* Shared arrow icon (slides on hover via the parent's :hover rule) */
.intone-home-2026 .ihome-arrow {
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

/* Visible keyboard focus (WCAG 2.4.7) — high-contrast ring everywhere. */
.intone-home-2026 a:focus-visible,
.ihome-btn:focus-visible,
.ihome-cta__btn:focus-visible,
.ihome-cta__playpause:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
/* Image-backed links need the ring to sit inside the clipped box. */
.ihome-line:focus-visible,
.ihome-tile:focus-visible,
.ihome-product:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

/* Visually-hidden (screen-reader-only) headings for a clean H1→H2→H3 order. */
.ihome-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}


/* ════════════════════════════════════════════════════════════
   1. HERO — clip-text over hero image
═══════════════════════════════════════════════════════════════ */
.ihome-hero {
  background: var(--t-bg);
  padding: clamp(90px, 12vw, 100px) var(--gutter) clamp(40px, 5vw, 72px);
}
.ihome-hero__inner {
  /* max-width: var(--content); */
  margin: 0 auto;
}
.ihome-hero__rule {
  display: block;
  height: 1px;
  /* background: var(--t-border-strong, #d3dae4); */
  margin-bottom: clamp(40px, 7vw, 96px);
}
.ihome-hero__title {
  font-family: var(--ds-font-heading);
  font-size: clamp(44px, 9vw, 130px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  max-width: 14ch;
  color: var(--t-text);
}
/* Image shows through the letterforms; fixed attachment makes the hero
   image + the band below it read as one continuous, parallaxing window.
   A solid background-COLOUR sits under the image so the H1 stays visible
   even if the image fails to load. */
.ihome-hero__title.is-clip-text {
  background-color: var(--t-text);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.65);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ihome-hero__subtitle {
  font-family: var(--ds-font-heading);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--t-text);
  margin: clamp(20px, 3vw, 36px) 0 0;
}
.ihome-hero__band {
  /* max-width: var(--content);   */
  margin: clamp(36px, 5vw, 64px) auto 0;
  height: clamp(160px, 22vw, 300px);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}


/* ════════════════════════════════════════════════════════════
   2. INTRO + 3 CAPABILITY CARDS
   Cards are equal height (grid stretch); on hover the layout
   reorders — description rises to 2nd, the image drops to the
   bottom and grows to fill (Figma 2288:4305 Default → Variant2).
═══════════════════════════════════════════════════════════════ */
.ihome-intro {
  background: var(--t-surface);
  padding: clamp(48px, 6vw, 100px) var(--gutter);
}
.ihome-intro__inner {
  /* max-width: var(--content);   */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 100px);
}
.ihome-intro__head {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 51px);
}
.ihome-intro__lead {
  font-family: var(--ds-font-heading);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--t-text);
  margin: 0;
  max-width: 1100px;
}
.ihome-intro__divider {
  display: block;
  height: 1px;
  background: var(--t-border-strong, #818994);
}

/* Square dark action button (Figma "EXPLORE HOW WE WORK") */
.ihome-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  padding: 16px 32px;
  font-family: var(--ds-font-heading);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ihome-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #141414;
}
.ihome-btn:hover .ihome-arrow { transform: translateX(6px); }

/* Cards: equal-height columns, aligned title/image/desc bands. */
.ihome-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: stretch;
}
.ihome-card {
  display: flex;
  flex-direction: column;
  background: var(--t-bg);
  padding: clamp(28px, 2.2vw, 42px) clamp(16px, 1.5vw, 24px);
  text-decoration: none;
  border-top: 1px solid var(--t-text);
  transition: box-shadow 0.4s ease, border-color 0.3s ease;
  overflow: hidden;
}
.ihome-card:hover {
  box-shadow: var(--t-shadow, 0 18px 48px rgba(9, 16, 29, 0.12));
  border-top-color: var(--gold);
}
.ihome-card__title {
  order: 1;
  font-family: var(--ds-font-heading);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--t-text);
  margin: 0;
  min-height: 2.4em;            /* keeps titles aligned across the 3 cards */
  transition: color 0.3s ease;
}
.ihome-card:hover .ihome-card__title { color: var(--navy); }
/* default: image in the middle */
.ihome-card__media {
  order: 2;
  flex: 0 0 auto;
  margin: clamp(28px, 3vw, 48px) 0 28px;
  overflow: hidden;
  aspect-ratio: 385 / 241;
  transition: aspect-ratio 0.45s var(--ease-out), margin 0.45s var(--ease-out);
}
.ihome-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ihome-card:hover .ihome-card__media img { transform: scale(1.05); }
/* default: description at the bottom, filling remaining height so all
   three cards equalise and their bands line up */
.ihome-card__body {
  order: 3;
  flex: 1 1 auto;
  font-family: var(--ds-font-heading);
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--t-text);
  margin: 0;
}
/* hover: description → 2nd (below title); image → bottom, grows to fill */
.ihome-card:hover .ihome-card__body {
  order: 2;
  flex: 0 0 auto;
  margin-top: 16px;
}
.ihome-card:hover .ihome-card__media {
  order: 3;
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 0;
  margin: 28px 0 0;
}


/* ════════════════════════════════════════════════════════════
   3. BANNER — full-bleed parallax statement
═══════════════════════════════════════════════════════════════ */
.ihome-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(240px, 30vw, 428px);
  padding: 0 var(--gutter);
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.ihome-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 20, 0.55) 0%, rgba(10, 12, 20, 0.15) 60%, rgba(10, 12, 20, 0.05) 100%);
}
.ihome-banner__text {
  position: relative;
  font-family: var(--ds-font-heading);
  font-size: clamp(40px, 8.5vw, 128px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: 18ch;
}
/* Scroll-driven horizontal scroll (added by JS when motion is allowed): the
   headline becomes one line wider than the viewport and JS translates it
   right→left as the banner passes through the screen. Falls back to the
   wrapped, fully-visible text above when JS is off or reduced-motion is set. */
.ihome-banner.is-hscroll .ihome-banner__text {
  max-width: none;
  white-space: nowrap;
  will-change: transform;
}


/* ════════════════════════════════════════════════════════════
   4. SERVICE LINES — TECH | SKILL | ADVICE
   Default: label vertically centred, left-aligned over the image.
   Hover (300ms ease-out): label rises to the top & shrinks, the
   description fades/slides in, overlay deepens, image eases in.
═══════════════════════════════════════════════════════════════ */
.ihome-lines {
  padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(48px, 6vw, 100px);
  background: var(--t-bg);
}
.ihome-lines__grid {
  /* max-width: var(--content); */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.2vw, 16px);
}
.ihome-line {
  position: relative;
  display: block;
  aspect-ratio: 440 / 640;
  overflow: hidden;
  text-decoration: none;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.ihome-line::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}
.ihome-line:hover::before { transform: scale(1.08); }
.ihome-line__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.45) 100%);
  transition: background var(--dur) var(--ease-out);
}
.ihome-line:hover .ihome-line__overlay,
.ihome-line:focus-within .ihome-line__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 100%);
}
.ihome-line__inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 2.2vw, 40px);
  transition: top var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.ihome-line:hover .ihome-line__inner,
.ihome-line:focus-within .ihome-line__inner {
  top: 0;
  transform: translateY(0);
}
.ihome-line__rule {
  width: 56px;
  height: 1px;
  background: #fff;
  margin-bottom: clamp(12px, 1.4vw, 18px);
  transition: width 0.45s var(--ease-out);
}
.ihome-line:hover .ihome-line__rule,
.ihome-line:focus-within .ihome-line__rule { width: 100%; }
.ihome-line__label {
  font-family: var(--ds-font-heading);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  transition: font-size var(--dur) var(--ease-out);
}
.ihome-line:hover .ihome-line__label,
.ihome-line:focus-within .ihome-line__label {
  font-size: clamp(26px, 3.2vw, 42px);
}
.ihome-line__desc {
  display: block;
  font-family: var(--ds-font-heading);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  overflow: hidden;
  transition: max-height var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out), margin-top var(--dur) var(--ease-out);
}
.ihome-line:hover .ihome-line__desc,
.ihome-line:focus-within .ihome-line__desc {
  max-height: 600px;
  opacity: 1;
  transform: none;
  margin-top: clamp(14px, 1.6vw, 20px);
}


/* ════════════════════════════════════════════════════════════
   5. SERVICES — bento grid (hover-zoom tiles)
═══════════════════════════════════════════════════════════════ */
.ihome-services {
  padding: 0 var(--gutter) clamp(48px, 6vw, 100px);
  background: var(--t-bg);
}
.ihome-services__grid {
  /* max-width: var(--content); */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 13vw, 196px);
  gap: clamp(10px, 1vw, 14px);
  /* Deterministic 4×4 bento — every cell filled, no gaps. */
  grid-template-areas:
    "staff legacy  mscloud appdev"
    "cyber legacy  erp     appdev"
    "cyber itadv   grcmon  grcadv"
    "ai    ai      grcmon  grcadv";
}
.ihome-tile--staff   { grid-area: staff; }
.ihome-tile--legacy  { grid-area: legacy; }
.ihome-tile--mscloud { grid-area: mscloud; }
.ihome-tile--appdev  { grid-area: appdev; }
.ihome-tile--cyber   { grid-area: cyber; }
.ihome-tile--erp     { grid-area: erp; }
.ihome-tile--itadv   { grid-area: itadv; }
.ihome-tile--grcmon  { grid-area: grcmon; }
.ihome-tile--ai      { grid-area: ai; }
.ihome-tile--grcadv  { grid-area: grcadv; }
.ihome-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  text-decoration: none;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.ihome-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ihome-tile:hover::before { transform: scale(1.09); }
.ihome-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.4s ease;
}
.ihome-tile:hover .ihome-tile__overlay { background: rgba(0, 0, 0, 0.42); }
.ihome-tile__label {
  position: relative;
  z-index: 2;
  font-family: var(--ds-font-heading);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  padding: clamp(16px, 1.6vw, 32px);
  padding-bottom: clamp(16px, 1.6vw, 30px);
  transition: transform 0.4s ease;
}
.ihome-tile:hover .ihome-tile__label { transform: translateY(-6px); }
.ihome-tile__label::after {
  content: "";
  position: absolute;
  left: clamp(16px, 1.6vw, 32px);
  bottom: clamp(8px, 1vw, 16px);
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ihome-tile:hover .ihome-tile__label::after { width: 44px; }
/* caret SVG (uploads/.../arrow-caret-right-3.svg — white chevron) */
.ihome-tile__caret {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 1.4vw, 24px);
  right: clamp(14px, 1.4vw, 24px);
  width: auto;
  height: clamp(16px, 1.8vw, 22px);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ihome-tile:hover .ihome-tile__caret {
  opacity: 1;
  transform: none;
}


/* ════════════════════════════════════════════════════════════
   6. SAAS PRODUCTS
═══════════════════════════════════════════════════════════════ */
.ihome-saas {
  padding: 0 var(--gutter) clamp(48px, 6vw, 100px);
  background: var(--t-bg);
}
.ihome-saas__head {
  /* max-width: var(--content); */
  margin: 0 auto clamp(28px, 3vw, 54px);
}
.ihome-saas__rule {
  display: block;
  height: 1px;
  background: var(--t-border-strong, #a5abb3);
  margin-bottom: 8px;
}
.ihome-saas__label {
  font-family: var(--ds-font-heading);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--t-text);
  margin: 0;
}
.ihome-saas__grid {
  /* max-width: var(--content); */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.2vw, 16px);
}
.ihome-product {
  position: relative;
  display: block;
  aspect-ratio: 440 / 460;
  overflow: hidden;
  text-decoration: none;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.ihome-product::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ihome-product:hover::before { transform: scale(1.07); }
.ihome-product__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ihome-product:hover .ihome-product__video { transform: scale(1.07); }
.ihome-product__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.4s ease;
}
.ihome-product:hover .ihome-product__overlay { background: rgba(0, 0, 0, 0.4); }
.ihome-product__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(20px, 2vw, 40px);
  text-align: center;
}
.ihome-product__rule {
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  transition: width 0.45s ease;
}
.ihome-product:hover .ihome-product__rule { width: 120px; }
.ihome-product__logo {
  width: clamp(150px, 18vw, 230px);
  height: auto;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ihome-product:hover .ihome-product__logo { transform: scale(1.06); }
.ihome-product__logo--svg { color: #fff; }
.ihome-product__logo--svg svg { width: 100%; height: auto; display: block; }
.ihome-product__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ds-font-heading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ihome-product__more .ihome-arrow { width: 18px; height: 18px; }
.ihome-product:hover .ihome-product__more,
.ihome-product:focus-within .ihome-product__more {
  opacity: 1;
  transform: none;
}


/* ════════════════════════════════════════════════════════════
   7. INDUSTRIES & ENVIRONMENTS
═══════════════════════════════════════════════════════════════ */
.ihome-industries {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 360px);
  background: var(--t-bg);
}
.ihome-industries__text {
  padding: clamp(48px, 5vw, 72px) clamp(28px, 4vw, 56px) clamp(48px, 5vw, 72px) var(--gutter);
  display: flex;
  flex-direction: column;
}
.ihome-industries__title {
  font-family: var(--ds-font-heading);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 clamp(28px, 3vw, 56px);
}
.ihome-industries__intro {
  font-family: var(--ds-font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.18;
  color: var(--t-text);
  margin: 0 0 clamp(20px, 2.4vw, 40px);
  max-width: 76ch;
}
.ihome-industries__list {
  list-style: none;
  margin: 0 0 clamp(36px, 5vw, 80px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ihome-industries__item {
  position: relative;
  background: var(--t-surface);
  border-left: 10px solid var(--gold);
  padding: 22px 20px 22px 30px;
  transition: transform 0.3s ease, border-left-width 0.35s ease, background 0.35s ease, padding-left 0.35s ease !important;
}
.ihome-industries__item:hover {
  transform: translateX(6px);
  border-left-width: 18px;
  padding-left: 26px;
  background: var(--t-surface-raised, #eef1f6);
}
.ihome-industries__item-title {
  font-family: var(--ds-font-heading);
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.36;
  color: var(--t-text);
  margin: 0 0 6px;
}
.ihome-industries__item-desc {
  font-family: var(--ds-font-heading);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--t-text-muted, rgba(9, 16, 29, 0.6));
  margin: 0;
  max-width: 62ch;
}
.ihome-industries__ghost {
  display: flex;
  flex-direction: column;
  margin: auto 0 0;
  font-family: var(--ds-font-heading);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.36;
  text-transform: uppercase;
  color: #a3abb6;
}
.ihome-industries__ghost span:first-child { font-weight: 300; }
.ihome-industries__ghost span:last-child  { font-weight: 700; }
.ihome-industries__media { overflow: hidden; position: relative; }
.ihome-industries__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ════════════════════════════════════════════════════════════
   8. CTA — clip-text knockout over looping video
   White panel + mix-blend-mode:screen → the (black) heading reads
   as transparent windows revealing the footage; rest stays white.
═══════════════════════════════════════════════════════════════ */
.ihome-cta {
  position: relative;
  margin: 0 var(--gutter) clamp(40px, 5vw, 64px);
  min-height: clamp(520px, 52vw, 750px);
  overflow: hidden;
  isolation: isolate;
  --panel-h: 66%;
}
.ihome-cta__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ihome-cta__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.32);
}
.ihome-cta__panel {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: var(--panel-h);
  background: #fff;
  mix-blend-mode: screen;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 64px);
}
.ihome-cta__title {
  font-family: var(--ds-font-heading);
  font-size: clamp(34px, 6.4vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  color: #000;          /* black → screen blend reveals the video */
  margin: 0;
  max-width: 16ch;
}
.ihome-cta__btn {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(var(--panel-h) - clamp(64px, 8vw, 96px));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 clamp(28px, 3vw, 44px);
  background: var(--ink);
  color: #fff;
  font-family: var(--ds-font-heading);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.ihome-cta__btn:hover {
  background: var(--gold);
  color: #141414;
  transform: translateX(-50%) translateY(-2px);
}
/* Pause/Play control for the autoplaying video (WCAG 2.2.2) */
.ihome-cta__playpause {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ihome-cta__playpause:hover { background: rgba(0, 0, 0, 0.7); }
.ihome-cta__playpause .ihome-icon-play  { display: none; }
.ihome-cta__playpause .ihome-icon-pause { display: block; }
.ihome-cta__playpause[aria-pressed="true"] .ihome-icon-play  { display: block; }
.ihome-cta__playpause[aria-pressed="true"] .ihome-icon-pause { display: none; }

/* Fallback: no mix-blend-mode → solid white panel, dark readable heading. */
@supports not ((mix-blend-mode: screen) or (-webkit-mix-blend-mode: screen)) {
  .ihome-cta__panel { mix-blend-mode: normal; }
  .ihome-cta__title { color: #111; }
}


/* ════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES  [data-theme="dark"]
═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .ihome-card { border-top-color: var(--t-border-strong); }
[data-theme="dark"] .ihome-card:hover .ihome-card__title { color: var(--gold); }

[data-theme="dark"] .ihome-btn {
  background: #f4f6f9;
  color: #141414;
  border-color: #f4f6f9;
}
[data-theme="dark"] .ihome-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #141414;
}

[data-theme="dark"] .ihome-industries__title { color: var(--t-text); }
[data-theme="dark"] .ihome-industries__ghost  { color: rgba(255, 255, 255, 0.22); }

/* CTA: dark panel + multiply so the heading still reveals the footage;
   the button becomes a light chip so it stays visible on the dark panel. */
[data-theme="dark"] .ihome-cta__panel {
  background: #0a0a0b;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .ihome-cta__title { color: #fff; }
[data-theme="dark"] .ihome-cta__btn {
  background: #f4f6f9;
  color: #141414;
}
[data-theme="dark"] .ihome-cta__btn:hover {
  background: var(--gold);
  color: #141414;
}
@supports not ((mix-blend-mode: multiply) or (-webkit-mix-blend-mode: multiply)) {
  [data-theme="dark"] .ihome-cta__panel { background: var(--t-bg); mix-blend-mode: normal; }
  [data-theme="dark"] .ihome-cta__title { color: var(--t-text); }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Drop the bento areas → uniform 2-col grid (10 tiles ÷ 2 = 5 rows, no gaps). */
  .ihome-services__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: none;
    grid-auto-rows: clamp(130px, 22vw, 190px);
  }
  .ihome-tile { grid-area: auto !important; }
}

/* Touch devices (and small screens) — fixed background-attachment is ignored
   on iOS and janks on Android, so pin it to scroll regardless of width. */
@media (hover: none), (max-width: 1024px) {
  .ihome-hero__title.is-clip-text,
  .ihome-hero__band,
  .ihome-banner { background-attachment: scroll; }
}

@media (max-width: 860px) {
  /* clip-text unreliable on mobile → solid heading.
     Must also clear background-color: the is-clip-text rule sets
     background-color: var(--t-text) as an image-load fallback; when we
     unset background-clip here, that dark colour would show as the
     element background and hide same-coloured text. */
  .ihome-hero__title.is-clip-text {
    background-image: none !important;
    background-color: transparent;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--t-text);
    color: var(--t-text);
  }

  .ihome-cards { grid-template-columns: 1fr; }
  .ihome-card { min-height: 0; }
  .ihome-card__title { min-height: 0; }
  .ihome-card__media { aspect-ratio: 16 / 9; }

  .ihome-lines__grid { grid-template-columns: 1fr; }
  /* 16/9 gave ~188px at 375px — too short for label + description.
     Use min-height that scales with viewport so text always fits. */
  .ihome-line {
    aspect-ratio: auto;
    min-height: clamp(260px, 80vw, 400px);
  }
  /* touch can't hover — anchor content at the bottom and reveal the description */
  .ihome-line__inner { top: auto; bottom: 0; transform: none; }
  .ihome-line__label { font-size: clamp(28px, 8vw, 44px); }
  .ihome-line__desc { max-height: 320px; opacity: 1; transform: none; margin-top: 14px; }

  .ihome-saas__grid { grid-template-columns: 1fr; }
  .ihome-product { aspect-ratio: 16 / 9; }

  .ihome-services__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(120px, 30vw, 170px);
  }
  .ihome-tile__caret { opacity: 1; transform: none; }

  .ihome-industries { grid-template-columns: 1fr; }
  .ihome-industries__text { padding: clamp(40px, 8vw, 56px) var(--gutter); }
  .ihome-industries__media { order: -1; aspect-ratio: 16 / 9; }

  .ihome-cta { --panel-h: 72%; }
}

@media (max-width: 520px) {
  /* let tiles grow with their labels so long names don't clip */
  .ihome-services__grid { gap: 8px; grid-auto-rows: minmax(120px, auto); }
  .ihome-tile { min-height: 120px; }
  .ihome-tile__label { font-size: 15px; }
  .ihome-cta { --panel-h: 76%; min-height: clamp(440px, 110vw, 600px); }
}


/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .intone-home-2026 .reveal { opacity: 1; transform: none; transition: none; }
  .ihome-hero__title.is-clip-text,
  .ihome-hero__band,
  .ihome-banner { background-attachment: scroll; }
  .intone-home-2026 *,
  .intone-home-2026 *::before { transition: none !important; }
  .ihome-product__video { display: none; }
}
