:root {
  --cert-ink: #17231d;
  --cert-muted: #5b685f;
  --cert-moss: #344038;
  --cert-forest: #26372d;
  --cert-leaf: #7f9a80;
  --cert-sage: #dfe8df;
  --cert-paper: #fbfcfa;
  --cert-soft: #f1f4f0;
  --cert-gold: #b99257;
  --cert-line: rgba(23, 35, 29, 0.12);
  --cert-shadow: 0 18px 50px rgba(28, 48, 36, 0.1);
  --cert-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --cert-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

html {
  scroll-behavior: smooth;
}

body.certifications-page {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: auto;
  display: block;
  overflow-x: hidden;
  color: var(--cert-ink);
  background: var(--cert-paper);
}

.certifications-page main {
  padding: 0;
}

.cert-page-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.cert-page-section {
  padding: clamp(64px, 7vw, 96px) 0;
}

.cert-page-eyebrow {
  margin: 0 0 14px;
  color: #55705d;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cert-page-heading {
  max-width: 760px;
  margin: 0 auto clamp(34px, 4.5vw, 52px);
  text-align: center;
}

.cert-page-heading-left {
  max-width: 690px;
  margin-left: 0;
  text-align: left;
}

.cert-page-heading h2,
.cert-overview-copy h2,
.cert-requirement-copy h2,
.cert-cta h2 {
  margin: 0 0 18px;
  color: var(--cert-ink);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.cert-page-heading p,
.cert-overview-copy p,
.cert-type-card p,
.cert-requirement-copy p,
.cert-requirement-list li,
.cert-process-step p,
.cert-cta p {
  color: var(--cert-muted);
  font-size: 1rem;
  line-height: 1.72;
}

/* Hero */
.cert-page-hero {
  position: relative;
  margin-top: 100px;
  overflow: hidden;
  color: var(--cert-ink);
  background: #fff;
  border-bottom: 1px solid var(--cert-line);
}

.cert-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
  min-height: 610px;
  padding-block: 64px;
  background: #fff;
}

.cert-hero-copy {
  max-width: 540px;
  will-change: transform;
}

.cert-hero-copy .cert-page-eyebrow {
  color: #5f7565;
}

.cert-page-hero h1 {
  margin: 0 0 26px;
  color: var(--cert-ink);
  font-size: clamp(3.7rem, 5.8vw, 5rem);
  font-weight: 610;
  letter-spacing: -0.06em;
  line-height: 0.94;
  white-space: nowrap;
}

.cert-page-hero .cert-hero-copy > p:last-of-type {
  max-width: 520px;
  margin: 0;
  color: var(--cert-muted);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.7;
}

.cert-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.cert-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  box-sizing: border-box;
  border: 1px solid rgba(23, 35, 29, 0.16);
  border-radius: 999px;
  color: var(--cert-ink);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 140ms var(--cert-ease-out),
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.cert-button-primary {
  color: #fff;
  background: var(--cert-moss);
  border-color: var(--cert-moss);
}

.cert-page-hero .cert-button-primary {
  color: #fff;
  background: var(--cert-moss);
  border-color: var(--cert-moss);
}

.cert-page-hero .cert-button-secondary {
  position: relative;
  width: auto;
  min-height: auto;
  padding: 8px 2px 10px;
  color: #415248;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cert-page-hero .cert-button-secondary:hover,
.cert-page-hero .cert-button-secondary:active,
.cert-page-hero .cert-button-secondary:focus {
  background: transparent;
  box-shadow: none;
}

.cert-page-hero .cert-button-secondary::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 4px;
  left: 2px;
  height: 1px;
  background: currentColor;
  opacity: 0.38;
  transform: scaleX(0.24);
  transform-origin: left center;
  transition:
    opacity 220ms ease,
    transform 320ms var(--cert-ease-out);
}

.cert-button:active {
  transform: scale(0.97) !important;
  transition-duration: 100ms;
}

.cert-button:focus-visible {
  outline: 3px solid rgba(151, 185, 151, 0.85);
  outline-offset: 4px;
}

.cert-hero-visual {
  position: relative;
  height: 480px;
  margin: 0;
  overflow: hidden;
  background: #dfe4dd;
  border: 1px solid rgba(23, 35, 29, 0.1);
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(29, 49, 36, 0.11);
}

.cert-hero-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: var(--cert-moss);
  opacity: 0;
}

