.foundation-y-hero {
  --foundation-y-hero-shell-radius: 48px;
  --foundation-y-hero-overlay-image: url("https://inkfire.co.uk/wp-content/uploads/2025/12/Untitled-1.png");
  --foundation-y-hero-overlay-opacity: 0.08;
  --foundation-y-hero-overlay-width: 102%;
  --foundation-y-hero-overlay-height: 102%;
  --foundation-y-hero-overlay-position-x: 50%;
  --foundation-y-hero-overlay-position-y: 50%;
  --foundation-y-hero-grid-gap: 64px;
  --foundation-y-hero-left-width: 480px;
  --foundation-y-hero-stage-height: 620px;
  --foundation-y-hero-stage-peek: 84px;
  --foundation-y-hero-stack-gap: 28px;
  --foundation-y-hero-card-min-height: 220px;
  --foundation-y-hero-card-radius: 34px;
  --foundation-y-hero-card-copy-width: 30ch;
  --foundation-y-hero-card-shadow-bleed: 26px;
  --foundation-y-hero-card-link-spacing: 24px;
  --foundation-y-hero-card-link-gap: 10px;
  --foundation-y-hero-card-link-icon-size: 16px;
  --foundation-y-hero-stat-columns: 3;
  --foundation-y-hero-stacked-stat-min-width: 140px;
  --foundation-y-hero-controls-gap: 16px;
  --foundation-y-hero-arrow-size: 52px;
  --foundation-y-hero-arrow-radius: 16px;
  --foundation-y-hero-arrow-icon-size: 20px;
  --foundation-y-hero-cta-gap: 10px;
  --foundation-y-hero-cta-min-height: 52px;
  --foundation-y-hero-cta-icon-size: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.foundation-y-hero,
.foundation-y-hero * {
  box-sizing: border-box;
}

.foundation-y-hero__shell {
  position: relative;
  isolation: isolate;
  width: 95%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(28px, 3vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: var(--foundation-y-hero-shell-radius);
  background: #f3f3f3;
  overflow: hidden;
}

.foundation-y-hero__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--foundation-y-hero-overlay-image);
  background-position: var(--foundation-y-hero-overlay-position-x) var(--foundation-y-hero-overlay-position-y);
  background-repeat: no-repeat;
  background-size: var(--foundation-y-hero-overlay-width) var(--foundation-y-hero-overlay-height);
  opacity: var(--foundation-y-hero-overlay-opacity);
  filter: grayscale(100%) drop-shadow(0 12px 24px rgba(255, 255, 255, 0.14)) drop-shadow(0 18px 28px rgba(17, 19, 29, 0.12));
}

.foundation-y-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, var(--foundation-y-hero-left-width)) minmax(0, 1fr);
  gap: var(--foundation-y-hero-grid-gap);
  align-items: stretch;
  width: 100%;
}

.foundation-y-hero__left {
  position: relative;
  height: calc(var(--foundation-y-hero-stage-height) + (var(--foundation-y-hero-card-shadow-bleed) * 2));
  padding: var(--foundation-y-hero-card-shadow-bleed);
  overflow: hidden;
  min-width: 0;
}

.foundation-y-hero__stack {
  display: flex;
  flex-direction: column;
  gap: var(--foundation-y-hero-stack-gap);
  width: calc(100% + (var(--foundation-y-hero-card-shadow-bleed) * 2));
  margin-left: calc(var(--foundation-y-hero-card-shadow-bleed) * -1);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  min-height: 100%;
}

.foundation-y-hero__card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(20, 22, 35, 0.06);
  border-radius: var(--foundation-y-hero-card-radius);
  padding: clamp(24px, 2.4vw, 40px);
  box-shadow: 0 18px 40px rgba(21, 22, 34, 0.06);
  min-height: var(--foundation-y-hero-card-min-height);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.foundation-y-hero__card h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #202233;
}

.foundation-y-hero__card-copy,
.foundation-y-hero__card-copy p {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: #5f6170;
  max-width: var(--foundation-y-hero-card-copy-width);
}

.foundation-y-hero__card-copy p + p {
  margin-top: 0.9em;
}

.foundation-y-hero__card-footer {
  margin-top: auto;
  padding-top: var(--foundation-y-hero-card-link-spacing);
}

.foundation-y-hero__card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--foundation-y-hero-card-link-gap);
  width: fit-content;
  max-width: 100%;
  color: #151622;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.foundation-y-hero__card-link:hover {
  transform: translateX(1px);
}

.foundation-y-hero__card-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

.foundation-y-hero__card-link-text {
  display: inline-flex;
  align-items: center;
}

.foundation-y-hero__card-link-icon {
  width: var(--foundation-y-hero-card-link-icon-size);
  height: var(--foundation-y-hero-card-link-icon-size);
  font-size: var(--foundation-y-hero-card-link-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.foundation-y-hero__card-link-icon svg {
  width: 1em;
  height: 1em;
}

.foundation-y-hero__right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.foundation-y-hero__right h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #202233;
  max-width: 10ch;
}

.foundation-y-hero__intro,
.foundation-y-hero__intro p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.6;
  color: #5b5d69;
}

.foundation-y-hero__intro {
  margin-bottom: 40px;
}

