/* ==========================================================================
   Core The Dev — Homepage (promoted from /home-preview 2026-12-06)
   Scoped under body.hp-home. Reuses theme variables (--accent etc.) so
   the Theme Manager still applies. Palette follows the premium redesign
   spec: #080808 base, #0D0D0D alt, #121212/#171717 surfaces, #262626
   borders, #F5F5F5/#A3A3A3 text, #4169E1 royal blue accent.
   ========================================================================== */

.hp-home {
  --hp-bg: #080808;
  --hp-bg-alt: #0D0D0D;
  --hp-card: #121212;
  --hp-card-2: #171717;
  --hp-border: #262626;
  --hp-text: #F5F5F5;
  --hp-muted: #A3A3A3;
  --hp-accent: #4169E1;
  --hp-accent-2: #6E93FF;
  --hp-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  background: var(--hp-bg);
}

/* Wider, premium content container (spec: 1280–1440px) */
.hp-wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---------- Scoped navigation polish (sticky blur + active indicator) --- */
.hp-home .nav {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(8, 8, 8, 0.62);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.hp-home.hp-scrolled .nav {
  background: rgba(8, 8, 8, 0.88);
  border-bottom-color: var(--hp-border);
}
.hp-home .nav-links a { position: relative; }
.hp-home .nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--hp-accent);
  transition: right 0.25s var(--hp-ease);
}
.hp-home .nav-links a:hover::after,
.hp-home .nav-links a.link-active::after { right: 0; }
.hp-home .nav-cta { box-shadow: 0 4px 18px -4px rgba(65, 105, 225, 0.5); }

/* ================================ HERO ================================ */
.hp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6.5rem);
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(65, 105, 225, 0.12), transparent 65%),
    radial-gradient(40% 45% at 10% 80%, rgba(65, 105, 225, 0.05), transparent 70%),
    var(--hp-bg);
}
.hp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hp-trail {
  position: absolute;
  inset: -10% -15%;
  width: 130%;
  height: 120%;
  opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(65, 105, 225, 0.35));
}
.hp-trail-2 { opacity: 0.3; }
.hp-hero-glow {
  position: absolute;
  right: -8%; top: 12%;
  width: 52%; height: 76%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(65, 105, 225, 0.16), transparent 70%);
  filter: blur(10px);
  animation: hpGlowPulse 9s ease-in-out infinite;
}
@keyframes hpGlowPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hp-title {
  margin: 0 0 1.3rem;
  max-width: 17ch;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--hp-text);
}
/* glowmark() wraps the accented phrase in .text-glow */
.hp-title .text-glow {
  color: var(--hp-accent-2);
  text-shadow: 0 0 26px rgba(65, 105, 225, 0.45);
}

.hp-lede {
  margin: 0 0 2.1rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.7;
  color: var(--hp-muted);
}

.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}
.hp-btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.hp-btn-arrow svg {
  width: 17px; height: 17px;
  transition: transform 0.22s var(--hp-ease);
}
.hp-btn-arrow:hover svg { transform: translate(3px, 0); }
.hp-hero-actions .btn-secondary:hover svg { transform: translate(2px, -2px); }

.hp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hp-muted);
  white-space: nowrap;
}
.hp-trust svg {
  width: 17px; height: 17px;
  color: var(--hp-accent-2);
  filter: drop-shadow(0 0 5px rgba(65, 105, 225, 0.5));
}

/* ------------------------- Device composition ------------------------- */
.hp-hero-visual { position: relative; min-width: 0; }
.hp-devices {
  position: relative;
  perspective: 1500px;
  transform-style: preserve-3d;
}
.hp-device-light {
  position: absolute;
  inset: -12% -8% -4%;
  background:
    radial-gradient(46% 42% at 58% 46%, rgba(65, 105, 225, 0.22), transparent 70%),
    radial-gradient(30% 26% at 82% 70%, rgba(110, 147, 255, 0.14), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
.hp-device-shadow {
  position: absolute;
  left: 6%; right: 2%;
  bottom: -7%;
  height: 12%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0, 0, 0, 0.75), transparent 75%);
  filter: blur(14px);
  z-index: 0;
}

