@font-face {
  font-family: "IRANSans";
  src: url("../fonts/irsans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans";
  src: url("../fonts/irsans-b.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-1: #e9edf2;
  --bg-2: #d8dee7;
  --ink: #0f1218;
  --ink-soft: #4a5261;
  --accent: #d71920;
  --panel: rgba(255, 255, 255, 0.58);
  --section-1: #f97316;
  --section-2: #06b6d4;
  --section-3: #22c55e;
  --section-4: #8b5cf6;
  --section-5: #eab308;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "IRANSans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 38%),
    linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body.home-loading {
  overflow: hidden;
  touch-action: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 18% 14%, rgba(215, 25, 32, 0.2), rgba(215, 25, 32, 0) 34%),
    radial-gradient(circle at 84% 84%, rgba(13, 27, 42, 0.24), rgba(13, 27, 42, 0) 38%),
    linear-gradient(150deg, rgba(248, 251, 255, 0.98), rgba(233, 241, 248, 0.96));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  width: min(330px, 92vw);
  padding: 1.35rem 1.1rem 1.2rem;
  display: grid;
  justify-items: center;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.72));
  box-shadow: 0 24px 56px rgba(12, 19, 28, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-loader-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.page-loader-title {
  margin: 0.8rem 0 0.25rem;
  color: #111722;
  font-size: 1rem;
  font-weight: 900;
}

.page-loader-text {
  margin: 0;
  color: #516074;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-loader-progress {
  width: min(230px, 72vw);
  height: 7px;
  margin-top: 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.11);
  box-shadow: inset 0 1px 2px rgba(13, 27, 42, 0.08);
}

.page-loader-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a91016, #d71920, #f04c52);
  transition: width 0.2s ease;
}

.page-loader-percent {
  min-width: 3rem;
  margin-top: 0.35rem;
  color: #253449;
  font-size: 0.72rem;
  font-weight: 800;
  direction: ltr;
}

.page-loader-spinner {
  width: 34px;
  height: 34px;
  margin-top: 0.7rem;
  border: 3px solid rgba(215, 25, 32, 0.16);
  border-top-color: #d71920;
  border-radius: 50%;
  animation: pageLoaderSpin 0.9s linear infinite;
}

@keyframes pageLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.scroll-root {
  position: relative;
  min-height: 760vh;
}

.video-stage {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.video-shell {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  position: relative;
}

.video-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease;
}

.video-layer.secondary {
  opacity: 0;
}

.video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
}

.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0) 30%),
    radial-gradient(circle at 82% 68%, rgba(6, 182, 212, 0.24), rgba(6, 182, 212, 0) 32%),
    linear-gradient(180deg, rgba(15, 18, 24, 0.34) 0%, rgba(15, 18, 24, 0.08) 46%, rgba(15, 18, 24, 0.45) 100%);
}

.content-stage {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 8;
  pointer-events: none;
  padding: 1.2rem;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem 4.5rem 0;
  pointer-events: none;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 190px;
}

.brand-mark img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.9vw, 2.3rem);
  font-size: 1.05rem;
  font-weight: 700;
  color: #141920;
  pointer-events: auto;
}