.foundation-y-hero__stats {
  display: grid;
  grid-template-columns: repeat(var(--foundation-y-hero-stat-columns), minmax(120px, 1fr));
  gap: clamp(18px, 2vw, 42px);
  margin-bottom: 36px;
  max-width: 760px;
}

.foundation-y-hero__stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #202233;
}

.foundation-y-hero__stat span {
  display: block;
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.35;
  color: #5f6170;
}

.foundation-y-hero__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--foundation-y-hero-controls-gap);
}

.foundation-y-hero__arrow {
  width: var(--foundation-y-hero-arrow-size);
  height: var(--foundation-y-hero-arrow-size);
  border-radius: var(--foundation-y-hero-arrow-radius);
  border: 1px solid rgba(32, 34, 51, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: #202233;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.foundation-y-hero__arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(32, 34, 51, 0.25);
  background: #ffffff;
}

.foundation-y-hero__arrow:focus-visible,
.foundation-y-hero__cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.foundation-y-hero__arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.foundation-y-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--foundation-y-hero-cta-gap);
  min-height: var(--foundation-y-hero-cta-min-height);
  padding: 14px 28px;
  border-radius: 999px;
  background: #dfff00;
  color: #11131d;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  line-height: 1.1;
  transition: transform .2s ease, filter .2s ease;
}

.foundation-y-hero__cta:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.foundation-y-hero__arrow-icon,
.foundation-y-hero__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.foundation-y-hero__arrow-icon svg {
  width: 1em;
  height: 1em;
}

.foundation-y-hero__arrow-icon {
  width: var(--foundation-y-hero-arrow-icon-size);
  height: var(--foundation-y-hero-arrow-icon-size);
  font-size: var(--foundation-y-hero-arrow-icon-size);
}

.foundation-y-hero__cta-icon {
  width: var(--foundation-y-hero-cta-icon-size);
  height: var(--foundation-y-hero-cta-icon-size);
  font-size: var(--foundation-y-hero-cta-icon-size);
}

.foundation-y-hero__cta-icon svg {
  width: 1em;
  height: 1em;
}

.foundation-y-hero__cta-text {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__shell {
  border-radius: min(34px, var(--foundation-y-hero-shell-radius));
  padding: 28px 20px;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__grid {
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__right {
  order: 1;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__left {
  order: 2;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__left {
  height: auto;
  padding: 0;
  overflow: visible;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__stack {
  gap: 18px;
  width: 100%;
  margin-left: 0;
  transform: none !important;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__card {
  min-height: 0;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__right h1 {
  max-width: none;
  margin-bottom: 18px;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__intro {
  margin-bottom: 28px;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__stats {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--foundation-y-hero-stacked-stat-min-width)), 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__controls {
  gap: 12px;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__arrow {
  display: none;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__cta {
  width: 100%;
  min-height: max(50px, var(--foundation-y-hero-cta-min-height));
  padding: 14px 22px;
  justify-content: space-between;
  flex-wrap: wrap;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}

.foundation-y-hero.foundation-y-hero--stacked .foundation-y-hero__right {
  display: block;
}

@media (max-width: 1200px) {
  .foundation-y-hero__grid {
    grid-template-columns: minmax(320px, min(420px, var(--foundation-y-hero-left-width))) minmax(0, 1fr);
    gap: min(56px, var(--foundation-y-hero-grid-gap));
  }

  .foundation-y-hero__left {
    height: calc(var(--foundation-y-hero-stage-height) + (var(--foundation-y-hero-card-shadow-bleed) * 2));
  }

  .foundation-y-hero__right h1 {
    max-width: 11ch;
  }
}

@media (max-width: 920px) {
  .foundation-y-hero__shell {
    border-radius: min(34px, var(--foundation-y-hero-shell-radius));
    padding: 28px 20px;
  }

  .foundation-y-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .foundation-y-hero__left {
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .foundation-y-hero__stack {
    gap: 18px;
    width: 100%;
    margin-left: 0;
    transform: none !important;
  }

  .foundation-y-hero__card {
    min-height: 0;
  }

  .foundation-y-hero__right h1 {
    max-width: none;
    margin-bottom: 18px;
  }

  .foundation-y-hero__intro {
    margin-bottom: 28px;
  }

  .foundation-y-hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--foundation-y-hero-stacked-stat-min-width)), 1fr));
    gap: 18px;
    margin-bottom: 26px;
  }

  .foundation-y-hero__controls {
    gap: 12px;
  }

  .foundation-y-hero__arrow {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .foundation-y-hero__cta {
    width: 100%;
    min-height: max(50px, var(--foundation-y-hero-cta-min-height));
    padding: 14px 22px;
    justify-content: space-between;
    flex-wrap: wrap;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }

  .foundation-y-hero__right {
    display: block;
  }
}

@media (max-width: 767px) {
  .foundation-y-hero__controls {
    width: 100%;
  }

  .foundation-y-hero__arrow {
    display: none;
  }

  .foundation-y-hero__cta {
    width: 100%;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 16px;
    gap: 12px;
  }

  .foundation-y-hero__cta-text {
    display: block;
    flex: 1 1 180px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .foundation-y-hero__cta-icon {
    flex: 0 0 auto;
  }
}