.cert-image-mosaic {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  pointer-events: none;
}

.cert-image-tile {
  min-width: 0;
  min-height: 0;
  background: linear-gradient(145deg, #405047 0%, #303d35 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  will-change: opacity, transform;
}

.cert-image-tile:nth-child(1) { grid-area: 1 / 1 / 7 / 6; }
.cert-image-tile:nth-child(2) { grid-area: 1 / 6 / 5 / 10; }
.cert-image-tile:nth-child(3) { grid-area: 1 / 10 / 5 / 13; }
.cert-image-tile:nth-child(4) { grid-area: 7 / 1 / 11 / 6; }
.cert-image-tile:nth-child(5) { grid-area: 5 / 6 / 11 / 9; }
.cert-image-tile:nth-child(6) { grid-area: 5 / 9 / 11 / 13; }

.cert-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 52%;
  transform: none;
  filter: saturate(0.94) contrast(1.02);
}

/* Overview and certification marks */
.cert-overview {
  background: var(--cert-paper);
}

.cert-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
  gap: clamp(50px, 8vw, 96px);
  align-items: center;
}

.cert-overview-copy p {
  margin: 0 0 17px;
}

.cert-overview-copy p:last-child {
  margin-top: 26px;
  padding: 15px 18px;
  color: #415248;
  background: #edf3ed;
  border-left: 3px solid #6f8b72;
  border-radius: 0 14px 14px 0;
  font-size: 0.9rem;
  font-weight: 620;
}

.cert-logo-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #edf1ec;
  border: 1px solid var(--cert-line);
  border-radius: 28px;
}

.cert-logo-panel > div {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 150px;
  padding: 18px 12px;
  box-sizing: border-box;
  color: #4a594f;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 35, 29, 0.07);
  border-radius: 18px;
}

.cert-logo-panel img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.cert-logo-panel span {
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Certification types */
.cert-types {
  position: relative;
  overflow: hidden;
  background: var(--cert-soft);
}

.cert-kinetic-band {
  width: 100%;
  margin: -18px 0 clamp(58px, 7vw, 88px);
  overflow: hidden;
  color: rgba(38, 55, 45, 0.12);
  white-space: nowrap;
}

.cert-kinetic-track {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 42px);
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  padding-inline: 40px;
  font-size: clamp(3.5rem, 8.4vw, 8.1rem);
  font-weight: 680;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-transform: uppercase;
  transform-origin: center center;
  will-change: transform;
}

.cert-kinetic-track i {
  color: var(--cert-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.46em;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.cert-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: cert-type;
}

.cert-type-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--cert-line);
  border-radius: 24px;
  counter-increment: cert-type;
}

.cert-type-card::after {
  content: counter(cert-type, decimal-leading-zero);
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(52, 64, 56, 0.14);
  font-size: 2.8rem;
  font-weight: 650;
  letter-spacing: -0.06em;
}

.cert-type-card:first-child {
  background: linear-gradient(145deg, #e4ece3, #f8faf7);
  border-color: rgba(76, 111, 80, 0.2);
}

.cert-type-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
}

.cert-type-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  color: #415448;
  background: #edf2ec;
  border: 1px solid rgba(54, 83, 64, 0.12);
  border-radius: 15px;
  font-size: 1.05rem;
}

.cert-type-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.cert-type-card h3 {
  max-width: 260px;
  margin: 0 0 12px;
  color: var(--cert-ink);
  font-size: 1.23rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cert-type-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.91rem;
}

