/* ============================================================
   HOME PAGE
============================================================ */

/* ── Hero (compact, enterprise proportions) ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(540px, 74svh, 720px);
  background: var(--ink); color: var(--white);
  --grad-a: var(--grad-dark-a); --grad-b: var(--grad-dark-b);
  touch-action: pan-y;   /* vertical scroll stays native, horizontal swipes change slides */
}

/* Slides */
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
/* The leaving slide keeps its zoom while it fades out */
.hero__slide.is-active img,
.hero__slide.is-prev img { animation: hero-zoom 12s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(var(--ink-rgb), .92) 0%, rgba(var(--ink-rgb), .6) 45%, rgba(var(--ink-rgb), .1) 100%),
    linear-gradient(0deg, rgba(var(--ink-rgb), .95) 0%, rgba(var(--ink-rgb), 0) 45%);
}
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  top: -20%; right: -10%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .38), transparent 62%);
  filter: blur(40px);
}

.hero__content { position: relative; padding-top: clamp(48px, 8vh, 88px); padding-bottom: clamp(32px, 5vh, 56px); }
.hero__title {
  max-width: 18ch; margin-bottom: 24px;
  font-size: clamp(34px, 4.4vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -.04em;
}
.hero__title br { display: none; }
.hero__soft { font-weight: 300; color: rgba(var(--white-rgb), .55); }
.hero__lead { max-width: 540px; margin-bottom: 32px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; color: rgba(var(--white-rgb), .7); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__enter { opacity: 0; transform: translateY(26px); animation: hero-enter 1s var(--ease) var(--delay, 0s) forwards; }
@keyframes hero-enter { to { opacity: 1; transform: none; } }

/* Slider controls: arrows + progress dots */
.hero__controls { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { position: relative; width: 44px; height: 24px; }
.hero__dot::before,
.hero__dot::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; transform: translateY(-50%);
}
.hero__dot::before { background: rgba(var(--white-rgb), .28); transition: background .25s; }
.hero__dot:hover::before { background: rgba(var(--white-rgb), .5); }
.hero__dot::after { background: var(--white); transform: translateY(-50%) scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { transform: translateY(-50%) scaleX(1); }

/* While auto-playing, the active dot fills over the slide interval */
.hero.is-playing .hero__dot.is-active::after {
  transform: translateY(-50%) scaleX(0);
  animation: hero-progress var(--hero-interval, 7s) linear forwards;
}
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes hero-progress { to { transform: translateY(-50%) scaleX(1); } }

@media (min-width: 1101px) {
  .hero__controls {
    position: absolute; right: var(--gutter);
    bottom: clamp(32px, 5vh, 56px); margin-top: 0;
  }
}

.hero__bar { border-top: 1px solid var(--line-light); background: rgba(var(--ink-rgb), .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero__bar-inner { display: grid; grid-template-columns: 1.7fr 1fr; align-items: stretch; }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__facts > div { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border-left: 1px solid var(--line-light); }
.hero__facts > div:first-child { padding-left: 0; border-left: 0; }
.hero__facts dt { font: 500 10px var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: rgba(var(--white-rgb), .45); }
.hero__facts dd { font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }

/* Latest update link: has right padding so the arrow never touches the hover edge */
.hero__latest {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 20px;
  padding: 20px 28px 20px 32px; border-left: 1px solid var(--line-light);
  transition: background .3s;
}
.hero__latest:hover { background: rgba(var(--white-rgb), .05); }
.hero__latest-label { grid-column: 1 / -1; font: 500 10px var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent-soft); }
.hero__latest strong { font-size: 14px; font-weight: 500; line-height: 1.45; }
.hero__latest .material-icons-round { font-size: 22px; transition: transform .35s var(--ease); }
.hero__latest:hover .material-icons-round { transform: translateX(6px); }

/* ── Marquee (plain text, no separators) ── */
.marquee { overflow: hidden; background: var(--ink-2); border-bottom: 1px solid var(--line-light); color: rgba(var(--white-rgb), .5); }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__group { display: flex; }
.marquee__group span {
  display: flex; align-items: center; padding: 22px 36px; white-space: nowrap;
  font: 500 12px var(--font-mono); letter-spacing: .24em; text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── About ── */
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 7vw, 100px);
  border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark);
}
.about__stat { padding: clamp(28px, 3vw, 44px); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .3s; }
.about__stat:hover { background: var(--white); }
.about__stat strong { display: block; margin-bottom: 14px; font-size: clamp(48px, 6vw, 92px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
/* Direct child only: styles the label, not the number span inside <strong> */
.about__stat > span { display: block; font: 500 11px var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ── Capabilities ── */
.capabilities__title { margin-bottom: 56px; }
.capabilities__list { display: flex; height: 640px; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.capabilities__panel { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--ink-2); cursor: pointer; transition: flex .9s var(--ease); }
.capabilities__panel.is-active { flex: 4.4; }
.capabilities__panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.7) brightness(.42); transform: scale(1.1);
  transition: filter .9s var(--ease), transform 1.4s var(--ease);
}
.capabilities__panel.is-active img { filter: grayscale(0) brightness(.58); transform: scale(1); }
.capabilities__panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(var(--ink-rgb), .92) 0%, rgba(var(--ink-rgb), .1) 60%); }
.capabilities__index { position: absolute; z-index: 2; top: 24px; left: 24px; font: 500 11px var(--font-mono); letter-spacing: .2em; color: rgba(var(--white-rgb), .6); }
.capabilities__label {
  position: absolute; z-index: 2; left: 24px; bottom: 28px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 16px; font-weight: 500; white-space: nowrap; transition: opacity .35s;
}
.capabilities__panel.is-active .capabilities__label { opacity: 0; }
.capabilities__content {
  position: absolute; z-index: 3; left: 0; bottom: 0; width: 600px; max-width: 100%; padding: 44px;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .4s, transform .6s var(--ease);
}
.capabilities__panel.is-active .capabilities__content { opacity: 1; transform: none; pointer-events: auto; transition-delay: .35s; }
.capabilities__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.capabilities__content h3 { margin-bottom: 14px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.capabilities__content p { max-width: 480px; margin-bottom: 28px; font-size: 15px; line-height: 1.75; color: rgba(var(--white-rgb), .72); }

/* ── Engineering model ── */
.engineering__top { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.engineering__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line-dark); }
.engineering__item { position: relative; padding: 40px 32px 48px; border: 1px solid var(--line-dark); border-left: 0; transition: background .35s; }
.engineering__item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.engineering__item:hover { background: var(--paper); }
.engineering__item:hover::before { transform: scaleX(1); }
.engineering__no { display: block; margin-bottom: 64px; font: 500 12px var(--font-mono); letter-spacing: .2em; color: var(--accent); }
.engineering__item h3 { margin-bottom: 14px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.engineering__item p { font-size: 14.5px; line-height: 1.75; color: var(--muted); }

/* ── Metrics ── */
.metrics { background: var(--gradient-metrics); color: var(--white); --grad-a: var(--grad-metrics-a); --grad-b: var(--grad-metrics-b); border-block: 1px solid var(--line-light); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics__item { padding: clamp(40px, 5vw, 72px) 32px; border-left: 1px solid var(--line-light); }
.metrics__item:first-child { padding-left: 0; border-left: 0; }
.metrics__item strong { display: block; margin-bottom: 22px; font-size: clamp(44px, 5vw, 76px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.metrics__item h3 { margin-bottom: 10px; font: 500 12px var(--font-mono); letter-spacing: .22em; text-transform: uppercase; }
.metrics__item p { max-width: 240px; font-size: 14px; line-height: 1.7; color: rgba(var(--white-rgb), .55); }

/* ── Updates ──
   One joined grid, same language as Journey / Domains / Products:
   shared 1px borders, no gaps, no shadow, flips to dark navy on hover.
   The card itself is NOT a link. Only the title and "Read more" are links,
   and they get a text underline on hover. */
.updates__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }

.updates__featured {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark);
}
.updates__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line-dark);
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); color: var(--text);
  border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  transition:
    opacity .9s var(--ease) var(--reveal-delay, 0s),
    transform .9s var(--ease) var(--reveal-delay, 0s),
    background .4s var(--ease), color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: -1px; height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}