.hp-laptop {
  position: relative;
  z-index: 1;
  width: 92%;
  transform: rotateY(-7deg) rotateX(1.5deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.hp-laptop-lid {
  position: relative;
  border: 9px solid #19191C;
  border-bottom-width: 12px;
  border-radius: 16px;
  background: #000;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 70px -22px rgba(0, 0, 0, 0.85),
    0 0 44px -6px rgba(65, 105, 225, 0.28);
}
.hp-laptop-lid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.hp-webcam {
  position: absolute;
  top: 3px; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2C2C31;
  transform: translateX(-50%);
  z-index: 2;
}
.hp-laptop-base {
  position: relative;
  width: 112%;
  margin-left: -6%;
  height: 15px;
  border-radius: 3px 3px 14px 14px;
  background: linear-gradient(180deg, #2E2E33 0%, #1B1B1F 55%, #121215 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px -12px rgba(0, 0, 0, 0.8);
}
.hp-laptop-notch {
  position: absolute;
  top: 0; left: 50%;
  width: 15%; height: 4px;
  border-radius: 0 0 8px 8px;
  background: #0C0C0E;
  transform: translateX(-50%);
}

.hp-phone {
  position: absolute;
  z-index: 2;
  right: -1%;
  bottom: -9%;
  width: 27%;
  transform: rotateY(-7deg) rotateX(1.5deg) translateZ(84px);
  transform-style: preserve-3d;
  will-change: transform;
}
.hp-phone-frame {
  position: relative;
  border: 7px solid #17171A;
  border-radius: 34px;
  background: #000;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 24px 50px -16px rgba(0, 0, 0, 0.85),
    0 0 34px -6px rgba(65, 105, 225, 0.32);
}
.hp-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  object-fit: cover;
  object-position: top center;
}
.hp-phone-island {
  position: absolute;
  top: 7px; left: 50%;
  width: 32%; height: 12px;
  border-radius: 8px;
  background: #0A0A0C;
  transform: translateX(-50%);
  z-index: 2;
}

/* ---------------------------- Hero entrance ---------------------------- */
@keyframes hpRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes hpDeviceIn {
  from { opacity: 0; transform: translateY(26px) scale(0.965); }
  to { opacity: 1; transform: none; }
}
.hp-e1, .hp-e2, .hp-e3, .hp-e4, .hp-e5 {
  opacity: 0;
  animation: hpRise 0.7s var(--hp-ease) forwards;
}
.hp-e1 { animation-delay: 0.08s; }
.hp-e2 { animation-delay: 0.16s; }
.hp-e3 { animation-delay: 0.26s; }
.hp-e4 { animation-delay: 0.36s; }
.hp-e5 { animation-delay: 0.46s; }
.hp-e6 {
  opacity: 0;
  animation: hpDeviceIn 0.9s var(--hp-ease) 0.4s forwards;
}
/* Keep the devices' 3D pose after the entrance animation hands off */
.hp-e6.hp-settled { opacity: 1; animation: none; }

/* ============================== SECTIONS ============================== */
.hp-section { padding: clamp(4rem, 7vw, 6.5rem) 0; position: relative; }
.hp-section-alt { background: var(--hp-bg-alt); }

.hp-head { max-width: 640px; margin: 0 auto clamp(2.4rem, 4vw, 3.6rem); text-align: center; }
.hp-eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hp-accent-2);
}
.hp-h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--hp-text);
}
.hp-sub { margin: 0; font-size: clamp(0.98rem, 1.2vw, 1.08rem); color: var(--hp-muted); }
.hp-accent { color: var(--hp-accent-2); }
.hp-center { text-align: center; }

