/* =========================
   DESIGN TOKENS
========================= */

:root {
  --page-background: #f8f2eb;
  --sidebar-background: rgba(255, 251, 246, 0.88);

  --card-background: rgba(255, 253, 250, 0.88);
  --card-solid: #fffdfa;

  --primary-text: #291b14;
  --secondary-text: #756961;

  --orange: #d96532;
  --orange-dark: #a9441d;
  --orange-soft: #f8e5d7;

  --border: rgba(78, 52, 37, 0.12);

  --sidebar-width: 250px;

  --heading-font:
    "Playfair Display",
    Georgia,
    serif;

  --body-font:
    "DM Sans",
    Arial,
    sans-serif;
}


/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  color: var(--primary-text);
  background:
    radial-gradient(
      circle at 75% 5%,
      rgba(232, 169, 126, 0.12),
      transparent 30%
    ),
    var(--page-background);

  font-family: var(--body-font);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
  font: inherit;
}


/* =========================
   FIXED SIDEBAR
========================= */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;

  display: flex;
  width: var(--sidebar-width);
  height: 100vh;
  flex-direction: column;

  padding: 37px 20px 28px;

  background: var(--sidebar-background);
  border-right: 1px solid var(--border);

  backdrop-filter: blur(20px);
}

.sidebar-profile {
  padding: 0 18px 28px;
  border-bottom: 1px solid var(--border);
}

.profile-picture {
  display: block;
  width: 122px;
  height: 122px;
  margin-bottom: 18px;

  overflow: hidden;

  background: var(--orange-soft);
  border-radius: 50%;

  box-shadow:
    0 12px 28px rgba(77, 47, 29, 0.12);
}

.profile-picture img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.sidebar-profile h2 {
  display: flex;
  align-items: center;
  gap: 7px;

  font-family: var(--heading-font);
  font-size: 23px;
  line-height: 1.15;
}

.sidebar-profile > p {
  margin-top: 6px;

  color: var(--secondary-text);
  font-size: 15px;
}

.profile-mark {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;

  color: white;
  background: var(--orange);
  border-radius: 50%;

  font-family: var(--body-font);
  font-size: 10px;
}


/* =========================
   SOCIAL LINKS
========================= */

.social-links {
  display: flex;
  align-items: center;
  gap: 13px;

  margin-top: 22px;
}

.social-links a {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;

  color: #1f1c1a;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.social-links a:hover {
  color: var(--orange);
  transform: translateY(-3px);
}


/* =========================
   SIDEBAR NAVIGATION
========================= */

.sidebar-navigation {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;

  padding-top: 22px;
}

.navigation-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 17px;

  padding: 0 18px;

  color: #3a302a;
  border-radius: 14px;

  font-size: 15px;
  font-weight: 500;

  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.navigation-link:hover {
  color: var(--orange-dark);
  background: rgba(217, 101, 50, 0.07);
  transform: translateX(3px);
}

.navigation-link.active {
  color: var(--orange-dark);
  background:
    linear-gradient(
      90deg,
      #f5dfcf,
      rgba(249, 232, 220, 0.7)
    );
}

.navigation-link.active .icon {
  stroke-width: 2.1;
}


/* =========================
   SIDEBAR FOOTER
========================= */

.sidebar-footer {
  padding: 19px 18px 0;

  color: var(--secondary-text);
  border-top: 1px solid var(--border);

  font-size: 12px;
  line-height: 1.7;
}


/* =========================
   MAIN AREA
========================= */

.main-content {
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;

  margin-left: var(--sidebar-width);
  padding: 26px 28px;
}


/* =========================
   MOBILE NAVIGATION
========================= */

.mobile-menu-button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 250;

  display: none;
  width: 48px;
  height: 48px;

  padding: 12px;

  background: var(--orange);
  border: 0;
  border-radius: 13px;

  cursor: pointer;
  box-shadow:
    0 12px 25px rgba(112, 54, 25, 0.2);
}

.mobile-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;

  background: white;
  border-radius: 5px;

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.mobile-menu-button.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;

  visibility: hidden;

  background: rgba(45, 28, 18, 0.28);
  opacity: 0;

  backdrop-filter: blur(3px);

  transition:
    visibility 180ms ease,
    opacity 180ms ease;
}

.sidebar-overlay.visible {
  visibility: visible;
  opacity: 1;
}


/* =========================
   RESPONSIVE SIDEBAR
========================= */

@media (max-width: 850px) {
  .mobile-menu-button {
    display: block;
  }

  .sidebar {
    width: 280px;
    transform: translateX(-105%);

    transition:
      transform 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    width: 100%;
    margin-left: 0;
    padding: 82px 18px 24px;
  }
}

@media (max-height: 760px) and (min-width: 851px) {
  .sidebar {
    overflow-y: auto;
  }

  .navigation-link {
    min-height: 46px;
  }
}
/* =========================
   HOMEPAGE HERO
========================= */

.home-hero {
  display: flex;
  min-height: 130px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;

  margin-bottom: 24px;
}

.home-hero > div {
  max-width: 980px;
}

.home-hero h1 {
  max-width: 950px;

  font-family: var(--heading-font);
  font-size: clamp(46px, 4.5vw, 71px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.home-hero p {
  margin-top: 13px;

  color: var(--secondary-text);
  font-size: 17px;
}

.primary-button {
  display: inline-flex;
  min-width: 205px;
  min-height: 58px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 0 23px;

  color: white;
  background:
    linear-gradient(
      135deg,
      #e27a48,
      var(--orange)
    );

  border-radius: 16px;

  font-size: 15px;
  font-weight: 600;

  box-shadow:
    0 14px 25px rgba(166, 65, 25, 0.2);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:hover {
  box-shadow:
    0 18px 32px rgba(166, 65, 25, 0.28);

  transform: translateY(-3px);
}


/* =========================
   SHARED HOMEPAGE CARDS
========================= */

.home-card {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.82),
      rgba(255, 251, 246, 0.72)
    );

  border: 1px solid var(--border);
  border-radius: 20px;

  box-shadow:
    0 13px 30px rgba(77, 48, 30, 0.06);
}

.home-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  background:
    radial-gradient(
      280px circle at
      var(--pointer-x, 50%)
      var(--pointer-y, 50%),
      rgba(224, 108, 56, 0.07),
      transparent 60%
    );

  content: "";
}

.home-card > * {
  position: relative;
  z-index: 1;
}


/* =========================
   TOOLS STRIP
========================= */

.tools-strip {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 28px;

  margin-bottom: 18px;
  padding: 18px 28px;
}

.tools-heading {
  display: flex;
  min-width: 205px;
  flex-direction: column;
}