/* Image: fixed ratio so every card lines up */
.card__media {
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink-2); border-bottom: 1px solid var(--line-dark);
}
.card__media--small { aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }

.card__body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.6vw, 36px); }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__meta time { font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); transition: color .3s; }

.card h3 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.card--featured h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; letter-spacing: -.025em; }

/* Title link: looks like plain text until hovered, then the underline fades in */
.card__title-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color .25s;
}
.card__title-link:hover,
.card__title-link:focus-visible { text-decoration-color: currentColor; }

.card p {
  flex: 1; font-size: 14.5px; line-height: 1.75; color: var(--muted); transition: color .3s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Footer line is pinned to the bottom so it aligns across cards */
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-dark);
  font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--subtle);
  transition: color .3s, border-color .3s;
}

/* Read more link: underline is on the text only, not the arrow icon */
.card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); transition: color .3s; }
.card__more-label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color .25s;
}
.card__more:hover .card__more-label,
.card__more:focus-visible .card__more-label { text-decoration-color: currentColor; }
.card__more .material-icons-round { font-size: 16px; }

.card__title-link:focus-visible,
.card__more:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; }

/* Hover / keyboard focus anywhere inside the card: dark navy (no lift, no shadow, no movement) */
.card:hover,
.card:focus-within { background: var(--ink); color: var(--white); }
.card:hover::before,
.card:focus-within::before { transform: scaleX(1); }
.card:hover .card__media,
.card:focus-within .card__media { border-bottom-color: var(--line-light); }
.card:hover .card__media img,
.card:focus-within .card__media img { transform: scale(1.04); }
.card:hover .card__meta time,
.card:focus-within .card__meta time { color: rgba(var(--white-rgb), .5); }
.card:hover .tag--dark,
.card:focus-within .tag--dark { color: var(--accent-soft); border-color: rgba(var(--accent-soft-rgb), .4); background: rgba(var(--accent-soft-rgb), .08); }
.card:hover p,
.card:focus-within p { color: rgba(var(--white-rgb), .7); }
.card:hover .card__foot,
.card:focus-within .card__foot { border-top-color: var(--line-light); color: rgba(var(--white-rgb), .5); }
.card:hover .card__more,
.card:focus-within .card__more { color: var(--accent-soft); }