.main-nav a {
  color: inherit;
  text-decoration: none;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a.active {
  color: #d71920;
  border-color: #d71920;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: auto;
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 18, 24, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(15, 18, 24, 0.1);
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-nav-toggle-line {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #1a212b;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 13;
  background: rgba(8, 12, 20, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.topbar-cta {
  width: 170px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.9rem;
  border-radius: 14px;
  background: #db1d23;
  box-shadow: 0 18px 30px rgba(215, 25, 32, 0.18);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.topbar-cta i {
  font-size: 0.82rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
}

.topbar-cta span {
  line-height: 1;
}

.tool-pill {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 18, 24, 0.08);
  box-shadow: 0 8px 24px rgba(15, 18, 24, 0.08);
  color: #10151d;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.tool-pill.search {
  font-size: 1.35rem;
}

.copy-panel {
  position: absolute;
  width: min(640px, 92vw);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: clamp(1.2rem, 2.3vw, 2.2rem);
  text-align: right;
  backdrop-filter: none;
  box-shadow: none;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.copy-panel.section-one {
  top: 50%;
  right: clamp(2rem, 8vw, 8.5rem);
  left: auto;
  width: min(690px, 44vw);
  padding: 0;
  transform: translateY(calc(-50% + 20px));
}

.copy-panel.section-two {
  top: 50%;
  bottom: auto;
  left: clamp(1.25rem, 3.8vw, 4rem);
  right: auto;
  width: min(680px, 42vw);
  padding: 0;
  transform: translateY(calc(-50% + 28px)) scale(0.985);
  text-align: right;
}

.copy-panel.section-two.active {
  transform: translateY(-50%) scale(1);
}

.copy-panel.section-three {
  top: 50%;
  right: clamp(2rem, 8vw, 8.5rem);
  left: auto;
  width: min(690px, 44vw);
  transform: translateY(calc(-50% + 24px)) scale(0.98);
  text-align: right;
  color: #0f1218;
}

.copy-panel.section-three .copy-title {
  color: #11161f;
}

.copy-panel.section-three .copy-desc {
  color: #4d5766;
}

.copy-panel.section-three.active {
  transform: translateY(-50%) scale(1);
}

.copy-panel.section-four {
  bottom: clamp(1.2rem, 6vh, 3rem);
  left: clamp(1rem, 4vw, 4rem);
  right: auto;
  width: min(980px, 76vw);
  transform: translateY(24px) scale(0.98);
  text-align: left;
}

.copy-panel.section-four.active {
  transform: translateY(0) scale(1);
}

.copy-panel.section-five {
  top: 50%;
  left: 50%;
  right: auto;
  width: min(1100px, 84vw);
  text-align: center;
  direction: rtl;
  transform: translate(-50%, calc(-50% + 24px)) scale(0.98);
}

.copy-panel.section-five.active {
  transform: translate(-50%, -50%) scale(1);
}

.footer-scroll-prompt {
  margin: 1rem auto 1.4rem;
  max-width: 34rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(215, 25, 32, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #b11d22;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 18, 24, 0.08);
}

.copy-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.copy-panel.section-one.active {
  transform: translateY(-50%) scale(1);
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(15, 18, 24, 0.72);
}

.hero-title {
  margin: 0;
  font-size: clamp(3.4rem, 5.5vw, 6rem);
  line-height: 1.08;
  font-weight: 700;
  color: #05080d;
}

.hero-title-accent {
  display: block;
  margin-top: 0.35rem;
  color: #d71920;
}

.hero-desc {
  margin: 1.7rem 0 0;
  max-width: 32ch;
  color: #1c2028;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 2;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  pointer-events: auto;
}

.hero-button {
  min-width: 190px;
  padding: 1rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 30, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #12161f;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(8, 14, 24, 0.08);
}

.hero-button.primary {
  background: #db1d23;
  border-color: #db1d23;
  color: #fff;
  box-shadow: 0 18px 32px rgba(219, 29, 35, 0.22);
}

.hero-button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.hero-button-arrow {
  font-size: 1.6rem;
  line-height: 1;
}

.hero-stat {
  position: fixed;
  left: clamp(1.2rem, 4vw, 4rem);
  bottom: clamp(1.2rem, 6vh, 3.5rem);
  z-index: 9;
  width: 170px;
  padding: 1.1rem 1rem 0.95rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 40px rgba(10, 14, 24, 0.12);
  backdrop-filter: blur(12px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.copy-panel.section-one.active ~ .hero-stat {
  opacity: 1;
  transform: translateY(0);
}

.hero-stat-value {
  display: block;
  font-size: 3rem;
  line-height: 0.95;
  font-weight: 700;
  color: #e02227;
}

.hero-stat-label {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f131b;
}

.copy-kicker {
  margin: 0;
  color: var(--accent);
  font-size: clamp(0.84rem, 1.2vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.copy-title {
  margin: 0.65rem 0 0;
  font-size: clamp(1.75rem, 4.3vw, 3.35rem);
  line-height: 1.24;
  font-weight: 700;
  color: #08101e;
}

.section-two .copy-title {
  color: #0b1018;
}

.section-four .copy-title,
.section-five .copy-title {
  color: #141920;
}

.copy-desc {
  margin: 1.1rem auto 0;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.35vw, 1.13rem);
  line-height: 1.9;
}

.section-two .copy-desc {
  margin: 1.25rem 0 0;
  max-width: 63ch;
  color: #414957;
}

.section-two-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.55rem, 2.4vw, 2.2rem);
  padding: 2rem 0 2rem 2.5rem;
}

.section-two-intro {
  position: relative;
  padding-right: 1.6rem;
}

.section-two-intro .copy-title {
  margin: 0.9rem 0 0;
  max-width: 13ch;
  font-size: clamp(2.1rem, 3.6vw, 3.8rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-two-intro .copy-title span {
  display: block;
  color: var(--accent);
}

.section-two-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #3d4552;
  font-size: clamp(0.82rem, 0.95vw, 1rem);
  font-weight: 700;
}

.section-two-eyebrow-line {
  width: 38px;
  height: 3px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: var(--accent);
}

.section-two-note {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
  color: #5b6370;
}

.section-two-note p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.8;
  font-weight: 700;
}

.section-two-note-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(215, 25, 32, 0.1);
}

.section-two-companies {
  width: min(610px, 100%);
}

.section-two-companies-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: #59616e;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-two-companies-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(15, 18, 24, 0), rgba(15, 18, 24, 0.14));
}

.section-two-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.company-card {
  position: relative;
  min-width: 0;
  height: clamp(84px, 8vw, 112px);
  display: grid;
  place-items: center;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    0 14px 32px rgba(15, 18, 24, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.company-card::before {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.company-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 38px rgba(15, 18, 24, 0.11);
}

.company-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.company-card img {
  width: 100%;
  height: 100%;
  max-width: 135px;
  max-height: 72px;
  object-fit: contain;
  display: block;
  filter: saturate(0.85);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.company-card:hover img {
  filter: saturate(1);
  transform: scale(1.035);
}

.glass-card,
.brand-logo-card,
.feature-card,
.mini-stat,
.capability-card,
.showcase-block,
.certificate-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 251, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 40px rgba(10, 14, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.rail-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 18, 24, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #131923;
  font-size: 1.4rem;
  line-height: 1;
}

.brand-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.brand-logo-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 20px;
  color: #47505d;
  font-size: 1rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.feature-card {
  padding: 1.2rem 1rem;
  border-radius: 20px;
  text-align: center;
}

.feature-card h3 {
  margin: 0.95rem 0 0.5rem;
  font-size: 1.05rem;
  color: #11161f;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #5f6a76;
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(15, 18, 24, 0.1);
  color: #11161f;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.82);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mini-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  color: #12171f;
  text-align: center;
}

.mini-stat span {
  display: block;
  color: #e02227;
  font-size: 1.8rem;
  font-weight: 700;
}

.mini-stat small {
  display: block;
  margin-top: 0.35rem;
  color: #4e5867;
  font-size: 0.9rem;
  font-weight: 700;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.capability-card {
  min-height: 178px;
  padding: 1.2rem 1rem;
  border-radius: 22px;
  text-align: center;
}

.capability-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 18, 24, 0.08);
  color: #11161f;
  font-size: 1.4rem;
}

.capability-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.02rem;
  color: #11161f;
}

.capability-card p {
  margin: 0;
  color: #606978;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Section four â€” capabilities */
.copy-panel.section-four {
  top: 50%;
  bottom: auto;
  left: clamp(1.25rem, 3.8vw, 4rem);
  right: auto;
  width: min(680px, 42vw);
  padding: 0;
  direction: rtl;
  text-align: right;
  transform: translateY(calc(-50% + 28px)) scale(0.985);
}

.copy-panel.section-four.active {
  transform: translateY(-50%) scale(1);
}

.section-four-shell {
  position: relative;
  padding: clamp(1.35rem, 2vw, 2rem);
  /* border: 1px solid rgba(255, 255, 255, 0.72); */
  border-radius: 28px;
  /* background: */
    /* linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(246, 248, 251, 0.6)); */
  box-shadow:
    0 24px 60px rgba(15, 18, 24, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.section-four-shell::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -105px;
  left: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 25, 32, 0.14), transparent 68%);
  pointer-events: none;
}

.section-four-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  color: #5a6370;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-four-eyebrow-line {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.section-four .copy-title {
  margin: 0;
  color: #11161f;
  font-size: clamp(2rem, 3.15vw, 3.25rem);
  line-height: 1.28;
}

.section-four .copy-title span {
  color: var(--accent);
}

.section-four .copy-desc {
  max-width: 580px;
  margin: 0.55rem 0 0;
  color: #505a68;
  font-size: 0.9rem;
  line-height: 1.95;
}

.section-four .capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.section-four .capability-card {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border-radius: 18px;
  text-align: right;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 12px 28px rgba(15, 18, 24, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.section-four .capability-card::after {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  right: 0;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.25);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-four .capability-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(215, 25, 32, 0.16);
  box-shadow: 0 18px 34px rgba(15, 18, 24, 0.1);
}

.section-four .capability-card:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

.section-four .capability-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(215, 25, 32, 0.12);
  color: var(--accent);
  background: linear-gradient(145deg, #fff, rgba(215, 25, 32, 0.055));
  font-size: 1.08rem;
  transition: color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.section-four .capability-card:hover .capability-icon {
  color: #fff;
  background: var(--accent);
  transform: rotate(-5deg) scale(1.06);
}

.capability-copy {
  min-width: 0;
}

.section-four .capability-card h3 {
  margin: 0 0 0.25rem;
  color: #151a22;
  font-size: 0.9rem;
}

.section-four .capability-card p {
  margin: 0;
  color: #626c79;
  font-size: 0.73rem;
  line-height: 1.75;
}

.section-four .capability-card-wide {
  grid-column: 1 / -1;
  padding-left: 1rem;
}

.capability-arrow {
  margin-right: auto;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(215, 25, 32, 0.08);
  font-size: 0.78rem;
  transition: color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.capability-card-wide:hover .capability-arrow {
  color: #fff;
  background: var(--accent);
  transform: translateX(-4px);
}

.section-four-head > *,
.section-four .capability-card {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.section-four.active .section-four-head > *,
.section-four.active .capability-card {
  opacity: 1;
  transform: translateX(0);
}

.section-four.active .section-four-eyebrow { transition-delay: 0.08s; }
.section-four.active .copy-title { transition-delay: 0.15s; }
.section-four.active .copy-desc { transition-delay: 0.22s; }
.section-four.active .capability-card:nth-child(1) { transition-delay: 0.28s; }
.section-four.active .capability-card:nth-child(2) { transition-delay: 0.34s; }
.section-four.active .capability-card:nth-child(3) { transition-delay: 0.4s; }
.section-four.active .capability-card:nth-child(4) { transition-delay: 0.46s; }
.section-four.active .capability-card:nth-child(5) { transition-delay: 0.52s; }

.section-four:not(.active) .section-four-head > *,
.section-four:not(.active) .capability-card {
  transition-delay: 0s;
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1rem;
  margin-top: 1.8rem;
}

.showcase-block {
  padding: 1.2rem;
  border-radius: 24px;
}

.showcase-block.compact {
  min-height: 0;
}

.showcase-title {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  color: #d71920;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.showcase-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 24px rgba(10, 14, 24, 0.06);
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #11161f;
}

.summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.summary-metrics div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  color: #4b5563;
}

.summary-metrics strong {
  color: #d71920;
  font-size: 0.95rem;
}

.project-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.project-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 20px;
  color: #fff;
  font-weight: 700;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(10, 14, 24, 0.16);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 18, 0.05), rgba(3, 8, 18, 0.72));
}

.project-card .project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
  z-index: 1;
}

.project-card .project-label {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-a {
  background-image: linear-gradient(135deg, rgba(7, 34, 81, 0.72), rgba(5, 15, 28, 0.42));
}

.video-fallback .video-shell {
  background:
    linear-gradient(135deg, rgba(8, 20, 32, 0.28), rgba(8, 20, 32, 0.62)),
    url("../images/assets/industrial-panorama.webp") center / cover no-repeat;
}

.video-fallback .video-layer {
  opacity: 0 !important;
}

.project-b {
  background-image: linear-gradient(135deg, rgba(99, 40, 8, 0.62), rgba(5, 15, 28, 0.42));
}

.project-c {
  background-image: linear-gradient(135deg, rgba(4, 55, 70, 0.64), rgba(5, 15, 28, 0.42));
}

.certificate-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.certificate-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #8b6e1b;
  font-weight: 700;
}

.showcase-text {
  margin: 0;
  color: #545f6c;
  font-size: 0.95rem;
  line-height: 1.95;
}

.section-rail {
  position: fixed;
  right: clamp(1rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.05rem;
  padding-right: 1rem;
}

.section-rail::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  right: 0;
  width: 2px;
  background: rgba(15, 18, 24, 0.12);
}

.section-step {
  position: relative;
  min-width: 48px;
  padding-right: 0.8rem;
  text-align: right;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f1218;
  transition: color 0.2s ease, transform 0.2s ease;
}

.section-step.active {
  color: #d71920;
  transform: translateX(-0.3rem);
}

.section-step.active::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -1rem;
  width: 2px;
  height: 2.8rem;
  background: #d71920;
  transform: translateY(-50%);
}

.spacer {
  height: 100vh;
}

.spacer-top {
  height: 26vh;
}

.spacer-bottom {
  height: 70vh;
}

.spacer-footer {
  height: 100vh;
}

.footer-anchor {
  height: 1px;
}

.scene {
  height: 98vh;
}

.site-footer {
  position: relative;
  z-index: 9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: #0f1218;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-inner {
  width: min(1120px, 100%);
  padding: 2.4rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(15, 18, 24, 0.16);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(15, 18, 24, 0.1);
}

.footer-brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.footer-brand h2 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
  color: #0f1218;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #4a5261;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-column h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #10151d;
}

.footer-column a,
.footer-column span {
  font-size: 0.95rem;
  color: #4a5261;
  text-decoration: none;
  line-height: 1.9;
}

.footer-column a:hover {
  color: #d71920;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(15, 18, 24, 0.1);
  font-size: 0.9rem;
  color: #4a5261;
}

.scene-one {
  background:
    radial-gradient(circle at 15% 32%, rgba(249, 115, 22, 0.24), rgba(249, 115, 22, 0) 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.scene-two {
  background:
    radial-gradient(circle at 80% 65%, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08));
}

.scene-three {
  background:
    radial-gradient(circle at 68% 24%, rgba(34, 197, 94, 0.24), rgba(34, 197, 94, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12));
}

.scene-four {
  background:
    radial-gradient(circle at 22% 72%, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.1));
}

.scene-five {
  background:
    radial-gradient(circle at 78% 20%, rgba(234, 179, 8, 0.24), rgba(234, 179, 8, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14));
}

.hint {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 11;
  background: rgba(7, 13, 26, 0.82);
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hint.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .copy-panel {
    border-radius: 18px;
    text-align: center;
    direction: rtl;
    left: 50%;
    right: auto;
    transform: translate(-50%, 22px) scale(0.985);
  }

  .copy-panel.active {
    transform: translate(-50%, 0) scale(1);
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 1rem 0;
    gap: 1rem;
  }

  .brand-mark {
    align-items: center;
    order: -1;
  }

  .brand-mark img {
    width: 68px;
    height: 68px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  .copy-panel.section-one {
    top: 54%;
    width: min(92vw, 680px);
    right: auto;
    left: 50%;
    transform: translate(-50%, calc(-50% + 22px)) scale(0.985);
    text-align: center;
  }

  .copy-panel.section-two {
    top: 54%;
    bottom: auto;
    left: 50%;
    text-align: right;
    transform: translate(-50%, calc(-50% + 22px)) scale(0.985);
  }

  .copy-panel.section-three {
    top: 54%;
    right: auto;
    left: 50%;
    transform: translate(-50%, calc(-50% + 22px)) scale(0.985);
    text-align: center;
  }

  .copy-panel.section-four {
    bottom: 8vh;
    right: auto;
    left: 50%;
    transform: translate(-50%, 22px) scale(0.985);
  }

  .copy-panel.section-five {
    top: 8vh;
    left: 50%;
    transform: translate(-50%, 22px) scale(0.985);
    text-align: center;
    direction: rtl;
  }

  .copy-panel.section-two.active,
  .copy-panel.section-three.active,
  .copy-panel.section-four.active,
  .copy-panel.section-five.active {
    transform: translate(-50%, 0) scale(1);
  }

  .copy-panel.section-two.active {
    transform: translate(-50%, -50%) scale(1);
  }

  .copy-panel.section-one.active {
    transform: translate(-50%, -50%) scale(1);
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stat {
    left: 1rem;
    bottom: 1rem;
    width: 140px;
  }

  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .section-two-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logos,
  .feature-grid,
  .stats-row,
  .capability-grid,
  .project-row,
  .certificate-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-rail {
    right: 0.5rem;
  }
}

@media (max-width: 560px) {
  .scroll-root {
    min-height: 350vh;
  }

  .scene,
  .spacer {
    height: 105vh;
  }

  .spacer-top {
    height: 18vh;
  }

  .spacer-bottom {
    height: 80vh;
  }

  .topbar {
    padding-top: 0.8rem;
  }

  .topbar-cta {
    width: 120px;
    height: 42px;
  }

  .tool-pill {
    width: 42px;
    height: 42px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-button {
    width: 100%;
    min-width: 0;
  }

  .hero-stat {
    width: 118px;
    padding: 0.85rem 0.7rem;
  }

  .hero-stat-value {
    font-size: 2.35rem;
  }

  .brand-logos,
  .feature-grid,
  .stats-row,
  .capability-grid,
  .project-row,
  .certificate-row {
    grid-template-columns: 1fr;
  }

  .section-two-grid {
    grid-template-columns: 1fr;
  }

  .rail-arrow {
    display: none;
  }

  .section-rail {
    display: none;
  }
}

/* =========================================================
   Ø¨Ø§Ø²Ø·Ø±Ø§Ø­ÛŒ Ùˆ Ø§Ù†ÛŒÙ…ÛŒØ´Ù† Ø³Ú©Ø´Ù† Ø¯ÙˆÙ…
   ========================================================= */

.section-two-intro > *,
.section-two-companies-head,
.section-two-grid .company-card {
  opacity: 0;
  filter: blur(9px);
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 1.15s ease,
    transform 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.15s ease;
  will-change: opacity, transform, filter;
}

.copy-panel.section-two.active .section-two-intro > *,
.copy-panel.section-two.active .section-two-companies-head,
.copy-panel.section-two.active .section-two-grid .company-card {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.copy-panel.section-two.active .section-two-eyebrow {
  transition-delay: 0ms;
}

.copy-panel.section-two.active .copy-title {
  transition-delay: 90ms;
}

.copy-panel.section-two.active .copy-desc {
  transition-delay: 180ms;
}

.copy-panel.section-two.active .section-two-note {
  transition-delay: 270ms;
}

.copy-panel.section-two.active .section-two-companies-head {
  transition-delay: 340ms;
}

.copy-panel.section-two.active .company-card:nth-child(1) {
  transition-delay: 400ms;
}

.copy-panel.section-two.active .company-card:nth-child(2) {
  transition-delay: 460ms;
}

.copy-panel.section-two.active .company-card:nth-child(3) {
  transition-delay: 520ms;
}

.copy-panel.section-two.active .company-card:nth-child(4) {
  transition-delay: 580ms;
}

.copy-panel.section-two.active .company-card:nth-child(5) {
  transition-delay: 640ms;
}

.copy-panel.section-two.active .company-card:nth-child(6) {
  transition-delay: 700ms;
}

/* Ø®Ø±ÙˆØ¬ Ø¨Ø¯ÙˆÙ† ØªØ£Ø®ÛŒØ± Ø§Ù†Ø¬Ø§Ù… Ù…ÛŒâ€ŒØ´ÙˆØ¯ ØªØ§ Ù…Ø­ÙˆØ´Ø¯Ù† Ø³Ú©Ø´Ù† Ø¨Ø§ ÙˆÛŒØ¯ÛŒÙˆ Ù‡Ù…Ø§Ù‡Ù†Ú¯ Ø¨Ù…Ø§Ù†Ø¯. */
.copy-panel.section-two:not(.active) .section-two-intro > *,
.copy-panel.section-two:not(.active) .section-two-companies-head,
.copy-panel.section-two:not(.active) .section-two-grid .company-card {
  transition-delay: 0ms;
}

@media (max-width: 1100px) {
  .copy-panel.section-two {
    right: clamp(2rem, 5vw, 4rem);
    left: auto;
    width: min(610px, 52vw);
    text-align: right;
    transform: translateY(calc(-50% + 24px)) scale(0.985);
  }

  .copy-panel.section-two.active {
    transform: translateY(-50%) scale(1);
  }

  .section-two-intro .copy-title {
    font-size: clamp(2rem, 3.4vw, 3.2rem);
  }
}

@media (max-width: 768px) {
  .copy-panel.section-two {
    top: auto;
    right: 1rem;
    left: 1rem;
    bottom: 1.25rem;
    width: auto;
    max-height: calc(100vh - 8.5rem);
    overflow-y: auto;
    text-align: right;
    transform: translateY(20px) scale(0.985);
    scrollbar-width: none;
  }

  .copy-panel.section-two::-webkit-scrollbar {
    display: none;
  }

  .copy-panel.section-two.active {
    transform: translateY(0) scale(1);
  }

  .section-two-shell {
    gap: 1.2rem;
    padding: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 20px 45px rgba(15, 18, 24, 0.13);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .section-two-intro {
    padding-right: 0.9rem;
  }

  .section-two-intro .copy-title {
    max-width: none;
    font-size: clamp(1.8rem, 7.4vw, 2.6rem);
  }

  .section-two .copy-desc {
    max-width: 48ch;
    font-size: 0.9rem;
  }

  .section-two-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .company-card {
    height: 78px;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .copy-panel.section-two {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .section-two-shell {
    padding: 1.05rem;
    border-radius: 20px;
  }

  .section-two-intro .copy-title {
    margin-top: 0.65rem;
    font-size: clamp(1.55rem, 7.2vw, 2rem);
  }

  .section-two .copy-desc {
    margin-top: 0.8rem;
    line-height: 1.75;
  }

  .section-two-note {
    margin-top: 0.85rem;
  }

  .section-two-note p {
    font-size: 0.78rem;
  }

  .section-two-grid {
    gap: 0.55rem;
  }

  .company-card {
    height: 64px;
    padding: 0.55rem;
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-two-intro > *,
  .section-two-companies-head,
  .section-two-grid .company-card {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    filter: none !important;
  }
}
/* Ø¨Ù‡ÛŒÙ†Ù‡â€ŒØ³Ø§Ø²ÛŒ Ù…Ø®ØµÙˆØµ ÙˆÛŒØ¯ÛŒÙˆÙ‡Ø§ÛŒ Scroll Scrub */
.video-layer {
  will-change: opacity;
  transition: opacity 180ms linear;
  contain: strict;
}

.video-layer video {
  backface-visibility: hidden;
  transform: translateZ(0) scaleX(-1);
  -webkit-transform: translateZ(0) scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
  .video-layer,
  .copy-panel {
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Ø¨Ø§Ø²Ø·Ø±Ø§Ø­ÛŒ Ùˆ Ø§Ù†ÛŒÙ…ÛŒØ´Ù† Ø³Ú©Ø´Ù† Ø³ÙˆÙ…
   ========================================================= */

.copy-panel.section-three {
  top: 50%;
  right: clamp(2rem, 6vw, 7rem);
  left: auto;
  width: min(780px, 52vw);
  padding: 0;
  color: #111720;
  transform: translateY(calc(-50% + 28px)) scale(0.985);
}

.copy-panel.section-three.active {
  transform: translateY(-50%) scale(1);
}

.section-three-shell {
  position: relative;
  padding: clamp(1.4rem, 2vw, 2.15rem);
  /* border: 1px solid rgba(255, 255, 255, 0.72); */
  border-radius: 28px;
  /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(244, 247, 251, 0.66)); */
  box-shadow: 0 22px 52px rgba(15, 18, 24, 0.11);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(17px);
  overflow: hidden;
}

.section-three-shell::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(215, 25, 32, 0.09);
  filter: blur(5px);
  pointer-events: none;
}

.section-three-head {
  position: relative;
  padding-right: 1rem;
}

.section-three-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #3d4552;
  font-size: clamp(0.82rem, 0.95vw, 1rem);
  font-weight: 700;
}

.section-three-eyebrow-line {
  width: 38px;
  height: 3px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: var(--accent);
}

.section-three .copy-title {
  margin-top: 0.75rem;
  color: #0b1018;
  font-size: clamp(2rem, 3.25vw, 3.55rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-three .copy-title span {
  color: var(--accent);
}

.section-three .copy-desc {
  margin: 0.9rem 0 0;
  max-width: 58ch;
  color: #48515e;
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  line-height: 1.9;
}

.section-three .feature-grid {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.section-three .feature-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  text-align: right;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 18, 24, 0.07);
  box-shadow: 0 10px 25px rgba(15, 18, 24, 0.055);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.section-three .feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(15, 18, 24, 0.1);
}

.section-three .feature-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  flex: 0 0 48px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  font-size: 1.45rem;
  background: linear-gradient(145deg, #eb3036, #bb1117);
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.22);
}

.section-three .feature-card h3 {
  margin: 0 0 0.28rem;
  color: #151a22;
  font-size: 0.98rem;
}

.section-three .feature-card p {
  font-size: 0.78rem;
  line-height: 1.75;
}

.section-three .stats-row {
  position: relative;
  gap: 0;
  margin-top: 0.85rem;
  padding: 0.7rem 0;
  border: 1px solid rgba(15, 18, 24, 0.06);
  border-radius: 18px;
  background: rgba(15, 18, 24, 0.88);
  overflow: hidden;
}

.section-three .mini-stat {
  position: relative;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.section-three .mini-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.section-three .mini-stat span {
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.section-three .mini-stat small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
}

.section-three-head > *,
.section-three .feature-card,
.section-three .stats-row {
  opacity: 0;
  filter: blur(9px);
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 1.05s ease,
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.05s ease;
  will-change: opacity, transform, filter;
}

.copy-panel.section-three.active .section-three-head > *,
.copy-panel.section-three.active .feature-card,
.copy-panel.section-three.active .stats-row {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.copy-panel.section-three.active .section-three-eyebrow { transition-delay: 0ms; }
.copy-panel.section-three.active .copy-title { transition-delay: 90ms; }
.copy-panel.section-three.active .copy-desc { transition-delay: 180ms; }
.copy-panel.section-three.active .feature-card:nth-child(1) { transition-delay: 260ms; }
.copy-panel.section-three.active .feature-card:nth-child(2) { transition-delay: 330ms; }
.copy-panel.section-three.active .feature-card:nth-child(3) { transition-delay: 400ms; }
.copy-panel.section-three.active .feature-card:nth-child(4) { transition-delay: 470ms; }
.copy-panel.section-three.active .stats-row { transition-delay: 550ms; }

.copy-panel.section-three:not(.active) .section-three-head > *,
.copy-panel.section-three:not(.active) .feature-card,
.copy-panel.section-three:not(.active) .stats-row {
  transition-delay: 0ms;
}

@media (max-width: 1100px) {
  .copy-panel.section-three {
    right: clamp(1.5rem, 4vw, 3.5rem);
    width: min(700px, 58vw);
  }
}

@media (max-width: 768px) {
  .copy-panel.section-three {
    top: auto;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    width: auto;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    transform: translateY(20px) scale(0.985);
    scrollbar-width: none;
  }

  .copy-panel.section-three::-webkit-scrollbar { display: none; }
  .copy-panel.section-three.active { transform: translateY(0) scale(1); }
  .section-three-shell { padding: 1.25rem; border-radius: 23px; }
  .section-three .copy-title { font-size: clamp(1.65rem, 7vw, 2.5rem); }
}

@media (max-width: 560px) {
  .copy-panel.section-three {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .section-three-shell { padding: 1rem; border-radius: 20px; }
  .section-three .feature-grid { grid-template-columns: 1fr; gap: 0.55rem; }
  .section-three .feature-card { padding: 0.75rem; }
  .section-three .feature-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .section-three .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-three .mini-stat:nth-child(2)::after { display: none; }
  .section-three .mini-stat:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
}

@media (prefers-reduced-motion: reduce) {
  .section-three-head > *,
  .section-three .feature-card,
  .section-three .stats-row {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    filter: none !important;
  }
}

/* =========================================================
   Ø¨Ø§Ø²Ø·Ø±Ø§Ø­ÛŒ Ø³Ú©Ø´Ù† Ø§ÙˆÙ„
   ========================================================= */

.copy-panel.section-one {
  top: 50%;
  right: clamp(5.5rem, 8vw, 10rem);
  left: auto;
  width: min(650px, 43vw);
  padding: 0;
  text-align: right;
  transform: translateY(calc(-50% + 28px));
}

.copy-panel.section-one.active {
  transform: translateY(-50%);
}

.hero-content {
  position: relative;
  padding: 2.4rem 0 2.4rem 2.4rem;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 3s ease,
    transform 3s cubic-bezier(0.16, 1, 0.3, 1),
    filter 3s ease;
  will-change: opacity, transform, filter;
}


@keyframes heroRevealIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.copy-panel.section-one.active .hero-eyebrow {
  animation: heroRevealIn 3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0ms;
}

.copy-panel.section-one.active .hero-title {
  animation: heroRevealIn 3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 80ms;
}

.copy-panel.section-one.active .hero-desc {
  animation: heroRevealIn 3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 160ms;
}

.copy-panel.section-one.active .hero-trust-row {
  animation: heroRevealIn 3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 240ms;
}

.copy-panel.section-one.active .hero-actions {
  animation: heroRevealIn 3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 320ms;
}

.copy-panel.section-one.active .hero-content > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.15rem;
  color: #3d4552;
  font-size: clamp(0.82rem, 0.95vw, 1rem);
  font-weight: 700;
}

.hero-eyebrow-line {
  width: 38px;
  height: 3px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: #d71920;
}

.hero-title {
  margin: 0;
  max-width: 620px;
  color: #070a10;
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1;
}

.hero-title-main,
.hero-title-accent {
  display: block;
}

.hero-title-main {
  color: #070a10;
  font-size: clamp(2.55rem, 4.2vw, 4.6rem);
  line-height: 1.08;
}

.hero-title-accent {
  position: relative;
  width: fit-content;
  margin-top: 0.25rem;
  color: #d71920;
  font-size: clamp(2.35rem, 3.85vw, 4.2rem);
  line-height: 1.14;
}

.hero-title-accent::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  width: 34%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d71920, rgba(215, 25, 32, 0));
}

.hero-desc {
  position: relative;
  margin: 2rem 0 0;
  max-width: 69ch;
  padding-right: 1.25rem;
  color: #333b48;
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  font-weight: 500;
  line-height: 2.05;
}

.hero-desc::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  right: 0;
  width: 3px;
  height: calc(100% - 1.3rem);
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.38);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: fit-content;
  margin-top: 1.8rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    0 16px 35px rgba(17, 24, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-trust-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
}

.hero-trust-item strong {
  color: #d71920;
  font-size: 1.25rem;
  font-weight: 700;
  direction: ltr;
}

.hero-trust-item span {
  color: #343c48;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(15, 18, 24, 0.14);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.7rem;
  pointer-events: auto;
}

.hero-button {
  min-width: 0;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.85rem 1.6rem;
  border-radius: 16px;
  color: #111720;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.hero-button:hover {
  transform: translateY(-3px);
}

.hero-button.primary {
  min-width: 205px;
  border: 1px solid #d71920;
  background: linear-gradient(135deg, #e31c23, #c71017);
  color: #fff;
  box-shadow:
    0 18px 34px rgba(215, 25, 32, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-button.primary:hover {
  box-shadow:
    0 23px 42px rgba(215, 25, 32, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-button-icon {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.hero-button.primary:hover .hero-button-icon {
  transform: translateX(-5px);
}

.hero-button.secondary {
  min-width: 200px;
  border: 1px solid rgba(15, 18, 24, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: #171c25;
  box-shadow: 0 15px 34px rgba(15, 18, 24, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-button.secondary:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 38px rgba(15, 18, 24, 0.12);
}

.hero-button-circle {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111720;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}

.hero-stat {
  display: none !important;
}

@media (max-width: 1100px) {
  .copy-panel.section-one {
    top: 50%;
    right: clamp(2.5rem, 5vw, 5rem);
    left: auto;
    width: min(600px, 52vw);
    text-align: right;
    transform: translateY(calc(-50% + 28px));
  }

  .copy-panel.section-one.active {
    transform: translateY(-50%);
  }

  .hero-title-main {
    font-size: clamp(2.45rem, 4.4vw, 4.1rem);
  }

  .hero-title-accent {
    font-size: clamp(2.25rem, 4.05vw, 3.9rem);
  }

  .hero-trust-row {
    gap: 0.8rem;
  }
}

@media (max-width: 768px) {
  .copy-panel.section-one {
    top: auto;
    right: 1.25rem;
    left: 1.25rem;
    bottom: 2rem;
    width: auto;
    text-align: right;
    transform: translateY(20px);
  }

  .copy-panel.section-one.active {
    transform: translateY(0);
  }

  .hero-content {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 20px 45px rgba(15, 18, 24, 0.13);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .hero-title-main {
    font-size: clamp(2.2rem, 9.8vw, 3.5rem);
  }

  .hero-title-accent {
    font-size: clamp(2rem, 9.1vw, 3.15rem);
  }

  .hero-desc {
    margin: 1.6rem 0 0;
    max-width: none;
    font-size: 0.95rem;
  }

  .hero-trust-row {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-button,
  .hero-button.primary,
  .hero-button.secondary {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .copy-panel.section-one {
    right: 0.8rem;
    left: 0.8rem;
    bottom: 1rem;
  }

  .hero-content {
    padding: 1.15rem;
    border-radius: 20px;
  }

  .hero-eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.76rem;
  }

  .hero-title-main {
    font-size: clamp(1.9rem, 9.4vw, 2.6rem);
  }

  .hero-title-accent {
    font-size: clamp(1.7rem, 8.7vw, 2.35rem);
  }

  .hero-desc {
    margin-top: 1.3rem;
    padding-right: 0.9rem;
    font-size: 0.85rem;
    line-height: 1.9;
  }

  .hero-trust-row {
    gap: 0.55rem;
    padding: 0.7rem;
  }

  .hero-trust-item {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  .hero-trust-item strong {
    font-size: 1rem;
  }

  .hero-trust-item span {
    font-size: 0.68rem;
  }

  .hero-trust-divider {
    height: 32px;
  }

  .hero-button {
    min-height: 52px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

/* Final responsive refinements for section four */
@media (max-width: 1100px) {
  .copy-panel.section-four {
    width: min(650px, 48vw);
  }

  .section-four-shell {
    padding: 1.25rem;
  }
}

@media (max-width: 900px) {
  .copy-panel.section-four {
    top: 54%;
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(92vw, 650px);
    transform: translate(-50%, calc(-50% + 22px)) scale(0.985);
    text-align: right;
  }

  .copy-panel.section-four.active {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 560px) {
  .section-four-shell {
    padding: 1rem;
    border-radius: 21px;
  }

  .section-four .copy-title {
    font-size: 1.8rem;
  }

  .section-four .copy-desc {
    font-size: 0.78rem;
    line-height: 1.8;
  }

  .section-four .capability-grid {
    gap: 0.55rem;
    margin-top: 0.85rem;
  }

  .section-four .capability-card {
    gap: 0.55rem;
    padding: 0.68rem;
    border-radius: 15px;
  }

  .section-four .capability-icon {
    flex-basis: 39px;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .section-four .capability-card h3 {
    font-size: 0.78rem;
  }

  .section-four .capability-card p {
    display: none;
  }

  .capability-arrow {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-four-head > *,
  .section-four .capability-card,
  .section-four .capability-icon,
  .capability-arrow {
    transition: none !important;
  }
}

/* Section five â€” featured projects, certificates and achievements */
.copy-panel.section-five {
  top: 50%;
  right: clamp(4.8rem, 8vw, 8.5rem);
  left: auto;
  width: min(700px, 46vw);
  padding: 0;
  text-align: right;
  direction: rtl;
  transform: translateY(calc(-50% + 28px)) scale(0.985);
}

.copy-panel.section-five.active {
  transform: translateY(-50%) scale(1);
}

.section-five-shell {
  position: relative;
  padding: clamp(1.3rem, 2vw, 2rem);
  /* border: 1px solid rgba(255, 255, 255, 0.76); */
  border-radius: 28px;
  /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(245, 247, 250, 0.62)); */
  box-shadow: 0 24px 64px rgba(15, 18, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.section-five-shell::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 25, 32, 0.15), transparent 69%);
  pointer-events: none;
}

.section-five-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  color: #596270;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-five-eyebrow-line {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.section-five .copy-title {
  margin: 0;
  color: #11161f;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 1.28;
}

.section-five .copy-title span { color: var(--accent); }

.section-five .copy-desc {
  max-width: 610px;
  margin: 0.55rem 0 0;
  color: #505a68;
  font-size: 0.88rem;
  line-height: 1.9;
}

.section-five-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(15, 18, 24, 0.08);
}

.section-five-tab {
  min-height: 40px;
  padding: 0.62rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5a6471;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.section-five-tab.is-active {
  background: linear-gradient(135deg, #d71920, #ba1017);
  color: #fff;
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.24);
}

.section-five-view {
  margin-top: 1rem;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

.section-five-overview {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.section-five-certificates {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  pointer-events: none;
}

.section-five-shell[data-five-mode="certificates"] .section-five-overview {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-24px);
  pointer-events: none;
}

.section-five-shell[data-five-mode="certificates"] .section-five-certificates {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.featured-projects {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.featured-project {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 15px 34px rgba(15, 18, 24, 0.13);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.featured-project::before,
.featured-project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.featured-project-main::before {
  background: linear-gradient(135deg, #17222c, #314351 58%, #111920);
}

.featured-project-secondary::before {
  background: linear-gradient(135deg, #323b43, #59646c 58%, #202a31);
}

.featured-project::after {
  background:
    linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, 0.08) 43%, transparent 63%),
    radial-gradient(circle at 82% 18%, rgba(215, 25, 32, 0.55), transparent 26%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(15, 18, 24, 0.2);
}

.featured-project:hover::after { transform: scale(1.08); }

.featured-project-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.08rem;
  backdrop-filter: blur(8px);
}

.featured-project-copy { min-width: 0; }
.featured-project-copy span { color: rgba(255, 255, 255, 0.68); font-size: 0.66rem; }
.featured-project-copy h3 { margin: 0.2rem 0 0.2rem; font-size: 0.9rem; line-height: 1.55; }
.featured-project-copy p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.67rem; line-height: 1.6; }

.project-arrow {
  margin-right: auto;
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  transition: transform 0.35s ease, color 0.35s ease;
}

.featured-project:hover .project-arrow { color: #fff; transform: translateX(-4px); }

.section-five-bottom {
  display: block;
  margin-top: 0.75rem;
}

.achievement-strip,
.certificate-panel {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(15, 18, 24, 0.06);
}

.achievement-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.8rem 0.4rem;
}

.achievement-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}

.achievement-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 0;
  width: 1px;
  background: rgba(15, 18, 24, 0.09);
}

.achievement-item strong { color: var(--accent); font-size: 1.15rem; }
.achievement-item span { color: #626b78; font-size: 0.64rem; font-weight: 700; }

.certificate-panel { padding: 0.7rem 0.8rem; }
.certificate-panel-trigger {
  width: 100%;
  max-width: 430px;
  text-align: right;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.certificate-achievement-strip {
  width: min(540px, 100%);
  margin: 0.85rem 0 0.75rem;
  padding: 0.7rem 0.35rem;
  background: rgba(255, 255, 255, 0.8);
}

.certificate-panel-trigger:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(15, 18, 24, 0.1);
}

.certificate-panel-title { display: flex; align-items: center; gap: 0.5rem; color: #20262f; font-size: 0.75rem; font-weight: 800; }
.certificate-panel-title i { color: var(--accent); font-size: 0.95rem; }
.certificate-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.certificate-list span { padding: 0.34rem 0.48rem; border-radius: 999px; background: rgba(215, 25, 32, 0.07); color: #3d4652; font-size: 0.62rem; font-weight: 800; direction: ltr; }
.certificate-list i { color: var(--accent); margin-right: 0.15rem; }

.section-five-certificates-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-five-certificates-head h3 {
  margin: 0;
  color: #151a22;
  font-size: 1.02rem;
}

.section-five-certificates-head p {
  margin: 0.32rem 0 0;
  color: #636d7a;
  font-size: 0.76rem;
  line-height: 1.8;
}

.section-five-back {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(215, 25, 32, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #d71920;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.certificate-gallery-item {
  margin: 0;
  padding: 0.6rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 36px rgba(15, 18, 24, 0.08);
}

.certificate-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  background: #f4f1eb;
}

.certificate-gallery-item figcaption {
  margin-top: 0.55rem;
  color: #2a313a;
  font-size: 0.74rem;
  font-weight: 800;
}

.section-five-head > *,
.section-five .featured-project,
.section-five .achievement-strip,
 .section-five .certificate-panel,
 .section-five .section-five-certificates-head,
 .section-five .certificate-gallery-item {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.55s ease, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.section-five.active .section-five-head > *,
.section-five.active .featured-project,
.section-five.active .achievement-strip,
 .section-five.active .certificate-panel,
 .section-five.active .section-five-certificates-head,
 .section-five.active .certificate-gallery-item { opacity: 1; transform: translateX(0); }

.section-five.active .section-five-eyebrow { transition-delay: 0.07s; }
.section-five.active .copy-title { transition-delay: 0.14s; }
.section-five.active .copy-desc { transition-delay: 0.21s; }
.section-five.active .section-five-switch { transition-delay: 0.24s; }
.section-five.active .featured-project:nth-child(1) { transition-delay: 0.28s; }
.section-five.active .featured-project:nth-child(2) { transition-delay: 0.36s; }
.section-five.active .achievement-strip { transition-delay: 0.44s; }
.section-five.active .certificate-panel { transition-delay: 0.51s; }
.section-five.active .section-five-certificates-head { transition-delay: 0.28s; }
.section-five.active .certificate-gallery-item:nth-child(1) { transition-delay: 0.36s; }
.section-five.active .certificate-gallery-item:nth-child(2) { transition-delay: 0.44s; }
.section-five.active .certificate-gallery-item:nth-child(3) { transition-delay: 0.52s; }
.section-five.active .certificate-gallery-item:nth-child(4) { transition-delay: 0.6s; }

.section-five:not(.active) .section-five-head > *,
.section-five:not(.active) .featured-project,
.section-five:not(.active) .achievement-strip,
 .section-five:not(.active) .certificate-panel,
 .section-five:not(.active) .section-five-certificates-head,
 .section-five:not(.active) .certificate-gallery-item { transition-delay: 0s; }

@media (max-width: 1100px) {
  .copy-panel.section-five { width: min(670px, 50vw); }
  .section-five-shell { padding: 1.25rem; }
}

@media (max-width: 900px) {
  .copy-panel.section-five {
    top: 54%;
    right: auto;
    left: 50%;
    width: min(92vw, 680px);
    transform: translate(-50%, calc(-50% + 22px)) scale(0.985);
  }
  .copy-panel.section-five.active { transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 560px) {
  .section-five-shell { padding: 1rem; border-radius: 21px; }
  .section-five .copy-title { font-size: 1.72rem; }
  .section-five .copy-desc { font-size: 0.76rem; line-height: 1.75; }
  .section-five-switch { width: 100%; justify-content: space-between; }
  .section-five-tab { flex: 1 1 0; padding-inline: 0.7rem; font-size: 0.68rem; }
  .featured-projects { grid-template-columns: 1fr; gap: 0.55rem; margin-top: 0.8rem; }
  .featured-project { min-height: 92px; padding: 0.7rem; border-radius: 15px; }
  .featured-project-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; }
  .featured-project-copy p { display: none; }
  .section-five-bottom { grid-template-columns: 1fr; gap: 0.55rem; margin-top: 0.55rem; }
  .section-five-certificates-head { flex-direction: column; }
  .certificate-gallery { grid-template-columns: 1fr; }
  .achievement-strip { padding: 0.55rem 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .section-five-head > *,
  .section-five .featured-project,
  .section-five .achievement-strip,
  .section-five .certificate-panel,
  .section-five .section-five-certificates-head,
  .section-five .certificate-gallery-item,
  .featured-project::after,
  .project-arrow { transition: none !important; }
}

/* Section 5 final compact layout + full certificate showcase */
.copy-panel.section-five {
  width: min(640px, 43vw);
}

.section-five-shell {
  padding: clamp(0.82rem, 1.2vw, 1.12rem);
  border-radius: 24px;
}

.section-five .copy-title {
  font-size: clamp(1.75rem, 2.55vw, 2.65rem);
}

.section-five .copy-desc {
  max-width: 570px;
  font-size: 0.78rem;
  line-height: 1.62;
}

.section-five-shell[data-five-mode="overview"] .section-five-head {
  margin-bottom: 0.15rem;
}

.section-five-shell[data-five-mode="overview"] .copy-desc {
  margin-top: 0.35rem;
}

.featured-projects {
  margin-top: 0.58rem;
  gap: 0.5rem;
}

.featured-project {
  min-height: 96px;
  padding: 0.7rem;
  border-radius: 17px;
}

.section-five-bottom {
  margin-top: 0.45rem;
}

.achievement-strip {
  padding: 0.62rem 0.25rem;
}

.certificate-panel {
  padding: 0.52rem 0.66rem;
}

.section-five-certificates .certificate-panel {
  display: none;
}

.certificate-panel-title {
  width: 100%;
}

.certificate-panel-arrow {
  margin-right: auto;
  font-size: 0.72rem !important;
  transition: transform 0.3s ease;
}

.certificate-panel-trigger:hover .certificate-panel-arrow {
  transform: translateX(-4px);
}

/* With certificates open, the compact panel becomes a full-width clean stage. */
.copy-panel.section-five.show-certificates {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100vw;
  max-width: none;
  height: 100vh;
  padding: 0;
  transform: none;
  background: #fff;
}

.copy-panel.section-five.show-certificates.active {
  transform: none;
}

body.certificates-open .topbar,
body.certificates-open .section-rail,
body.certificates-open .hero-stat,
body.certificates-open .hint {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.copy-panel.section-five.show-certificates .section-five-shell {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.copy-panel.section-five.show-certificates .section-five-head {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
}

.copy-panel.section-five.show-certificates .section-five-certificates {
  position: absolute;
  inset: 0;
  margin: 0;
}

.section-five-shell[data-five-mode="certificates"] .section-five-overview {
  transform: scale(0.97);
}

.section-five-certificates {
  position: relative;
  width: 100%;
  height: 100%;
  transform: scale(1.025);
}

.section-five-shell[data-five-mode="certificates"] .section-five-certificates {
  transform: scale(1);
}

.section-five-certificates-head {
  position: absolute;
  top: clamp(5.5rem, 10vh, 7.5rem);
  right: clamp(1rem, 3vw, 3rem);
  z-index: 2;
  left: clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-five-certificates-intro {
  max-width: min(600px, 62vw);
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(15, 18, 24, 0.1);
  backdrop-filter: blur(8px);
}

.section-five-certificates-intro h3 {
  margin: 0;
  color: #11161f;
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
}

.section-five-certificates-intro p {
  margin: 0.35rem 0 0;
  color: #4f5968;
  font-size: 0.78rem;
  line-height: 1.9;
}

.section-five-back {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(16, 23, 31, 0.12);
}

.certificate-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1.25vw, 1.35rem);
  margin: 0;
  padding: clamp(7rem, 13vh, 9rem) clamp(1rem, 4vw, 4.5rem) clamp(2rem, 5vh, 4rem);
  background:
    radial-gradient(circle at 18% 14%, rgba(215, 25, 32, 0.12), rgba(215, 25, 32, 0) 30%),
    radial-gradient(circle at 82% 82%, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0) 34%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(239, 244, 249, 0.92));
  overflow: hidden;
}

.certificate-gallery-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 285px;
  height: clamp(300px, 58vh, 510px);
  margin: 0;
  padding: clamp(0.52rem, 0.85vw, 0.8rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.84));
  box-shadow:
    0 20px 36px rgba(26, 33, 43, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.certificate-gallery-item-featured {
  height: clamp(330px, 64vh, 555px);
  transform: translateY(-6px);
}

.certificate-gallery-item:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 25, 32, 0.25);
  box-shadow: 0 30px 50px rgba(26, 33, 43, 0.24);
}

.certificate-gallery-item-featured:hover {
  transform: translateY(-13px);
}

.certificate-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.certificate-gallery-item figcaption {
  margin-top: 0.45rem;
  padding: 0.42rem 0.56rem;
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.08);
  color: #28303a;
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .copy-panel.section-five { width: min(92vw, 640px); }
  .copy-panel.section-five.show-certificates { width: 100vw; }
  .section-five-certificates-head {
    left: 1.25rem;
    right: 1.25rem;
    top: 5.6rem;
    align-items: stretch;
  }

  .section-five-certificates-intro {
    max-width: none;
  }

  .section-five-back {
    align-self: flex-start;
  }

  .certificate-gallery {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: 1.25rem;
  }
  .certificate-gallery-item {
    flex: 0 0 min(38vw, 260px);
    scroll-snap-align: center;
  }
}

@media (max-width: 560px) {
  .section-five-certificates-head {
    top: 5.1rem;
    left: 0.9rem;
    right: 0.9rem;
    flex-direction: column;
    gap: 0.6rem;
  }

  .section-five-certificates-intro {
    padding: 0.72rem 0.78rem;
  }

  .section-five-certificates-intro p {
    font-size: 0.7rem;
    line-height: 1.75;
  }

  .featured-projects { grid-template-columns: 1fr 1fr; }
  .featured-project { min-height: 104px; }
  .featured-project-copy p { display: none; }
  .certificate-panel-trigger { max-width: none; }
  .certificate-achievement-strip {
    width: 100%;
    margin: 0.5rem 0 0.6rem;
  }
  .certificate-gallery {
    align-items: center;
    padding: 6.5rem 1rem 1.5rem;
  }
  .certificate-gallery-item,
  .certificate-gallery-item-featured {
    flex-basis: min(74vw, 280px);
    height: min(62vh, 450px);
    transform: none;
  }

  .certificate-gallery-item figcaption {
    font-size: 0.62rem;
    margin-top: 0.35rem;
  }
}

/* Section five refinement: cleaner layout + same-page certificates transition */
.featured-project::before {
  background:
    linear-gradient(160deg, rgba(10, 14, 20, 0.72), rgba(10, 14, 20, 0.28) 55%, rgba(10, 14, 20, 0.68)),
    var(--project-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-five-view {
  position: relative;
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.45s ease,
    max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-five-overview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 1600px;
  overflow: visible;
  pointer-events: auto;
}

.section-five-certificates {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-five-shell[data-five-mode="certificates"] .section-five-overview {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-five-shell[data-five-mode="certificates"] .section-five-certificates {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 2300px;
  margin-top: 0.45rem;
  overflow: visible;
  pointer-events: auto;
}

.copy-panel.section-five.show-certificates {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  z-index: 12;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  padding: 0;
  transform: translate(-50%, -50%) scale(1);
  background: transparent;
}

.copy-panel.section-five.show-certificates.active {
  transform: translate(-50%, -50%) scale(1);
}

body.certificates-open .topbar,
body.certificates-open .section-rail,
body.certificates-open .hero-stat,
body.certificates-open .hint {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.copy-panel.section-five.show-certificates .section-five-shell {
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 2.5vh, 1.6rem) 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 64px rgba(15, 18, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.copy-panel.section-five.show-certificates .section-five-certificates {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
}

.section-five-certificates-head {
  position: static;
  width: min(1180px, 92vw);
  margin: 0 auto 0.75rem;
}

.certificate-gallery {
  width: 100vw;
  height: calc(100vh - 11rem);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0 clamp(1rem, 3vw, 3rem) 0.8rem;
  background: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.certificate-gallery-item {
  flex: 0 0 min(248px, 22vw);
  max-width: min(248px, 22vw);
  height: auto;
  min-height: 0;
  scroll-snap-align: center;
}

.certificate-gallery-item-featured {
  height: auto;
  transform: none;
}

.certificate-gallery-item img {
  aspect-ratio: 4 / 5.2;
  height: auto;
}

.certificate-gallery-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.5rem;
  padding: 0.48rem 0.56rem;
  border-radius: 12px;
  text-align: right;
  white-space: normal;
}

.certificate-gallery-item figcaption strong {
  color: #1d2530;
  font-size: 0.68rem;
  line-height: 1.5;
}

.certificate-caption-desc {
  color: #556171;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .copy-panel.section-five.show-certificates {
    width: 100vw;
    max-width: 100vw;
    transform: translate(-50%, -50%) scale(1);
  }

  .section-five-certificates-head {
    width: min(94vw, 760px);
  }

  .certificate-gallery {
    height: calc(100vh - 12rem);
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .certificate-gallery-item {
    flex-basis: min(240px, 66vw);
    max-width: min(240px, 66vw);
  }
}

@media (max-width: 560px) {
  .certificate-gallery {
    height: calc(100vh - 12.8rem);
    padding-inline: 0.9rem;
  }
}

/* Final responsive layer */
@media (max-width: 1200px) {
  .topbar {
    padding: 1.1rem 1.25rem 0;
    gap: 0.9rem;
  }

  .brand-mark {
    min-width: auto;
  }

  .brand-mark img {
    width: 72px;
    height: 72px;
  }

  .main-nav {
    gap: 0.9rem 1.1rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 992px) {
  .content-stage {
    align-items: flex-start;
    padding: 5rem 0.9rem 0.9rem;
  }

  .topbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.9rem 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .topbar::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    right: 0.55rem;
    left: 0.55rem;
    bottom: -0.25rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.74), rgba(245, 248, 252, 0.58));
    box-shadow: 0 14px 34px rgba(15, 18, 24, 0.12);
    pointer-events: none;
    z-index: -1;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    order: 2;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border-color: rgba(215, 25, 32, 0.18);
    background: linear-gradient(145deg, #ffffff, rgba(255, 255, 255, 0.8));
    box-shadow: 0 10px 24px rgba(15, 18, 24, 0.11);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .mobile-nav-toggle:active {
    transform: scale(0.97);
  }

  .mobile-nav-toggle-line {
    width: 18px;
    background: #202734;
  }

  .brand-mark {
    order: 1;
  }

  .brand-mark img {
    width: 58px;
    height: 58px;
  }

  .main-nav {
    position: fixed;
    top: 4.55rem;
    right: 0.9rem;
    left: auto;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.26rem;
    width: min(88vw, 360px);
    max-height: min(74vh, 520px);
    padding: 0.65rem;
    border-radius: 18px;
    background:
      radial-gradient(circle at 95% 6%, rgba(215, 25, 32, 0.11), rgba(215, 25, 32, 0) 38%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 252, 0.93));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 26px 56px rgba(10, 15, 23, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transition: opacity 0.26s ease, transform 0.28s ease, visibility 0.26s ease;
  }

  .main-nav::before {
    content: "منوی سایت";
    display: block;
    margin: 0.1rem 0 0.45rem;
    padding: 0.45rem 0.5rem 0.55rem;
    border-bottom: 1px solid rgba(15, 18, 24, 0.08);
    color: #5a6270;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .main-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 43px;
    padding: 0.75rem 0.84rem;
    border-radius: 12px;
    border-bottom: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e2632;
    background: rgba(247, 250, 255, 0.78);
    border: 1px solid rgba(15, 18, 24, 0.05);
    transform: translateY(8px);
    opacity: 0;
    transition:
      transform 0.28s ease,
      opacity 0.28s ease,
      background 0.22s ease,
      border-color 0.22s ease,
      color 0.22s ease;
  }

  .main-nav a::after {
    content: "\2190";
    color: rgba(32, 39, 52, 0.42);
    font-size: 0.85rem;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(215, 25, 32, 0.22);
  }

  .main-nav a:hover::after {
    transform: translateX(-3px);
    color: rgba(215, 25, 32, 0.72);
  }

  .main-nav a.active {
    color: #b9151b;
    background: linear-gradient(120deg, rgba(215, 25, 32, 0.16), rgba(215, 25, 32, 0.06));
    border-color: rgba(215, 25, 32, 0.24);
  }

  .main-nav a.active::after {
    color: #d71920;
  }

  .topbar-tools {
    display: none;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body.mobile-nav-open .main-nav a {
    opacity: 1;
    transform: translateY(0);
  }

  body.mobile-nav-open .main-nav a:nth-child(1) { transition-delay: 40ms; }
  body.mobile-nav-open .main-nav a:nth-child(2) { transition-delay: 70ms; }
  body.mobile-nav-open .main-nav a:nth-child(3) { transition-delay: 100ms; }
  body.mobile-nav-open .main-nav a:nth-child(4) { transition-delay: 130ms; }
  body.mobile-nav-open .main-nav a:nth-child(5) { transition-delay: 160ms; }
  body.mobile-nav-open .main-nav a:nth-child(6) { transition-delay: 190ms; }
  body.mobile-nav-open .main-nav a:nth-child(7) { transition-delay: 220ms; }
  body.mobile-nav-open .main-nav a:nth-child(8) { transition-delay: 250ms; }

  body.mobile-nav-open .mobile-nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-nav-open .mobile-nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  body.mobile-nav-open .mobile-nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .copy-panel.section-one,
  .copy-panel.section-two,
  .copy-panel.section-three,
  .copy-panel.section-four,
  .copy-panel.section-five {
    top: 4.95rem;
    bottom: auto;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 5.8rem);
    overflow-y: auto;
    transform: translateY(10px) scale(0.985);
    border-radius: 20px;
    scrollbar-width: none;
  }

  .copy-panel.section-one::-webkit-scrollbar,
  .copy-panel.section-two::-webkit-scrollbar,
  .copy-panel.section-three::-webkit-scrollbar,
  .copy-panel.section-four::-webkit-scrollbar,
  .copy-panel.section-five::-webkit-scrollbar {
    display: none;
  }

  .copy-panel.section-one.active,
  .copy-panel.section-two.active,
  .copy-panel.section-three.active,
  .copy-panel.section-four.active,
  .copy-panel.section-five.active {
    transform: translateY(0) scale(1);
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .hero-button {
    width: 100%;
    min-width: 0;
  }

  .section-two-grid .company-card {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    padding: 0.65rem;
  }

  .section-two-grid .company-card img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

  .section-two-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .section-rail,
  .hero-stat {
    display: none;
  }

  .site-footer {
    min-height: auto;
    padding: 1.25rem 0.7rem 1.9rem;
  }

  .footer-inner {
    width: min(920px, 100%);
    padding: 1.2rem 1rem;
    border-radius: 20px;
  }

  .footer-brand {
    gap: 0.8rem;
    margin-bottom: 1.3rem;
    padding-bottom: 1rem;
  }

  .footer-brand img {
    width: 62px;
    height: 62px;
  }

  .footer-brand h2 {
    font-size: 1.2rem;
  }

  .footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
  }

  .footer-column {
    min-width: 0;
    gap: 0.45rem;
  }

  .footer-column h3 {
    font-size: 0.95rem;
  }

  .footer-column a,
  .footer-column span {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .footer-column a {
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    font-size: 0.83rem;
  }
}

@media (max-width: 640px) {
  .scroll-root {
    min-height: 520vh;
  }

  .topbar {
    padding-top: 0.55rem;
    gap: 0.65rem;
  }

  .main-nav {
    top: 4.25rem;
    right: 0.55rem;
    width: calc(100vw - 1.1rem);
    max-height: min(75vh, 500px);
    border-radius: 15px;
    padding: 0.55rem;
  }

  .main-nav a {
    min-height: 40px;
    font-size: 0.84rem;
    padding: 0.68rem 0.72rem;
  }

  .brand-mark img {
    width: 60px;
    height: 60px;
  }

  .topbar-cta {
    width: 108px;
    height: 38px;
    border-radius: 11px;
  }

  .tool-pill {
    width: 38px;
    height: 38px;
    font-size: 0.82rem;
  }

  .copy-panel.section-one,
  .copy-panel.section-two,
  .copy-panel.section-three,
  .copy-panel.section-four,
  .copy-panel.section-five {
    top: 4.3rem;
    bottom: auto;
    left: 0.55rem;
    right: 0.55rem;
    max-height: calc(100vh - 5rem);
    border-radius: 16px;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .hero-desc,
  .copy-desc {
    line-height: 1.75;
  }

  .section-two-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .section-two-grid .company-card {
    padding: 0.55rem;
    border-radius: 14px;
  }

  .feature-grid,
  .stats-row,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .site-footer {
    padding: 1rem 0.55rem 1.4rem;
  }

  .footer-inner {
    padding: 0.95rem 0.8rem;
    border-radius: 16px;
  }

  .footer-brand img {
    width: 54px;
    height: 54px;
  }

  .footer-brand h2 {
    font-size: 1.06rem;
  }

  .footer-brand p {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .footer-column h3 {
    font-size: 0.9rem;
  }

  .footer-column a,
  .footer-column span {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 1.2rem;
    padding-top: 0.9rem;
  }
}

@media (min-width: 993px) {
  .copy-panel.section-five {
    width: min(800px, 52vw);
  }

  .section-five-shell {
    padding: clamp(1rem, 1.55vw, 1.35rem);
  }

  .section-five-shell[data-five-mode="overview"] .section-five-head {
    margin-bottom: 0.25rem;
  }

  .section-five .copy-desc {
    max-width: 100%;
    line-height: 1.72;
  }

  .featured-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
    margin-top: 0.68rem;
  }

  .featured-project {
    min-height: 116px;
    padding: 0.78rem;
  }

  .certificate-achievement-strip {
    width: 100%;
    margin: 0.62rem 0 0.58rem;
  }

  .section-five-bottom {
    margin-top: 0.4rem;
  }

  .certificate-panel {
    padding: 0.6rem 0.78rem;
  }

  .certificate-panel-trigger {
    max-width: none;
  }
}

/* Final polish: professional certificate page look */
.copy-panel.section-five.show-certificates .section-five-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(215, 25, 32, 0.14), rgba(215, 25, 32, 0) 34%),
    radial-gradient(circle at 84% 88%, rgba(6, 182, 212, 0.14), rgba(6, 182, 212, 0) 38%),
    linear-gradient(165deg, rgba(252, 253, 255, 0.72), rgba(240, 246, 252, 0.62));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.copy-panel.section-five.show-certificates .section-five-shell::before,
.copy-panel.section-five.show-certificates .section-five-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.copy-panel.section-five.show-certificates .section-five-shell::before {
  width: clamp(210px, 28vw, 380px);
  height: clamp(210px, 28vw, 380px);
  top: clamp(-130px, -10vw, -70px);
  right: clamp(-80px, -5vw, -25px);
  background: radial-gradient(circle, rgba(215, 25, 32, 0.22), rgba(215, 25, 32, 0) 70%);
}

.copy-panel.section-five.show-certificates .section-five-shell::after {
  width: clamp(190px, 24vw, 340px);
  height: clamp(190px, 24vw, 340px);
  bottom: clamp(-120px, -8vw, -55px);
  left: clamp(-80px, -5vw, -20px);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0) 70%);
}

.copy-panel.section-five.show-certificates .section-five-certificates-head {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: auto;
  margin-bottom: 1rem;
  padding: 0.15rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.copy-panel.section-five.show-certificates .section-five-certificates-head::after {
  display: none;
}

.copy-panel.section-five.show-certificates .section-five-certificates-intro {
  position: relative;
  max-width: min(640px, 62vw);
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.72));
  box-shadow: 0 14px 34px rgba(15, 18, 24, 0.1);
  backdrop-filter: blur(8px);
}

.copy-panel.section-five.show-certificates .section-five-certificates-intro::before {
  content: "گالری دستاوردها";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.1);
  color: #b9151b;
  font-size: 0.63rem;
  font-weight: 800;
}

.copy-panel.section-five.show-certificates .section-five-back {
  min-height: 40px;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(215, 25, 32, 0.18);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(16, 23, 31, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.copy-panel.section-five.show-certificates .section-five-back:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(16, 23, 31, 0.16);
}

.copy-panel.section-five.show-certificates .certificate-gallery {
  gap: 1rem;
  padding: 0.3rem clamp(1.1rem, 3vw, 3rem) 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 30%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0,
      rgba(255, 255, 255, 0.2) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 34px
    );
  counter-reset: certificate-item;
}

.copy-panel.section-five.show-certificates .certificate-gallery-item {
  position: relative;
  padding: 0.52rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(245, 249, 255, 0.74));
  box-shadow:
    0 20px 42px rgba(18, 24, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.copy-panel.section-five.show-certificates .certificate-gallery-item::before {
  counter-increment: certificate-item;
  content: counter(certificate-item, decimal-leading-zero);
  position: absolute;
  top: 0.52rem;
  left: 0.58rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(14, 19, 30, 0.65);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  z-index: 2;
}

.copy-panel.section-five.show-certificates .certificate-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(215, 25, 32, 0.09), rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
}

.copy-panel.section-five.show-certificates .certificate-gallery-item:hover {
  transform: translateY(-7px);
  border-color: rgba(215, 25, 32, 0.24);
  box-shadow: 0 28px 56px rgba(18, 24, 34, 0.24);
}

.copy-panel.section-five.show-certificates .certificate-gallery-item-featured {
  transform: translateY(-6px);
  border-color: rgba(215, 25, 32, 0.24);
}

.copy-panel.section-five.show-certificates .certificate-gallery-item-featured:hover {
  transform: translateY(-12px);
}

.copy-panel.section-five.show-certificates .certificate-gallery-item img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 18, 24, 0.08);
  background: linear-gradient(145deg, #ffffff, #f2f5fa);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.copy-panel.section-five.show-certificates .certificate-gallery-item figcaption {
  gap: 0.3rem;
  margin-top: 0.56rem;
  padding: 0.52rem 0.58rem;
  border-radius: 13px;
  border: 1px solid rgba(15, 18, 24, 0.07);
  background: rgba(255, 255, 255, 0.56);
}

.copy-panel.section-five.show-certificates .certificate-gallery-item figcaption strong {
  font-size: 0.7rem;
}

.copy-panel.section-five.show-certificates .certificate-caption-desc {
  color: #4f5b6b;
}

.copy-panel.section-five.show-certificates .certificate-gallery::-webkit-scrollbar {
  height: 8px;
}

.copy-panel.section-five.show-certificates .certificate-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.copy-panel.section-five.show-certificates .certificate-gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(215, 25, 32, 0.78), rgba(148, 18, 23, 0.8));
  border-radius: 999px;
}

@media (max-width: 900px) {
  .copy-panel.section-five.show-certificates .section-five-certificates-head {
    margin-bottom: 0.85rem;
    padding: 0.5rem;
  }
}

@media (max-width: 560px) {
  .copy-panel.section-five.show-certificates .section-five-certificates-head {
    top: auto;
    right: auto;
    left: auto;
    border-radius: 16px;
  }

  .copy-panel.section-five.show-certificates .section-five-certificates-intro {
    max-width: none;
    padding: 0.72rem 0.78rem;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery {
    gap: 0.58rem;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item {
    border-radius: 15px;
    padding: 0.46rem;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item::before {
    width: 28px;
    height: 28px;
    font-size: 0.62rem;
  }
}

.copy-panel.section-five.show-certificates .certificate-business-strip {
  width: min(1180px, 92vw);
  margin: 0 auto 0.72rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.copy-panel.section-five.show-certificates .certificate-business-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.72rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 24px rgba(15, 18, 24, 0.08);
}

.copy-panel.section-five.show-certificates .certificate-business-item i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #d71920;
  background: rgba(215, 25, 32, 0.12);
  font-size: 0.9rem;
}

.copy-panel.section-five.show-certificates .certificate-business-item strong {
  display: block;
  color: #111722;
  font-size: 0.84rem;
  font-weight: 800;
}

.copy-panel.section-five.show-certificates .certificate-business-item span {
  display: block;
  color: #4f5d6f;
  font-size: 0.67rem;
  font-weight: 700;
}

.copy-panel.section-five.show-certificates .certificate-assurance-grid {
  width: min(1180px, 92vw);
  margin: 0 auto 0.65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.copy-panel.section-five.show-certificates .certificate-assurance-card {
  padding: 0.72rem 0.78rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.64), rgba(246, 250, 255, 0.46));
  box-shadow: 0 12px 24px rgba(15, 18, 24, 0.07);
}

.copy-panel.section-five.show-certificates .certificate-assurance-card h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #1a2230;
  font-size: 0.76rem;
}

.copy-panel.section-five.show-certificates .certificate-assurance-card h4 i {
  color: #d71920;
}

.copy-panel.section-five.show-certificates .certificate-assurance-card p {
  margin: 0.45rem 0 0;
  color: #516073;
  font-size: 0.64rem;
  line-height: 1.8;
  font-weight: 700;
}

.copy-panel.section-five.show-certificates .certificate-scope-tags {
  width: min(1180px, 92vw);
  margin: 0 auto 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.copy-panel.section-five.show-certificates .certificate-scope-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.36rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 18, 24, 0.08);
  background: rgba(255, 255, 255, 0.62);
  color: #2d3747;
  font-size: 0.62rem;
  font-weight: 800;
}

.copy-panel.section-five.show-certificates .certificate-scope-tags i {
  color: #d71920;
}

@media (max-width: 900px) {
  .copy-panel.section-five.show-certificates .certificate-business-strip,
  .copy-panel.section-five.show-certificates .certificate-assurance-grid {
    width: min(94vw, 760px);
    grid-template-columns: 1fr;
  }

  .copy-panel.section-five.show-certificates .certificate-scope-tags {
    width: min(94vw, 760px);
  }
}

@media (max-width: 560px) {
  .copy-panel.section-five.show-certificates .certificate-business-strip,
  .copy-panel.section-five.show-certificates .certificate-assurance-grid,
  .copy-panel.section-five.show-certificates .certificate-scope-tags {
    width: min(95vw, 760px);
  }

  .copy-panel.section-five.show-certificates .certificate-business-item {
    padding: 0.56rem 0.6rem;
  }

  .copy-panel.section-five.show-certificates .certificate-assurance-card {
    padding: 0.62rem 0.65rem;
  }
}

/* Certificates layout fix: balanced composition and proper space usage */
.copy-panel.section-five.show-certificates .section-five-certificates {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 0.55rem;
  overflow: hidden;
}

.copy-panel.section-five.show-certificates .section-five-certificates-head,
.copy-panel.section-five.show-certificates .certificate-business-strip,
.copy-panel.section-five.show-certificates .certificate-assurance-grid,
.copy-panel.section-five.show-certificates .certificate-scope-tags,
.copy-panel.section-five.show-certificates .certificate-gallery {
  width: min(1180px, 92vw);
  margin-right: auto;
  margin-left: auto;
}

.copy-panel.section-five.show-certificates .certificate-business-strip {
  margin-bottom: 0;
}

.copy-panel.section-five.show-certificates .certificate-assurance-grid {
  margin-bottom: 0;
}

.copy-panel.section-five.show-certificates .certificate-scope-tags {
  margin-bottom: 0;
}

.copy-panel.section-five.show-certificates .certificate-gallery {
  width: min(1180px, 92vw);
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 0.75rem;
  padding: 0.2rem 0.25rem 0.85rem;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: none;
}

.copy-panel.section-five.show-certificates .certificate-gallery-item {
  max-width: none;
  min-width: 0;
  width: auto;
  height: 390px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
  flex: none;
  scroll-snap-align: none;
}

.copy-panel.section-five.show-certificates .certificate-gallery-item-featured {
  height: 280px;
  transform: none;
}

.copy-panel.section-five.show-certificates .certificate-gallery-item-featured:hover {
  transform: translateY(-7px);
}

.copy-panel.section-five.show-certificates .certificate-gallery-item img {
  height: 290px;
  object-fit: contain;
}

.copy-panel.section-five.show-certificates .certificate-gallery-item figcaption {
  margin-top: 0.42rem;
  padding: 0.44rem 0.5rem;
}

.copy-panel.section-five.show-certificates .certificate-gallery-item figcaption strong,
.copy-panel.section-five.show-certificates .certificate-caption-desc {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .copy-panel.section-five.show-certificates .section-five-certificates-head,
  .copy-panel.section-five.show-certificates .certificate-business-strip,
  .copy-panel.section-five.show-certificates .certificate-assurance-grid,
  .copy-panel.section-five.show-certificates .certificate-scope-tags,
  .copy-panel.section-five.show-certificates .certificate-gallery {
    width: min(95vw, 980px);
  }

  .copy-panel.section-five.show-certificates .certificate-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item,
  .copy-panel.section-five.show-certificates .certificate-gallery-item-featured {
    height: 265px;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item img {
    height: 156px;
  }
}

@media (max-width: 900px) {
  .copy-panel.section-five.show-certificates .section-five-certificates {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    gap: 0.5rem;
  }

  .copy-panel.section-five.show-certificates .section-five-certificates-head,
  .copy-panel.section-five.show-certificates .certificate-business-strip,
  .copy-panel.section-five.show-certificates .certificate-assurance-grid,
  .copy-panel.section-five.show-certificates .certificate-scope-tags,
  .copy-panel.section-five.show-certificates .certificate-gallery {
    width: min(94vw, 760px);
  }

  .copy-panel.section-five.show-certificates .certificate-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
    padding-bottom: 0.72rem;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item,
  .copy-panel.section-five.show-certificates .certificate-gallery-item-featured {
    height: 248px;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item img {
    height: 142px;
  }
}

@media (max-width: 560px) {
  .copy-panel.section-five.show-certificates .section-five-certificates {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    gap: 0.45rem;
  }

  .copy-panel.section-five.show-certificates .section-five-certificates-head,
  .copy-panel.section-five.show-certificates .certificate-business-strip,
  .copy-panel.section-five.show-certificates .certificate-assurance-grid,
  .copy-panel.section-five.show-certificates .certificate-scope-tags,
  .copy-panel.section-five.show-certificates .certificate-gallery {
    width: min(95vw, 760px);
  }

  .copy-panel.section-five.show-certificates .certificate-gallery {
    grid-template-columns: 1fr;
    gap: 0.52rem;
    padding-inline: 0.12rem;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item,
  .copy-panel.section-five.show-certificates .certificate-gallery-item-featured {
    height: 225px;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item img {
    height: 128px;
  }
}

/* Responsive fix: keep certificate cards readable on small screens */
@media (max-width: 900px) {
  .copy-panel.section-five.show-certificates .certificate-gallery {
    align-items: start;
    height: auto;
    min-height: 0;
    overflow-y: auto;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item,
  .copy-panel.section-five.show-certificates .certificate-gallery-item-featured {
    height: auto;
    min-height: 300px;
    grid-template-rows: auto auto;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item img {
    height: auto;
    aspect-ratio: 4 / 5.1;
    max-height: min(44vh, 340px);
  }
}

@media (max-width: 560px) {
  .copy-panel.section-five.show-certificates .section-five-shell {
    padding-top: 0.75rem;
  }

  .copy-panel.section-five.show-certificates .section-five-certificates {
    overflow-y: auto;
    padding-bottom: 0.6rem;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding-inline: 0;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item,
  .copy-panel.section-five.show-certificates .certificate-gallery-item-featured {
    min-height: 280px;
    padding: 0.52rem;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item figcaption {
    margin-top: 0.5rem;
  }

  .copy-panel.section-five.show-certificates .certificate-gallery-item figcaption strong,
  .copy-panel.section-five.show-certificates .certificate-caption-desc {
    line-clamp: unset;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

/* =========================================================
   Laptop / short viewport responsive layer
   Keeps the fullscreen video stage untouched and only scales UI/content.
   ========================================================= */
@media (min-width: 993px) and (max-width: 1200px) {
  .topbar {
    padding: 0.85rem 2rem 0;
    gap: 0.75rem;
  }

  .brand-mark img {
    width: 62px;
    height: 62px;
  }

  .main-nav {
    gap: clamp(0.55rem, 1.15vw, 0.9rem);
    font-size: clamp(0.72rem, 1.05vw, 0.84rem);
    white-space: nowrap;
  }

  .topbar-tools {
    gap: 0.65rem;
  }

  .topbar-cta {
    width: 132px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .tool-pill {
    width: 42px;
    height: 42px;
    font-size: 0.82rem;
  }

  .copy-panel.section-one {
    right: clamp(2.2rem, 4vw, 3.5rem);
    width: min(540px, 48vw);
  }

  .hero-content {
    padding: 1.45rem 0 1.2rem 1rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
  }

  .hero-title-main {
    font-size: clamp(2.15rem, 3.6vw, 2.9rem);
  }

  .hero-title-accent {
    font-size: clamp(2rem, 3.3vw, 2.72rem);
  }

  .hero-title-accent::after {
    bottom: -0.4rem;
    height: 4px;
  }

  .hero-desc {
    margin-top: 1.25rem;
    padding-right: 0.9rem;
    font-size: clamp(0.78rem, 1.1vw, 0.92rem);
    line-height: 1.85;
  }

  .hero-trust-row {
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.58rem 0.78rem;
    border-radius: 14px;
  }

  .hero-trust-item strong {
    font-size: 1rem;
  }

  .hero-trust-item span {
    font-size: 0.7rem;
  }

  .hero-trust-divider {
    height: 20px;
  }

  .hero-actions {
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .hero-button {
    min-height: 48px;
    padding: 0.65rem 1rem;
    border-radius: 13px;
    font-size: 0.84rem;
  }

  .hero-button.primary,
  .hero-button.secondary {
    min-width: 158px;
  }

  .copy-panel.section-two {
    left: clamp(1.5rem, 2.8vw, 2.6rem);
    width: min(540px, 48vw);
  }

  .section-two-shell {
    gap: 0.85rem;
    padding: 0.8rem 0 0.8rem 1rem;
  }

  .section-two-intro {
    padding-right: 0.9rem;
  }

  .section-two-intro .copy-title {
    margin-top: 0.55rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.12;
  }

  .section-two-eyebrow {
    gap: 0.55rem;
    font-size: 0.76rem;
  }

  .section-two-eyebrow-line {
    width: 30px;
    flex-basis: 30px;
  }

  .section-two .copy-desc {
    margin-top: 0.7rem;
    max-width: 54ch;
    font-size: 0.78rem;
    line-height: 1.75;
  }

  .section-two-note {
    gap: 0.55rem;
    margin-top: 0.7rem;
  }

  .section-two-note p {
    font-size: 0.72rem;
    line-height: 1.6;
  }

  .section-two-companies-head {
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
  }

  .section-two-grid {
    gap: 0.5rem;
  }

  .company-card {
    height: clamp(62px, 7vw, 78px);
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
  }

  .company-card img {
    max-width: 105px;
  }

  .copy-panel.section-three {
    right: clamp(2.2rem, 4vw, 3.5rem);
    width: min(610px, 55vw);
  }

  .section-three-shell {
    padding: 1rem;
    border-radius: 22px;
  }

  .section-three-head {
    padding-right: 0.55rem;
  }

  .section-three .copy-title {
    margin-top: 0.45rem;
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  }

  .section-three .copy-desc {
    margin-top: 0.55rem;
    font-size: 0.76rem;
    line-height: 1.65;
  }

  .section-three .feature-grid {
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .section-three .feature-card {
    padding: 0.65rem;
  }

  .section-three .feature-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .section-three .feature-card h3 {
    font-size: 0.8rem;
  }

  .section-three .feature-card p {
    font-size: 0.67rem;
    line-height: 1.55;
  }

  .section-three .stats-row {
    margin-top: 0.55rem;
  }

  .section-three .mini-stat {
    padding: 0.55rem 0.45rem;
  }

  .section-three .mini-stat span {
    font-size: 1.25rem;
  }

  .section-three .mini-stat small {
    font-size: 0.68rem;
  }

  .copy-panel.section-four {
    left: clamp(1.5rem, 2.8vw, 2.6rem);
    width: min(590px, 53vw);
  }

  .section-four-shell {
    padding: 0.95rem;
    border-radius: 22px;
  }

  .section-four .copy-title {
    font-size: clamp(1.7rem, 2.75vw, 2.3rem);
  }

  .section-four .copy-desc {
    font-size: 0.75rem;
    line-height: 1.65;
  }

  .section-four .capability-grid {
    gap: 0.5rem;
    margin-top: 0.7rem;
  }

  .section-four .capability-card {
    gap: 0.55rem;
    padding: 0.6rem;
    border-radius: 14px;
  }

  .section-four .capability-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .section-four .capability-card h3 {
    font-size: 0.78rem;
  }

  .section-four .capability-card p {
    font-size: 0.64rem;
    line-height: 1.55;
  }

  .copy-panel.section-five:not(.show-certificates) {
    width: min(720px, 68vw);
  }

  .section-rail {
    right: 0.8rem;
    gap: 0.72rem;
    padding-right: 0.65rem;
  }

  .section-step {
    min-width: 36px;
    padding-right: 0.5rem;
    font-size: 0.96rem;
  }

  .section-step.active::before {
    right: -0.65rem;
    height: 2rem;
  }
}

@media (min-width: 769px) and (max-height: 760px) {
  .topbar {
    padding-top: 0.55rem;
  }

  .brand-mark img {
    width: 58px;
    height: 58px;
  }

  .copy-panel.section-one,
  .copy-panel.section-two,
  .copy-panel.section-three,
  .copy-panel.section-four {
    top: 52%;
  }

  .hero-content {
    padding-top: 0.8rem;
    padding-bottom: 0.7rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.5rem;
  }

  .hero-title-main {
    font-size: clamp(1.95rem, 3.5vw, 2.65rem);
  }

  .hero-title-accent {
    font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  }

  .hero-desc {
    margin-top: 0.9rem;
    font-size: clamp(0.72rem, 1vw, 0.84rem);
    line-height: 1.65;
  }

  .hero-trust-row {
    margin-top: 0.7rem;
    padding-block: 0.48rem;
  }

  .hero-actions {
    margin-top: 0.7rem;
  }

  .hero-button {
    min-height: 44px;
  }

  .section-two-shell {
    gap: 0.55rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .section-two-intro .copy-title {
    margin-top: 0.35rem;
    font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  }

  .section-two .copy-desc {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .section-two-note {
    margin-top: 0.45rem;
  }

  .company-card {
    height: clamp(56px, 6.2vw, 68px);
  }

  .section-three-shell,
  .section-four-shell {
    padding: 0.78rem;
  }

  .section-three .feature-grid,
  .section-four .capability-grid {
    margin-top: 0.5rem;
  }

  .section-three .feature-card,
  .section-four .capability-card {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .section-three .stats-row {
    margin-top: 0.4rem;
  }

  .section-rail {
    top: 54%;
  }
}

@media (min-width: 769px) and (max-height: 660px) {
  .topbar {
    padding-top: 0.35rem;
  }

  .brand-mark img {
    width: 52px;
    height: 52px;
  }

  .topbar-cta {
    height: 38px;
  }

  .tool-pill {
    width: 38px;
    height: 38px;
  }

  .copy-panel.section-one,
  .copy-panel.section-two,
  .copy-panel.section-three,
  .copy-panel.section-four {
    top: 54%;
  }

  .hero-eyebrow,
  .section-two-eyebrow,
  .section-three-eyebrow,
  .section-four-eyebrow {
    font-size: 0.7rem;
  }

  .hero-title-main {
    font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  }

  .hero-title-accent {
    font-size: clamp(1.68rem, 3vw, 2.18rem);
  }

  .hero-desc {
    margin-top: 0.72rem;
    line-height: 1.5;
  }

  .hero-trust-row {
    margin-top: 0.55rem;
  }

  .hero-actions {
    margin-top: 0.55rem;
  }

  .hero-button {
    min-height: 40px;
    padding-block: 0.5rem;
  }

  .section-two-intro .copy-title,
  .section-three .copy-title,
  .section-four .copy-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }

  .section-two .copy-desc,
  .section-three .copy-desc,
  .section-four .copy-desc {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .company-card {
    height: 54px;
    border-radius: 12px;
  }

  .section-three .feature-card p,
  .section-four .capability-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .section-rail {
    gap: 0.55rem;
  }
}

/* =========================================================
   Card direction correction
   Icons must always sit above their text on the homepage.
   ========================================================= */
.section-three .feature-card,
.section-four .capability-card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: right;
}

.section-three .feature-icon,
.section-four .capability-icon {
  flex: 0 0 auto;
  margin: 0;
}

.section-three .feature-card-copy,
.section-four .capability-copy {
  width: 100%;
}

.section-four .capability-card-wide {
  padding-left: 3.2rem;
}

.section-four .capability-card-wide .capability-arrow {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  margin: 0;
}

/*
 * Exact laptop/short-screen fix (including 1100 x 640).
 * Keep the intended alternating composition: 1/3 right, 2/4 left.
 */
@media (min-width: 993px) and (max-width: 1200px) and (max-height: 700px) {
  .copy-panel.section-one,
  .copy-panel.section-two,
  .copy-panel.section-three,
  .copy-panel.section-four {
    top: 52%;
    bottom: auto;
    max-height: calc(100dvh - 82px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .copy-panel.section-one::-webkit-scrollbar,
  .copy-panel.section-two::-webkit-scrollbar,
  .copy-panel.section-three::-webkit-scrollbar,
  .copy-panel.section-four::-webkit-scrollbar {
    display: none;
  }

  .copy-panel.section-one,
  .copy-panel.section-three {
    right: clamp(1.7rem, 3vw, 2.4rem);
    left: auto;
  }

  .copy-panel.section-two,
  .copy-panel.section-four {
    right: auto;
    left: clamp(1.7rem, 3vw, 2.4rem);
  }

  .copy-panel.section-one {
    width: min(535px, 49vw);
    transform: translateY(calc(-50% + 18px)) scale(0.985);
  }

  .copy-panel.section-two {
    width: min(535px, 49vw);
    transform: translateY(calc(-50% + 18px)) scale(0.985);
  }

  .copy-panel.section-three {
    width: min(580px, 53vw);
    transform: translateY(calc(-50% + 18px)) scale(0.985);
  }

  .copy-panel.section-four {
    width: min(580px, 53vw);
    transform: translateY(calc(-50% + 18px)) scale(0.985);
  }

  .copy-panel.section-one.active,
  .copy-panel.section-two.active,
  .copy-panel.section-three.active,
  .copy-panel.section-four.active {
    transform: translateY(-50%) scale(1);
  }

  /* The rail has no safe outside gutter on short 1100px screens. */
  .section-rail {
    display: none;
  }

  .section-three-shell,
  .section-four-shell {
    padding: 0.72rem;
    border-radius: 20px;
  }

  .section-three-head,
  .section-four-head {
    padding-right: 0.4rem;
  }

  .section-three .copy-title,
  .section-four .copy-title {
    margin-top: 0.3rem;
    font-size: clamp(1.42rem, 2.35vw, 1.85rem);
    line-height: 1.22;
  }

  .section-three .copy-desc,
  .section-four .copy-desc {
    margin-top: 0.35rem;
    font-size: 0.66rem;
    line-height: 1.45;
  }

  .section-three .feature-grid,
  .section-four .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    margin-top: 0.48rem;
  }

  .section-three .feature-card,
  .section-four .capability-card {
    min-height: 91px;
    gap: 0.32rem;
    padding: 0.55rem 0.6rem;
    border-radius: 13px;
  }

  .section-three .feature-icon,
  .section-four .capability-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .section-three .feature-card h3,
  .section-four .capability-card h3 {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .section-three .feature-card p,
  .section-four .capability-card p {
    margin: 0;
    font-size: 0.6rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .section-three .stats-row {
    margin-top: 0.38rem;
    padding: 0.38rem 0;
  }

  .section-three .mini-stat {
    padding: 0.35rem 0.4rem;
  }

  .section-three .mini-stat span {
    font-size: 1.05rem;
  }

  .section-three .mini-stat small {
    margin-top: 0.12rem;
    font-size: 0.58rem;
  }

  .section-four .capability-card-wide {
    min-height: 82px;
    padding-left: 2.75rem;
  }

  .section-four .capability-card-wide .capability-arrow {
    left: 0.55rem;
    bottom: 0.55rem;
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

/* =========================================================
   Final 1100 x 640 composition tuning
   - keep sections comfortably inset instead of near full-width
   - keep regular capability icons above the copy
   - keep the wide capability icon beside its copy
   ========================================================= */
.section-four .capability-card-wide {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding-left: 0.8rem;
}

.section-four .capability-card-wide .capability-icon {
  flex: 0 0 40px;
  margin: 0;
}

.section-four .capability-card-wide .capability-copy {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.section-four .capability-card-wide .capability-arrow {
  position: static;
  flex: 0 0 34px;
  margin: 0;
  margin-right: auto;
}

@media (min-width: 993px) and (max-width: 1200px) and (max-height: 700px) {
  .copy-panel.section-four {
    width: min(800px, 74vw);
  }

  .copy-panel.section-five:not(.show-certificates) {
    width: min(850px, 78vw);
  }

  .section-four .capability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-four .capability-card-wide {
    grid-column: 1 / -1;
    min-height: 74px;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
  }

  .section-four .capability-card-wide .capability-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .section-four .capability-card-wide .capability-copy {
    width: auto;
  }

  .section-four .capability-card-wide .capability-arrow {
    position: static;
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    margin: 0;
    margin-right: auto;
  }
}
