/* Portfolio landing and tools catalog */
.home {
  --bg: #0c1021;
  --surface: #1a2037;
  --surface-hover: #272d48;
  --focus: #70caff;
}

.home:not(.catalog) .hero-background {
  --hero-scene: url("jeddah-office-night.webp");
  position: fixed;
  inset: 0;
  height: 100%;
  background:
    linear-gradient(0deg, var(--bg), #0c10212e 52%, #0c10210d),
    linear-gradient(90deg, #0c1021 0%, #0c10215c 28%, #0c10210d 72%),
    var(--hero-scene) right center / cover no-repeat;
}

.home:not(.catalog) main.wrap > .hero {
  min-height: clamp(410px, 66svh, 720px);
  align-items: center;
  padding: 72px 0;
}

.home .hero h1 { font-size: clamp(2.65rem, 6vw, 5.65rem); font-weight: 820; }
.home .hero h1 span { color: inherit; }
.home .hero p { font-weight: 560; }
.home .hero .btn { background: #0071e3; color: #fff; font-weight: 760; }
.home .hero .btn:hover { background: #0077ed; }
.home .hero .btn.secondary { background: #102a43; border-color: #69b8ff; color: #fff; }
.home .hero .btn.secondary:hover { background: #173b5c; }
.home .actions { flex-wrap: wrap; }
.home .about { background: color-mix(in srgb, var(--bg) 92%, transparent); border-radius: 14px; padding: 24px; }
.home.catalog .catalog-content { padding-block: clamp(48px, 9vw, 120px); min-height: 60vh; }
.catalog-content h1 { margin-bottom: 24px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }

[data-theme=light] .home {
  --bg: #f2effa;
  --surface: #f9f7ff;
  --surface-hover: #e9e3f7;
  --focus: #075fa5;
  --nav-ink: #352952;
}

[data-theme=light] .home:not(.catalog) .hero-background {
  --hero-scene: url("jeddah-office-day.webp");
  background:
    linear-gradient(0deg, var(--bg), #f2effa00 50%),
    linear-gradient(90deg, #18203990, #18203926 36%, transparent 55%),
    var(--hero-scene) right center / cover no-repeat;
}

[data-theme=light] .home .hero h1 { color: #fff; }
[data-theme=light] .home .hero h1 span { color: inherit; }
[data-theme=light] .home .hero p { color: #eef1fa; }
[data-theme=light] .home .hero .btn { background: #0071e3; color: #fff; }
[data-theme=light] .home .hero .btn:hover { background: #0077ed; }
[data-theme=light] .home .hero .btn.secondary { background: #fff; border-color: #4b83b4; color: #174d78; }
[data-theme=light] .home .hero .btn.secondary:hover { background: #e7f1fb; }

@media (max-width: 760px) {
  .home:not(.catalog) main.wrap > .hero {
    min-height: 470px;
    justify-content: center;
    align-items: flex-start;
    padding: 230px 0 40px;
  }

  .home .hero-copy {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-radius: 14px;
    padding: 18px;
    margin-inline: -8px;
  }

  [data-theme=light] .home .hero h1 { color: #182b43; }
  [data-theme=light] .home .hero h1 span { color: inherit; }
  [data-theme=light] .home .hero p { color: #4c627a; }

  .home:not(.catalog) .hero-background,
  [data-theme=light] .home:not(.catalog) .hero-background {
    background: linear-gradient(0deg, var(--bg) 21%, transparent 70%),
      var(--hero-scene) 85% 4rem / auto min(75svh, 560px) no-repeat;
    background-color: var(--bg);
  }
}

.home:not(.catalog) .hero .actions .btn {
  --button-depth: 5px;
  --button-base: #004b98;
  box-shadow: 0 var(--button-depth) 0 var(--button-base) !important;
  transform: translateY(calc(5px - var(--button-depth)));
  transition: transform 340ms cubic-bezier(.2,.85,.34,1.55), box-shadow 220ms ease-out, background-color 160ms ease;
}

.home:not(.catalog) .hero .actions .btn.secondary { --button-base: #071b2d; }
[data-theme="light"] .home:not(.catalog) .hero .actions .btn { --button-base: #004b98; }
[data-theme="light"] .home:not(.catalog) .hero .actions .btn.secondary { --button-base: #9db5ca; }

.home:not(.catalog) .hero .actions .btn:active {
  --button-depth: 0px;
  transition: transform 85ms ease-out, box-shadow 85ms ease-out;
}