/* ── Call to action ── */
.cta-band {
  position: relative; isolation: isolate; color: var(--white);
  padding: clamp(96px, 12vw, 180px) 0;
  background: var(--ink) var(--cta-image) center / cover fixed no-repeat;
  --grad-a: var(--grad-dark-a); --grad-b: var(--grad-dark-b);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--ink-rgb), .94) 0%, rgba(var(--ink-rgb), .7) 50%, rgba(var(--ink-rgb), .35) 100%); }
.cta-band__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.cta-band__text { max-width: 540px; margin-top: 28px; font-size: 16px; line-height: 1.8; color: rgba(var(--white-rgb), .7); }
.cta-band__panel { padding: clamp(28px, 3.5vw, 52px); background: rgba(var(--ink-2-rgb), .6); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line-light); border-top: 3px solid var(--accent-blue); }
.cta-band__label { display: block; margin-bottom: 20px; font: 500 11px var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent-soft); }
.cta-band__panel h3 { margin-bottom: 16px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.cta-band__panel p { margin-bottom: 32px; font-size: 15px; line-height: 1.75; color: rgba(var(--white-rgb), .65); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .engineering__grid, .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metrics__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__bar-inner { grid-template-columns: 1fr; }
  /* Stacked layout: side padding is added on hover area, and cancelled with a negative margin
     so the text still lines up with the facts above. */
  .hero__latest { margin-inline: -16px; padding: 18px 16px; border-left: 0; border-top: 1px solid var(--line-light); }
}
@media (max-width: 900px) {
  .about__grid, .engineering__top, .cta-band__grid { grid-template-columns: 1fr; }
  .cta-band { background-attachment: scroll; }
  .hero { min-height: 0; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__facts > div:nth-child(n+3) { border-top: 1px solid var(--line-light); }

  .updates__featured, .updates__list { grid-template-columns: minmax(0, 1fr); }

  .capabilities__list { flex-direction: column; height: auto; }
  .capabilities__panel, .capabilities__panel.is-active { flex: none; min-height: 460px; display: flex; align-items: flex-end; }
  .capabilities__panel img { filter: grayscale(0) brightness(.5); transform: none; }
  .capabilities__label { display: none; }
  .capabilities__content { position: relative; width: 100%; padding: 28px 24px; opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 640px) {
  .hero__content { padding-top: 40px; padding-bottom: 32px; }
  .hero__title { font-size: clamp(32px, 9vw, 40px); }
  .about__stats { grid-template-columns: 1fr; }
  .engineering__grid, .metrics__grid { grid-template-columns: 1fr; }
  .metrics__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .metrics__item:first-child { border-top: 0; }
  .hero__actions .btn, .updates__head .btn { width: 100%; justify-content: space-between; }
  .hero__controls { justify-content: space-between; }
  .hero__dots { flex: 1; justify-content: center; }
}
@media (hover: none) { .cta-band { background-attachment: scroll; } }