.tools-heading span {
  color: var(--orange-dark);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tools-heading strong {
  margin-top: 2px;

  font-family: var(--heading-font);
  font-size: 22px;
}

.tools-divider {
  width: 1px;
  height: 48px;

  background: var(--border);
}

.tools-logos {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}

.tool-logo {
  display: flex;
  align-items: center;
  gap: 10px;

  white-space: nowrap;
}

.tool-logo span {
  display: grid;
  min-width: 35px;
  height: 35px;
  place-items: center;

  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 10px;

  font-size: 12px;
  font-weight: 800;
}

.tool-logo strong {
  font-size: 17px;
}


/* =========================
   HOMEPAGE BENTO GRID
========================= */

.home-grid {
  display: grid;
  grid-template-columns:
    repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.projects-card {
  min-height: 355px;
  grid-column: span 6;

  padding: 21px;
}

.about-card {
  min-height: 355px;
  grid-column: span 3;

  padding: 21px;
}

.builds-card {
  min-height: 355px;
  grid-column: span 3;

  padding: 21px;
}

.services-card {
  min-height: 315px;
  grid-column: span 4;

  padding: 21px;
}

.credentials-card {
  min-height: 315px;
  grid-column: span 4;

  padding: 21px;
}

.testimonial-card {
  min-height: 315px;
  grid-column: span 4;

  padding: 21px;
}


/* =========================
   CARD HEADINGS
========================= */

.card-heading-row {
  display: flex;
  align-items: center;
  gap: 13px;

  min-height: 48px;
}

.round-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  place-items: center;

  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 50%;

  font-weight: 700;
}

.card-heading-row h2 {
  font-family: var(--heading-font);
  font-size: 22px;
  line-height: 1.1;
}

.card-heading-row p {
  margin-top: 3px;

  color: var(--secondary-text);
  font-size: 12px;
}

.card-heading-row > a {
  margin-left: auto;

  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 600;

  transition: transform 180ms ease;
}

.card-heading-row > a:hover {
  transform: translateX(3px);
}


/* =========================
   RESPONSIVE HOMEPAGE
========================= */

@media (max-width: 1250px) {
  .projects-card {
    grid-column: span 8;
  }

  .about-card {
    grid-column: span 4;
  }

  .builds-card {
    grid-column: span 4;
  }

  .services-card,
  .credentials-card,
  .testimonial-card {
    grid-column: span 6;
  }
}

@media (max-width: 1050px) {
  .home-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero .primary-button {
    min-width: 190px;
  }

  .tools-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .tools-divider {
    display: none;
  }

  .tools-logos {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .projects-card,
  .about-card,
  .builds-card,
  .services-card,
  .credentials-card,
  .testimonial-card {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .home-hero h1 {
    font-size: 46px;
  }

  .home-hero .primary-button {
    width: 100%;
  }

  .tools-strip {
    padding: 22px;
  }

  .tool-logo {
    width: calc(50% - 10px);
  }

  .projects-card,
  .about-card,
  .builds-card,
  .services-card,
  .credentials-card,
  .testimonial-card {
    grid-column: 1 / -1;
  }
}
/* =========================
   PROJECT DASHBOARD PREVIEW
========================= */

.dashboard-preview {
  display: block;
  overflow: hidden;

  height: 255px;
  margin-top: 17px;

  background: #fbf8f4;
  border: 1px solid var(--border);
  border-radius: 15px;

  box-shadow:
    0 16px 30px rgba(73, 44, 27, 0.1);

  transform-style: preserve-3d;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.dashboard-preview:hover {
  box-shadow:
    0 24px 38px rgba(73, 44, 27, 0.15);
}

.browser-top {
  display: flex;
  height: 29px;
  align-items: center;
  gap: 5px;

  padding: 0 10px;

  background: #fffdfb;
  border-bottom: 1px solid var(--border);
}

.browser-top span {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}

.browser-top span:nth-child(1) {
  background: #ef645e;
}

.browser-top span:nth-child(2) {
  background: #eebc43;
}

.browser-top span:nth-child(3) {
  background: #4fc26d;
}

.dashboard-body {
  display: grid;
  height: calc(100% - 29px);

  grid-template-columns:
    105px minmax(0, 1fr) 135px;
}

.dashboard-menu {
  display: flex;
  flex-direction: column;
  gap: 13px;

  padding: 18px 12px;

  color: #9c8d84;
  background: #f8f3ed;

  font-size: 9px;
}

.dashboard-menu strong {
  padding: 7px 8px;

  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 7px;
}

.dashboard-main {
  padding: 18px 14px;
}

.dashboard-main h3,
.workflow-preview h3 {
  font-size: 11px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;

  margin-top: 14px;
}

.dashboard-stats div {
  padding: 9px 7px;

  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.dashboard-stats strong,
.dashboard-stats span {
  display: block;
}

.dashboard-stats strong {
  font-size: 11px;
}

.dashboard-stats span {
  margin-top: 3px;

  color: var(--secondary-text);
  font-size: 7px;
}

.dashboard-chart {
  display: flex;
  height: 80px;
  align-items: flex-end;
  justify-content: space-around;
  gap: 7px;

  margin-top: 15px;
  padding: 10px 12px 0;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 19px,
      rgba(85, 55, 38, 0.06) 20px
    );

  border: 1px solid var(--border);
  border-radius: 8px;
}

.dashboard-chart i {
  display: block;
  width: 13px;

  background:
    linear-gradient(
      to top,
      #dea06f,
      #f0c8aa
    );

  border-radius: 4px 4px 0 0;
}

.workflow-preview {
  display: flex;
  flex-direction: column;
  gap: 7px;

  padding: 18px 10px;

  background: #fffaf5;
  border-left: 1px solid var(--border);
}

.workflow-preview span {
  position: relative;

  padding: 8px 5px;

  color: #6d5d54;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;

  font-size: 7px;
  text-align: center;
}

.workflow-preview span:not(:last-child)::after {
  position: absolute;
  right: 50%;
  bottom: -8px;

  color: var(--orange);

  content: "↓";
  transform: translateX(50%);
}


/* =========================
   ABOUT POLAROID
========================= */

.polaroid-stack {
  position: relative;

  display: block;
  height: 260px;
  margin-top: 19px;

  transform-style: preserve-3d;

  transition: transform 180ms ease;
}

.polaroid {
  position: absolute;
  left: 50%;

  width: 175px;
  height: 218px;

  background: white;
  border: 1px solid rgba(90, 57, 38, 0.12);

  box-shadow:
    0 16px 28px rgba(70, 42, 25, 0.15);
}

.polaroid-back-one {
  top: 22px;

  transform:
    translateX(-61%)
    rotate(-8deg);
}

.polaroid-back-two {
  top: 17px;

  transform:
    translateX(-39%)
    rotate(7deg);
}

.polaroid-main {
  top: 8px;
  z-index: 3;

  padding: 9px 9px 43px;

  transform:
    translateX(-50%)
    rotate(-2deg);
}

.polaroid-main img {
  width: 100%;
  height: 150px;

  object-fit: cover;
  object-position: center 30%;
}

.polaroid-main span {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;

  font-family: cursive;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
}


/* =========================
   AI BUILDS
========================= */

.build-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 9px;

  margin-top: 25px;
}

.build-tags span {
  padding: 10px 14px;

  color: #4d4038;
  background: #f6eee7;
  border: 1px solid rgba(87, 57, 40, 0.06);
  border-radius: 20px;

  font-size: 12px;

  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.build-tags span:hover {
  color: white;
  background: var(--orange);
  transform: translateY(-3px);
}


/* =========================
   HOME SERVICES
========================= */

.home-services-list {
  margin-top: 18px;
}

.home-service-item {
  display: grid;
  grid-template-columns: 43px 1fr;
  align-items: center;
  gap: 13px;

  padding: 9px 0;

  border-bottom: 1px solid var(--border);
}

.home-service-item:last-child {
  border-bottom: 0;
}

.home-service-item > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;

  background: #f7eee7;
  border-radius: 50%;

  font-family: var(--heading-font);
  font-size: 12px;
}

.home-service-item strong {
  display: block;
  font-size: 13px;
}

.home-service-item p {
  margin-top: 2px;

  color: var(--secondary-text);
  font-size: 10px;
}


/* =========================
   CAPABILITIES
========================= */

.capability-seal {
  display: flex;
  justify-content: center;

  margin-top: 17px;
}

.capability-seal > div {
  display: flex;
  width: 145px;
  height: 145px;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle,
      #fffdf9,
      #f6e7dc
    );

  border: 2px solid #ecd0bc;
  border-radius: 50%;

  box-shadow:
    inset 0 0 0 7px #fff9f4,
    0 12px 23px rgba(75, 43, 25, 0.08);

  text-align: center;
}

.capability-seal span {
  color: var(--orange);
  font-size: 18px;
}

.capability-seal strong {
  margin-top: 3px;

  font-family: var(--heading-font);
  font-size: 17px;
  line-height: 1.05;
}

.capability-seal small {
  margin-top: 7px;

  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.capability-list {
  display: grid;
  gap: 6px;

  margin-top: 14px;

  list-style: none;
}

.capability-list li {
  color: var(--secondary-text);
  font-size: 10px;
}

.capability-list li::first-letter {
  color: var(--orange);
}


/* =========================
   TESTIMONIAL CARD
========================= */

.testimonial-placeholder {
  position: relative;

  min-height: 178px;
  margin: 20px 25px 0;
  padding: 25px;

  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow:
    0 15px 28px rgba(71, 43, 27, 0.08);
}

.testimonial-placeholder > span {
  color: var(--orange);
  font-family: var(--heading-font);
  font-size: 40px;
  line-height: 0.6;
}

.testimonial-placeholder > p {
  margin-top: 12px;

  color: #55473f;
  font-size: 12px;
  line-height: 1.6;
}

.testimonial-placeholder > div {
  margin-top: 17px;
}

.testimonial-placeholder strong,
.testimonial-placeholder small {
  display: block;
}

.testimonial-placeholder strong {
  font-size: 12px;
}

.testimonial-placeholder small {
  margin-top: 2px;

  color: var(--secondary-text);
  font-size: 9px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 7px;

  margin-top: 15px;
}

.testimonial-dots i {
  width: 7px;
  height: 7px;

  background: #d9d2cd;
  border-radius: 50%;
}

.testimonial-dots i.active {
  background: var(--orange);
}


/* =========================
   REVEAL MOTION
========================= */

.reveal {
  opacity: 0;

  transform: translateY(18px);

  transition:
    opacity 550ms ease var(--reveal-delay, 0ms),
    transform 550ms ease var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden;
}


/* =========================
   RESPONSIVE CARD CONTENT
========================= */

@media (max-width: 1250px) {
  .builds-card {
    grid-column: span 4;
  }

  .credentials-card,
  .testimonial-card {
    grid-column: span 4;
  }
}

@media (max-width: 1050px) {
  .dashboard-body {
    grid-template-columns:
      90px minmax(0, 1fr);
  }

  .workflow-preview {
    display: none;
  }
}

@media (max-width: 700px) {
  .dashboard-body {
    grid-template-columns:
      80px minmax(0, 1fr);
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stats div:nth-child(2),
  .dashboard-stats div:nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* =========================
   PROJECTS PAGE HEADER
========================= */

.projects-header {
  margin-bottom: 22px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 8px;

  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.projects-header h1 {
  font-family: var(--heading-font);
  font-size: clamp(48px, 5vw, 68px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.projects-header > p {
  max-width: 850px;
  margin-top: 8px;

  color: var(--secondary-text);
  font-size: 16px;
}


/* =========================
   PROJECT FILTERS
========================= */

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 18px;
}

.project-filter {
  min-height: 41px;
  padding: 0 20px;

  color: #4b3e36;
  background: #f4e9df;

  border: 1px solid transparent;
  border-radius: 22px;

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;

  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.project-filter:hover {
  color: var(--orange-dark);
  transform: translateY(-2px);
}

.project-filter.active {
  color: white;
  background:
    linear-gradient(
      135deg,
      #e27a48,
      var(--orange)
    );

  box-shadow:
    0 9px 18px rgba(167, 67, 27, 0.18);
}


/* =========================
   PROJECT GRID
========================= */

.projects-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: block;
  overflow: hidden;

  padding: 13px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.88),
      rgba(255, 251, 247, 0.78)
    );

  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow:
    0 14px 30px rgba(75, 45, 27, 0.07);

  transition:
    opacity 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.project-card:hover {
  box-shadow:
    0 25px 42px rgba(75, 45, 27, 0.13);

  transform: translateY(-7px);
}

.project-card.hidden {
  display: none;
}


/* =========================
   PROJECT BROWSER MOCKUP
========================= */

.project-browser {
  overflow: hidden;

  height: 245px;

  background: #fbf8f5;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.project-browser-body {
  display: grid;
  height: calc(100% - 29px);

  grid-template-columns:
    96px minmax(0, 1fr);
}

.project-browser-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 14px 10px;

  color: #9a8b82;
  background: #f7f1eb;

  border-right: 1px solid var(--border);

  font-size: 8px;
}

.project-browser-menu strong {
  overflow: hidden;

  padding: 7px 6px;

  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 7px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-browser-main {
  padding: 14px;
}

.project-browser-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-browser-title > strong {
  overflow: hidden;

  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-browser-title > span {
  flex-shrink: 0;

  color: #25834d;
  font-size: 7px;
}

.project-browser-stats {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 7px;

  margin-top: 13px;
}

.project-browser-stats div {
  padding: 9px 7px;

  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.project-browser-stats strong,
.project-browser-stats span {
  display: block;
}

.project-browser-stats strong {
  font-size: 12px;
}

.project-browser-stats span {
  margin-top: 2px;

  color: var(--secondary-text);
  font-size: 7px;
}

.project-browser-flow {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 7px;

  margin-top: 12px;
}

.project-browser-flow div {
  display: flex;
  min-height: 41px;
  align-items: center;
  gap: 7px;

  padding: 7px;

  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.project-browser-flow span {
  display: grid;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  place-items: center;

  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 50%;

  font-size: 7px;
}

.project-browser-flow strong {
  overflow: hidden;

  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================
   PROJECT CARD DETAILS
========================= */

.project-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;

  padding: 16px 3px 10px;
}

.project-card-heading h2 {
  font-family: var(--heading-font);
  font-size: 20px;
  line-height: 1.1;
}

.project-card-heading p {
  display: -webkit-box;
  overflow: hidden;

  margin-top: 7px;

  color: var(--secondary-text);

  font-size: 10px;
  line-height: 1.45;

  display: -webkit-box;
line-clamp: 2;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.project-card-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  font-size: 17px;

  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.project-card:hover
.project-card-heading > span {
  color: white;
  background: var(--orange);

  transform: translateX(3px);
}

.project-card-footer {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 0 3px;
}

.project-category {
  flex-shrink: 0;

  padding: 6px 10px;

  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 15px;

  font-size: 9px;
  font-weight: 600;
}

.project-tool-list {
  display: flex;
  overflow: hidden;
  gap: 5px;
}

.project-tool-list span {
  padding: 5px 7px;

  color: var(--secondary-text);
  background: #f5eee8;
  border-radius: 12px;

  font-size: 8px;
  white-space: nowrap;
}


/* =========================
   PROJECT CTA
========================= */

.project-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;

  margin-top: 16px;
  padding: 21px 27px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.86),
      rgba(255, 248, 242, 0.76)
    );

  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow:
    0 13px 30px rgba(75, 45, 27, 0.06);
}

.project-cta h2 {
  font-family: var(--heading-font);
  font-size: 28px;
}

.project-cta p {
  margin-top: 3px;

  color: var(--secondary-text);
  font-size: 12px;
}

.project-cta .primary-button {
  min-width: 180px;
  min-height: 48px;
}


/* =========================
   PROJECTS RESPONSIVE
========================= */

@media (max-width: 1250px) {
  .projects-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-browser {
    height: 225px;
  }

  .project-browser-body {
    grid-template-columns:
      80px minmax(0, 1fr);
  }

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

  .project-cta .primary-button {
    width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .project-browser-menu {
    display: none;
  }

  .project-browser-body {
    grid-template-columns: 1fr;
  }

  .project-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* =========================
   PROJECT VIDEO CAROUSEL
========================= */

.video-carousel {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.video-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(45px) scale(0.98);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    visibility 0.65s;
}

.video-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.project-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  color: white;
  background:
    linear-gradient(
      to top,
      rgba(13, 9, 5, 0.92) 0%,
      rgba(13, 9, 5, 0.28) 55%,
      transparent 100%
    );
}

.video-overlay span {
  display: block;
  margin-bottom: 6px;
  color: #ff9c5a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.video-overlay h3 {
  margin: 0 0 3px;
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
}

.video-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.video-overlay a {
  flex-shrink: 0;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.video-overlay a:hover {
  color: #1b110b;
  background: white;
  transform: translateY(-2px);
}

.video-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: white;
  background: rgba(15, 10, 7, 0.48);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.video-carousel:hover .video-control {
  opacity: 1;
}

.video-control:hover {
  color: #2a160c;
  background: white;
}

.video-previous {
  left: 12px;
}

.video-next {
  right: 12px;
}

.video-dots {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 6;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.video-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.3s ease;
}

.video-dot.active {
  width: 22px;
  border-radius: 10px;
  background: #ff7a31;
}

@media (max-width: 650px) {
  .video-carousel {
    height: 235px;
  }

  .video-overlay {
    padding: 18px;
  }

  .video-overlay h3 {
    font-size: 1.2rem;
  }

  .video-overlay a {
    display: none;
  }

  .video-control {
    opacity: 1;
  }
}
/* ========================================
   CASE-STUDY PAGE
======================================== */

.case-study-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 46px 38px 70px;
}

.case-study-page > .back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--secondary-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.case-study-page > .back-link:hover {
  color: var(--orange);
  transform: translateX(-3px);
}


/* HERO */

.case-study-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(420px, 1.15fr);
  align-items: center;
  gap: 54px;

  padding: 42px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 246, 238, 0.78)
    );

  border: 1px solid var(--border);
  border-radius: 24px;

  box-shadow:
    0 20px 50px rgba(75, 45, 27, 0.08);
}

.case-study-heading {
  min-width: 0;
}

.case-study-category {
  display: inline-flex;
  margin-bottom: 17px;
  padding: 7px 11px;

  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 999px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-study-heading h1 {
  max-width: 570px;
  margin: 0;

  color: var(--primary-text);
  font-family: var(--heading-font);
  font-size: clamp(38px, 5vw, 67px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.case-study-heading > p {
  max-width: 560px;
  margin: 22px 0 0;

  color: var(--secondary-text);
  font-size: 14px;
  line-height: 1.75;
}

.case-study-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 25px;
}

.case-study-tools span {
  padding: 7px 10px;

  color: var(--secondary-text);
  background: #f4ece5;
  border: 1px solid rgba(100, 70, 50, 0.08);
  border-radius: 999px;

  font-size: 10px;
  font-weight: 600;
}


/* VIDEO */

.case-study-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;

  background: #111;
  border: 1px solid rgba(75, 45, 27, 0.15);
  border-radius: 18px;

  box-shadow:
    0 20px 40px rgba(35, 20, 12, 0.16);
}

.case-study-video-frame::before {
  position: absolute;
  top: 13px;
  left: 15px;
  z-index: 2;

  width: 7px;
  height: 7px;

  background: #ff765c;
  border-radius: 50%;

  box-shadow:
    13px 0 #ffc45c,
    26px 0 #62c976;

  content: "";
  pointer-events: none;
}

.case-study-video-frame video {
  display: block;
  width: 100%;
  height: 100%;

  background: #071d29;
  object-fit: cover;
}


/* MAIN CONTENT */

.case-study-content {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    270px;
  align-items: start;
  gap: 36px;

  margin-top: 36px;
}

.case-study-main {
  display: grid;
  gap: 18px;
}

.case-study-section {
  padding: 35px;

  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.section-label {
  display: block;
  margin-bottom: 10px;

  color: var(--orange);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.case-study-section h2 {
  margin: 0 0 13px;

  color: var(--primary-text);
  font-family: var(--heading-font);
  font-size: 30px;
  line-height: 1.1;
}

.case-study-section > p {
  margin: 0;

  color: var(--secondary-text);
  font-size: 13px;
  line-height: 1.8;
}


/* WORKFLOW STEPS */

.case-study-workflow {
  display: grid;
  gap: 9px;
  margin-top: 23px;
}

.case-study-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;

  padding: 13px 15px;

  background: #fbf7f3;
  border: 1px solid rgba(100, 70, 50, 0.09);
  border-radius: 13px;

  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.case-study-step:hover {
  background: white;
  border-color: rgba(237, 106, 43, 0.35);
  transform: translateX(4px);
}

.case-study-step > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;

  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 50%;

  font-size: 10px;
  font-weight: 700;
}

.case-study-step p {
  margin: 0;

  color: var(--primary-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}


/* INFORMATION SIDEBAR */

.case-study-sidebar {
  position: sticky;
  top: 28px;

  display: grid;
  gap: 11px;
}

.case-study-info-card {
  display: grid;
  gap: 6px;

  padding: 18px;

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.case-study-info-card span {
  color: var(--secondary-text);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study-info-card strong {
  color: var(--primary-text);
  font-size: 12px;
  line-height: 1.4;
}

.case-study-info-card .project-status {
  color: #468a5a;
}

.case-study-contact {
  width: 100%;
  margin-top: 5px;
  text-align: center;
}


/* BOTTOM CTA */

.case-study-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  margin-top: 36px;
  padding: 35px 39px;

  color: white;
  background:
    linear-gradient(
      135deg,
      #2b1910,
      #59301c
    );

  border-radius: 22px;

  box-shadow:
    0 18px 40px rgba(43, 25, 16, 0.18);
}

.case-study-next span {
  color: #ffac76;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.case-study-next h2 {
  max-width: 650px;
  margin: 7px 0 0;

  color: white;
  font-family: var(--heading-font);
  font-size: 29px;
  line-height: 1.12;
}

.case-study-next .primary-button {
  flex-shrink: 0;
  background: var(--orange);
}


/* PROJECT NOT FOUND */

.case-study-error {
  display: grid;
  min-height: 75vh;
  place-items: center;
  align-content: center;
  padding: 40px;
  text-align: center;
}

.case-study-error > span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.case-study-error h1 {
  margin: 8px 0;
  font-family: var(--heading-font);
  font-size: 50px;
}

.case-study-error p {
  margin: 0 0 25px;
  color: var(--secondary-text);
}


/* RESPONSIVE */

@media (max-width: 1050px) {
  .case-study-hero {
    grid-template-columns: 1fr;
  }

  .case-study-video-frame {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .case-study-page {
    padding: 80px 18px 45px;
  }

  .case-study-hero {
    gap: 32px;
    padding: 27px;
  }

  .case-study-content {
    grid-template-columns: 1fr;
  }

  .case-study-sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .case-study-contact {
    grid-column: 1 / -1;
  }

  .case-study-next {
    align-items: flex-start;
    flex-direction: column;
    padding: 29px;
  }
}

@media (max-width: 520px) {
  .case-study-heading h1 {
    font-size: 38px;
  }

  .case-study-section {
    padding: 25px 21px;
  }

  .case-study-sidebar {
    grid-template-columns: 1fr;
  }

  .case-study-next h2 {
    font-size: 24px;
  }

  .case-study-next .primary-button {
    width: 100%;
  }
}
/* ========================================
   CASE-STUDY SIDEBAR LAYOUT FIX
======================================== */

body[data-page="case-study"] #sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;

  width: var(--sidebar-width, 260px);
  height: 100vh;
  overflow-y: auto;

  background: rgba(255, 250, 245, 0.96);
  border-right: 1px solid var(--border);

  box-sizing: border-box;
}

body[data-page="case-study"] #app {
  width: calc(
    100% - var(--sidebar-width, 260px)
  );

  min-width: 0;
  min-height: 100vh;

  margin-left: var(--sidebar-width, 260px);

  box-sizing: border-box;
}

@media (max-width: 760px) {
  body[data-page="case-study"] #sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 250ms ease;
  }

  body[data-page="case-study"] #sidebar.open {
    transform: translateX(0);
  }

  body[data-page="case-study"] #app {
    width: 100%;
    margin-left: 0;
  }
}
/* ========================================
   DETAILED CASE-STUDY SECTIONS
======================================== */

/* BUSINESS PROBLEM + SOLUTION */

.case-business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.case-detail-card {
  position: relative;
  overflow: hidden;

  padding: 32px;

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 20px;

  box-shadow:
    0 12px 30px rgba(75, 45, 27, 0.05);
}

.case-detail-card::before {
  position: absolute;
  inset: 0 auto 0 0;

  width: 3px;

  background: var(--orange);
  content: "";
}

.problem-card::before {
  background: #d86b43;
}

.solution-card::before {
  background: #59966c;
}

.case-detail-card h2 {
  margin: 0 0 14px;

  color: var(--primary-text);
  font-family: var(--heading-font);
  font-size: 29px;
  line-height: 1.15;
}

.case-detail-card > p {
  margin: 0;

  color: var(--secondary-text);
  font-size: 13px;
  line-height: 1.8;
}


/* ALL MAIN SECTIONS */

.case-business-grid
  + .case-study-section,
.case-study-section
  + .case-study-section,
.case-study-section
  + .case-operations-grid,
.case-operations-grid
  + .roi-calculator {
  margin-top: 18px;
}

.case-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.case-section-heading p {
  margin: 5px 0 0;

  color: var(--secondary-text);
  font-size: 12px;
  line-height: 1.6;
}

.estimate-badge {
  flex-shrink: 0;

  padding: 7px 10px;

  color: #9b592e;
  background: #fff0e4;
  border: 1px solid rgba(221, 119, 54, 0.2);
  border-radius: 999px;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}


/* BEFORE-AND-AFTER METRICS */

.metrics-table {
  overflow: hidden;

  margin-top: 25px;

  border: 1px solid var(--border);
  border-radius: 14px;
}

.metrics-header,
.metric-row {
  display: grid;
  grid-template-columns:
    minmax(160px, 0.9fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr);
  align-items: center;
}

.metrics-header {
  color: var(--secondary-text);
  background: #f7f0ea;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics-header span,
.metric-row > * {
  padding: 13px 17px;
}

.metric-row {
  min-height: 57px;

  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--border);
}

.metric-row:nth-child(odd) {
  background: rgba(252, 247, 243, 0.82);
}

.metric-row strong {
  color: var(--primary-text);
  font-size: 11px;
}

.metric-row span {
  font-size: 11px;
  line-height: 1.5;
}

.before-value {
  color: #926454;
}

.after-value {
  color: #36764d;
  font-weight: 600;
}

.before-value::before {
  margin-right: 7px;
  color: #c87456;
  content: "−";
}

.after-value::before {
  margin-right: 7px;
  color: #50a36b;
  content: "✓";
}


/* TOOLS + OPERATIONAL IMPROVEMENTS */

.case-operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;

  margin-top: 22px;
}

.case-tool-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;

  padding: 10px 13px;

  background: #faf5f0;
  border: 1px solid rgba(100, 70, 50, 0.1);
  border-radius: 12px;
}

.case-tool-item span {
  display: grid;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  place-items: center;

  color: white;
  background: var(--orange);
  border-radius: 50%;

  font-size: 10px;
}

.case-tool-item strong {
  color: var(--primary-text);
  font-size: 11px;
}

.improvement-list {
  display: grid;
  gap: 9px;

  margin: 21px 0 0;
  padding: 0;

  list-style: none;
}

.improvement-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 10px 12px;

  color: var(--secondary-text);
  background: #faf7f3;
  border-radius: 10px;

  font-size: 11px;
  line-height: 1.5;
}

.improvement-list li span {
  display: grid;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  place-items: center;

  color: #34734a;
  background: #e8f4eb;
  border-radius: 50%;

  font-size: 9px;
  font-weight: 700;
}


/* ROI CALCULATOR */

.roi-calculator {
  overflow: hidden;

  margin-top: 18px;
  padding: 36px;

  color: white;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(255, 132, 66, 0.2),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #24160f,
      #3a2115
    );

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;

  box-shadow:
    0 20px 45px rgba(43, 25, 16, 0.17);
}

.roi-heading {
  max-width: 650px;
}

.roi-heading .section-label {
  color: #ff9f67;
}

.roi-heading h2 {
  margin: 0;

  color: white;
  font-family: var(--heading-font);
  font-size: 34px;
}

.roi-heading p {
  margin: 8px 0 0;

  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.6;
}

.roi-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(300px, 0.85fr);
  gap: 28px;

  margin-top: 29px;
}