/* ---------------------------- Selected work ---------------------------- */
.hp-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
  margin-bottom: 2.6rem;
}
.hp-work-card {
  display: block;
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--hp-ease), border-color 0.3s var(--hp-ease),
              box-shadow 0.3s var(--hp-ease);
}
.hp-work-card:hover, .hp-work-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(65, 105, 225, 0.55);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.7),
              0 0 34px -8px rgba(65, 105, 225, 0.35);
}
/* Safari-style browser chrome around each project screenshot */
.hp-browser {
  border-bottom: 1px solid var(--hp-border);
  background: #000;
}
.hp-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.9rem;
  background: #17171A;
  border-bottom: 1px solid var(--hp-border);
}
.hp-bdots { display: inline-flex; gap: 6px; flex: none; }
.hp-bdot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.hp-bdot-r { background: #FF5F57; }
.hp-bdot-y { background: #FEBC2E; }
.hp-bdot-g { background: #28C840; }
.hp-burl {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.22rem 0.85rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: var(--hp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.hp-live {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hp-text);
}
.hp-work-shot {
  position: relative;
  overflow: hidden;
}
.hp-work-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s var(--hp-ease);
}
.hp-work-card:hover .hp-work-shot img { transform: scale(1.03); }
.hp-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}
.hp-work-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.5rem;
}
.hp-work-text h3 { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--hp-text); }
.hp-work-text p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--hp-muted); }
.hp-work-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--hp-border);
  border-radius: 11px;
  color: var(--hp-muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--hp-ease);
}
.hp-work-icon svg { width: 17px; height: 17px; }
.hp-work-card:hover .hp-work-icon {
  color: var(--hp-accent-2);
  border-color: rgba(65, 105, 225, 0.55);
  transform: translate(2px, -2px);
}
.hp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--hp-text);
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.hp-text-link svg { width: 16px; height: 16px; transition: transform 0.22s var(--hp-ease); }
.hp-text-link:hover { border-color: rgba(65, 105, 225, 0.6); color: var(--hp-accent-2); }
.hp-text-link:hover svg { transform: translateX(3px); }

/* ------------------------------ Services ------------------------------ */
.hp-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.hp-svc {
  display: block;
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: 16px;
  padding: 1.7rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--hp-ease), border-color 0.28s, box-shadow 0.28s;
}
.hp-svc:hover, .hp-svc:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(65, 105, 225, 0.5);
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.65),
              0 0 26px -8px rgba(65, 105, 225, 0.3);
}
.hp-svc-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin: 0 auto 1.1rem;
  border: 1px solid rgba(65, 105, 225, 0.35);
  border-radius: 13px;
  background: rgba(65, 105, 225, 0.08);
  color: var(--hp-accent-2);
  transition: transform 0.28s var(--hp-ease), box-shadow 0.28s;
}
.hp-svc-icon svg { width: 21px; height: 21px; }
.hp-svc:hover .hp-svc-icon {
  transform: translateY(-2px);
  box-shadow: 0 0 18px -2px rgba(65, 105, 225, 0.45);
}
.hp-svc h3 { margin: 0 0 0.45rem; font-size: 1.06rem; color: var(--hp-text); }
.hp-svc p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--hp-muted); }

