/* Enterprise keeps the approved photographic spotlight and entrance motion.
   The expanded content uses open editorial layouts and an in-flow journey.
   Text remains visible without JavaScript; motion only enhances photographs. */
[data-page="enterprises"] {
  --ent-inline: max(
    var(--gutter),
    calc((100% - var(--content)) / 2 + var(--gutter))
  );
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --rise-md: 14px;
  --rise-sm: 9px;
  --rise-xs: 6px;
  --step: 90ms;
}
[data-page="enterprises"] h4 {
  margin: 0;
  font-weight: 400;
}
[data-page="enterprises"] .editorial-label {
  font-size: 13px;
}

/* Gridcore entrance keyframes. Rules and hatches never move; content does. */
@keyframes enterRise {
  from {
    opacity: 0;
    transform: translate3d(0, var(--rise-sm), 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes enterSettle {
  from {
    opacity: 0;
    transform: translate3d(0, var(--rise-md), 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes enterMaskClip {
  from {
    clip-path: inset(-60% -6% 100% -6%);
  }
  to {
    clip-path: inset(-60% -6% -60% -6%);
  }
}
@keyframes enterMaskRise {
  from {
    transform: translate3d(0, 0.6em, 0);
  }
  to {
    transform: none;
  }
}
@keyframes enterAction {
  from {
    opacity: 0;
    transform: translate3d(0, var(--rise-xs), 0) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.enter-mask {
  display: block;
}
.enter-line {
  display: block;
}
/* Page load: the introduction performs once while html has is-entering. */
html.is-entering .ent-hero-copy .enter {
  opacity: 0;
  animation-duration: var(--dur);
  animation-delay: var(--delay);
  animation-timing-function: var(--ease-reveal);
  animation-fill-mode: both;
  animation-iteration-count: 1;
  will-change: transform, opacity;
}
html.is-entering .ent-hero-copy .enter-rise {
  --dur: 620ms;
  --delay: calc(120ms + var(--i, 0) * 55ms);
  animation-name: enterRise;
  animation-timing-function: var(--ease-soft);
}
html.is-entering .ent-hero-copy .enter-mask {
  --dur: 820ms;
  --delay: calc(480ms + var(--i, 0) * var(--step));
  animation: enterMaskClip var(--dur) var(--ease-reveal) var(--delay) both;
}
html.is-entering .ent-hero-copy .enter-mask .enter-line {
  --dur: 820ms;
  --delay: calc(480ms + var(--i, 0) * var(--step));
  animation: enterMaskRise var(--dur) var(--ease-reveal) var(--delay) both;
}
html.is-entering .ent-hero-copy .enter-copy {
  --dur: 700ms;
  --delay: calc(620ms + var(--i, 0) * var(--step));
  animation-name: enterRise;
}
html.is-entering .ent-hero-copy .enter-action {
  --dur: 640ms;
  --delay: calc(740ms + var(--i, 0) * var(--step));
  animation-name: enterAction;
}
/* Introduction. A veil over the photograph with six trailing holes that
   follow the pointer (Nike Hover), a grid that leans with the cursor (Reveal
   Hero) and an opening sweep before the pointer arrives (Kairo Studio). */
[data-page="enterprises"] .ent-hero {
  color-scheme: dark;
  --text: var(--paper);
  --muted: rgba(var(--paper-rgb), 0.74);
  --line: rgba(var(--paper-rgb), 0.2);
  --button-line: rgba(var(--paper-rgb), 0.5);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(680px, 100svh);
  padding: 0 var(--ent-inline) 28px;
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
}
.ent-hero-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ent-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  filter: grayscale(1) contrast(1.05);
}
.ent-hero-veil,
.ent-hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ent-hero-veil-fill {
  fill: var(--ink);
  fill-opacity: 0.93;
}
.ent-hero-grid {
  color: rgba(var(--paper-rgb), 0.55);
  opacity: 0.18;
}
.ent-hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(var(--ink-rgb), 0.55),
      rgba(var(--ink-rgb), 0.2) 50%,
      transparent 75%
    ),
    linear-gradient(
      180deg,
      rgba(var(--ink-rgb), 0.55),
      transparent 26%,
      transparent 72%,
      rgba(var(--ink-rgb), 0.6)
    );
}
.ent-hero-shell {
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 48px;
}
.ent-hero-copy {
  max-width: 1000px;
}
.ent-hero-copy .eyebrow {
  margin-bottom: 26px;
}
.ent-hero-copy h1 {
  font-size: clamp(44px, 4.9vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.ent-hero-copy h1 .keep {
  white-space: nowrap;
}
.ent-hero-copy h1 .quiet {
  color: var(--muted);
}
.ent-hero-copy > p:not(.eyebrow) {
  max-width: 54ch;
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.65;
}
.ent-hero-copy > p + p {
  margin-top: 14px;
}
.ent-hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.ent-hero-foot p {
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.6;
}
.ent-hero-foot .motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.ent-hero-foot .motion-toggle:hover {
  color: var(--text);
}
.ent-hero-foot .motion-symbol {
  font-size: 12px;
}

/* Shared ink sections, distinct from the other pages' alternating bands. */
[data-page="enterprises"] .ent-section {
  color-scheme: dark;
  --text: var(--paper);
  --muted: rgba(var(--paper-rgb), 0.74);
  --line: rgba(var(--paper-rgb), 0.2);
  --button-line: rgba(var(--paper-rgb), 0.5);
  padding: clamp(72px, 6.1vw, 88px) var(--ent-inline);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
}
.ent-section-heading {
  margin-bottom: 40px;
}
.ent-section-heading > .editorial-label {
  margin-bottom: 22px;
}
.ent-section h2 {
  max-width: 24ch;
  margin: 0;
  font: 300 clamp(36px, 4vw, 58px) / 1.08 var(--sans);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.ent-section p:not(.editorial-label),
.ent-section .ent-prose > p:not(.editorial-label) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.ent-prose > * + * {
  margin-top: 20px !important;
}
.ent-section .ent-emphasis {
  color: var(--text) !important;
}
.ent-text-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(40px, 6vw, 96px);
  max-width: 1180px;
}
.ent-heading-copy {
  max-width: 66ch;
  margin-top: 28px;
}
.ent-media-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.ent-photo {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}
.ent-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  filter: grayscale(1) brightness(0.86) contrast(1.05);
}
.ent-product-photo img {
  aspect-ratio: 1920 / 1204;
  object-fit: contain;
  filter: grayscale(1) brightness(0.88);
}
/* Animate only when the image has entered; never hide copy awaiting script. */
.ent-photo.is-live img {
  animation: enterSettle 900ms var(--ease-reveal) both;
}
.ent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 36px;
  margin-top: 32px;
}
.ent-actions .button {
  font: 400 15px / 1.4 var(--sans);
  text-align: left;
  cursor: pointer;
}
.ent-actions .button span {
  font-size: 20px;
}
.ent-section :is(a, button):focus-visible,
.ent-hero :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

/* Four stages remain in document flow. A compact sticky rail follows them. */
.ent-journey-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.journey-rail {
  position: sticky;
  top: calc(var(--header-height) + 48px);
  padding-left: 30px;
}
.journey-rail::before,
.journey-rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: var(--line);
  content: "";
}
.journey-rail-fill {
  background: var(--paper);
  transform: scaleY(var(--journey-progress, 0));
  transform-origin: top;
  transition: transform 300ms ease;
}
.journey-rail ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey-rail a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 15px;
}
.journey-rail a::before {
  position: absolute;
  top: 50%;
  left: -30px;
  width: 7px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width 250ms ease;
}
.journey-rail li.is-active a,
.journey-rail a:hover {
  color: var(--text);
}
.journey-rail li.is-active a::before {
  width: 19px;
}
.ent-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: center;
  padding-block: 40px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 32px);
}
.ent-stage:first-child {
  padding-top: 0;
  border-top: 0;
}
.ent-stage:last-child {
  padding-bottom: 0;
}
.ent-stage h3 {
  margin: 14px 0 0;
  font: 400 clamp(26px, 2.6vw, 36px) / 1.15 var(--sans);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.ent-stage .ent-prose > p:not(.editorial-label) {
  font-size: 16px;
}
.ent-stage .ent-photo img {
  aspect-ratio: 5 / 6;
}
.ent-stage .ent-product-photo img {
  aspect-ratio: 1920 / 1204;
}
.ent-section .ent-section-note {
  max-width: 68ch;
  margin-top: 40px;
  color: var(--text);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

/* Equal open columns keep all capability questions easy to compare. */
.ent-competencies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
}
.ent-competencies article {
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
}
.ent-competencies h3,
.ent-benefits h3 {
  margin: 0 0 14px;
  font: 400 23px / 1.25 var(--sans);
  letter-spacing: -0.025em;
}
.ent-competencies h3 {
  min-height: 2.5em;
}
.ent-competencies article p {
  font-size: 16px;
}
.ent-section-end {
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ent-talent-layout {
  align-items: start;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.ent-talent-photo {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}
.ent-talent-photo img {
  aspect-ratio: 4 / 5;
}
.ent-benefits {
  margin-top: 30px;
}
.ent-benefits article {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.ent-benefits article:last-child {
  padding-bottom: 0;
}
.ent-benefits h3 {
  margin-bottom: 10px;
}
.ent-use-cases article {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px clamp(40px, 6vw, 96px);
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.ent-use-cases h3 {
  max-width: 24ch;
  margin: 0;
  font: 400 clamp(24px, 2.25vw, 32px) / 1.18 var(--sans);
  letter-spacing: -0.025em;
}
.ent-closing .ent-actions {
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .ent-journey-layout {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 32px;
  }
  .ent-stage {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
  }
  .ent-competencies {
    column-gap: 28px;
  }
}
@media (max-width: 900px) {
  .ent-media-copy {
    grid-template-columns: 1fr;
  }
  .ent-media-copy > .ent-product-photo {
    max-width: 720px;
  }
  .ent-journey-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .journey-rail {
    position: static;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
  }
  .journey-rail ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .journey-rail a {
    font-size: 14px;
  }
  .journey-rail::before,
  .journey-rail-fill,
  .journey-rail a::before {
    display: none;
  }
  .ent-talent-photo {
    position: static;
  }
  .ent-talent-photo img {
    aspect-ratio: 16 / 10;
  }
  .ent-competencies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .ent-hero-shell {
    padding: calc(var(--header-height) + 28px) 0 40px;
  }
  .ent-hero-stage::after {
    background:
      linear-gradient(
        90deg,
        rgba(var(--ink-rgb), 0.56),
        rgba(var(--ink-rgb), 0.38)
      ),
      linear-gradient(
        180deg,
        rgba(var(--ink-rgb), 0.4),
        transparent 50%,
        rgba(var(--ink-rgb), 0.3)
      );
  }
  .ent-hero-copy h1 {
    font-size: clamp(37px, 10.2vw, 50px);
    line-height: 1.06;
  }
  .ent-hero-copy > p:not(.eyebrow) {
    margin-top: 24px;
    font-size: 17px;
  }
  .ent-hero-copy > p + p {
    margin-top: 14px;
  }
  .ent-hero-foot {
    align-items: center;
  }
  [data-page="enterprises"] .ent-section {
    padding-block: 60px;
  }
  .ent-section-heading {
    margin-bottom: 32px;
  }
  .ent-section h2 {
    font-size: clamp(34px, 9vw, 43px);
  }
  .ent-section p:not(.editorial-label) {
    font-size: 16px;
  }
  .ent-text-columns,
  .ent-stage,
  .ent-use-cases article {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ent-stage .ent-photo img {
    aspect-ratio: 16 / 11;
  }
  .ent-stage .ent-product-photo img {
    aspect-ratio: 1920 / 1204;
  }
  .ent-competencies {
    grid-template-columns: 1fr;
  }
  .ent-competencies h3 {
    min-height: 0;
  }
  .ent-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .ent-actions .button {
    max-width: 100%;
    gap: 24px;
  }
  .ent-use-cases article {
    gap: 14px;
    padding-block: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.is-entering .ent-hero-copy .enter,
  html.is-entering .ent-hero-copy .enter-mask,
  html.is-entering .ent-hero-copy .enter-mask .enter-line,
  .ent-photo.is-live img {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .journey-rail-fill,
  .journey-rail a::before {
    transition: none;
  }
}