.roi-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.roi-inputs label {
  display: grid;
  gap: 7px;
}

.roi-inputs label > span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.roi-inputs input {
  width: 100%;
  min-height: 44px;

  padding: 0 13px;

  color: white;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  outline: none;

  font-family: inherit;
  font-size: 12px;

  box-sizing: border-box;

  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.roi-inputs input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ff8b4c;
}

.roi-results {
  display: grid;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
}

.roi-results > div {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 10px 15px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.08);
}

.roi-results > div:last-child {
  border-bottom: 0;
}

.roi-results span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.roi-results strong {
  color: #ffae78;
  font-size: 14px;
  text-align: right;
}

.roi-disclaimer {
  margin: 22px 0 0;
  padding-top: 17px;

  color: rgba(255, 255, 255, 0.44);
  border-top: 1px solid rgba(255, 255, 255, 0.09);

  font-size: 9px;
  line-height: 1.6;
}


/* RESPONSIVE */

@media (max-width: 950px) {
  .case-business-grid,
  .case-operations-grid {
    grid-template-columns: 1fr;
  }

  .roi-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .case-detail-card,
  .roi-calculator {
    padding: 25px 21px;
  }

  .case-section-heading {
    flex-direction: column;
    gap: 12px;
  }

  .metrics-table {
    overflow-x: auto;
  }

  .metrics-header,
  .metric-row {
    min-width: 620px;
  }

  .case-tool-grid,
  .roi-inputs {
    grid-template-columns: 1fr;
  }

  .roi-heading h2 {
    font-size: 28px;
  }
}
/* MULTI-CURRENCY ROI CONTROLS */

.roi-currency-row {
  display: grid;
  grid-template-columns:
    auto minmax(220px, 320px) 1fr;
  align-items: center;
  gap: 12px;

  margin-top: 24px;
  padding: 13px 15px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.roi-currency-row label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
}

.roi-currency-row select {
  width: 100%;
  min-height: 40px;

  padding: 0 12px;

  color: white;
  background: #3a271e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  outline: none;

  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

.roi-currency-row small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  line-height: 1.5;
}

.roi-inputs b {
  color: #ff9f67;
  font-size: inherit;
}

.roi-simple-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.roi-result-card {
  display: grid;
  min-height: 90px;
  align-content: center;
  gap: 7px;

  padding: 15px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
}

.roi-result-card.featured {
  background:
    linear-gradient(
      145deg,
      rgba(244, 117, 52, 0.24),
      rgba(244, 117, 52, 0.08)
    );

  border-color: rgba(255, 143, 82, 0.38);
}

.roi-result-card span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  line-height: 1.4;
}

.roi-result-card strong {
  color: #ffae78;
  font-family: var(--heading-font);
  font-size: 22px;
  line-height: 1.1;
}

.roi-reset-button {
  grid-column: 1 / -1;

  min-height: 42px;

  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;

  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.roi-reset-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 720px) {
  .roi-currency-row {
    grid-template-columns: 1fr;
  }

  .roi-simple-results {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   ROI CALCULATOR CLARITY
======================================== */

.roi-field-help {
  display: block;
  min-height: 28px;

  color: rgba(255, 255, 255, 0.43);
  font-size: 8px;
  font-weight: 400;
  line-height: 1.45;
}

.roi-result-card small {
  display: block;

  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 400;
  line-height: 1.4;
}

.roi-result-card {
  min-height: 118px;
}

.roi-explanation {
  margin-top: 24px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
}

.roi-explanation summary {
  padding: 15px 17px;

  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
  user-select: none;
}

.roi-explanation summary:hover {
  color: #ffae78;
}

.roi-explanation > div {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;

  padding: 0 17px 17px;
}

.roi-explanation p {
  margin: 0;
  padding: 12px;

  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 9px;

  font-size: 9px;
  line-height: 1.55;
}

.roi-explanation strong {
  color: #ffae78;
}

@media (max-width: 650px) {
  .roi-explanation > div {
    grid-template-columns: 1fr;
  }

  .roi-field-help {
    min-height: 0;
  }
}
/* ========================================
   SERVICES PAGE LAYOUT
======================================== */

body[data-page="services"] #sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;

  width: var(--sidebar-width, 260px);
  height: 100vh;
  overflow-y: auto;

  background: rgba(255, 250, 245, 0.97);
  border-right: 1px solid var(--border);

  box-sizing: border-box;
}

body[data-page="services"] #app {
  width: calc(
    100% - var(--sidebar-width, 260px)
  );

  min-width: 0;
  min-height: 100vh;

  margin-left: var(--sidebar-width, 260px);

  box-sizing: border-box;
}

.services-page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 45px 38px 70px;

  box-sizing: border-box;
}

.services-page > .back-link {
  display: inline-flex;
  margin-bottom: 27px;

  color: var(--secondary-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.services-page > .back-link:hover {
  color: var(--orange);
  transform: translateX(-3px);
}


/* ========================================
   SERVICES HERO
======================================== */

.services-page-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  align-items: end;
  gap: 35px;

  margin-bottom: 27px;
  padding: 42px;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(238, 120, 57, 0.13),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 246, 238, 0.78)
    );

  border: 1px solid var(--border);
  border-radius: 24px;

  box-shadow:
    0 18px 45px rgba(75, 45, 27, 0.07);
}