/* ------------------------------ Process ------------------------------- */
.hp-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-step {
  flex: 1 1 0;
  max-width: 320px;
  text-align: left;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--hp-ease), transform 0.55s var(--hp-ease);
}
.hp-step-num {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(65, 105, 225, 0.45);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(65, 105, 225, 0.16), rgba(65, 105, 225, 0.04));
  box-shadow: 0 0 22px -6px rgba(65, 105, 225, 0.4);
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hp-accent-2);
}
.hp-step h3 { margin: 0 0 0.45rem; font-size: 1.08rem; color: var(--hp-text); }
.hp-step p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--hp-muted); }
.hp-step-link {
  align-self: center;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  color: var(--hp-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.45s var(--hp-ease), transform 0.45s var(--hp-ease);
}
.hp-step-link svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(65, 105, 225, 0.5)); }
/* Sequenced reveal, run once (JS adds .hp-in to #hpSteps) */
.hp-steps.hp-in .hp-step { opacity: 1; transform: none; }
.hp-steps.hp-in .hp-step-link { opacity: 1; transform: none; }
.hp-steps.hp-in .hp-step:nth-child(1) { transition-delay: 0.05s; }
.hp-steps.hp-in .hp-step-link:nth-child(2) { transition-delay: 0.35s; }
.hp-steps.hp-in .hp-step:nth-child(3) { transition-delay: 0.6s; }
.hp-steps.hp-in .hp-step-link:nth-child(4) { transition-delay: 0.9s; }
.hp-steps.hp-in .hp-step:nth-child(5) { transition-delay: 1.15s; }

/* ------------------------------- About -------------------------------- */
.hp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: center;
}
.hp-about-copy p { color: var(--hp-muted); line-height: 1.75; font-size: 1rem; }
.hp-about-copy .hp-h2 { margin-top: 0; }

/* CSS workspace illustration — illustrative brand visual, not a real photo */
.hp-about-visual { display: grid; place-items: center; }
.hp-desk {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 10 / 8.4;
  perspective: 900px;
}
.hp-desk-glow {
  position: absolute;
  inset: 8% 0 -8%;
  background: radial-gradient(50% 46% at 50% 42%, rgba(65, 105, 225, 0.2), transparent 70%);
  filter: blur(8px);
}
.hp-monitor { position: absolute; left: 8%; right: 8%; top: 0; }
.hp-monitor-screen {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9.6;
  border: 8px solid #17171B;
  border-radius: 14px;
  background:
    radial-gradient(70% 80% at 50% 30%, rgba(65, 105, 225, 0.14), transparent 75%),
    #050507;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 26px 60px -20px rgba(0, 0, 0, 0.85),
    0 0 40px -8px rgba(65, 105, 225, 0.3);
}
.hp-monitor-screen img {
  width: 46%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(65, 105, 225, 0.35));
}
.hp-monitor-chin { height: 7px; margin: 0 6%; border-radius: 0 0 8px 8px; background: #131316; }
.hp-monitor-stand {
  width: 13%; height: 34px;
  margin: 0 auto;
  background: linear-gradient(90deg, #101013, #1E1E23 50%, #101013);
}
.hp-monitor-foot {
  width: 38%; height: 7px;
  margin: 0 auto;
  border-radius: 6px;
  background: linear-gradient(90deg, #0E0E11, #222228 50%, #0E0E11);
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.8);
}
.hp-keyboard {
  position: absolute;
  left: 16%; right: 30%;
  bottom: 4%;
  height: 5.5%;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 14px),
    linear-gradient(180deg, #1A1A1F, #101013);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.75), 0 0 16px -4px rgba(65, 105, 225, 0.18);
  transform: rotateX(38deg);
  transform-origin: top center;
}
.hp-mouse {
  position: absolute;
  right: 14%; bottom: 3.4%;
  width: 8%; height: 6.5%;
  border-radius: 46% 46% 42% 42%;
  background: linear-gradient(180deg, #1D1D22, #101013);
  box-shadow: 0 10px 18px -6px rgba(0, 0, 0, 0.75);
}

.hp-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}
.hp-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 180px;
}
.hp-point-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(65, 105, 225, 0.35);
  border-radius: 11px;
  background: rgba(65, 105, 225, 0.08);
  color: var(--hp-accent-2);
}
.hp-point-icon svg { width: 18px; height: 18px; }
.hp-points h3 { margin: 0 0 0.2rem; font-size: 0.95rem; color: var(--hp-text); }
.hp-points p { margin: 0; font-size: 0.84rem; line-height: 1.55; color: var(--hp-muted); }