/* Buyer requirements */
.cert-requirements {
  background: var(--cert-paper);
}

.cert-requirement-grid {
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(50px, 8vw, 96px);
  align-items: center;
}

.cert-document-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(156, 181, 158, 0.18), transparent 34%),
    linear-gradient(145deg, #2d3b32, #425348);
  border-radius: 32px;
}

.cert-document-panel::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cert-document-stack {
  position: relative;
  width: min(310px, calc(100% - 70px));
  height: 360px;
}

.cert-document-sheet {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.cert-document-sheet-back {
  background: rgba(255, 255, 255, 0.12);
  transform: translate(26px, -20px) rotate(5deg);
}

.cert-document-sheet-middle {
  background: rgba(240, 246, 240, 0.34);
  transform: translate(13px, -10px) rotate(2.4deg);
}

.cert-document-sheet-main {
  display: flex;
  flex-direction: column;
  padding: 30px;
  box-sizing: border-box;
  color: var(--cert-ink);
  background: #f8faf7;
  box-shadow: 0 24px 54px rgba(7, 18, 11, 0.26);
}

.cert-document-label {
  margin-bottom: 12px;
  color: #6b7d70;
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cert-document-sheet-main > strong {
  max-width: 230px;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.cert-document-rule {
  width: 42px;
  height: 2px;
  margin: 22px 0;
  background: #769179;
}

.cert-document-sheet-main ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cert-document-sheet-main li {
  padding: 8px 9px;
  color: #55665b;
  background: #e9efea;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 620;
  line-height: 1.3;
}

.cert-document-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #425348;
  font-size: 0.72rem;
  font-weight: 680;
}

.cert-document-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #769c77;
  box-shadow: 0 0 0 4px rgba(118, 156, 119, 0.13);
}

.cert-requirement-copy > p {
  margin: 0;
}

.cert-requirement-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  counter-reset: requirement;
  border-top: 1px solid var(--cert-line);
}

.cert-requirement-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 17px 0;
  counter-increment: requirement;
  border-bottom: 1px solid var(--cert-line);
}

.cert-requirement-list li::before {
  content: counter(requirement, decimal-leading-zero);
  color: #69806f;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.cert-requirement-list i {
  display: none;
}

/* Process */
.cert-process {
  color: #fff;
  background: var(--cert-moss);
}

.cert-process .cert-page-eyebrow {
  color: rgba(222, 235, 223, 0.66);
}

.cert-process .cert-page-heading h2,
.cert-process .cert-page-heading p {
  color: #fff;
}

.cert-process .cert-page-heading p {
  color: rgba(239, 245, 240, 0.7);
}

.cert-process-track {
  position: relative;
}