.services-eyebrow {
  display: block;
  margin-bottom: 14px;

  color: var(--orange);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.services-page-hero h1 {
  max-width: 780px;
  margin: 0;

  color: var(--primary-text);
  font-family: var(--heading-font);
  font-size: clamp(40px, 5.6vw, 69px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.services-page-hero p {
  max-width: 720px;
  margin: 22px 0 0;

  color: var(--secondary-text);
  font-size: 14px;
  line-height: 1.75;
}

.services-page-hero .primary-button {
  min-width: 165px;
  flex-shrink: 0;
}


/* ========================================
   SERVICE CARDS
======================================== */

.services-page-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-page-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 520px;
  flex-direction: column;

  padding: 31px;

  background: rgba(255, 255, 255, 0.73);
  border: 1px solid var(--border);
  border-radius: 20px;

  box-shadow:
    0 13px 32px rgba(75, 45, 27, 0.05);

  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.service-page-card:hover {
  border-color: rgba(231, 110, 49, 0.3);

  box-shadow:
    0 18px 38px rgba(75, 45, 27, 0.09);

  transform: translateY(-3px);
}

.service-card-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;

  margin-bottom: 22px;

  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 50%;

  font-size: 10px;
  font-weight: 700;
}

.service-card-heading h2 {
  margin: 0;

  color: var(--primary-text);
  font-family: var(--heading-font);
  font-size: 31px;
  line-height: 1.08;
}

.service-card-heading p {
  margin: 12px 0 0;

  color: var(--secondary-text);
  font-size: 12px;
  line-height: 1.7;
}

.service-ideal {
  margin-top: 23px;
  padding: 15px;

  background: #faf5f0;
  border: 1px solid rgba(100, 70, 50, 0.09);
  border-radius: 12px;
}

.service-ideal > span,
.service-deliverables > span {
  display: block;
  margin-bottom: 7px;

  color: var(--orange);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.service-ideal p {
  margin: 0;

  color: var(--secondary-text);
  font-size: 10px;
  line-height: 1.6;
}

.service-deliverables {
  margin-top: 21px;
}

.service-deliverables ul {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.service-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 7px;

  color: var(--secondary-text);
  font-size: 9px;
  line-height: 1.45;
}

.service-deliverables li > span {
  display: grid;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  place-items: center;

  color: #38784e;
  background: #e8f3eb;
  border-radius: 50%;

  font-size: 8px;
  font-weight: 700;
}

.service-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  margin-top: auto;
  padding-top: 24px;
}

.service-tools > span {
  padding: 6px 9px;

  color: var(--secondary-text);
  background: #f4ede7;
  border-radius: 999px;

  font-size: 8px;
  font-weight: 600;
}

.service-card-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;

  margin-top: 16px;

  color: var(--primary-text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;

  font-size: 10px;
  font-weight: 700;
  text-decoration: none;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.service-card-link:hover {
  color: white;
  background: var(--orange);
  border-color: var(--orange);
}


/* ========================================
   IMPLEMENTATION PROCESS
======================================== */

.services-process {
  margin-top: 25px;
  padding: 37px;

  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 21px;
}

.services-section-heading {
  max-width: 650px;
}

.services-section-heading > span,
.services-included > div > span,
.services-final-cta > div > span {
  display: block;
  margin-bottom: 9px;

  color: var(--orange);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.services-section-heading h2,
.services-included h2 {
  margin: 0;

  color: var(--primary-text);
  font-family: var(--heading-font);
  font-size: 32px;
  line-height: 1.1;
}

.services-section-heading p {
  margin: 11px 0 0;

  color: var(--secondary-text);
  font-size: 11px;
  line-height: 1.65;
}

.service-process-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;

  margin-top: 28px;
}

.service-process-step {
  min-height: 170px;
  padding: 18px;

  background: #faf6f2;
  border: 1px solid rgba(100, 70, 50, 0.09);
  border-radius: 13px;
}

.service-process-step > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;

  margin-bottom: 18px;

  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 50%;

  font-size: 8px;
  font-weight: 700;
}

.service-process-step h3 {
  margin: 0;

  color: var(--primary-text);
  font-size: 13px;
}

.service-process-step p {
  margin: 8px 0 0;

  color: var(--secondary-text);
  font-size: 9px;
  line-height: 1.6;
}


/* ========================================
   INCLUDED SECTION
======================================== */

.services-included {
  display: grid;
  grid-template-columns:
    minmax(250px, 0.7fr)
    minmax(0, 1.3fr);
  align-items: start;
  gap: 38px;

  margin-top: 18px;
  padding: 36px;

  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 21px;
}

.services-included ul {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.services-included li {
  display: flex;
  align-items: center;
  gap: 9px;

  min-height: 43px;
  padding: 9px 11px;

  color: var(--secondary-text);
  background: #faf6f2;
  border-radius: 10px;

  font-size: 9px;
  line-height: 1.4;
}

.services-included li > span {
  display: grid;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  place-items: center;

  color: #39794f;
  background: #e7f3ea;
  border-radius: 50%;

  font-size: 8px;
  font-weight: 700;
}


/* ========================================
   SERVICES CTA
======================================== */

.services-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  margin-top: 18px;
  padding: 36px 39px;

  color: white;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 131, 65, 0.22),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #28170f,
      #4c2818
    );

  border-radius: 22px;

  box-shadow:
    0 18px 40px rgba(43, 25, 16, 0.18);
}

.services-final-cta > div > span {
  color: #ff9f67;
}

.services-final-cta h2 {
  max-width: 680px;
  margin: 0;

  color: white;
  font-family: var(--heading-font);
  font-size: 31px;
  line-height: 1.1;
}

.services-final-cta p {
  margin: 9px 0 0;

  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.services-final-cta .primary-button {
  flex-shrink: 0;
  background: var(--orange);
}


/* ========================================
   SERVICES RESPONSIVE
======================================== */

@media (max-width: 1050px) {
  .services-page-grid {
    grid-template-columns: 1fr;
  }

  .service-page-card {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  body[data-page="services"] #sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 250ms ease;
  }

  body[data-page="services"] #sidebar.open {
    transform: translateX(0);
  }

  body[data-page="services"] #app {
    width: 100%;
    margin-left: 0;
  }

  .services-page {
    padding: 78px 17px 45px;
  }

  .services-page-hero {
    grid-template-columns: 1fr;
    padding: 27px;
  }

  .services-page-hero .primary-button {
    width: 100%;
  }

  .services-included {
    grid-template-columns: 1fr;
  }

  .services-final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 29px;
  }

  .services-final-cta .primary-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .service-page-card,
  .services-process,
  .services-included {
    padding: 24px 20px;
  }

  .service-deliverables ul,
  .service-process-grid,
  .services-included ul {
    grid-template-columns: 1fr;
  }

  .services-page-hero h1 {
    font-size: 39px;
  }

  .services-final-cta h2 {
    font-size: 25px;
  }
}
/* ========================================
   CASE STUDY WORKFLOW IMAGE
======================================== */

.case-workflow-image-section {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.012)
    );
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
}

.case-workflow-image-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.case-workflow-image-heading h2 {
  max-width: 650px;
  margin: 10px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.case-workflow-image-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--text-muted, #9d9d9d);
  font-size: 0.95rem;
  line-height: 1.65;
}

.workflow-view-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  color: var(--text-primary, #ffffff);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.workflow-view-button:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.case-workflow-figure {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.case-workflow-figure > a {
  display: block;
  padding: clamp(10px, 2vw, 20px);
  cursor: zoom-in;
}

.case-workflow-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  border-radius: 10px;
  transition: transform 220ms ease;
}

.case-workflow-figure > a:hover img {
  transform: scale(1.008);
}

.case-workflow-figure figcaption {
  padding: 15px 20px 17px;
  color: #686868;
  font-size: 0.84rem;
  line-height: 1.6;
  background: #f4f4f4;
  border-top: 1px solid #dddddd;
}

/* Tablet */

@media (max-width: 800px) {
  .case-workflow-image-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .workflow-view-button {
    width: 100%;
  }

  .case-workflow-figure img {
    max-height: 600px;
  }
}

/* Mobile */

@media (max-width: 520px) {
  .case-workflow-image-section {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 18px;
  }

  .case-workflow-image-heading {
    margin-bottom: 18px;
  }

  .case-workflow-image-heading h2 {
    font-size: 1.45rem;
  }

  .case-workflow-image-heading p {
    font-size: 0.88rem;
  }

  .case-workflow-figure {
    border-radius: 13px;
  }

  .case-workflow-figure > a {
    padding: 7px;
  }

  .case-workflow-figure img {
    max-height: 480px;
    border-radius: 7px;
  }

  .case-workflow-figure figcaption {
    padding: 13px 14px;
    font-size: 0.78rem;
  }
}
/* ========================================
   HOMEPAGE CERTIFICATE HOVER STACK
======================================== */

.certificate-home-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
}

.certificate-home-card .card-heading-row {
  position: relative;
  z-index: 20;
}

.certificate-stage {
  position: relative;
  width: 100%;
  height: 225px;
  margin-top: 8px;
  outline: none;
}

.certificate-stack {
  position: absolute;
  inset: 0;
}

.certificate-preview {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: 5;
  display: block;
  width: clamp(145px, 36%, 190px);
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  background: #ffffff;
  border: 5px solid #ffffff;
  border-radius: 10px;
  box-shadow:
    0 16px 34px rgba(55, 37, 25, 0.19),
    0 3px 10px rgba(55, 37, 25, 0.11);
  opacity: 0;
  pointer-events: none;
  transform:
    translate(-50%, 48px)
    scale(0.72);
  transform-origin: center bottom;
  transition:
    top 420ms cubic-bezier(0.22, 1, 0.36, 1),
    left 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
}

.certificate-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: contain;
  background: #ffffff;
}

.certificate-preview span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 8px 7px;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background:
    linear-gradient(
      to top,
      rgba(31, 22, 17, 0.9),
      transparent
    );
}

.certificate-preview-1 {
  z-index: 6;
}

.certificate-preview-2 {
  z-index: 7;
}

.certificate-preview-3 {
  z-index: 8;
}

.certificate-preview-4 {
  z-index: 9;
}

/* Certificate seal shown before hovering */