/* ------------------------------ Final CTA ----------------------------- */
.hp-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 4vw, 4rem);
  background:
    radial-gradient(60% 90% at 50% -20%, rgba(65, 105, 225, 0.14), transparent 65%),
    linear-gradient(180deg, #0E0E13, #09090C);
  border: 1px solid var(--hp-border);
  border-radius: 26px;
}
.hp-cta-trail { position: absolute; width: 34%; opacity: 0.5; pointer-events: none; }
.hp-cta-trail-l { left: -4%; bottom: -12%; }
.hp-cta-trail-r { right: -4%; top: -12%; }
.hp-cta .hp-h2 { margin-bottom: 0.7rem; }
.hp-cta .hp-sub { margin-bottom: 1.9rem; }
.hp-cta-note { margin: 1.2rem 0 0; font-size: 0.86rem; color: var(--hp-muted); }

/* ---------------------------- Scroll reveals --------------------------- */
.hp-rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--hp-ease), transform 0.65s var(--hp-ease);
}
.hp-rv.hp-in { opacity: 1; transform: none; }
.hp-work-grid .hp-rv:nth-child(2).hp-in,
.hp-svc-grid .hp-rv:nth-child(2).hp-in { transition-delay: 0.12s; }
.hp-svc-grid .hp-rv:nth-child(3).hp-in { transition-delay: 0.2s; }
.hp-svc-grid .hp-rv:nth-child(4).hp-in { transition-delay: 0.28s; }

/* ============================ RESPONSIVE ============================= */
@media (max-width: 1100px) {
  .hp-hero-grid { grid-template-columns: 1fr; gap: 3.4rem; }
  .hp-title { max-width: 20ch; margin-inline: auto; }
  .hp-hero-visual { max-width: 640px; margin-inline: auto; width: 100%; }
  .hp-svc-grid { grid-template-columns: 1fr 1fr; }
  .hp-about-grid { grid-template-columns: 1fr; }
  .hp-about-visual { order: 2; }
  .hp-about-copy { text-align: center; }
  .hp-about-copy .hp-sub { margin-inline: auto; }
  .hp-points { justify-content: center; }
  .hp-points li {
    flex: 0 1 220px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }
}

@media (max-width: 900px) {
  .hp-work-grid { grid-template-columns: 1fr; }
  .hp-steps { flex-direction: column; align-items: center; gap: 0.6rem; }
  .hp-step { max-width: 460px; text-align: center; }
  .hp-step-num { margin-inline: auto; }
  .hp-step-link { transform: rotate(90deg) translateY(-8px); }
  .hp-steps.hp-in .hp-step-link { transform: rotate(90deg); }
}

@media (max-width: 620px) {
  .hp-wrap { padding-inline: 20px; }
  .hp-hero { padding-top: 2.6rem; }
  .hp-title { font-size: clamp(2.2rem, 9.5vw, 3rem); }
  .hp-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hp-trust { gap: 0.85rem 1.2rem; }
  .hp-trust li { font-size: 0.78rem; }
  .hp-laptop { width: 100%; transform: rotateY(-4deg); }
  .hp-phone { width: 30%; right: 0; bottom: -7%; transform: rotateY(-4deg) translateZ(30px); }
  .hp-svc-grid { grid-template-columns: 1fr; }
  .hp-work-body { padding: 1.1rem 1.2rem 1.3rem; }
  .hp-points { flex-direction: column; gap: 1.4rem; align-items: center; }
  .hp-points li { flex: none; max-width: 300px; }
}

/* ------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hp-e1, .hp-e2, .hp-e3, .hp-e4, .hp-e5, .hp-e6,
  .hp-rv, .hp-step, .hp-step-link {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hp-hero-glow { animation: none !important; }
  .hp-work-shot img, .hp-btn-arrow svg, .hp-text-link svg { transition: none !important; }
}