.cert-process-progress {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #c5d7c7;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.cert-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.cert-process-step {
  position: relative;
  min-height: 270px;
  padding: 30px 26px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.cert-process-step:last-child {
  border-right: 0;
}

.cert-process-number {
  display: inline-flex;
  margin-bottom: 64px;
  color: #b9c9ba;
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.cert-process-step h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.cert-process-step p {
  margin: 0;
  color: rgba(236, 243, 237, 0.66);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* CTA */
.cert-cta-section {
  padding: clamp(68px, 8vw, 104px) 0;
  background: #e9eee9;
}

.cert-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding: clamp(38px, 6vw, 70px);
  overflow: hidden;
  background: #f9fbf8;
  border: 1px solid var(--cert-line);
  border-radius: 30px;
  box-shadow: 0 18px 45px rgba(32, 52, 39, 0.08);
}

.cert-cta::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 320px;
  height: 320px;
  pointer-events: none;
  border: 1px solid rgba(52, 64, 56, 0.09);
  border-radius: 50%;
}

.cert-cta > * {
  position: relative;
  z-index: 1;
}

.cert-cta p {
  max-width: 690px;
  margin: 0;
}

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Strong, readable motion: individual content moves instead of hiding whole sections. */
.cert-motion-preparing .cert-reveal,
.cert-motion-preparing .cert-reveal *,
.cert-motion-preparing .cert-hero-copy > *,
.cert-motion-preparing .cert-hero-visual,
.cert-motion-preparing .cert-hero-visual::after,
.cert-motion-preparing .cert-image-tile {
  animation: none !important;
  transition: none !important;
}

.cert-motion-ready .cert-page-heading.cert-reveal > *,
.cert-motion-ready .cert-overview-copy.cert-reveal > *,
.cert-motion-ready .cert-requirement-copy.cert-reveal > * {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 680ms var(--cert-ease-out),
    transform 780ms var(--cert-ease-out);
  transition-delay: calc(var(--cert-child, 0) * 75ms);
  will-change: opacity, transform;
}

.cert-motion-ready .cert-page-heading.cert-reveal.is-visible > *,
.cert-motion-ready .cert-overview-copy.cert-reveal.is-visible > *,
.cert-motion-ready .cert-requirement-copy.cert-reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.cert-motion-ready .cert-page-heading.cert-reveal > :nth-child(2),
.cert-motion-ready .cert-overview-copy.cert-reveal > :nth-child(2),
.cert-motion-ready .cert-requirement-copy.cert-reveal > :nth-child(2) { --cert-child: 1; }
.cert-motion-ready .cert-page-heading.cert-reveal > :nth-child(3),
.cert-motion-ready .cert-overview-copy.cert-reveal > :nth-child(3),
.cert-motion-ready .cert-requirement-copy.cert-reveal > :nth-child(3) { --cert-child: 2; }
.cert-motion-ready .cert-page-heading.cert-reveal > :nth-child(4),
.cert-motion-ready .cert-overview-copy.cert-reveal > :nth-child(4),
.cert-motion-ready .cert-requirement-copy.cert-reveal > :nth-child(4) { --cert-child: 3; }
.cert-motion-ready .cert-page-heading.cert-reveal > :nth-child(5),
.cert-motion-ready .cert-overview-copy.cert-reveal > :nth-child(5),
.cert-motion-ready .cert-requirement-copy.cert-reveal > :nth-child(5) { --cert-child: 4; }

.cert-motion-ready .cert-type-card.cert-reveal,
.cert-motion-ready .cert-process-step.cert-reveal {
  opacity: 0;
  transform: translate3d(0, 54px, 0) scale(0.975);
  transition:
    opacity 560ms var(--cert-ease-out),
    transform 760ms var(--cert-ease-out),
    border-color 180ms ease,
    box-shadow 180ms ease;
  transition-delay: var(--cert-delay, 0ms);
  will-change: opacity, transform;
}

.cert-motion-ready .cert-type-card.cert-reveal:nth-child(3n + 1) {
  transform: translate3d(-32px, 54px, 0) rotate(-1.2deg) scale(0.975);
}

.cert-motion-ready .cert-type-card.cert-reveal:nth-child(3n) {
  transform: translate3d(32px, 54px, 0) rotate(1.2deg) scale(0.975);
}

.cert-motion-ready .cert-type-card.cert-reveal.is-visible,
.cert-motion-ready .cert-process-step.cert-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
  will-change: auto;
}

.cert-motion-ready .cert-logo-panel.cert-reveal,
.cert-motion-ready .cert-document-panel.cert-reveal {
  opacity: 0;
  clip-path: inset(0 0 42% 0 round 28px);
  transform: translateY(42px) scale(0.96);
  transition:
    opacity 560ms var(--cert-ease-out),
    clip-path 900ms var(--cert-ease-in-out),
    transform 820ms var(--cert-ease-out);
  will-change: opacity, clip-path, transform;
}