.certificate-seal {
  position: absolute;
  top: 35px;
  left: 50%;
  z-index: 12;
  display: flex;
  width: 145px;
  height: 145px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background:
    radial-gradient(
      circle,
      #fffaf6 0%,
      #fff5ed 70%,
      #f9e5d7 100%
    );
  border: 2px solid #edcbb8;
  border-radius: 50%;
  box-shadow:
    0 0 0 7px rgba(237, 203, 184, 0.25),
    0 15px 34px rgba(91, 57, 38, 0.12);
  transform: translateX(-50%);
  transition:
    opacity 250ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.certificate-seal > span {
  margin-bottom: 6px;
  color: #e86f3d;
  font-size: 1rem;
}

.certificate-seal strong {
  color: #2c211c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1;
}

.certificate-seal small {
  margin-top: 9px;
  color: #846d61;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

/* Reveal certificates when card is hovered */

.certificate-home-card:hover .certificate-seal,
.certificate-stage:focus .certificate-seal,
.certificate-stage:focus-within .certificate-seal {
  opacity: 0;
  transform:
    translate(-50%, 80px)
    scale(0.72);
}

.certificate-home-card:hover .certificate-preview,
.certificate-stage:focus .certificate-preview,
.certificate-stage:focus-within .certificate-preview {
  opacity: 1;
  pointer-events: auto;
}

/* Spread the four certificates */

.certificate-home-card:hover .certificate-preview-1,
.certificate-stage:focus .certificate-preview-1,
.certificate-stage:focus-within .certificate-preview-1 {
  top: 42px;
  left: 25%;
  transform:
    translateX(-50%)
    rotate(-8deg);
}

.certificate-home-card:hover .certificate-preview-2,
.certificate-stage:focus .certificate-preview-2,
.certificate-stage:focus-within .certificate-preview-2 {
  top: 12px;
  left: 42%;
  transform:
    translateX(-50%)
    rotate(-3deg);
}

.certificate-home-card:hover .certificate-preview-3,
.certificate-stage:focus .certificate-preview-3,
.certificate-stage:focus-within .certificate-preview-3 {
  top: 12px;
  left: 58%;
  transform:
    translateX(-50%)
    rotate(3deg);
}

.certificate-home-card:hover .certificate-preview-4,
.certificate-stage:focus .certificate-preview-4,
.certificate-stage:focus-within .certificate-preview-4 {
  top: 42px;
  left: 75%;
  transform:
    translateX(-50%)
    rotate(8deg);
}

/* Bring an individual certificate forward */

.certificate-home-card .certificate-preview:hover {
  z-index: 30;
  box-shadow:
    0 24px 48px rgba(55, 37, 25, 0.28),
    0 7px 18px rgba(55, 37, 25, 0.16);
}

.certificate-home-card:hover
  .certificate-preview-1:hover {
  transform:
    translateX(-50%)
    translateY(-12px)
    rotate(-3deg)
    scale(1.12);
}

.certificate-home-card:hover
  .certificate-preview-2:hover {
  transform:
    translateX(-50%)
    translateY(-12px)
    rotate(0deg)
    scale(1.12);
}

.certificate-home-card:hover
  .certificate-preview-3:hover {
  transform:
    translateX(-50%)
    translateY(-12px)
    rotate(0deg)
    scale(1.12);
}

.certificate-home-card:hover
  .certificate-preview-4:hover {
  transform:
    translateX(-50%)
    translateY(-12px)
    rotate(3deg)
    scale(1.12);
}

/* Bottom information */

.certificate-card-footer {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  color: var(--text-muted, #81756e);
  font-size: 0.75rem;
  border-top: 1px solid rgba(70, 50, 40, 0.12);
}

.certificate-card-footer span {
  max-width: 270px;
  line-height: 1.45;
}

.certificate-card-footer a {
  flex-shrink: 0;
  color: var(--text-primary, #2c211c);
  font-weight: 800;
  text-decoration: none;
}

.certificate-card-footer a:hover {
  color: #e86f3d;
}

/* Mobile and touch devices */

@media (max-width: 700px) {
  .certificate-home-card {
    min-height: auto;
    overflow: hidden;
  }

  .certificate-stage {
    height: 190px;
    margin-top: 20px;
  }

  .certificate-seal {
    display: none;
  }

  .certificate-stack {
    position: relative;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .certificate-preview,
  .certificate-home-card:hover .certificate-preview,
  .certificate-stage:focus .certificate-preview,
  .certificate-stage:focus-within .certificate-preview {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 215px;
    width: 215px;
    opacity: 1;
    pointer-events: auto;
    scroll-snap-align: center;
    transform: none;
  }

  .certificate-home-card
    .certificate-preview:hover {
    transform: translateY(-4px);
  }

  .certificate-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Reduced-motion accessibility */

@media (prefers-reduced-motion: reduce) {
  .certificate-preview,
  .certificate-seal {
    transition: none;
  }
}
/* ========================================
   WARM NUDE CERTIFICATE CARD COLORS
======================================== */

.certificate-home-card {
  background:
    linear-gradient(
      145deg,
      #fffdfb 0%,
      #fbf3ed 100%
    );
  border: 1.5px solid #cda98f;
  box-shadow:
    0 12px 32px rgba(112, 76, 55, 0.08);
}

.certificate-home-card:hover {
  border-color: #a9785b;
  box-shadow:
    0 18px 42px rgba(112, 76, 55, 0.15);
}

.certificate-preview {
  border-color: #ead3c2;
  box-shadow:
    0 16px 34px rgba(105, 70, 48, 0.2),
    0 0 0 1px rgba(147, 101, 72, 0.18);
}

.certificate-preview:hover {
  border-color: #b98565;
}

.certificate-seal {
  background:
    radial-gradient(
      circle,
      #fffaf6 0%,
      #f8e8dc 72%,
      #efd2bf 100%
    );
  border-color: #b98565;
  box-shadow:
    0 0 0 7px rgba(205, 169, 143, 0.24),
    0 15px 34px rgba(91, 57, 38, 0.14);
}

.certificate-card-footer {
  border-top-color: rgba(169, 120, 91, 0.3);
}

.certificate-card-footer a {
  color: #8d5d43;
}

.certificate-card-footer a:hover {
  color: #c2643b;
}
/* ========================================
   CREDENTIALS AND CERTIFICATES PAGE
======================================== */

body[data-page="credentials"] {
  background:
    radial-gradient(
      circle at 80% 8%,
      rgba(213, 171, 143, 0.17),
      transparent 28%
    ),
    #f5f0ea;
}

body[data-page="credentials"] #sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: var(--sidebar-width, 260px);
}

body[data-page="credentials"] #app {
  width: calc(
    100% - var(--sidebar-width, 260px)
  );
  min-height: 100vh;
  margin-left: var(--sidebar-width, 260px);
}

.credentials-page {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

/* Hero */

.credentials-page-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(280px, 0.65fr);
  align-items: end;
  gap: 40px;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(
      135deg,
      #fffdfb 0%,
      #f8e9de 100%
    );
  border: 1.5px solid #cda98f;
  border-radius: 28px;
  box-shadow:
    0 20px 50px rgba(102, 69, 49, 0.1);
}

.credentials-eyebrow {
  display: inline-block;
  margin-bottom: 17px;
  color: #a0603f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.credentials-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.credentials-hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--text-muted, #766a63);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.75;
}

.credentials-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(155, 104, 75, 0.24);
  border-radius: 20px;
}

.credentials-summary > div {
  display: flex;
  min-height: 145px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 22px;
  text-align: center;
}

.credentials-summary > div + div {
  border-left: 1px solid rgba(155, 104, 75, 0.24);
}

.credentials-summary strong {
  color: #8d5d43;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.credentials-summary span {
  margin-top: 9px;
  color: #776961;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Introduction */

.credentials-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.8fr;
  align-items: end;
  gap: 50px;
  margin: 65px 0 30px;
}

.credentials-introduction h2,
.credential-focus-heading h2 {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.credentials-introduction > p {
  margin: 0;
  color: var(--text-muted, #766a63);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* Certificate grid */

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.credential-card {
  overflow: hidden;
  background: #fffdfb;
  border: 1.5px solid #dbc0ad;
  border-radius: 22px;
  box-shadow:
    0 12px 30px rgba(93, 61, 42, 0.07);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.credential-card:hover {
  border-color: #a9785b;
  box-shadow:
    0 20px 42px rgba(93, 61, 42, 0.14);
  transform: translateY(-5px);
}

.credential-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.credential-image-frame {
  position: relative;
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(18px, 3vw, 32px);
  background:
    linear-gradient(
      145deg,
      #eee0d5 0%,
      #f8f1ec 100%
    );
  border-bottom: 1px solid #dbc0ad;
}

.credential-image-frame::before {
  position: absolute;
  width: 210px;
  height: 210px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  content: "";
  filter: blur(5px);
}

.credential-image-frame img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 520px;
  max-height: 310px;
  object-fit: contain;
  background: #ffffff;
  border: 6px solid #ffffff;
  border-radius: 9px;
  box-shadow:
    0 16px 36px rgba(73, 48, 34, 0.18);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.credential-card:hover
  .credential-image-frame img {
  box-shadow:
    0 22px 46px rgba(73, 48, 34, 0.25);
  transform: scale(1.025);
}

.credential-open-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 9px 13px;
  color: #fffaf6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(91, 57, 38, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.credential-card:hover
  .credential-open-label {
  opacity: 1;
  transform: translateY(0);
}

.credential-card-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px 25px;
}

.credential-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #9a6244;
  font-size: 0.69rem;
  font-weight: 800;
  background: #f7e6da;
  border: 1px solid #e3c1ab;
  border-radius: 50%;
}

.credential-card-content h2 {
  margin: 1px 0 6px;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.15;
}

.credential-card-content p {
  margin: 0;
  color: var(--text-muted, #82756e);
  font-size: 0.76rem;
}

/* Empty state */

.credentials-empty {
  padding: 70px 30px;
  text-align: center;
  background: #fffdfb;
  border: 1.5px solid #dbc0ad;
  border-radius: 22px;
}

.credentials-empty h2 {
  margin: 0 0 10px;
}

.credentials-empty p {
  margin: 0;
  color: var(--text-muted, #82756e);
}

/* Technical-focus section */

.credential-focus-section {
  margin-top: 75px;
}

.credential-focus-heading {
  margin-bottom: 28px;
}

.credential-focus-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.credential-focus-grid article {
  min-height: 235px;
  padding: 25px;
  background:
    linear-gradient(
      145deg,
      #fffdfb,
      #f9efe8
    );
  border: 1.5px solid #dbc0ad;
  border-radius: 20px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.credential-focus-grid article:hover {
  background: #f5e4d8;
  border-color: #ad7b5e;
  transform: translateY(-4px);
}

.credential-focus-grid article > span {
  color: #b26b45;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.credential-focus-grid h3 {
  margin: 42px 0 13px;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.credential-focus-grid p {
  margin: 0;
  color: var(--text-muted, #776b64);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* CTA */

.credentials-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 70px;
  padding: clamp(27px, 5vw, 46px);
  color: #fffaf6;
  background:
    linear-gradient(
      135deg,
      #80553f 0%,
      #a66f51 100%
    );
  border: 1px solid #754a35;
  border-radius: 24px;
  box-shadow:
    0 20px 44px rgba(91, 57, 38, 0.18);
}

.credentials-final-cta span {
  color: #f5d8c5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.credentials-final-cta h2 {
  max-width: 650px;
  margin: 9px 0 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.credentials-final-cta .primary-button {
  flex-shrink: 0;
  color: #71452f;
  background: #fffaf6;
  border-color: #fffaf6;
}

.credentials-final-cta
  .primary-button:hover {
  color: #ffffff;
  background: transparent;
}

/* Tablet */

@media (max-width: 1080px) {
  .credentials-page-hero {
    grid-template-columns: 1fr;
  }

  .credentials-summary {
    max-width: 500px;
  }

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

@media (max-width: 900px) {
  body[data-page="credentials"] #sidebar {
    position: relative;
    width: 100%;
  }

  body[data-page="credentials"] #app {
    width: 100%;
    margin-left: 0;
  }

  .credentials-page {
    width: min(100% - 32px, 760px);
    padding-top: 25px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .credentials-page-hero {
    gap: 28px;
    padding: 27px 21px;
    border-radius: 21px;
  }

  .credentials-hero-copy h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .credentials-summary {
    width: 100%;
  }

  .credentials-summary > div {
    min-height: 115px;
    padding: 15px;
  }

  .credentials-summary strong {
    font-size: 2.35rem;
  }

  .credentials-introduction {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 48px;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .credential-image-frame {
    min-height: 235px;
    padding: 16px;
  }

  .credential-open-label {
    opacity: 1;
    transform: none;
  }

  .credential-focus-grid {
    grid-template-columns: 1fr;
  }

  .credential-focus-grid article {
    min-height: 190px;
  }

  .credential-focus-grid h3 {
    margin-top: 28px;
  }

  .credentials-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .credentials-final-cta
    .primary-button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .credentials-page {
    width: min(100% - 20px, 760px);
  }

  .credentials-summary {
    grid-template-columns: 1fr;
  }

  .credentials-summary > div + div {
    border-top: 1px solid
      rgba(155, 104, 75, 0.24);
    border-left: 0;
  }

  .credential-card-content {
    padding: 19px;
  }
}
/* ========================================
   ABOUT PAGE
======================================== */

body[data-page="about"] {
  background:
    radial-gradient(
      circle at 82% 8%,
      rgba(211, 166, 136, 0.18),
      transparent 28%
    ),
    #f5f0ea;
}

body[data-page="about"] #sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: var(--sidebar-width, 260px);
}

body[data-page="about"] #app {
  width: calc(
    100% - var(--sidebar-width, 260px)
  );
  min-height: 100vh;
  margin-left: var(--sidebar-width, 260px);
}

.about-page {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

/* Hero */

.about-page-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(300px, 0.65fr);
  gap: 32px;
}

.about-hero-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 570px;
  padding: clamp(32px, 6vw, 66px);
  background:
    linear-gradient(
      140deg,
      #fffdfb 0%,
      #f7e7dc 100%
    );
  border: 1.5px solid #cda98f;
  border-radius: 28px;
  box-shadow:
    0 20px 50px rgba(102, 69, 49, 0.1);
}

.about-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: #a0603f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.about-hero-copy h1 {
  max-width: 810px;
  margin: 0;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5.8vw, 5.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.about-hero-copy > p {
  max-width: 720px;
  margin: 27px 0 0;
  color: var(--text-muted, #766a63);
  font-size: clamp(0.94rem, 1.5vw, 1.08rem);
  line-height: 1.75;
}

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

.about-secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  color: #704b38;
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid #cda98f;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.about-secondary-button:hover {
  color: #ffffff;
  background: #986249;
  border-color: #986249;
  transform: translateY(-2px);
}

/* Profile card */

.about-profile-card {
  display: flex;
  min-height: 570px;
  justify-content: flex-end;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(
      160deg,
      #e9cbbb 0%,
      #c89373 100%
    );
  border: 1.5px solid #ad795b;
  border-radius: 28px;
  box-shadow:
    0 20px 50px rgba(102, 69, 49, 0.13);
}

.about-profile-image {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  min-height: 340px;
  padding: 35px 28px 0;
}

.about-profile-image img {
  display: block;
  width: min(100%, 330px);
  max-height: 370px;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(
      0 18px 22px rgba(72, 42, 27, 0.2)
    );
}

.about-profile-information {
  padding: 27px 29px 31px;
  color: #fffaf6;
  background:
    linear-gradient(
      to top,
      rgba(70, 42, 29, 0.93),
      rgba(70, 42, 29, 0.74)
    );
  backdrop-filter: blur(8px);
}

.about-profile-information > span {
  color: #f3cdb7;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.about-profile-information h2 {
  margin: 8px 0 5px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.about-profile-information > p {
  margin: 0;
  color: #ead9cf;
  font-size: 0.82rem;
}

.about-availability {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding-top: 17px;
  color: #f5e7df;
  font-size: 0.73rem;
  border-top: 1px solid
    rgba(255, 255, 255, 0.18);
}

.about-availability > span {
  width: 8px;
  height: 8px;
  background: #8ddd9f;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(141, 221, 159, 0.15);
}

/* Shared section heading */

.about-section-heading {
  max-width: 770px;
}

.about-section-heading h2 {
  margin: 12px 0 0;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

/* Story */

.about-story-section {
  display: grid;
  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1fr);
  gap: clamp(40px, 8vw, 110px);
  margin-top: 80px;
  padding: clamp(30px, 5vw, 52px);
  background: #fffdfb;
  border: 1.5px solid #dbc0ad;
  border-radius: 25px;
}

.about-story-content {
  display: grid;
  gap: 20px;
}

.about-story-content p {
  margin: 0;
  color: var(--text-muted, #716660);
  font-size: 0.94rem;
  line-height: 1.82;
}

.about-story-content p:first-child::first-letter {
  float: left;
  margin: 3px 8px 0 0;
  color: #9c6243;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.3rem;
  line-height: 0.8;
}

/* Principles */

.about-principles-section {
  margin-top: 76px;
}

.about-principles-section
  .about-section-heading {
  margin-bottom: 29px;
}

.about-principles-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-principle-card {
  min-height: 285px;
  padding: 29px;
  background:
    linear-gradient(
      145deg,
      #fffdfb,
      #f8ebe2
    );
  border: 1.5px solid #dbc0ad;
  border-radius: 21px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.about-principle-card:hover {
  border-color: #a9785b;
  box-shadow:
    0 18px 38px rgba(93, 61, 42, 0.12);
  transform: translateY(-5px);
}

.about-principle-card > span {
  color: #b26b45;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.about-principle-card h3 {
  margin: 70px 0 14px;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
}

.about-principle-card p {
  margin: 0;
  color: var(--text-muted, #756a64);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* Toolkit and working style */

.about-details-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 76px;
}

.about-toolkit-card,
.about-working-card {
  padding: clamp(28px, 5vw, 45px);
  background: #fffdfb;
  border: 1.5px solid #dbc0ad;
  border-radius: 24px;
}

.about-toolkit-card h2,
.about-working-card h2 {
  margin: 12px 0 12px;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
}

.about-toolkit-card > p {
  margin: 0;
  color: var(--text-muted, #766a63);
  font-size: 0.86rem;
  line-height: 1.7;
}

.about-toolkit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.about-toolkit-list span {
  padding: 9px 13px;
  color: #79513c;
  font-size: 0.73rem;
  font-weight: 750;
  background: #f8e8dc;
  border: 1px solid #dfbfa9;
  border-radius: 999px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.about-toolkit-list span:hover {
  color: #ffffff;
  background: #986249;
  border-color: #986249;
  transform: translateY(-2px);
}

.about-working-card ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.about-working-card li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 10px;
  color: #655b55;
  font-size: 0.84rem;
  line-height: 1.55;
}

.about-working-card li > span {
  display: inline-flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  color: #986249;
  font-size: 0.69rem;
  font-weight: 900;
  background: #f4dfd1;
  border-radius: 50%;
}

/* Final CTA */

.about-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 72px;
  padding: clamp(29px, 5vw, 48px);
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #79503c 0%,
      #a46e50 100%
    );
  border: 1px solid #704733;
  border-radius: 25px;
  box-shadow:
    0 20px 44px rgba(91, 57, 38, 0.18);
}

.about-final-cta span {
  color: #f3d2bf;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.about-final-cta h2 {
  max-width: 670px;
  margin: 10px 0 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  font-weight: 500;
  line-height: 1.1;
}

.about-final-cta .primary-button {
  flex-shrink: 0;
  color: #704733;
  background: #fffaf6;
  border-color: #fffaf6;
}

.about-final-cta
  .primary-button:hover {
  color: #ffffff;
  background: transparent;
}

/* Tablet */

@media (max-width: 1080px) {
  .about-page-hero {
    grid-template-columns: 1fr;
  }

  .about-hero-copy {
    min-height: auto;
  }

  .about-profile-card {
    display: grid;
    grid-template-columns:
      minmax(250px, 0.7fr)
      minmax(0, 1fr);
    min-height: 330px;
  }

  .about-profile-image {
    min-height: 330px;
  }

  .about-profile-information {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

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

  .about-principle-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body[data-page="about"] #sidebar {
    position: relative;
    width: 100%;
  }

  body[data-page="about"] #app {
    width: 100%;
    margin-left: 0;
  }

  .about-page {
    width: min(100% - 32px, 760px);
    padding-top: 25px;
  }

  .about-story-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .about-hero-copy {
    padding: 30px 22px;
    border-radius: 21px;
  }

  .about-hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .about-hero-actions {
    flex-direction: column;
  }

  .about-hero-actions a {
    width: 100%;
    text-align: center;
  }

  .about-profile-card {
    display: flex;
    min-height: 480px;
  }

  .about-profile-image {
    min-height: 310px;
  }

  .about-profile-information {
    display: block;
  }

  .about-story-section {
    margin-top: 50px;
    padding: 27px 21px;
    border-radius: 20px;
  }

  .about-principles-grid,
  .about-details-grid {
    grid-template-columns: 1fr;
  }

  .about-principle-card:last-child {
    grid-column: auto;
  }

  .about-principle-card {
    min-height: 235px;
  }

  .about-principle-card h3 {
    margin-top: 45px;
  }

  .about-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-final-cta
    .primary-button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .about-page {
    width: min(100% - 20px, 760px);
  }

  .about-toolkit-card,
  .about-working-card {
    padding: 24px 19px;
  }
}
/* ========================================
   MAXIMIZED ABOUT PROFILE IMAGE
======================================== */

.about-profile-image {
  min-height: 380px;
  padding: 0;
  overflow: hidden;
  background: #d8ad95;
}

.about-profile-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center 18%;
  filter: none;
  transform: scale(1.01);
}

.about-profile-information {
  position: relative;
  z-index: 3;
  margin-top: 0;
  border-top: 1px solid
    rgba(255, 255, 255, 0.18);
}

@media (max-width: 1080px) {
  .about-profile-image {
    min-height: 360px;
  }

  .about-profile-image img {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .about-profile-image {
    min-height: 380px;
  }

  .about-profile-image img {
    min-height: 380px;
  }
}
/* ========================================
   CONTACT PAGE
======================================== */

body[data-page="contact"] {
  background:
    radial-gradient(
      circle at 82% 7%,
      rgba(211, 166, 136, 0.18),
      transparent 28%
    ),
    #f5f0ea;
}

body[data-page="contact"] #sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: var(--sidebar-width, 260px);
}

body[data-page="contact"] #app {
  width: calc(
    100% - var(--sidebar-width, 260px)
  );
  min-height: 100vh;
  margin-left: var(--sidebar-width, 260px);
}

.contact-page {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

/* Page heading */

.contact-page-header {
  padding: clamp(35px, 6vw, 65px);
  background:
    linear-gradient(
      140deg,
      #fffdfb 0%,
      #f7e7dc 100%
    );
  border: 1.5px solid #cda98f;
  border-radius: 28px;
  box-shadow:
    0 20px 50px rgba(102, 69, 49, 0.1);
}

.contact-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #a0603f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.contact-page-header h1 {
  max-width: 900px;
  margin: 0;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6.5vw, 6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contact-page-header > p {
  max-width: 750px;
  margin: 25px 0 0;
  color: var(--text-muted, #766a63);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.75;
}

/* Main layout */

.contact-layout {
  display: grid;
  grid-template-columns:
    minmax(290px, 0.72fr)
    minmax(0, 1.28fr);
  gap: 22px;
  margin-top: 25px;
}

/* Contact information */

.contact-information {
  display: flex;
  gap: 24px;
  flex-direction: column;
}

.contact-information-heading {
  padding: 31px;
  background: #fffdfb;
  border: 1.5px solid #dbc0ad;
  border-radius: 23px;
}

.contact-information-heading h2 {
  margin: 12px 0 13px;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.contact-information-heading p {
  margin: 0;
  color: var(--text-muted, #766a63);
  font-size: 0.84rem;
  line-height: 1.72;
}

.contact-details-list {
  display: grid;
  gap: 11px;
}

.contact-detail-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 15px 18px;
  color: inherit;
  text-decoration: none;
  background: #fffdfb;
  border: 1.5px solid #dbc0ad;
  border-radius: 17px;
  transition:
    background-color 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

a.contact-detail-item:hover {
  background: #f8e9de;
  border-color: #aa7658;
  transform: translateY(-2px);
}

.contact-detail-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #985f40;
  background: #f7e4d7;
  border: 1px solid #dfbca6;
  border-radius: 50%;
}

.contact-detail-item div {
  min-width: 0;
}

.contact-detail-item small {
  display: block;
  margin-bottom: 4px;
  color: #9b7560;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-detail-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-primary, #2c211c);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.45;
}

/* Calendly card */

.contact-booking-card {
  padding: 30px;
  color: #fffaf6;
  background:
    linear-gradient(
      140deg,
      #79503c 0%,
      #a46e50 100%
    );
  border: 1px solid #704733;
  border-radius: 23px;
  box-shadow:
    0 18px 38px rgba(91, 57, 38, 0.16);
}

.contact-booking-card > span {
  color: #f3cdb7;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-booking-card h3 {
  margin: 13px 0 10px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
}

.contact-booking-card p {
  margin: 0;
  color: #f0ddd2;
  font-size: 0.82rem;
  line-height: 1.68;
}

.contact-calendly-button {
  display: inline-flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  margin-top: 23px;
  padding: 11px 16px;
  color: #714832;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: #fffaf6;
  border: 1px solid #fffaf6;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.contact-calendly-button:hover {
  color: #ffffff;
  background: transparent;
  transform: translateY(-2px);
}

/* Form card */

.contact-form-card {
  padding: clamp(30px, 5vw, 50px);
  background: #fffdfb;
  border: 1.5px solid #dbc0ad;
  border-radius: 24px;
  box-shadow:
    0 16px 40px rgba(102, 69, 49, 0.07);
}

.contact-form-heading {
  margin-bottom: 30px;
}

.contact-form-heading h2 {
  margin: 12px 0 9px;
  color: var(--text-primary, #2c211c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
}

.contact-form-heading p {
  margin: 0;
  color: var(--text-muted, #81746d);
  font-size: 0.78rem;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  color: #514640;
  font-size: 0.76rem;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: #302620;
  font: inherit;
  font-size: 0.86rem;
  background: #fbf7f3;
  border: 1.5px solid #dcc5b5;
  border-radius: 12px;
  outline: none;
  transition:
    background-color 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 170px;
  padding: 14px;
  line-height: 1.6;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a79a92;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #be9278;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #ffffff;
  border-color: #9b6649;
  box-shadow:
    0 0 0 4px rgba(155, 102, 73, 0.11);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #c66c62;
}

.contact-message-field {
  grid-column: 1 / -1;
}

/* Consent checkbox */

.contact-consent {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px !important;
  cursor: pointer;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin: 1px 0 0;
  accent-color: #996147;
  cursor: pointer;
}

.contact-consent > span {
  color: #756961 !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.55;
}

/* Form status */

.contact-form-status {
  display: none;
  padding: 13px 15px;
  font-size: 0.78rem;
  line-height: 1.5;
  border-radius: 11px;
}

.contact-form-status.visible {
  display: block;
}

.contact-form-status.success {
  color: #285b37;
  background: #e5f4e9;
  border: 1px solid #afd5b9;
}

.contact-form-status.error {
  color: #8c3934;
  background: #fae8e6;
  border: 1px solid #e0aaa5;
}

.contact-form-status.loading {
  color: #79523d;
  background: #f6e9df;
  border: 1px solid #dbbaa5;
}

/* Submit button */

.contact-submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #85573f,
      #a66e4e
    );
  border: 1px solid #744833;
  border-radius: 999px;
  box-shadow:
    0 10px 24px rgba(105, 66, 44, 0.17);
  transition:
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.contact-submit-button:hover {
  box-shadow:
    0 15px 30px rgba(105, 66, 44, 0.25);
  transform: translateY(-2px);
}

.contact-submit-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.contact-form-note {
  margin: -7px 0 0;
  color: #93867e;
  font-size: 0.7rem;
  text-align: center;
}

/* Tablet */

@media (max-width: 1050px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-information {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .contact-information-heading {
    grid-column: 1 / -1;
  }

  .contact-details-list {
    align-content: start;
  }
}

@media (max-width: 900px) {
  body[data-page="contact"] #sidebar {
    position: relative;
    width: 100%;
  }

  body[data-page="contact"] #app {
    width: 100%;
    margin-left: 0;
  }

  .contact-page {
    width: min(100% - 32px, 760px);
    padding-top: 25px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .contact-page-header {
    padding: 30px 22px;
    border-radius: 21px;
  }

  .contact-page-header h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .contact-information {
    display: flex;
  }

  .contact-form-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-message-field {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .contact-page {
    width: min(100% - 20px, 760px);
  }

  .contact-information-heading,
  .contact-booking-card {
    padding: 25px 20px;
  }

  .contact-detail-item {
    grid-template-columns: 39px 1fr;
    padding: 14px;
  }

  .contact-detail-icon {
    width: 38px;
    height: 38px;
  }
}
/* ========================================
   TESTIMONIAL
======================================== */

.testimonial-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #b98b6f;
  border-radius: 999px;
  background: #f4e8dd;
  color: #76523f;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.testimonial-person-card {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
  padding: 18px;
  border: 1.5px solid #b98b6f;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      #fffaf5 0%,
      #f5e8dc 100%
    );
  box-shadow:
    0 18px 40px rgba(92, 61, 45, 0.1);
}

.testimonial-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  max-height: 330px;
  object-fit: cover;
  object-position: 50% 42%;
  border: 1px solid #b98b6f;
  border-radius: 18px;
}

.testimonial-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px 16px;
}

.testimonial-quote-mark {
  position: absolute;
  top: -6px;
  left: 4px;
  color: #b98b6f;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  opacity: 0.4;
}

.testimonial-content blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: #44342c;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  font-style: italic;
  line-height: 1.75;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(185, 139, 111, 0.45);
}

.testimonial-author strong {
  color: #4f3528;
  font-size: 1rem;
}

.testimonial-author small {
  color: #826858;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .testimonial-label {
    display: none;
  }

  .testimonial-person-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
  }

  .testimonial-photo {
    height: 280px;
    min-height: 0;
    max-height: none;
    object-position: 50% 40%;
  }

  .testimonial-content {
    padding: 20px 8px 10px;
  }
}
/* Compact testimonial layout */

.testimonial-person-card {
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.testimonial-photo {
  width: 88px;
  height: 88px;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 38%;
  border-radius: 50%;
}

.testimonial-content {
  padding: 0;
}

.testimonial-quote-mark {
  display: none;
}

.testimonial-content blockquote {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.testimonial-author {
  gap: 2px;
  padding-top: 10px;
}

.testimonial-author small {
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .testimonial-person-card {
    grid-template-columns: 72px 1fr;
    gap: 14px;
  }

  .testimonial-photo {
    width: 72px;
    height: 72px;
  }
}
/* ========================================
   TESTIMONIAL FLOATING HEARTS
======================================== */

.testimonial-person-card {
  position: relative;
  overflow: hidden;
}

.testimonial-photo,
.testimonial-content {
  position: relative;
  z-index: 2;
}

.testimonial-hearts {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.testimonial-hearts span {
  position: absolute;
  bottom: -24px;
  color: #cf8f86;
  font-size: 16px;
  opacity: 0;
}

.testimonial-hearts span {
  animation:
    testimonial-heart-float
    3.2s ease-in infinite;
}

.testimonial-hearts span:nth-child(1) {
  left: 10%;
  animation-delay: 0s !important;
}

.testimonial-hearts span:nth-child(2) {
  left: 30%;
  font-size: 11px;
  animation-delay: 0.5s !important;
}

.testimonial-hearts span:nth-child(3) {
  left: 52%;
  font-size: 19px;
  animation-delay: 1s !important;
}

.testimonial-hearts span:nth-child(4) {
  left: 72%;
  font-size: 13px;
  animation-delay: 1.5s !important;
}

.testimonial-hearts span:nth-child(5) {
  left: 90%;
  font-size: 17px;
  animation-delay: 2s !important;
}

@keyframes testimonial-heart-float {
  0% {
    transform:
      translateY(0)
      translateX(0)
      rotate(0deg)
      scale(0.6);
    opacity: 0;
  }

  20% {
    opacity: 0.55;
  }

  60% {
    transform:
      translateY(-110px)
      translateX(12px)
      rotate(12deg)
      scale(1);
    opacity: 0.4;
  }

  100% {
    transform:
      translateY(-220px)
      translateX(-10px)
      rotate(-10deg)
      scale(1.15);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-hearts {
    display: none;
  }
}
/* ========================================
   MOVING TOOLS MARQUEE
======================================== */

.tools-strip {
  overflow: hidden;
}

.tools-logos.tools-marquee {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1;
  overflow: hidden;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );

  mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.tools-track {
  display: flex;
  width: max-content;
  animation: tools-scroll-left 55s linear infinite;
  will-change: transform;
}

.tools-group {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-shrink: 0;
  padding-right: 34px;
}

.tool-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tool-logo-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(185, 139, 111, 0.35);
  border-radius: 12px;
  background: #f8eadf;
}

.tool-logo-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tool-logo strong {
  color: #2f211b;
  font-size: 0.95rem;
  font-weight: 700;
}

@keyframes tools-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 720px) {
  .tools-strip {
    gap: 14px;
  }

  .tools-heading {
    min-width: 130px;
  }

  .tools-group {
    gap: 24px;
    padding-right: 24px;
  }

  .tool-logo-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .tool-logo-icon img {
    width: 22px;
    height: 22px;
  }

  .tool-logo strong {
    font-size: 0.86rem;
  }

  .tools-track {
    animation-duration: 42s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tools-track {
    animation: none;
  }

  .tools-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tools-group[aria-hidden="true"] {
    display: none;
  }
}
/* Center profile details below the profile picture */
.sidebar-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sidebar-profile .profile-picture {
  margin-left: auto;
  margin-right: auto;
}

.sidebar-profile h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin: 18px 0 4px;
}

.sidebar-profile > p {
  width: 100%;
  margin: 0 0 20px;
  text-align: center;
}

.sidebar-profile .social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}
/* ========================================
   PROFILE PICTURE AND VERIFIED BADGE FIX
======================================== */

.sidebar-profile .profile-picture {
  display: block;
  overflow: hidden;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #bde8ff,
    #efc8ff,
    #ffd4db
  );
}

.sidebar-profile .profile-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  /* Moves the portrait slightly down while keeping all edges covered */
  transform: translateY(4px) scale(1.08);
  transform-origin: center;
}

.sidebar-profile h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin: 8px 0 3px;
  line-height: 1.2;
}

.sidebar-profile > p {
  width: 100%;
  margin: 0 0 15px;
  text-align: center;
}

.sidebar-profile .social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 0;
}

.profile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  padding: 0;
  flex: 0 0 19px;
  color: transparent;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.profile-mark svg {
  display: block;
  width: 19px;
  height: 19px;
}
/* ========================================
   ALWAYS-VISIBLE CERTIFICATE STACK
======================================== */

.certificate-home-card .certificate-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  overflow: visible;
}

/* Remove the original circular certificate counter */
.certificate-home-card .certificate-seal {
  display: none !important;
}

.certificate-home-card .certificate-stack {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  height: 220px;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.certificate-home-card .certificate-preview {
  position: absolute;
  top: 50%;
  display: block;
  width: clamp(150px, 36%, 220px);
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  border: 5px solid #f1ddd0;
  border-radius: 13px;
  background: #ffffff;
  box-shadow:
    0 16px 28px rgba(77, 50, 37, 0.16),
    0 5px 12px rgba(77, 50, 37, 0.1);
  opacity: 1 !important;
  visibility: visible !important;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.certificate-home-card .certificate-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-home-card .certificate-preview span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px 10px 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(
    to top,
    rgba(35, 24, 20, 0.88),
    transparent
  );
}

/* Permanent stacked positions */
.certificate-home-card .certificate-preview-1 {
  left: 18%;
  z-index: 1;
  transform: translate(-50%, -43%) rotate(-7deg) !important;
}

.certificate-home-card .certificate-preview-2 {
  left: 39%;
  z-index: 2;
  transform: translate(-50%, -53%) rotate(-2deg) !important;
}

.certificate-home-card .certificate-preview-3 {
  left: 61%;
  z-index: 3;
  transform: translate(-50%, -56%) rotate(3deg) !important;
}

.certificate-home-card .certificate-preview-4 {
  left: 82%;
  z-index: 4;
  transform: translate(-50%, -45%) rotate(7deg) !important;
}

/* Individual certificate hover */
.certificate-home-card .certificate-preview:hover {
  z-index: 10;
  box-shadow:
    0 20px 38px rgba(77, 50, 37, 0.24),
    0 8px 16px rgba(77, 50, 37, 0.14);
}

/* Keep certificates inside the card when hovered */
.certificate-home-card .certificate-preview-1:hover {
  transform:
    translate(-50%, -43%)
    rotate(-7deg)
    scale(1.04) !important;
}

.certificate-home-card .certificate-preview-2:hover {
  transform:
    translate(-50%, -53%)
    rotate(-2deg)
    scale(1.04) !important;
}

.certificate-home-card .certificate-preview-3:hover {
  transform:
    translate(-50%, -56%)
    rotate(3deg)
    scale(1.04) !important;
}

.certificate-home-card .certificate-preview-4:hover {
  transform:
    translate(-50%, -45%)
    rotate(7deg)
    scale(1.04) !important;
}

@media (max-width: 600px) {
  .certificate-home-card .certificate-stage {
    min-height: 190px;
  }

  .certificate-home-card .certificate-stack {
    height: 180px;
  }

  .certificate-home-card .certificate-preview {
    width: clamp(125px, 43%, 165px);
    border-width: 4px;
  }

  .certificate-home-card .certificate-preview-1 {
    left: 17%;
  }

  .certificate-home-card .certificate-preview-2 {
    left: 39%;
  }

  .certificate-home-card .certificate-preview-3 {
    left: 61%;
  }

  .certificate-home-card .certificate-preview-4 {
    left: 83%;
  }
}
/* ========================================
   CENTERED CERTIFICATES WITH FLOAT EFFECT
======================================== */

.certificate-home-card .certificate-stage,
.certificate-home-card:hover .certificate-stage,
.certificate-home-card:focus-within .certificate-stage {
  position: relative;
  min-height: 275px !important;
  margin-top: 8px !important;
  transform: none !important;
}

.certificate-home-card .certificate-stack,
.certificate-home-card:hover .certificate-stack,
.certificate-home-card:focus-within .certificate-stack {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 220px;
  margin: 0 auto;
  opacity: 1 !important;
  visibility: visible !important;

  /* Centers the complete stack */
  transform: translateY(-10px) !important;
}

/* Default centered positions */
.certificate-home-card .certificate-preview-1,
.certificate-home-card:hover .certificate-preview-1 {
  transform:
    translate(-50%, -43%)
    rotate(-7deg) !important;
}

.certificate-home-card .certificate-preview-2,
.certificate-home-card:hover .certificate-preview-2 {
  transform:
    translate(-50%, -53%)
    rotate(-2deg) !important;
}

.certificate-home-card .certificate-preview-3,
.certificate-home-card:hover .certificate-preview-3 {
  transform:
    translate(-50%, -56%)
    rotate(3deg) !important;
}

.certificate-home-card .certificate-preview-4,
.certificate-home-card:hover .certificate-preview-4 {
  transform:
    translate(-50%, -45%)
    rotate(7deg) !important;
}

.certificate-home-card .certificate-preview {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease !important;
}

/* Float only the certificate under the cursor */
.certificate-home-card:hover .certificate-preview-1:hover {
  z-index: 10 !important;
  transform:
    translate(-50%, -53%)
    rotate(-5deg)
    scale(1.04) !important;
}

.certificate-home-card:hover .certificate-preview-2:hover {
  z-index: 10 !important;
  transform:
    translate(-50%, -63%)
    rotate(0deg)
    scale(1.04) !important;
}

.certificate-home-card:hover .certificate-preview-3:hover {
  z-index: 10 !important;
  transform:
    translate(-50%, -66%)
    rotate(0deg)
    scale(1.04) !important;
}

.certificate-home-card:hover .certificate-preview-4:hover {
  z-index: 10 !important;
  transform:
    translate(-50%, -55%)
    rotate(5deg)
    scale(1.04) !important;
}

.certificate-home-card .certificate-preview:hover {
  box-shadow:
    0 22px 40px rgba(77, 50, 37, 0.25),
    0 9px 18px rgba(77, 50, 37, 0.15) !important;
}
/* ========================================
   INDIVIDUAL CERTIFICATE FLOAT ONLY
======================================== */

/* Keep the complete stack stationary */
.certificate-home-card .certificate-stack,
.certificate-home-card:hover .certificate-stack,
.certificate-home-card:focus-within .certificate-stack {
  transform: translateY(-10px) !important;
}

/* All certificates stay in their normal position */
.certificate-home-card .certificate-preview,
.certificate-home-card:hover .certificate-preview {
  top: 50% !important;
  transition:
    top 220ms ease,
    box-shadow 220ms ease !important;
}

/* Prevent the entire card hover from changing rotations */
.certificate-home-card .certificate-preview-1,
.certificate-home-card:hover .certificate-preview-1,
.certificate-home-card:hover .certificate-preview-1:hover {
  transform:
    translate(-50%, -43%)
    rotate(-7deg) !important;
}

.certificate-home-card .certificate-preview-2,
.certificate-home-card:hover .certificate-preview-2,
.certificate-home-card:hover .certificate-preview-2:hover {
  transform:
    translate(-50%, -53%)
    rotate(-2deg) !important;
}

.certificate-home-card .certificate-preview-3,
.certificate-home-card:hover .certificate-preview-3,
.certificate-home-card:hover .certificate-preview-3:hover {
  transform:
    translate(-50%, -56%)
    rotate(3deg) !important;
}

.certificate-home-card .certificate-preview-4,
.certificate-home-card:hover .certificate-preview-4,
.certificate-home-card:hover .certificate-preview-4:hover {
  transform:
    translate(-50%, -45%)
    rotate(7deg) !important;
}

/* Float only the exact certificate under the cursor */
.certificate-home-card .certificate-preview:hover {
  top: calc(50% - 14px) !important;
  z-index: 20 !important;

  box-shadow:
    0 24px 42px rgba(77, 50, 37, 0.28),
    0 10px 20px rgba(77, 50, 37, 0.16) !important;
}
/* ========================================
   INTERACTIVE SERVICES ACCORDION
======================================== */

.home-services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.service-accordion-item {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.service-accordion-item:hover {
  transform: translateY(-2px);
  background: rgba(250, 239, 231, 0.45);
}

.service-accordion-item[open] {
  border-color: rgba(187, 91, 45, 0.65);
  background: rgba(251, 239, 231, 0.72);
  box-shadow: 0 15px 32px rgba(80, 48, 34, 0.08);
}

.service-accordion-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.service-accordion-summary::-webkit-details-marker {
  display: none;
}

.service-accordion-summary::marker {
  display: none;
  content: "";
}

.service-accordion-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #4b2a1f;
  background: #f8eee8;
  font-family: Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
  transition:
    color 220ms ease,
    background-color 220ms ease;
}

.service-accordion-item[open]
  .service-accordion-number {
  color: #9e3f19;
  background: #f6dccb;
}

.service-accordion-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.service-accordion-heading strong {
  color: #2f211b;
  font-size: 0.98rem;
  font-weight: 750;
}

.service-accordion-heading small {
  color: #7d6f67;
  font-size: 0.78rem;
  line-height: 1.45;
}

.service-accordion-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #a94820;
  font-size: 1.05rem;
  transition: transform 220ms ease;
}

.service-accordion-item[open]
  .service-accordion-arrow {
  transform: rotate(180deg);
}

.service-accordion-content {
  padding: 4px 18px 20px 76px;
  animation: service-content-in 220ms ease;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(179, 119, 88, 0.2);
}

.service-detail-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 18px 16px;
}

.service-detail-item + .service-detail-item {
  border-left: 1px solid rgba(179, 119, 88, 0.2);
}

.service-detail-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #a94820;
  background: #f8e5d8;
}

.service-detail-item strong {
  display: block;
  margin-bottom: 7px;
  color: #38231b;
  font-family: Georgia, serif;
  font-size: 0.94rem;
}

.service-detail-item p {
  margin: 0;
  color: #75665e;
  font-size: 0.77rem;
  line-height: 1.55;
}

.service-discuss-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 42px;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 11px;
  color: #ffffff;
  background: #a94820;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.service-discuss-button:hover {
  transform: translateY(-2px);
  background: #863316;
}