.cert-motion-ready .cert-logo-panel.cert-reveal.is-visible,
.cert-motion-ready .cert-document-panel.cert-reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 28px);
  transform: translateY(0);
  will-change: auto;
}

.cert-motion-ready .cert-logo-panel.cert-reveal > div {
  opacity: 0;
  transform: translateY(28px) scale(0.92);
  transition:
    opacity 520ms var(--cert-ease-out),
    transform 680ms var(--cert-ease-out);
  transition-delay: calc(100ms + (var(--cert-item) * 75ms));
}

.cert-motion-ready .cert-logo-panel.cert-reveal.is-visible > div {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cert-motion-ready .cert-document-sheet-main {
  opacity: 1;
  transition:
    opacity 480ms var(--cert-ease-out) 560ms,
    transform 780ms var(--cert-ease-out) 560ms;
  will-change: opacity, transform;
}

.cert-motion-ready .cert-document-sheet-back,
.cert-motion-ready .cert-document-sheet-middle {
  opacity: 1;
  transition:
    opacity 460ms var(--cert-ease-out),
    transform 760ms var(--cert-ease-out);
  will-change: opacity, transform;
}

.cert-motion-ready .cert-document-sheet-back {
  transition-delay: 220ms;
}

.cert-motion-ready .cert-document-sheet-middle {
  transition-delay: 390ms;
}

.cert-motion-ready .cert-document-panel.cert-reveal:not(.is-visible) .cert-document-sheet-back,
.cert-motion-ready .cert-document-panel.cert-reveal:not(.is-visible) .cert-document-sheet-middle {
  opacity: 0;
  transform: translate(0, 34px) rotate(0) scale(0.93);
}

.cert-motion-ready .cert-document-panel.cert-reveal:not(.is-visible) .cert-document-sheet-main {
  opacity: 0;
  transform: translateY(48px) rotate(3deg) scale(0.94);
}

@keyframes cert-hero-item-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cert-hero-title-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(10px); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}

@keyframes cert-hero-visual-in {
  from { opacity: 0; transform: translateY(34px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cert-hero-base-clear {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes cert-image-tile-away {
  0%, 14% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
  100% {
    opacity: 0;
    transform:
      translate3d(var(--cert-tile-x), var(--cert-tile-y), 0)
      rotate(var(--cert-tile-rotation))
      scale(0.78);
  }
}

@keyframes cert-mobile-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.72; }
  50% { transform: translate3d(-8px, 10px, 0) rotate(7deg); opacity: 0.44; }
}

@keyframes cert-mobile-orbit {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
  50% { transform: translate3d(12px, -8px, 0) scale(1.05); opacity: 0.48; }
}

.cert-motion-ready .cert-hero-copy > .cert-page-eyebrow {
  animation: cert-hero-item-in 300ms var(--cert-ease-out) both;
}

.cert-motion-ready .cert-hero-copy > h1 {
  animation: cert-hero-title-in 600ms var(--cert-ease-in-out) 40ms both;
}

.cert-motion-ready .cert-hero-copy > p:last-of-type {
  animation: cert-hero-item-in 300ms var(--cert-ease-out) 120ms both;
}

.cert-motion-ready .cert-hero-actions {
  animation: cert-hero-item-in 300ms var(--cert-ease-out) 180ms both;
}

.cert-motion-ready .cert-hero-visual {
  animation: cert-hero-visual-in 820ms var(--cert-ease-out) 80ms both;
}

.cert-motion-ready .cert-hero-visual::after {
  animation: cert-hero-base-clear 260ms ease-out 100ms both;
}

.cert-motion-ready .cert-image-tile {
  animation: cert-image-tile-away 920ms var(--cert-ease-out) both;
  animation-delay: calc(160ms + (var(--cert-tile-order) * 19ms));
}

.cert-motion-ready .cert-hero-visual img {
  transform: none;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .cert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22, 48, 31, 0.12);
  }

  .cert-page-hero .cert-button-secondary:hover {
    color: var(--cert-ink);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .cert-page-hero .cert-button-secondary:hover::after {
    opacity: 0.68;
    transform: scaleX(1);
  }

  .cert-logo-panel > div,
  .cert-type-icon,
  .cert-type-logo {
    transition:
      transform 180ms var(--cert-ease-out),
      border-color 180ms ease,
      box-shadow 180ms ease;
  }

  .cert-type-card:hover {
    border-color: rgba(56, 88, 65, 0.22);
    box-shadow: var(--cert-shadow);
  }

  .cert-type-card:hover .cert-type-icon,
  .cert-type-card:hover .cert-type-logo {
    transform: translateY(-2px);
  }

  .cert-logo-panel > div:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 88, 65, 0.18);
    box-shadow: 0 12px 28px rgba(24, 48, 32, 0.08);
  }
}