@keyframes service-content-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 850px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-item + .service-detail-item {
    border-top: 1px solid rgba(179, 119, 88, 0.2);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .service-accordion-summary {
    grid-template-columns: 42px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 11px 8px;
  }

  .service-accordion-number {
    width: 40px;
    height: 40px;
  }

  .service-accordion-content {
    padding: 2px 10px 16px;
  }

  .service-detail-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 15px 8px;
  }

  .service-detail-icon {
    width: 32px;
    height: 32px;
  }

  .service-discuss-button {
    width: 100%;
  }
}
/* ========================================
   FLOATING SERVICE PREVIEW WINDOWS
======================================== */

.services-card {
  position: relative;
  overflow: visible;
}

.services-card:hover,
.services-card:focus-within {
  z-index: 30;
}

.services-card .home-services-list {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.services-card .service-popover-item {
  position: static !important;
  cursor: pointer;
  outline: none;
  border-radius: 13px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.services-card .service-popover-item:hover,
.services-card .service-popover-item:focus-within {
  background: rgba(249, 232, 220, 0.68);
  box-shadow: inset 3px 0 0 #b8552d;
}

/* Floating window */
.service-float-card {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 100;

  width: min(340px, calc(100% - 18px));
  max-height: calc(100% + 80px);
  overflow-y: auto;

  padding: 20px;

  color: #3b271f;
  background:
    linear-gradient(
      145deg,
      rgba(255, 251, 248, 0.98),
      rgba(249, 232, 220, 0.98)
    );

  border: 1px solid rgba(177, 81, 41, 0.55);
  border-radius: 18px;

  box-shadow:
    0 24px 55px rgba(75, 45, 32, 0.22),
    0 8px 18px rgba(75, 45, 32, 0.12);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform:
    translateY(-46%)
    translateX(14px)
    scale(0.96);

  transition:
    opacity 190ms ease,
    visibility 190ms ease,
    transform 220ms ease;
}

/* Show only the window belonging to the hovered service */
.service-popover-item:hover .service-float-card,
.service-popover-item:focus-within .service-float-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform:
    translateY(-50%)
    translateX(0)
    scale(1);
}

.service-float-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.service-float-heading > span {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  color: #9d3f1d;
  background: #f6ddce;
  border-radius: 50%;

  font-family: Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.service-float-heading small {
  display: block;
  margin-bottom: 3px;
  color: #a85a39;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.service-float-heading h3 {
  margin: 0;
  color: #332119;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.15;
}

.service-float-section {
  padding: 11px 0;
  border-top: 1px solid rgba(173, 111, 81, 0.22);
}

.service-float-section strong {
  display: block;
  margin-bottom: 5px;
  color: #46291e;
  font-size: 0.8rem;
}

.service-float-section p {
  margin: 0;
  color: #75635a;
  font-size: 0.74rem;
  line-height: 1.5;
}

.service-float-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding-top: 14px;
  border-top: 1px solid rgba(173, 111, 81, 0.22);
}

.service-float-actions a {
  color: #a6411c;
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.service-float-actions a:hover {
  color: #70280f;
  text-decoration: underline;
}

/* Mobile and narrow cards */
@media (max-width: 650px) {
  .service-float-card {
    position: fixed;
    top: 50%;
    right: 18px;
    left: 18px;

    width: auto;
    max-height: 78vh;

    transform:
      translateY(-46%)
      scale(0.96);
  }

  .service-popover-item:hover .service-float-card,
  .service-popover-item:focus-within .service-float-card {
    transform:
      translateY(-50%)
      scale(1);
  }

  .service-float-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* ========================================
   FINAL MOBILE LAYOUT FIX
======================================== */

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    display: block !important;
  }

  .main-content,
  #app {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    padding: 88px 16px 32px !important;
  }

  .home-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  .home-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .builds-card {
    display: block !important;
    min-height: auto !important;
  }

  .builds-card .card-heading-row {
    width: 100% !important;
    min-width: 0 !important;
  }

  .build-tags {
    display: flex !important;
    flex-flow: row wrap !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 22px !important;
  }

  .build-tags span {
    width: auto !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    white-space: normal !important;
  }

  .card-heading-row {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    width: 100% !important;
  }

  .card-heading-row > div {
    min-width: 0 !important;
  }

  .card-heading-row h2,
  .card-heading-row p {
    overflow-wrap: anywhere;
  }
}
/* ========================================
   MOBILE CERTIFICATE CAROUSEL FIX
======================================== */