/* Browser zoom below 100% creates an ultra-wide CSS viewport. Keep the
   physical motion distance substantial instead of letting it shrink away. */
@media (min-width: 1800px) {
  .cert-motion-ready .cert-page-heading.cert-reveal > *,
  .cert-motion-ready .cert-overview-copy.cert-reveal > *,
  .cert-motion-ready .cert-requirement-copy.cert-reveal > * {
    transform: translateY(2vw);
  }

  .cert-motion-ready .cert-page-heading.cert-reveal.is-visible > *,
  .cert-motion-ready .cert-overview-copy.cert-reveal.is-visible > *,
  .cert-motion-ready .cert-requirement-copy.cert-reveal.is-visible > * {
    transform: translateY(0);
  }

  .cert-motion-ready .cert-type-card.cert-reveal,
  .cert-motion-ready .cert-process-step.cert-reveal {
    transform: translate3d(0, 2.8vw, 0) scale(0.975);
  }

  .cert-motion-ready .cert-type-card.cert-reveal:nth-child(3n + 1) {
    transform: translate3d(-1.65vw, 2.8vw, 0) rotate(-1.2deg) scale(0.975);
  }

  .cert-motion-ready .cert-type-card.cert-reveal:nth-child(3n) {
    transform: translate3d(1.65vw, 2.8vw, 0) rotate(1.2deg) scale(0.975);
  }

  .cert-motion-ready .cert-type-card.cert-reveal.is-visible,
  .cert-motion-ready .cert-process-step.cert-reveal.is-visible {
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }

  .cert-motion-ready .cert-logo-panel.cert-reveal,
  .cert-motion-ready .cert-document-panel.cert-reveal {
    transform: translateY(2.2vw) scale(0.96);
  }

  .cert-motion-ready .cert-logo-panel.cert-reveal.is-visible,
  .cert-motion-ready .cert-document-panel.cert-reveal.is-visible {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1040px) {
  .cert-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 42px;
  }

  .cert-overview-grid,
  .cert-requirement-grid {
    grid-template-columns: 1fr 1fr;
    gap: 46px;
  }

  .cert-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-process-step:nth-child(2) {
    border-right: 0;
  }

  .cert-process-step:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .cert-cta {
    grid-template-columns: 1fr;
  }

  .cert-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .cert-page-shell {
    width: min(100% - 32px, 680px);
  }

  .cert-page-section {
    padding: 62px 0;
  }

  .cert-page-hero {
    margin-top: 74px;
    background: #fff;
  }

  .cert-page-hero::before {
    content: none;
    position: absolute;
    top: 24px;
    right: 22px;
    width: 88px;
    height: 88px;
    border: 1px solid rgba(85, 112, 93, 0.16);
    border-radius: 42% 58% 48% 52%;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
    animation: cert-mobile-float 8s ease-in-out infinite;
  }

  .cert-page-hero::after {
    content: none;
    position: absolute;
    left: 18px;
    bottom: 32px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 42% 42%, rgba(185, 146, 87, 0.12), transparent 34%),
      radial-gradient(circle at 58% 58%, rgba(127, 154, 128, 0.12), transparent 38%);
    filter: blur(2px);
    pointer-events: none;
    animation: cert-mobile-orbit 10s ease-in-out infinite;
  }

  .cert-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 30px;
    padding-block: 54px 34px;
  }

  .cert-hero-copy {
    max-width: 100%;
  }

  .cert-page-eyebrow {
    margin-bottom: 12px;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .cert-hero-copy .cert-page-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .cert-hero-copy .cert-page-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--cert-gold);
  }

  .cert-page-hero h1 {
    max-width: 640px;
    margin-bottom: 18px;
    font-size: clamp(3.05rem, 14vw, 4.6rem);
    white-space: normal;
  }

  .cert-page-hero .cert-hero-copy > p:last-of-type {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  .cert-hero-actions {
    align-items: center;
    gap: 10px;
    margin-top: 22px;
  }

  .cert-button {
    min-height: 48px;
    padding-inline: 18px;
  }

  .cert-hero-visual {
    height: min(430px, 72vw);
    border-radius: 24px;
    border-color: rgba(23, 35, 29, 0.08);
    box-shadow:
      0 22px 54px rgba(29, 49, 36, 0.14),
      0 1px 0 rgba(255, 255, 255, 0.72) inset;
  }

  .cert-motion-ready .cert-hero-visual {
    animation: none;
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
    transition:
      opacity 720ms var(--cert-ease-out),
      transform 860ms var(--cert-ease-out);
  }

  .cert-motion-ready .cert-hero-visual.cert-mobile-image-ready {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .cert-hero-visual::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 46%, rgba(18, 33, 24, 0.18));
  }

  .cert-overview-grid,
  .cert-requirement-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .cert-logo-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 24px;
  }

  .cert-logo-panel > div {
    min-height: 124px;
    border-radius: 16px;
  }

  .cert-document-panel {
    min-height: 430px;
  }

  .cert-kinetic-band {
    overflow: visible;
  }

  .cert-process {
    background:
      radial-gradient(circle at 92% 12%, rgba(185, 146, 87, 0.08), transparent 30%),
      var(--cert-moss);
  }

  .cert-process-track {
    --cert-mobile-line-x: 18px;
    padding-left: 2px;
  }

  .cert-process-track::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: calc(var(--cert-mobile-line-x) + 1px);
    width: 2px;
    background: rgba(222, 235, 223, 0.18);
  }

  .cert-process-grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .cert-process-progress {
    top: 0;
    left: calc(var(--cert-mobile-line-x) + 1px);
    width: 2px;
    height: 100%;
    background: rgba(238, 244, 238, 0.76);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
    transform: scaleY(0);
    transform-origin: center top;
  }

  .cert-process-step,
  .cert-process-step:nth-child(2) {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 0 0 34px 34px;
    border-right: 0;
    border-bottom: 0;
  }

  .cert-process-step::before {
    content: "";
    position: absolute;
    z-index: 3;
    left: var(--cert-mobile-line-x);
    top: 7px;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 1.5px solid rgba(238, 244, 238, 0.42);
    border-radius: 50%;
    background: rgba(52, 64, 56, 0.98);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.045);
    transition:
      background-color 260ms ease,
      border-color 260ms ease,
      box-shadow 260ms ease,
      transform 260ms var(--cert-ease-out);
    transform: translateX(-50%);
  }

  .cert-process-step.is-progressed::before {
    background: #eef4ee;
    border-color: #eef4ee;
    box-shadow:
      0 0 0 5px rgba(238, 244, 238, 0.09),
      0 0 14px rgba(238, 244, 238, 0.14);
    transform: translateX(-50%) scale(1.06);
  }

  .cert-process-step:last-child {
    padding-bottom: 0;
  }

  .cert-process-number {
    width: max-content;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(222, 235, 223, 0.78);
    font-size: 0.74rem;
  }
}

@media (max-width: 560px) {
  .cert-page-shell {
    width: calc(100% - 28px);
  }

  .cert-page-section {
    padding: 54px 0;
  }

  .cert-page-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .cert-kinetic-track {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding-inline: 12px;
    font-size: clamp(2.45rem, 13vw, 3.5rem);
    letter-spacing: -0.055em;
    line-height: 0.88;
    will-change: transform;
  }

  .cert-page-heading h2,
  .cert-overview-copy h2,
  .cert-requirement-copy h2,
  .cert-cta h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 10vw, 2.65rem);
    letter-spacing: -0.05em;
  }

  .cert-page-hero h1 {
    font-size: clamp(3rem, 16vw, 4.1rem);
    line-height: 0.92;
  }

  .cert-hero-actions,
  .cert-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cert-button {
    width: 100%;
  }

  .cert-page-hero .cert-button-secondary {
    width: auto;
    min-height: auto;
    justify-self: center;
    padding: 8px 2px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #415248;
  }

  .cert-page-hero .cert-button-secondary::after {
    right: 0;
    bottom: 4px;
    left: 0;
    opacity: 0.45;
    transform: scaleX(1);
  }

  .cert-hero-visual {
    height: 320px;
    margin-inline: -4px;
    border-radius: 22px;
  }

  .cert-hero-visual img {
    object-position: center 52%;
    transform: none;
  }

  .cert-hero-visual figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cert-logo-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
    border-radius: 20px;
  }

  .cert-logo-panel > div {
    min-height: 112px;
    border-radius: 15px;
  }

  .cert-logo-panel img {
    width: 58px;
    height: 58px;
  }

  .cert-type-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cert-type-card {
    min-height: 0;
    padding: 22px 22px 54px;
    border-radius: 20px;
  }

  .cert-type-card::after {
    right: 20px;
    bottom: 18px;
    padding-top: 8px;
    color: rgba(65, 82, 72, 0.5);
    border-top: 1px solid rgba(65, 82, 72, 0.16);
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.12em;
  }

  .cert-type-top {
    margin-bottom: 24px;
  }

  .cert-document-panel {
    min-height: 380px;
    border-radius: 24px;
  }

  .cert-document-stack {
    width: min(270px, calc(100% - 44px));
    height: 320px;
  }

  .cert-document-sheet-main {
    padding: 23px;
  }

  .cert-cta {
    padding: 30px 22px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .certifications-page *,
  .certifications-page *::before,
  .certifications-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .cert-motion-ready .cert-reveal,
  .cert-motion-ready .cert-reveal.is-visible,
  .cert-motion-ready .cert-reveal > *,
  .cert-motion-ready .cert-reveal.is-visible > *,
  .cert-motion-ready .cert-logo-panel.cert-reveal > div,
  .cert-motion-ready .cert-logo-panel.cert-reveal.is-visible > div {
    opacity: 1;
    clip-path: none;
    transform: none;
    will-change: auto;
  }

  .cert-process-progress {
    transform: scaleX(1) !important;
    will-change: auto;
  }

  .cert-motion-ready .cert-hero-visual img {
    transform: none;
    will-change: auto;
  }

  .cert-kinetic-track {
    transform: none !important;
  }

  .cert-motion-ready .cert-document-sheet-back,
  .cert-motion-ready .cert-document-sheet-middle {
    animation: none;
    opacity: 1;
    will-change: auto;
  }
}

@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
  .cert-process-progress {
    transform: scaleY(1) !important;
  }

}

@media (prefers-reduced-transparency: reduce) {
  .cert-page-hero .cert-button-secondary,
  .cert-hero-visual figcaption {
    background: #26372d;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .cert-type-card,
  .cert-logo-panel > div,
  .cert-cta {
    border-color: #26372d;
  }
}