@media (max-width: 650px) {
  .certificate-home-card .certificate-stage,
  .certificate-home-card:hover .certificate-stage,
  .certificate-home-card:focus-within .certificate-stage {
    display: block !important;
    min-height: 190px !important;
    height: auto !important;
    margin-top: 16px !important;
    overflow: hidden !important;
    transform: none !important;
  }

  .certificate-home-card .certificate-stack,
  .certificate-home-card:hover .certificate-stack,
  .certificate-home-card:focus-within .certificate-stack {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    padding: 12px 6px 20px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color:
      rgba(174, 92, 52, 0.45)
      transparent;
  }

  .certificate-home-card
    .certificate-stack::-webkit-scrollbar {
    height: 5px;
  }

  .certificate-home-card
    .certificate-stack::-webkit-scrollbar-track {
    background: transparent;
  }

  .certificate-home-card
    .certificate-stack::-webkit-scrollbar-thumb {
    background: rgba(174, 92, 52, 0.45);
    border-radius: 99px;
  }

  .certificate-home-card .certificate-preview,
  .certificate-home-card:hover .certificate-preview,
  .certificate-home-card
    .certificate-preview:hover,
  .certificate-home-card
    .certificate-preview:focus {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;

    flex: 0 0 220px !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    scroll-snap-align: center;
  }

  .certificate-home-card .certificate-preview-1,
  .certificate-home-card .certificate-preview-2,
  .certificate-home-card .certificate-preview-3,
  .certificate-home-card .certificate-preview-4,
  .certificate-home-card:hover .certificate-preview-1,
  .certificate-home-card:hover .certificate-preview-2,
  .certificate-home-card:hover .certificate-preview-3,
  .certificate-home-card:hover .certificate-preview-4 {
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .certificate-home-card .certificate-card-footer {
    margin-top: 6px !important;
  }
}
/* =====================================================
   MOBILE FIX — CREDENTIALS AND ABOUT PAGE TOP SPACING
===================================================== */

@media (max-width: 760px) {
  body[data-page="credentials"] .main-content,
  body[data-page="about"] .main-content,
  body[data-page="credentials"] #app,
  body[data-page="about"] #app {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 88px 16px 32px !important;
    align-items: initial !important;
    justify-content: initial !important;
  }

  body[data-page="credentials"] .credentials-page,
  body[data-page="about"] .about-page {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body[data-page="credentials"] .credentials-page-hero,
  body[data-page="about"] .about-page-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 20px !important;
    padding: 24px 20px !important;
    align-items: start !important;
    gap: 24px !important;
    transform: none !important;
  }

  body[data-page="credentials"] .credentials-hero-copy,
  body[data-page="about"] .about-hero-copy,
  body[data-page="about"] .about-profile-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  body[data-page="credentials"] section,
  body[data-page="about"] section {
    min-height: 0 !important;
    height: auto !important;
  }
}
/* =====================================================
   FINAL MOBILE SIDEBAR SPACE FIX
===================================================== */

@media (max-width: 900px) {
  body[data-page="credentials"] #sidebar,
  body[data-page="about"] #sidebar,
  body[data-page="contact"] #sidebar {
    position: fixed !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;

    margin: 0 !important;

    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  body[data-page="credentials"] #sidebar.open,
  body[data-page="about"] #sidebar.open,
  body[data-page="contact"] #sidebar.open {
    transform: translateX(0);
  }

  body[data-page="credentials"] #app,
  body[data-page="about"] #app,
  body[data-page="contact"] #app {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;

    margin: 0 !important;
    padding: 88px 16px 32px !important;
  }

  body[data-page="credentials"] .credentials-page,
  body[data-page="about"] .about-page,
  body[data-page="contact"] .contact-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-top: 0 !important;
  }
}
/* ========================================
   SERVICES MOBILE GAP FIX
======================================== */

@media (max-width: 760px) {
  body[data-page="services"] #app {
    width: 100% !important;
    margin: 0 !important;
    padding: 88px 16px 32px !important;
  }

  body[data-page="services"] .services-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 45px !important;
  }

  body[data-page="services"]
    .services-page > .back-link {
    margin: 0 0 22px !important;
  }
}
/* ========================================
   MOBILE TOOLS MARQUEE FIX
======================================== */

@media (max-width: 720px) {
  .tools-strip {
    display: flex !important;
    min-height: 170px !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 22px !important;
    overflow: hidden !important;
  }

  .tools-logos.tools-marquee {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    flex: 0 0 48px !important;
    overflow: hidden !important;
  }

  .tools-track {
    display: flex !important;
    width: max-content !important;
    height: 48px !important;
    min-height: 48px !important;
    align-items: center !important;
    animation: tools-scroll-left 42s linear infinite !important;
  }

  .tools-group {
    display: flex !important;
    height: 48px !important;
    min-height: 48px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .tools-marquee .tool-logo {
    display: inline-flex !important;
    width: auto !important;
    min-width: max-content !important;
    align-items: center !important;
    flex: 0 0 auto !important;
  }
}
/* ========================================
   SERVICES MOBILE MENU BLUR FIX
======================================== */

@media (max-width: 900px) {
  body[data-page="services"] #sidebar {
    position: fixed !important;
    z-index: 200 !important;
  }

  body[data-page="services"] .sidebar-overlay {
    z-index: 90 !important;
  }

  body[data-page="services"] .mobile-menu-button {
    z-index: 250 !important;
  }
}
/* ========================================
   PROJECT COVER IMAGES
======================================== */

.project-cover-browser {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #f6f0e7;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.project-cover-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 350ms ease,
    filter 350ms ease;
}

.project-card:hover .project-cover-image {
  transform: scale(1.035);
  filter: contrast(1.02);
}

@media (max-width: 700px) {
  .project-cover-browser {
    aspect-ratio: 16 / 9;
  }

  .project-cover-image {
    object-position: center;
  }
}
.sidebar-socials {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
}

.sidebar-socials a {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  flex: 0 0 34px !important;
  box-sizing: border-box !important;
}

.sidebar-socials a img {
  width: 19px !important;
  height: 19px !important;
}
/* =========================================
   PUBLIC PROFILE VISITOR COUNTER
========================================= */

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
}

.portfolio-visitor-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  color: #624f43;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(151, 116, 91, 0.35);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(92, 67, 49, 0.08);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.portfolio-visitor-counter.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-visitor-counter:hover {
  border-color: rgba(151, 116, 91, 0.7);
  box-shadow: 0 10px 24px rgba(92, 67, 49, 0.14);
}

.visitor-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #52a66f;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(82, 166, 111, 0.45);
  animation: visitor-dot-pulse 2s infinite;
}

.visitor-count-number {
  color: #2f2925;
  font-weight: 700;
}

.visitor-count-label {
  color: #76665c;
}

@keyframes visitor-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(82, 166, 111, 0.45);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(82, 166, 111, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(82, 166, 111, 0);
  }
}

@media (max-width: 768px) {
  .hero-actions {
    width: 100%;
    align-items: flex-start;
    gap: 10px;
  }

  .portfolio-visitor-counter {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-visitor-counter,
  .visitor-live-dot {
    animation: none;
    transition: none;
  }
}
/* Visitor counter position above tools section */

.home-hero {
  position: relative;
}

.home-hero .portfolio-visitor-counter {
  position: absolute;
  right: 0;
  bottom: 4px;
  z-index: 5;
}

@media (max-width: 768px) {
  .home-hero .portfolio-visitor-counter {
    position: static;
    width: fit-content;
    margin-top: 14px;
  }
}
.home-hero .portfolio-visitor-counter {
  border: 1.5px solid #b87952;
}

.home-hero .portfolio-visitor-counter:hover {
  border-color: #8f5738;
}